diff --git a/api/dist/kernel.json b/api/dist/kernel.json index 7edfb2bdbc..88f6d1cf7e 100644 --- a/api/dist/kernel.json +++ b/api/dist/kernel.json @@ -221,6 +221,12 @@ "Description": "The type of the instances in the runtime cluster", "Type": "String" }, + "InstanceUpdateBatchSize": { + "Default": "1", + "Description": "The number of instances to update in a batch", + "MinValue": "1", + "Type": "Number" + }, "Key": { "Default": "", "Description": "SSH key name for access to cluster instances", @@ -1006,7 +1012,7 @@ }, "UpdatePolicy": { "AutoScalingRollingUpdate": { - "MaxBatchSize": "1", + "MaxBatchSize": { "Ref": "InstanceUpdateBatchSize" }, "MinInstancesInService": { "Ref": "InstanceCount" }, "PauseTime" : "PT15M", "SuspendProcesses": [ diff --git a/api/models/fixtures/balancer_labels.json b/api/models/fixtures/balancer_labels.json index 6feacf3d2b..c752d148d8 100644 --- a/api/models/fixtures/balancer_labels.json +++ b/api/models/fixtures/balancer_labels.json @@ -1,6 +1,22 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Conditions": { + "BalancerMainBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "MainHealthPath" + }, + "" + ] + }, + "BalancerMainBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "MainHealthTimeout" + }, + "" + ] + }, "BalancerMainPort443Proxy": { "Fn::Equals": [ { @@ -186,6 +202,16 @@ "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", "Type": "CommaDelimitedList" }, + "MainHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "MainHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, "MainPort443Balancer": { "Default": "443", "Description": "", @@ -297,19 +323,79 @@ "CrossZone": true, "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, + "Interval": "5", "Target": { "Fn::Join": [ - ":", + "", [ - "TCP", { - "Ref": "MainPort443Host" + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerMainBlankHealthPath", + { + "Fn::If": [ + "BalancerMainPort443Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerMainPort443Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "MainPort443Host" + } + ] + ] + }, + { + "Ref": "MainHealthPath" } ] ] }, - "Timeout": 3, + "Timeout": { + "Fn::If": [ + "BalancerMainBlankHealthTimeout", + "3", + { + "Ref": "MainHealthTimeout" + } + ] + }, "UnhealthyThreshold": "2" }, "LBCookieStickinessPolicy": [ diff --git a/api/models/fixtures/custom_health.json b/api/models/fixtures/custom_health.json new file mode 100644 index 0000000000..95cb992c8d --- /dev/null +++ b/api/models/fixtures/custom_health.json @@ -0,0 +1,1077 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "BalancerMainBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "MainHealthPath" + }, + "" + ] + }, + "BalancerMainBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "MainHealthTimeout" + }, + "" + ] + }, + "BalancerMainPort80Proxy": { + "Fn::Equals": [ + { + "Ref": "MainPort80Proxy" + }, + "Yes" + ] + }, + "BalancerMainPort80Secure": { + "Fn::Equals": [ + { + "Ref": "MainPort80Secure" + }, + "Yes" + ] + }, + "BalancerMainPort81Proxy": { + "Fn::Equals": [ + { + "Ref": "MainPort81Proxy" + }, + "Yes" + ] + }, + "BalancerMainPort81Secure": { + "Fn::Equals": [ + { + "Ref": "MainPort81Secure" + }, + "Yes" + ] + }, + "BlankMainService": { + "Fn::Equals": [ + "", + "" + ] + }, + "BlankSecurityGroup": { + "Fn::Equals": [ + { + "Ref": "SecurityGroup" + }, + "" + ] + }, + "EnabledMain": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Fn::Select": [ + 0, + { + "Ref": "MainFormation" + } + ] + }, + "-1" + ] + } + ] + }, + "Private": { + "Fn::Equals": [ + { + "Ref": "Private" + }, + "Yes" + ] + }, + "RegionHasRegistry": { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + } + ] + } + }, + "Mappings": { + "PortProtocol": { + "http": { + "InstanceProtocol": "HTTP", + "ListenerProtocol": "HTTP", + "SecureInstanceProtocol": "HTTPS" + }, + "https": { + "InstanceProtocol": "HTTP", + "ListenerProtocol": "HTTPS", + "SecureInstanceProtocol": "HTTPS" + }, + "tcp": { + "InstanceProtocol": "TCP", + "ListenerProtocol": "TCP", + "SecureInstanceProtocol": "SSL" + }, + "tls": { + "InstanceProtocol": "TCP", + "ListenerProtocol": "SSL", + "SecureInstanceProtocol": "SSL" + } + } + }, + "Outputs": { + "BalancerMainHost": { + "Condition": "EnabledMain", + "Value": { + "Fn::GetAtt": [ + "BalancerMain", + "DNSName" + ] + } + }, + "LogGroup": { + "Value": { + "Ref": "LogGroup" + } + }, + "MainPort80Balancer": { + "Condition": "EnabledMain", + "Value": { + "Ref": "MainPort80Balancer" + } + }, + "MainPort80BalancerName": { + "Condition": "EnabledMain", + "Value": "httpd-main-KQSNMIK" + }, + "MainPort81Balancer": { + "Condition": "EnabledMain", + "Value": { + "Ref": "MainPort81Balancer" + } + }, + "MainPort81BalancerName": { + "Condition": "EnabledMain", + "Value": "httpd-main-KQSNMIK" + }, + "RegistryId": { + "Condition": "RegionHasRegistry", + "Value": { + "Ref": "AWS::AccountId" + } + }, + "RegistryRepository": { + "Condition": "RegionHasRegistry", + "Value": { + "Fn::GetAtt": [ + "RegistryRepository", + "RepositoryName" + ] + } + }, + "Settings": { + "Value": { + "Ref": "Settings" + } + } + }, + "Parameters": { + "Cluster": { + "Default": "", + "Description": "", + "Type": "String" + }, + "DeploymentMaximum": { + "Default": "200", + "Description": "Maximum percentage of processes to keep running while deploying", + "Type": "Number" + }, + "DeploymentMinimum": { + "Default": "100", + "Description": "Minimum percentage of processes to keep running while deploying", + "Type": "Number" + }, + "Environment": { + "Default": "", + "Description": "", + "Type": "String" + }, + "Key": { + "Default": "", + "Description": "", + "Type": "String" + }, + "MainFormation": { + "Default": "1,0,256", + "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", + "Type": "CommaDelimitedList" + }, + "MainHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "MainHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, + "MainPort80Balancer": { + "Default": "80", + "Description": "", + "Type": "String" + }, + "MainPort80Certificate": { + "Default": "", + "Description": "", + "Type": "String" + }, + "MainPort80Host": { + "Default": "5000", + "Description": "", + "Type": "String" + }, + "MainPort80Protocol": { + "AllowedValues": [ + "http", + "https", + "tcp", + "tls" + ], + "Default": "tls", + "Description": "", + "Type": "String" + }, + "MainPort80Proxy": { + "AllowedValues": [ + "Yes", + "No" + ], + "Default": "No", + "Description": "", + "Type": "String" + }, + "MainPort80Secure": { + "AllowedValues": [ + "Yes", + "No" + ], + "Default": "No", + "Description": "", + "Type": "String" + }, + "MainPort81Balancer": { + "Default": "81", + "Description": "", + "Type": "String" + }, + "MainPort81Certificate": { + "Default": "", + "Description": "", + "Type": "String" + }, + "MainPort81Host": { + "Default": "5001", + "Description": "", + "Type": "String" + }, + "MainPort81Protocol": { + "AllowedValues": [ + "http", + "https", + "tcp", + "tls" + ], + "Default": "tls", + "Description": "", + "Type": "String" + }, + "MainPort81Proxy": { + "AllowedValues": [ + "Yes", + "No" + ], + "Default": "No", + "Description": "", + "Type": "String" + }, + "MainPort81Secure": { + "AllowedValues": [ + "Yes", + "No" + ], + "Default": "No", + "Description": "", + "Type": "String" + }, + "Private": { + "AllowedValues": [ + "Yes", + "No" + ], + "Default": "No", + "Description": "Create internal load balancers in private subnets", + "Type": "String" + }, + "Release": { + "Default": "", + "Description": "", + "Type": "String" + }, + "Repository": { + "Default": "", + "Description": "Source code repository", + "Type": "String" + }, + "SecurityGroup": { + "Default": "", + "Description": "The Load balancer security group for this app", + "Type": "String" + }, + "Subnets": { + "Default": "", + "Description": "VPC subnets for this app", + "Type": "List\u003cAWS::EC2::Subnet::Id\u003e" + }, + "SubnetsPrivate": { + "Default": "", + "Description": "VPC private subnets for this app", + "Type": "List\u003cAWS::EC2::Subnet::Id\u003e" + }, + "VPC": { + "Default": "", + "Description": "VPC for this app", + "Type": "AWS::EC2::VPC::Id" + }, + "VPCCIDR": { + "Default": "", + "Description": "VPC CIDR for this app", + "Type": "String" + }, + "Version": { + "Description": "(REQUIRED) Lambda CustomTopic Handler Release Version", + "MinLength": "1", + "Type": "String" + } + }, + "Resources": { + "BalancerMain": { + "Condition": "EnabledMain", + "DependsOn": [ + "BalancerMainSecurityGroup" + ], + "Properties": { + "ConnectionDrainingPolicy": { + "Enabled": true, + "Timeout": 60 + }, + "ConnectionSettings": { + "IdleTimeout": 3600 + }, + "CrossZone": true, + "HealthCheck": { + "HealthyThreshold": "2", + "Interval": "62", + "Target": { + "Fn::Join": [ + "", + [ + { + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerMainBlankHealthPath", + { + "Fn::If": [ + "BalancerMainPort81Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerMainPort81Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "MainPort81Host" + } + ] + ] + }, + { + "Ref": "MainHealthPath" + } + ] + ] + }, + "Timeout": { + "Fn::If": [ + "BalancerMainBlankHealthTimeout", + "3", + { + "Ref": "MainHealthTimeout" + } + ] + }, + "UnhealthyThreshold": "2" + }, + "LBCookieStickinessPolicy": [ + { + "PolicyName": "affinity" + } + ], + "Listeners": [ + { + "Fn::If": [ + "BalancerMainPort80Secure", + { + "InstancePort": { + "Ref": "MainPort80Host" + }, + "InstanceProtocol": { + "Fn::FindInMap": [ + "PortProtocol", + { + "Ref": "MainPort80Protocol" + }, + "SecureInstanceProtocol" + ] + }, + "LoadBalancerPort": { + "Ref": "MainPort80Balancer" + }, + "Protocol": { + "Fn::FindInMap": [ + "PortProtocol", + { + "Ref": "MainPort80Protocol" + }, + "ListenerProtocol" + ] + }, + "SSLCertificateId": { + "Ref": "MainPort80Certificate" + } + }, + { + "InstancePort": { + "Ref": "MainPort80Host" + }, + "InstanceProtocol": { + "Fn::FindInMap": [ + "PortProtocol", + { + "Ref": "MainPort80Protocol" + }, + "InstanceProtocol" + ] + }, + "LoadBalancerPort": { + "Ref": "MainPort80Balancer" + }, + "Protocol": { + "Fn::FindInMap": [ + "PortProtocol", + { + "Ref": "MainPort80Protocol" + }, + "ListenerProtocol" + ] + }, + "SSLCertificateId": { + "Ref": "MainPort80Certificate" + } + } + ] + }, + { + "Fn::If": [ + "BalancerMainPort81Secure", + { + "InstancePort": { + "Ref": "MainPort81Host" + }, + "InstanceProtocol": { + "Fn::FindInMap": [ + "PortProtocol", + { + "Ref": "MainPort81Protocol" + }, + "SecureInstanceProtocol" + ] + }, + "LoadBalancerPort": { + "Ref": "MainPort81Balancer" + }, + "Protocol": { + "Fn::FindInMap": [ + "PortProtocol", + { + "Ref": "MainPort81Protocol" + }, + "ListenerProtocol" + ] + }, + "SSLCertificateId": { + "Ref": "MainPort81Certificate" + } + }, + { + "InstancePort": { + "Ref": "MainPort81Host" + }, + "InstanceProtocol": { + "Fn::FindInMap": [ + "PortProtocol", + { + "Ref": "MainPort81Protocol" + }, + "InstanceProtocol" + ] + }, + "LoadBalancerPort": { + "Ref": "MainPort81Balancer" + }, + "Protocol": { + "Fn::FindInMap": [ + "PortProtocol", + { + "Ref": "MainPort81Protocol" + }, + "ListenerProtocol" + ] + }, + "SSLCertificateId": { + "Ref": "MainPort81Certificate" + } + } + ] + }, + { + "Ref": "AWS::NoValue" + } + ], + "LoadBalancerName": "httpd-main-KQSNMIK", + "Policies": [ + { + "Fn::If": [ + "BalancerMainPort80Proxy", + { + "Attributes": [ + { + "Name": "ProxyProtocol", + "Value": "true" + } + ], + "InstancePorts": [ + { + "Ref": "MainPort80Host" + } + ], + "PolicyName": "EnableProxyProtocol", + "PolicyType": "ProxyProtocolPolicyType" + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + { + "Fn::If": [ + "BalancerMainPort81Proxy", + { + "Attributes": [ + { + "Name": "ProxyProtocol", + "Value": "true" + } + ], + "InstancePorts": [ + { + "Ref": "MainPort81Host" + } + ], + "PolicyName": "EnableProxyProtocol", + "PolicyType": "ProxyProtocolPolicyType" + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + { + "Ref": "AWS::NoValue" + } + ], + "SecurityGroups": [ + { + "Fn::If": [ + "BlankSecurityGroup", + { + "Ref": "BalancerMainSecurityGroup" + }, + { + "Ref": "SecurityGroup" + } + ] + } + ], + "Subnets": { + "Ref": "Subnets" + } + }, + "Type": "AWS::ElasticLoadBalancing::LoadBalancer" + }, + "BalancerMainSecurityGroup": { + "Condition": "EnabledMain", + "Properties": { + "GroupDescription": { + "Fn::Join": [ + " ", + [ + { + "Ref": "AWS::StackName" + }, + "-balancer" + ] + ] + }, + "SecurityGroupIngress": [ + { + "CidrIp": "0.0.0.0/0", + "FromPort": { + "Ref": "MainPort80Balancer" + }, + "IpProtocol": "tcp", + "ToPort": { + "Ref": "MainPort80Balancer" + } + }, + { + "CidrIp": "0.0.0.0/0", + "FromPort": { + "Ref": "MainPort81Balancer" + }, + "IpProtocol": "tcp", + "ToPort": { + "Ref": "MainPort81Balancer" + } + }, + { + "Ref": "AWS::NoValue" + } + ], + "VpcId": { + "Ref": "VPC" + } + }, + "Type": "AWS::EC2::SecurityGroup" + }, + "CustomTopic": { + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Join": [ + "-", + [ + "convox", + { + "Ref": "AWS::Region" + } + ] + ] + }, + "S3Key": { + "Fn::Join": [ + "", + [ + "release/", + { + "Ref": "Version" + }, + "/formation.zip" + ] + ] + } + }, + "Handler": "lambda.external", + "MemorySize": "128", + "Role": { + "Fn::GetAtt": [ + "CustomTopicRole", + "Arn" + ] + }, + "Runtime": "nodejs", + "Timeout": "30" + }, + "Type": "AWS::Lambda::Function" + }, + "CustomTopicRole": { + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": [ + "sts:AssumeRole" + ], + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + } + } + ], + "Version": "2012-10-17" + }, + "Path": "/", + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": "*", + "Effect": "Allow", + "Resource": "*" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "Administrator" + } + ] + }, + "Type": "AWS::IAM::Role" + }, + "LogGroup": { + "Type": "AWS::Logs::LogGroup" + }, + "MainECSService": { + "Condition": "EnabledMain", + "DependsOn": [ + "BalancerMain", + "CustomTopic", + "ServiceRole" + ], + "Properties": { + "Cluster": { + "Ref": "Cluster" + }, + "DeploymentMaximumPercent": { + "Ref": "DeploymentMaximum" + }, + "DeploymentMinimumPercent": { + "Ref": "DeploymentMinimum" + }, + "DesiredCount": { + "Fn::Select": [ + 0, + { + "Ref": "MainFormation" + } + ] + }, + "LoadBalancers": [ + { + "Fn::Join": [ + ":", + [ + { + "Ref": "BalancerMain" + }, + "main", + "3000" + ] + ] + }, + { + "Fn::Join": [ + ":", + [ + { + "Ref": "BalancerMain" + }, + "main", + "3001" + ] + ] + }, + { + "Ref": "AWS::NoValue" + } + ], + "Name": { + "Fn::Join": [ + "-", + [ + { + "Ref": "AWS::StackName" + }, + "main" + ] + ] + }, + "Role": { + "Ref": "ServiceRole" + }, + "ServiceToken": { + "Fn::GetAtt": [ + "CustomTopic", + "Arn" + ] + }, + "TaskDefinition": { + "Ref": "MainECSTaskDefinition" + } + }, + "Type": "Custom::ECSService", + "Version": "1.0" + }, + "MainECSTaskDefinition": { + "DependsOn": [ + "CustomTopic", + "ServiceRole" + ], + "Properties": { + "Environment": { + "Ref": "Environment" + }, + "Key": { + "Ref": "Key" + }, + "Name": { + "Fn::Join": [ + "-", + [ + { + "Ref": "AWS::StackName" + }, + "main" + ] + ] + }, + "Release": { + "Ref": "Release" + }, + "ServiceToken": { + "Fn::GetAtt": [ + "CustomTopic", + "Arn" + ] + }, + "Tasks": [ + { + "Fn::If": [ + "BlankMainService", + { + "Cpu": { + "Fn::Select": [ + 1, + { + "Ref": "MainFormation" + } + ] + }, + "Environment": { + "APP": "httpd", + "AWS_REGION": "us-test-2", + "LOG_GROUP": { + "Ref": "LogGroup" + }, + "PROCESS": "main", + "RACK": "convox-test" + }, + "Image": "", + "Memory": { + "Fn::Select": [ + 2, + { + "Ref": "MainFormation" + } + ] + }, + "Name": "main", + "PortMappings": [ + { + "Fn::Join": [ + ":", + [ + { + "Ref": "MainPort80Host" + }, + "3000" + ] + ] + }, + { + "Fn::Join": [ + ":", + [ + { + "Ref": "MainPort81Host" + }, + "3001" + ] + ] + }, + { + "Ref": "AWS::NoValue" + } + ], + "Privileged": "false", + "Services": [ + { + "Ref": "AWS::NoValue" + } + ], + "Volumes": [ + { + "Ref": "AWS::NoValue" + } + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ] + }, + "Type": "Custom::ECSTaskDefinition", + "Version": "1.0" + }, + "RegistryRepository": { + "Condition": "RegionHasRegistry", + "Properties": { + "Name": { + "Ref": "AWS::StackName" + }, + "ServiceToken": { + "Fn::GetAtt": [ + "CustomTopic", + "Arn" + ] + } + }, + "Type": "Custom::ECRRepository", + "Version": "1.0" + }, + "ServiceRole": { + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": [ + "sts:AssumeRole" + ], + "Effect": "Allow", + "Principal": { + "Service": [ + "ecs.amazonaws.com" + ] + } + } + ], + "Version": "2012-10-17" + }, + "Path": "/", + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "elasticloadbalancing:Describe*", + "elasticloadbalancing:DeregisterInstancesFromLoadBalancer", + "elasticloadbalancing:RegisterInstancesWithLoadBalancer", + "ec2:Describe*", + "ec2:AuthorizeSecurityGroupIngress" + ], + "Effect": "Allow", + "Resource": [ + "*" + ] + } + ] + }, + "PolicyName": "ServiceRole" + } + ] + }, + "Type": "AWS::IAM::Role" + }, + "Settings": { + "DeletionPolicy": "Retain", + "Properties": { + "AccessControl": "Private", + "Tags": [ + { + "Key": "system", + "Value": "convox" + }, + { + "Key": "app", + "Value": { + "Ref": "AWS::StackName" + } + } + ] + }, + "Type": "AWS::S3::Bucket" + } + } +} diff --git a/api/models/fixtures/custom_health.yml b/api/models/fixtures/custom_health.yml new file mode 100644 index 0000000000..169e497aca --- /dev/null +++ b/api/models/fixtures/custom_health.yml @@ -0,0 +1,9 @@ +main: + ports: + - 80:3000 + - 81:3001 + labels: + - convox.port.81.secure=true + - convox.health.port=3001 + - convox.health.path=/health_check + - convox.health.timeout=60 diff --git a/api/models/fixtures/multi_balancer.json b/api/models/fixtures/multi_balancer.json index 3bb6d7cb91..0591923211 100644 --- a/api/models/fixtures/multi_balancer.json +++ b/api/models/fixtures/multi_balancer.json @@ -1,6 +1,22 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Conditions": { + "BalancerWebBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "WebHealthPath" + }, + "" + ] + }, + "BalancerWebBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "WebHealthTimeout" + }, + "" + ] + }, "BalancerWebPort80Proxy": { "Fn::Equals": [ { @@ -17,6 +33,22 @@ "Yes" ] }, + "BalancerWorkerBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "WorkerHealthPath" + }, + "" + ] + }, + "BalancerWorkerBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "WorkerHealthTimeout" + }, + "" + ] + }, "BalancerWorkerPort80Proxy": { "Fn::Equals": [ { @@ -293,6 +325,16 @@ "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", "Type": "CommaDelimitedList" }, + "WebHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "WebHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, "WebPort80Balancer": { "Default": "80", "Description": "", @@ -342,6 +384,16 @@ "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", "Type": "CommaDelimitedList" }, + "WorkerHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "WorkerHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, "WorkerPort80Balancer": { "Default": "80", "Description": "", @@ -404,19 +456,79 @@ "CrossZone": true, "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, + "Interval": "5", "Target": { "Fn::Join": [ - ":", + "", [ - "TCP", { - "Ref": "WebPort80Host" + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerWebBlankHealthPath", + { + "Fn::If": [ + "BalancerWebPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerWebPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "WebPort80Host" + } + ] + ] + }, + { + "Ref": "WebHealthPath" } ] ] }, - "Timeout": 3, + "Timeout": { + "Fn::If": [ + "BalancerWebBlankHealthTimeout", + "3", + { + "Ref": "WebHealthTimeout" + } + ] + }, "UnhealthyThreshold": "2" }, "LBCookieStickinessPolicy": [ @@ -591,19 +703,79 @@ "CrossZone": true, "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, + "Interval": "5", "Target": { "Fn::Join": [ - ":", + "", [ - "TCP", { - "Ref": "WorkerPort80Host" + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerWorkerBlankHealthPath", + { + "Fn::If": [ + "BalancerWorkerPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerWorkerPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "WorkerPort80Host" + } + ] + ] + }, + { + "Ref": "WorkerHealthPath" } ] ] }, - "Timeout": 3, + "Timeout": { + "Fn::If": [ + "BalancerWorkerBlankHealthTimeout", + "3", + { + "Ref": "WorkerHealthTimeout" + } + ] + }, "UnhealthyThreshold": "2" }, "LBCookieStickinessPolicy": [ diff --git a/api/models/fixtures/web_external_internal.json b/api/models/fixtures/web_external_internal.json index e9e1f8763e..c546cb8347 100644 --- a/api/models/fixtures/web_external_internal.json +++ b/api/models/fixtures/web_external_internal.json @@ -1,6 +1,22 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Conditions": { + "BalancerWebBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "WebHealthPath" + }, + "" + ] + }, + "BalancerWebBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "WebHealthTimeout" + }, + "" + ] + }, "BalancerWebPort3001Proxy": { "Fn::Equals": [ { @@ -261,6 +277,16 @@ "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", "Type": "CommaDelimitedList" }, + "WebHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "WebHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, "WebPort3001Balancer": { "Default": "3001", "Description": "", @@ -367,19 +393,79 @@ "CrossZone": true, "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, + "Interval": "5", "Target": { "Fn::Join": [ - ":", + "", [ - "TCP", { - "Ref": "WebPort80Host" + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerWebBlankHealthPath", + { + "Fn::If": [ + "BalancerWebPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerWebPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "WebPort80Host" + } + ] + ] + }, + { + "Ref": "WebHealthPath" } ] ] }, - "Timeout": 3, + "Timeout": { + "Fn::If": [ + "BalancerWebBlankHealthTimeout", + "3", + { + "Ref": "WebHealthTimeout" + } + ] + }, "UnhealthyThreshold": "2" }, "LBCookieStickinessPolicy": [ diff --git a/api/models/fixtures/web_postgis.json b/api/models/fixtures/web_postgis.json index 506e5f84d6..5070c9b88a 100644 --- a/api/models/fixtures/web_postgis.json +++ b/api/models/fixtures/web_postgis.json @@ -1,6 +1,22 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Conditions": { + "BalancerWebBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "WebHealthPath" + }, + "" + ] + }, + "BalancerWebBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "WebHealthTimeout" + }, + "" + ] + }, "BalancerWebPort443Proxy": { "Fn::Equals": [ { @@ -289,6 +305,16 @@ "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", "Type": "CommaDelimitedList" }, + "WebHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "WebHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, "WebPort443Balancer": { "Default": "443", "Description": "", @@ -395,19 +421,79 @@ "CrossZone": true, "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, + "Interval": "5", "Target": { "Fn::Join": [ - ":", + "", [ - "TCP", { - "Ref": "WebPort80Host" + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerWebBlankHealthPath", + { + "Fn::If": [ + "BalancerWebPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerWebPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "WebPort80Host" + } + ] + ] + }, + { + "Ref": "WebHealthPath" } ] ] }, - "Timeout": 3, + "Timeout": { + "Fn::If": [ + "BalancerWebBlankHealthTimeout", + "3", + { + "Ref": "WebHealthTimeout" + } + ] + }, "UnhealthyThreshold": "2" }, "LBCookieStickinessPolicy": [ diff --git a/api/models/fixtures/web_postgis_internal.json b/api/models/fixtures/web_postgis_internal.json index 6e2df88a09..c1f62391d7 100644 --- a/api/models/fixtures/web_postgis_internal.json +++ b/api/models/fixtures/web_postgis_internal.json @@ -1,6 +1,22 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Conditions": { + "BalancerWebBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "WebHealthPath" + }, + "" + ] + }, + "BalancerWebBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "WebHealthTimeout" + }, + "" + ] + }, "BalancerWebPort3000Proxy": { "Fn::Equals": [ { @@ -263,6 +279,16 @@ "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", "Type": "CommaDelimitedList" }, + "WebHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "WebHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, "WebPort3000Balancer": { "Default": "3000", "Description": "", @@ -325,19 +351,79 @@ "CrossZone": true, "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, + "Interval": "5", "Target": { "Fn::Join": [ - ":", + "", [ - "TCP", { - "Ref": "WebPort3000Host" + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerWebBlankHealthPath", + { + "Fn::If": [ + "BalancerWebPort3000Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerWebPort3000Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "WebPort3000Host" + } + ] + ] + }, + { + "Ref": "WebHealthPath" } ] ] }, - "Timeout": 3, + "Timeout": { + "Fn::If": [ + "BalancerWebBlankHealthTimeout", + "3", + { + "Ref": "WebHealthTimeout" + } + ] + }, "UnhealthyThreshold": "2" }, "LBCookieStickinessPolicy": [ diff --git a/api/models/fixtures/web_redis.json b/api/models/fixtures/web_redis.json index e0a155cd15..909f4231c0 100644 --- a/api/models/fixtures/web_redis.json +++ b/api/models/fixtures/web_redis.json @@ -1,6 +1,22 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Conditions": { + "BalancerRedisBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "RedisHealthPath" + }, + "" + ] + }, + "BalancerRedisBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "RedisHealthTimeout" + }, + "" + ] + }, "BalancerRedisPort6379Proxy": { "Fn::Equals": [ { @@ -17,6 +33,22 @@ "Yes" ] }, + "BalancerWebBlankHealthPath": { + "Fn::Equals": [ + { + "Ref": "WebHealthPath" + }, + "" + ] + }, + "BalancerWebBlankHealthTimeout": { + "Fn::Equals": [ + { + "Ref": "WebHealthTimeout" + }, + "" + ] + }, "BalancerWebPort80Proxy": { "Fn::Equals": [ { @@ -253,6 +285,16 @@ "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", "Type": "CommaDelimitedList" }, + "RedisHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "RedisHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, "RedisPort6379Balancer": { "Default": "6379", "Description": "", @@ -342,6 +384,16 @@ "Description": "Number of processes to run, CPU units to reserve, and MB of RAM to reserve", "Type": "CommaDelimitedList" }, + "WebHealthPath": { + "Default": "", + "Description": "Path used when health check protocol is http(s)", + "Type": "String" + }, + "WebHealthTimeout": { + "Default": "3", + "MaxValue": 60, + "Type": "Number" + }, "WebPort80Balancer": { "Default": "80", "Description": "", @@ -404,19 +456,79 @@ "CrossZone": true, "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, + "Interval": "5", "Target": { "Fn::Join": [ - ":", + "", [ - "TCP", { - "Ref": "RedisPort6379Host" + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerRedisBlankHealthPath", + { + "Fn::If": [ + "BalancerRedisPort6379Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerRedisPort6379Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "RedisPort6379Host" + } + ] + ] + }, + { + "Ref": "RedisHealthPath" } ] ] }, - "Timeout": 3, + "Timeout": { + "Fn::If": [ + "BalancerRedisBlankHealthTimeout", + "3", + { + "Ref": "RedisHealthTimeout" + } + ] + }, "UnhealthyThreshold": "2" }, "LBCookieStickinessPolicy": [ @@ -602,19 +714,79 @@ "CrossZone": true, "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, + "Interval": "5", "Target": { "Fn::Join": [ - ":", + "", [ - "TCP", { - "Ref": "WebPort80Host" + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "BalancerWebBlankHealthPath", + { + "Fn::If": [ + "BalancerWebPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "tcp", + "InstanceProtocol" + ] + } + ] + }, + { + "Fn::If": [ + "BalancerWebPort80Secure", + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "SecureInstanceProtocol" + ] + }, + { + "Fn::FindInMap": [ + "PortProtocol", + "http", + "InstanceProtocol" + ] + } + ] + } + ] + }, + { + "Ref": "WebPort80Host" + } + ] + ] + }, + { + "Ref": "WebHealthPath" } ] ] }, - "Timeout": 3, + "Timeout": { + "Fn::If": [ + "BalancerWebBlankHealthTimeout", + "3", + { + "Ref": "WebHealthTimeout" + } + ] + }, "UnhealthyThreshold": "2" }, "LBCookieStickinessPolicy": [ diff --git a/api/models/manifest.go b/api/models/manifest.go index 849d8c9a6c..d9a43b4118 100644 --- a/api/models/manifest.go +++ b/api/models/manifest.go @@ -10,6 +10,7 @@ import ( "path/filepath" "sort" "strings" + "strconv" "gopkg.in/yaml.v2" ) @@ -259,12 +260,41 @@ func (mb ManifestBalancer) ExternalPorts() []string { return sp } -func (mb ManifestBalancer) FirstPort() string { - if ports := mb.PortMappings(); len(ports) > 0 { - return ports[0].Balancer +// DefaultHealthTimeout The default health timeout when one is not specified +func (mb ManifestBalancer) DefaultHealthTimeout() string { + return "3" +} + +// HealthPort The balancer port that maps to the container port specified in manifest +func (mb ManifestBalancer) HealthPort() (string, error) { + mappings := mb.PortMappings() + if port := mb.Entry.Label("convox.health.port"); port != "" { + for _, mapping := range mappings { + if mapping.Container == port { + return mapping.Balancer, nil + } + } + return "", fmt.Errorf("Failed to find matching port for health port %#v", port) + } else if len(mappings) > 0 { + return mappings[0].Balancer, nil } - return "" + return "", nil +} + +// HealthInterval The amount of time in between health checks. This is derived from the timeout value, +// which must be less than the interval +func (mb ManifestBalancer) HealthInterval() (string, error) { + // interval must be greater than timeout + if timeout := mb.Entry.Label("convox.health.timeout"); timeout != "" { + timeoutInt, err := strconv.Atoi(timeout) + if err != nil { + return "", err + } + interval := strconv.Itoa(timeoutInt + 2) + return interval, nil + } + return "5", nil } func (mb ManifestBalancer) LoadBalancerName() template.HTML { diff --git a/api/models/manifest_test.go b/api/models/manifest_test.go index 41237bc76b..361bf1ab48 100644 --- a/api/models/manifest_test.go +++ b/api/models/manifest_test.go @@ -134,6 +134,91 @@ func TestCommandStringForm(t *testing.T) { assertFixture(t, "command_string_form", "") } +func TestHealthPort(t *testing.T) { + _manifest := ` +web: + ports: + - 80:3000 + - 81:3001 +` + manifest, err := LoadManifest(_manifest, nil) + require.Nil(t, err) + balancer := manifest.Balancers()[0] + + // Should be the first port + port, err := balancer.HealthPort() + assert.EqualValues(t, port, "80") +} + +func TestHealthPortWithOverride(t *testing.T) { + _manifest := ` +web: + ports: + - 80:3000 + - 81:3001 + labels: + - convox.health.port=3001 +` + manifest, err := LoadManifest(_manifest, nil) + require.Nil(t, err) + balancer := manifest.Balancers()[0] + + // Should be the first host port that matches 3001, which is 81 + port, err := balancer.HealthPort() + assert.EqualValues(t, port, "81") +} + +func TestHealthPortWithMultipleOverride(t *testing.T) { + _manifest := ` +web: + ports: + - 80:3000 + - 81:3001 + - 82:3001 + labels: + - convox.health.port=3001 +` + manifest, err := LoadManifest(_manifest, nil) + require.Nil(t, err) + balancer := manifest.Balancers()[0] + + // Should be first matching port (81, not 82) + port, err := balancer.HealthPort() + assert.EqualValues(t, port, "81") +} + +func TestHealthInterval(t *testing.T) { + _manifest := ` +web: + ports: + - 80:3000 +` + manifest, err := LoadManifest(_manifest, nil) + require.Nil(t, err) + balancer := manifest.Balancers()[0] + + // Should return default + interval, err := balancer.HealthInterval() + assert.EqualValues(t, interval, "5") +} + +func TestHealthIntervalWithTimeoutConfigured(t *testing.T) { + _manifest := ` +web: + ports: + - 80:3000 + labels: + - convox.health.timeout=60 +` + manifest, err := LoadManifest(_manifest, nil) + require.Nil(t, err) + balancer := manifest.Balancers()[0] + + // Should return timeout + 2 + interval, err := balancer.HealthInterval() + assert.EqualValues(t, interval, "62") +} + func TestManifestRandomPorts(t *testing.T) { manifest, err := LoadManifest("web:\n ports:\n - 80:3000\n - 3001", nil) diff --git a/api/models/release.go b/api/models/release.go index 28be83c471..b036d2a432 100644 --- a/api/models/release.go +++ b/api/models/release.go @@ -174,7 +174,17 @@ func (r *Release) Promote() error { return err } + healthOptions := []string{"port", "path", "timeout"} + for _, entry := range manifest { + entryName := UpperName(entry.Name) + for _, option := range healthOptions { + if val := entry.Label(fmt.Sprintf("convox.health.%s", option)); val != "" { + param := fmt.Sprintf("%sHealth%s", entryName, strings.Title(option)) + app.Parameters[param] = val + } + } + // set all of WebCount=1, WebCpu=0, WebMemory=256 and WebFormation=1,0,256 style parameters // so new deploys and rollbacks have the expected parameters if vals, ok := app.Parameters[fmt.Sprintf("%sFormation", UpperName(entry.Name))]; ok { diff --git a/api/models/templates.go b/api/models/templates.go index 690d4881de..fb98adc2bb 100644 --- a/api/models/templates.go +++ b/api/models/templates.go @@ -75,7 +75,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _templatesAppTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xec\x3c\x6b\x73\xe3\x36\x92\x9f\x33\xbf\x02\xc5\x4a\x95\x9c\x44\x96\x1f\xb3\x9b\xdb\x53\x6e\xb6\xca\x23\x6b\x32\xce\x7a\x6c\x9f\xa4\x99\xad\xcb\x8c\x6b\x8a\xa6\x20\x8b\x31\x45\x2a\x04\xe9\xc7\xb8\xf4\xdf\xaf\x1b\x0f\x12\x00\x41\x91\x96\x35\x73\x77\x75\xeb\xdd\x24\x22\xd1\x68\x34\x1a\x8d\x7e\xa1\xc1\xc7\x47\x32\xa5\xb3\x30\xa6\xc4\xf3\x97\x4b\x8f\xac\x56\x2f\x08\x79\x84\x7f\x08\xf1\x8e\xfe\x39\x9e\xd0\xc5\x32\xf2\x33\xfa\x26\x49\x17\x7e\xf6\x81\xa6\x2c\x4c\x62\x8f\xf4\x89\x77\xb8\x7f\xb0\xbf\xbb\xff\xef\xf0\x7f\xaf\x2b\xc0\x07\x49\x3c\x0d\x33\x68\x67\x5e\x5f\xa2\x00\x54\x8f\x24\x93\x38\x88\x77\xe5\x47\x7e\x1c\xd0\x74\x37\x28\x41\x49\x4f\x8c\x59\x01\x5e\xa6\x49\x40\x19\x6b\x05\x9b\xd2\xeb\x90\x65\xe9\x43\x1d\xb0\x77\x91\x86\xb7\x00\x89\x84\x11\xef\x4d\xdc\xef\x0f\xff\xcc\xfd\x08\x09\xfd\x88\x6f\x46\x74\x06\x3f\x0b\x28\xb2\xea\x12\xef\xbf\x28\xe0\xb8\x84\x9f\x0a\xc7\x6b\x20\xfe\x66\x4c\x83\x3c\x0d\xb3\x87\x5f\xd3\x24\x5f\x22\x23\x1e\x75\x74\xf0\xfc\xf1\x91\x63\x43\x16\x99\xb0\x88\xd3\xbb\x14\x14\x49\xa4\xde\x85\x9f\xfa\x0b\x9a\x01\x5b\x39\xaa\xb5\x3c\x5b\x22\x6c\x0b\x7e\x19\x70\x8a\xf6\x41\x94\x33\x18\x46\x5b\x18\x78\x39\x79\x58\x52\x41\x68\x96\x86\xf1\xb5\xd7\x2d\x9b\x8e\xe9\xcc\xcf\xa3\x8c\xb7\x9a\xef\x59\x90\x86\xcb\x4c\x49\x81\x27\x9b\x4a\x2e\x1d\xd3\x65\x94\x3c\x2c\x68\x9c\xbd\xf3\xef\xc3\x45\xbe\x70\x8c\x09\x1d\xcf\xf2\xc5\x15\xd0\xe3\x18\x92\xcb\xd6\x7e\xdd\xa0\xd0\x2a\xf1\x92\x25\x4d\x03\x18\xc6\xbf\xa6\x24\x99\x11\x39\x7d\xca\x48\x96\x90\x1b\x4a\x97\x24\xcd\xe3\x18\xa6\x45\xee\xe6\x61\x44\x41\xca\x91\x2e\x9c\xe6\x3a\x92\xc3\x78\x43\x92\x0f\xd6\x93\x2c\xf0\x6e\x8f\xe4\x61\x7c\x1b\xa6\x49\x8c\x34\xbb\x89\xad\x5f\xd2\x35\x2b\xea\x5c\xd0\x7f\xd0\x87\xaf\x3d\x84\xb6\x3b\xdb\x0d\x63\xe0\x1b\xa4\x14\x37\x40\x18\x83\x80\xc7\x7e\x44\xa2\xc4\x9f\x12\xb5\x6d\x18\xbc\x07\x46\x73\xfc\x84\xe5\x57\x31\xcd\x58\x0d\xc9\x67\x89\xde\x70\x14\x45\xc9\x1d\x9d\x7e\xf0\xa3\x9c\x0a\x3d\xc1\x35\x42\x97\xc3\x91\xcb\xca\x1c\x46\x34\xa2\x3e\x73\xcd\x61\xdb\x3b\x6c\x44\x97\x09\x0b\xb3\x24\x75\xad\xcb\xf3\x06\x1b\x27\x39\x08\x28\x09\x92\x29\x25\x69\x39\x4c\x85\x04\x53\xb3\x6d\x9b\x8a\xc9\x9c\x92\x53\x7d\x11\x09\x93\xe3\x91\x6b\x1c\x90\xcc\x92\x94\x64\xf3\x90\x11\x34\x59\x55\xe2\xe4\x2a\xbb\xc9\x3a\x05\x43\xf1\x1f\x60\xd9\x40\x67\x0f\x0e\xfb\x7d\x01\xdc\xef\x9f\x4c\xff\xbe\x09\xa9\x1f\x2e\x06\x4a\xaa\xda\x51\x55\x2f\xea\x5f\x87\x38\x4b\xf4\x1b\x88\x54\x06\xde\xa0\xce\xda\x6e\x3b\xa3\xe1\x7f\xbe\x3f\x19\x0d\x8f\x7f\x20\xa7\xfe\xe2\x6a\xea\x93\x01\xd8\x96\x64\x31\x49\x96\x61\x40\xde\xfa\xf1\x34\x82\x15\x93\xdb\x81\x28\x8c\x1a\x99\xa0\x0c\x4f\x69\x7c\x9d\xcd\x39\x91\x07\x7a\x93\xb5\xe7\xab\xf4\x5d\x0c\x6a\x38\x57\x32\x0d\x60\x90\x63\x9b\x32\xac\x81\x41\x17\x83\xc1\xc9\xf1\x68\xeb\x22\x8f\x23\x23\x62\xf7\xf0\x86\xcf\xf0\x0e\x5a\x60\x14\x5d\xbe\xbd\x8b\x24\xcd\x2e\xd2\x24\x4b\x82\x24\x32\x69\x9b\x67\xd9\x52\x78\x3d\x28\x5b\x34\xa6\xa9\x06\xe7\xbd\x9d\x4c\x2e\x50\xa5\x9d\xc4\x2c\xc3\x9d\xe6\x6a\xe3\x7b\x9d\xd6\x41\x8c\xbd\x92\x3b\x72\x38\xb6\x7e\xbc\xf1\xb3\x07\x34\x46\xcc\x82\x35\xf3\x9b\x0c\x6a\xa7\x27\x9b\xea\x07\x1b\x8f\x4f\xed\xa1\xa2\x35\x53\x43\xf0\xe7\x0d\x45\x56\xce\xf5\x1e\x51\xc6\xb5\xb2\xb1\xe0\xda\x96\x1b\x25\x51\x8d\xe5\xe4\x7b\xe2\xe4\xe8\x5d\xbf\xcf\x61\xb4\x99\xc0\xe0\xe0\x8a\x64\x21\x35\xb5\x24\x9a\x3d\xc6\xf2\x05\x45\xf8\x8b\x24\x0a\x83\x87\xe3\x24\xc8\x2b\x5e\x86\xd8\x0a\x85\xae\xc0\x58\xe0\x70\x17\xc2\x81\x83\x7f\xd3\x06\xe1\x40\xe3\x0c\x94\x8f\xec\xff\xd1\x68\x22\x16\x3e\x0e\x3e\x9c\xcd\x68\xc0\x8d\x31\x37\xbf\x16\x36\x49\x7a\x18\x07\xe1\xd2\x8f\xc4\x52\x8c\x69\x7a\x1b\x06\x54\x18\xe8\x88\xeb\xa3\x9e\xbf\xf0\xbf\x24\xb1\x7f\xc7\x7a\x41\xb2\x30\x7c\x78\x7d\xa2\x81\x54\x68\xd0\x8f\x65\xac\x5f\x4e\xbc\xb4\xee\xea\x6f\x65\x3c\xeb\xad\x06\x66\x70\xe7\x41\xa9\x01\xf1\x7b\x9e\xf9\x1a\x39\x29\x78\x6d\xf2\xc0\xe6\x80\x80\x7c\x38\x83\x98\x80\xf3\x60\xba\x00\xbf\x11\xe2\x1a\x1f\xac\x70\x85\x17\x5e\xc3\x02\x71\x98\x36\x8b\xc4\x01\x8d\x85\x42\xc6\x56\x96\x42\x63\x99\xf7\x23\x3e\x2a\xc1\x14\x2f\xc8\xaa\x81\x6d\xfa\x53\x09\xb9\xaa\xa8\x58\x4d\xb4\xd7\x88\xb5\x30\x3d\xfd\xfe\x9b\x3c\x16\x54\xb5\x92\xee\x01\x38\x36\x55\x49\x1e\xbf\x7c\x9d\x07\x37\x34\x2b\xa3\xc3\xdf\x92\x50\x8a\xc6\x2e\xcc\x14\xfe\x03\x71\xe5\x6d\x72\x0f\xbf\xcb\x60\x91\x93\x31\x82\xc0\x13\x55\x38\x4c\xbe\x2a\x67\x80\x58\x3a\xcf\x36\x56\x81\x34\x15\x36\x72\xcf\x40\x5b\xc4\xd8\x18\x2f\xee\xcd\x78\xdc\x0d\xcf\xbd\x2f\xe1\xd2\x13\x83\xd4\x8a\x9f\xb4\xbd\x88\x45\xee\x04\x7a\x2f\x7c\x62\x53\x1e\xdf\xd1\x05\x78\x75\xe3\xf0\x0b\x67\xe7\xc1\xe1\xdf\xcc\x66\xa5\x50\x04\xd1\xbf\xd2\xec\x28\x13\x52\x51\xd1\x3a\x28\x13\x69\x5c\xd9\x61\xde\x28\x8f\xb3\x50\xc8\x70\x0c\x1c\xff\x83\x99\x03\x4c\xa0\x2d\xc9\xb9\x6c\xbd\xdc\xf7\xea\x45\xc1\x1d\x07\xa7\x85\x3e\xac\x0d\x85\x03\x08\x8d\xfe\x48\xae\xda\x80\xaa\xa8\xf9\x09\xa0\x4c\xa8\x9c\x36\xe9\x08\x1b\xab\x0b\x58\xf9\xb6\x5e\x0d\x32\x96\x89\x94\x84\x69\x15\xce\xf3\x6c\x99\x67\xcd\x99\x96\x44\xc2\x35\xce\xaa\x11\xb0\x98\x94\x09\x59\x86\x04\x59\x66\xb9\x25\xa8\x7f\x30\x7c\x12\xc2\x24\xe5\xbb\x80\xb3\xcd\xdd\x0b\xfc\x07\x46\xa4\xf1\x94\xe3\xd5\x32\x53\xae\x54\x90\x48\x54\x3d\x92\xd4\x8f\x21\x9a\xfe\xfe\x86\xf4\x5f\x91\xde\x30\x06\x02\x51\x7d\x32\x35\x09\x91\xb5\x01\xb8\x7c\x09\x3a\x01\xe1\x56\xab\xd2\x66\x54\x93\x41\xb8\x35\x3d\x4d\xa2\x21\xd2\xf6\xaf\x22\x3a\x35\x31\x94\x5d\xcf\x12\xbe\x37\x9c\x59\x25\x7c\x33\x86\x3d\x1e\x88\xed\xb3\xaf\x6f\x73\x13\xdf\x1b\xb5\xcd\x85\x26\xc1\xad\xbf\x7b\xc0\xa9\x90\x84\x94\x7c\x59\xcf\x21\x95\xfc\xb1\xb8\x43\x39\x77\x0a\x9e\x94\x83\xd3\x1e\x72\xcb\xa0\x40\xf3\x32\x94\xc6\x1d\x24\x8b\x85\x7f\x4c\xa3\x70\x11\x66\x74\x8a\xde\x8f\xa7\x25\x4f\xca\x1c\x48\x77\xbf\x7b\xf8\xd7\x9f\xf5\x36\x23\x72\x10\x09\x94\x4a\xe6\x23\xcd\xe3\x2e\x19\x5c\xbc\x27\x79\x1c\x66\xe2\x0d\xc5\x3d\x46\xbb\x04\x14\x1a\x79\xf7\x1a\x7b\x8c\x8e\xde\x69\x2d\x5e\xb9\x17\xda\x72\xa6\x90\x5a\xce\x04\xef\x34\xb9\x36\x83\x57\x87\xa8\x16\x30\x42\x38\xbb\x0d\x23\x68\x9b\xbd\x6e\x0c\xd3\x84\x25\xd7\x8c\xff\x5b\x00\xb5\x19\xa2\x54\x3d\x6a\x81\xbf\x5f\xf8\x71\x38\xa3\x2c\xd3\x56\x18\x5e\x87\x33\xd2\x7b\xeb\x43\xb4\xa9\xf8\x2c\x97\xbe\x4e\x24\xdc\x42\x31\x1c\x8c\x27\x3e\xbb\x39\x46\x2a\xc2\xcc\x11\x18\x2e\x81\x56\x76\xce\x8d\x9a\x61\xb7\xbb\x85\x63\xc6\xed\xc4\xa5\x23\xc4\x13\xe0\x18\xb3\xd9\x63\x68\xc0\x9a\xfb\x72\xd0\xdb\x6f\x67\xe3\xe5\xc0\x93\xe4\x86\xc6\x8d\x66\xac\xd6\x84\x49\x1f\xac\xc6\x1f\xb0\xbc\x00\x70\x9e\x82\x1b\xde\x83\x6f\x5d\x5c\x96\x82\x87\x5e\xd5\x33\xd0\x73\x45\x05\x22\xf5\xce\x02\xb5\x12\x7d\x05\xb8\xfe\xde\xea\x52\xf8\x1c\x12\x14\x9f\x2d\x10\xe4\xb8\x54\x53\xba\x8a\xa7\xa8\x3e\x3f\x67\xd0\x28\x94\xfb\x5a\x3f\xcd\x2d\x2f\x9a\x6e\x2d\x17\xab\x38\x19\x10\x94\x5b\x0a\xb5\x64\x55\xb7\x46\xb6\x34\xd2\x85\x6c\x43\x1f\x90\xee\xd7\x2a\x3d\xb4\x32\x3d\x4d\x4f\xdf\x17\x3d\x05\xa5\xdc\x55\x3e\x98\x73\x50\x5d\x99\x68\xd8\x0c\x71\x71\x48\x1a\x17\xf1\xf2\x7d\x83\xb0\x2b\x06\xfd\xaf\x90\x72\xed\x58\xa0\x10\x17\xf5\xce\x02\x05\x5d\x1e\xa6\x74\x3a\x48\xf2\x58\x73\x94\x9b\xcd\x9b\xc3\xc2\x48\x1b\xf7\xcd\xb6\x5b\x55\x87\xad\xa3\xb3\xaa\x90\xec\xdd\x5b\xf8\xc7\x85\x4b\x53\xca\x41\x85\x6b\xd6\xd1\xc2\x85\x38\x01\x30\xfa\x57\xcf\x1f\xea\xb1\x88\xb3\x8f\x06\x2c\xf2\xe0\xc5\xc2\x82\x29\x55\xb5\x19\x1c\xb1\x68\x69\x19\x7a\x98\x4e\x52\x69\x26\x7b\x73\x91\xea\x22\xf5\xad\x45\x7a\xd2\xf6\x73\x2c\xa1\x78\xd1\x03\xad\x91\xf9\x60\xfe\x52\xf7\xb2\xba\x77\x2b\xb1\x85\xe5\x2c\x11\x86\xbd\x5d\xfc\xa9\xa3\x6c\xf2\x2c\x9c\xa7\x99\xa6\xe3\x55\xcc\x5e\x37\xc0\xdf\x17\x69\x6d\xdd\x02\x97\x7d\xdc\xdc\xf7\x14\xaa\x52\x64\x15\x9e\x9e\x34\xf3\x92\x7f\xd8\x1f\xf9\xa7\xa9\x47\x00\xb8\xb7\x4e\x0b\x6a\x0f\x41\x37\xc7\xaf\x1d\x9b\x56\xac\xc5\x73\xa8\x17\x89\xb3\xaf\x48\xbe\x1c\xa0\x96\xfe\x8d\xa4\xc2\xed\x8a\x6f\x53\x22\x36\x99\xaa\xfa\xb9\x51\x06\xdb\xc2\xf5\xb4\x63\xab\x4d\xa8\x1d\xa0\xf1\x9b\x85\x41\xfd\x89\xc9\x36\x0f\xd6\x36\xa1\xf0\x6d\xc2\x5c\x27\xb0\xad\x78\x19\xc6\x53\x7a\xaf\x0d\x36\x82\x70\x27\x59\xb0\x6f\xcc\x63\xd7\xee\x6a\x39\x07\xf3\xc4\xb4\x42\xde\x33\x4e\x53\x37\x54\x42\x8e\x03\x90\x96\x53\xc1\xdc\xfe\xe6\x73\xe1\xa7\x2c\x5d\x75\xfc\xd1\x15\xa7\x12\x5d\x81\x75\x7b\xb3\xb3\x55\xf8\xff\xec\x2a\x6d\xa4\x14\xcd\x28\x7c\x13\xad\x58\xb5\x24\x16\xef\xac\x1d\xb9\x3e\xf8\xb0\xfa\x96\xa9\x0b\x2d\x1b\x60\x3b\xd6\xb8\x30\x86\x37\x23\x5c\x96\xe3\xb3\xb1\xf0\x49\x2f\xcd\x03\x9c\x6f\xa8\xc6\xd7\xc7\x59\x35\xd8\x8d\x48\xa4\x92\x03\x79\x16\x71\x6b\xa3\xc6\xa7\xe3\x53\x41\xc2\xd7\x98\xb0\x26\x6e\x3d\xdd\x51\x96\x7d\xb6\x20\xfa\x76\x7a\x68\x23\xe1\x77\xc8\x5e\x5d\x2d\xc6\x33\x99\x63\xe6\xaa\x44\x39\x82\x31\x92\x56\xbd\xe3\x0c\x52\x3d\x0e\x66\xa6\x00\x2b\xa1\x03\x69\x11\xdf\xed\x5e\x15\xf2\x64\x05\x01\x66\x1d\xca\x49\x7c\x0d\x3c\xb6\x23\x9b\xa6\xed\x27\xa1\xec\x18\x47\xa4\xd0\x2e\xf2\xab\x28\x0c\xaa\x21\x90\x37\x08\xa7\xe9\x09\x72\xdb\xdb\xef\xf1\xff\xed\xed\x57\x4e\xd5\x50\x1e\x22\x46\xd7\xf5\xd6\x8e\x7d\x64\x61\x41\xf5\xac\xd2\x1d\xe5\x00\x96\x93\xa5\x7e\x86\xcc\x2d\x8e\x0d\xf2\x26\x4d\x16\x38\xed\x6d\x6e\xe9\xca\x20\x93\x64\xdb\x43\x18\x23\xac\x9a\x12\x34\xcd\x01\x9f\x9e\x92\xf9\xb0\x0c\x4e\xa6\x36\xeb\x2b\x87\x11\xdd\xda\xed\xe6\xca\x8f\x8b\x2d\x12\xf9\x2c\x0b\x83\x52\x79\x80\x9c\x61\x7a\xb7\xd4\x25\xe5\x96\xd9\xcc\x26\x19\x39\xb1\x16\xba\xa0\x9c\x77\xdd\x1e\x15\x62\x4e\xff\x24\xbd\x71\x30\xa7\x80\xc2\x53\x55\x74\x9e\x95\x04\x13\xed\x72\x6d\x15\xb4\x95\x3d\xd3\x2b\xaf\xc4\x46\x3f\x99\x09\x52\x55\xd5\x53\xb7\x26\x52\xb7\x8a\xa3\x2a\x81\xbe\x0d\x68\x45\xf3\x3a\xbc\x73\xd7\x99\x94\x55\x70\x99\xbd\x4d\xf9\xc2\xb5\x8a\x29\x3f\x63\x3e\x4e\xfd\x10\xcb\x33\xc5\xc1\xbb\xc0\x25\x17\x0f\x1e\xb2\x34\xa7\x5d\xfd\x70\xf3\xe7\x7d\x43\x57\x95\x78\xf4\xa3\x32\xd8\xc6\xd3\x88\x96\x9d\x5e\xfe\xbc\x6f\x75\x4b\x13\xc6\x7e\x4f\x62\xaa\x86\x28\x9b\xde\x52\x3f\xca\xe6\x83\x39\x0d\x6e\xec\xf4\xa0\x68\x7a\x98\xcc\x41\x23\xce\x93\x08\xe9\xf3\x0e\xcd\xc5\x3a\xc1\x95\xbe\xe5\x75\x14\x7f\xb5\xd2\x65\xe9\xb5\xfb\x30\x5c\x24\x7a\x64\x3d\x8b\x63\xb7\xd7\x6c\xf2\x37\x61\xca\x32\x7c\x50\xde\x99\xeb\xb8\x5c\x63\xdc\x4b\xe3\xfd\xfb\x78\xee\x9c\x4c\x99\xc2\xd1\x58\xa2\x2a\x73\x36\xb4\x02\xa6\xd4\x6e\x21\x67\x51\x51\xe6\xd6\xb3\xd8\x9a\x45\xd8\x22\xc6\x7f\x03\x81\xe1\x49\x0c\x44\xca\xcd\xa3\x17\x77\xb9\x93\xac\x1b\x04\x49\xdc\xb4\x56\x0a\x99\x6a\x8a\x65\x74\x2d\xf6\xb5\xed\x09\x71\x16\x51\x7d\x73\xd6\xd4\x54\x6b\xd5\x30\xa8\x80\xdb\x06\x73\xe4\x1e\x71\x55\xe9\x8c\x4f\xb5\x94\x88\x65\xc7\x9e\x9b\x60\x21\xb6\x87\x51\x75\x45\xfe\x25\xbd\xff\x47\xa4\xf7\xff\xb7\xdc\x1a\xcf\x97\xdb\xf6\x20\x6b\xca\xf9\xbe\xb9\x89\x11\x19\xa1\x36\x7b\xd4\xa8\x2a\x14\x1e\x0b\xef\x5c\x0a\x5f\x5d\x27\xe5\xe1\x1a\xe0\x5a\x93\xab\xb0\x32\xcb\xd2\xf0\x2a\xcf\x04\x83\xaa\xe4\x70\x20\x45\x4c\x13\x19\x1c\x58\x05\xe9\x1e\xfa\x3f\x5e\x05\x66\x75\xd9\x20\xd8\x82\x90\x6d\x88\x76\xa5\xc2\xb1\xc2\xfd\x16\x87\x4f\x5f\x41\x24\x4f\x5f\x0f\x92\xe4\x26\xa4\x63\x08\x40\x6e\xc2\x18\xa6\x52\xf8\xa8\x38\x71\x53\x00\xfc\x19\x3f\xd9\xc4\xf3\x1a\x03\x87\x95\xf5\x10\x59\x11\x57\x32\xa4\x2e\x00\x97\xf7\xdf\x0a\x09\xc7\xa7\x17\xdf\x71\x38\xc7\xdd\xb9\xae\x68\x2a\xaf\xcb\x35\xc6\x33\xab\x4a\x17\xab\xbd\xe4\x4d\xb1\x52\x5a\x3c\xd7\x94\xa9\x71\x54\x0d\xea\xe5\x34\xe0\x88\xc7\xbf\x25\x57\x65\x65\x19\xbe\x28\xca\x4f\xeb\xa2\xc2\xda\x3a\xd5\xda\xb4\x89\x82\x54\xcb\xc5\xd9\xe2\x07\x58\x26\xb6\x8b\xbf\x8f\x96\x4b\xc9\x9d\x5d\xa4\x58\xcf\x66\x69\x05\xa0\xfc\x6c\xa1\x37\x97\x2f\x34\x98\x67\x56\x77\xae\xad\xed\xd4\x7c\xf8\x83\x7d\x23\xf4\xa9\x94\xdd\x7a\xbf\x87\xcb\x37\x21\x27\xc5\x8e\x33\xbc\x4f\x31\xc6\x19\xc6\x8e\xf1\x3a\x39\xc4\x74\x0c\x34\x4b\x90\x75\x7e\xb1\xab\xcc\xed\xe7\x5b\x3f\x25\x3c\x15\x4f\x5e\x91\x94\xfe\x99\x87\x29\xdd\xe9\xf0\x17\x9d\x1f\x2a\x9d\x11\xd8\xbf\x33\x40\xe1\x71\x97\x4d\x6f\x6a\x80\x83\x28\xc9\xa7\x45\x61\x2e\xf4\x8b\xe9\x1d\x62\xe8\x0d\xb0\xa1\x28\x73\xd8\x71\xf7\xfe\x33\xa7\xe9\x03\xe3\x09\x7b\x7d\x48\xed\xb5\x63\x58\x17\x22\x71\xbe\x08\x38\x1e\xed\x56\xfc\x57\x91\x43\xeb\x93\x8e\x26\x41\x1d\x1b\x76\xd5\x38\x96\xac\x3d\xeb\xd1\xf8\xb6\x77\x76\x7e\x3c\xfc\x3c\x39\x1d\x7f\x1e\x0d\x7f\x1b\x0e\x26\x9f\xdf\x9f\x1d\xbd\x9f\xbc\x3d\x1f\x9d\xfc\x3e\x3c\x06\x4a\x3a\xfb\xcd\x6b\x43\xef\x97\xa8\x92\x95\x68\x42\xaf\x99\x14\xf8\x1d\x7a\x4b\xe3\xac\x4b\x82\x04\x22\xd3\xfb\xec\x07\xf7\xc4\xa0\x95\x81\x74\xf6\xa2\xe4\x7a\xa7\x83\x57\x91\x86\xe3\x09\x19\x0d\x07\xc3\x93\x0f\xc3\x63\x98\x2c\xf9\x89\xfc\x36\x3e\x3f\xeb\x09\x5e\x86\xb3\x07\x81\xf6\x87\x66\xa6\x72\xec\xc6\xda\xf6\xa6\x3c\x7b\x79\x45\x39\x37\xd9\x8e\x60\x79\x57\xa3\x38\x4d\xbb\x64\xea\x67\x7e\x0d\xb1\xf8\x07\xba\x03\xe1\xd6\x40\xd8\xd3\x42\xe8\x0a\xb5\xea\xc7\x4a\xa4\x37\xd6\x22\x43\xf1\x98\xfa\x6c\x7e\x95\xf8\xe9\xb4\x16\x93\x82\x5c\xfa\x8c\xdd\x25\x2d\x00\xe5\xe1\x0d\x2c\x19\x4e\xb9\x27\x98\xf2\x71\xff\xb2\x27\x8b\x91\x5b\x8c\xa4\xae\x3b\x57\x71\x94\x57\xa1\x5b\x2d\x94\xfa\x83\xb5\xda\x41\xd4\xe1\xab\xfd\x5f\x14\x81\xbd\x88\x5f\x2f\xfb\x7b\xf8\x0b\x09\x7f\xfa\xa9\x81\xf1\xf8\x87\x4b\x24\xfb\x7e\x0c\xd5\x74\xfe\x41\x1f\xc8\x2b\x90\xe9\x63\xc5\xc8\x4e\x0b\x4c\xf8\x57\x70\x1e\x26\x59\xc1\xca\xcd\xf8\x5a\x46\xe1\xdf\x6a\x1d\x40\xa5\xb1\x89\x3f\x9c\x37\x25\xef\x37\x62\x4f\xd9\x1d\xe7\x52\x2c\x96\x62\xd2\x85\x94\xa1\xb6\x3c\x52\x32\x07\x2c\xaa\xc1\xfc\xad\x19\xc5\x05\x9c\x9f\x53\xd4\xea\x54\xfd\x6f\x0e\x0e\x61\xbf\x5c\xea\x6e\x13\x3c\x2a\xbd\x3e\xf9\xcb\x5f\x5e\x36\x43\xfa\xd9\x1c\xf4\xd8\x1e\x04\x10\x6c\x0f\xd5\x19\xd7\x5f\x3d\x78\x84\xdf\x9d\xbd\xa2\x74\x5a\x6b\x93\xef\x78\x7b\x9a\xc7\x9d\xc6\x31\x80\xc3\xf3\x64\x0a\xa3\x5c\x9c\x8f\x27\xcd\xe0\x73\xea\x4f\x61\x7d\xfa\xed\xd6\xb6\x73\x14\x04\x74\x99\x75\x00\x3d\x10\x1d\x61\x90\x06\x5c\xdd\xfb\x83\x25\x2d\x28\xe3\x08\xb0\xf2\x0b\xe6\xb5\x8b\x9e\x94\x8d\xe6\x7e\xf7\xee\xee\x6e\x17\x55\xf4\x6e\x9e\x82\x24\xe3\x5d\xe5\x69\x4b\xbc\xef\x19\x4d\x77\x8f\xae\x01\x35\x62\x05\xd7\x31\xda\xab\x18\x44\xbb\xd3\xaa\x11\xb5\x9f\xf3\x05\x13\x57\x84\xfa\xb8\x2a\x4a\xba\xd7\x0a\xe7\x93\xd4\x1c\x4a\x27\xf8\x0a\x20\x99\xdc\x8d\xe9\xa1\xdf\x40\x59\xb6\x23\x25\x56\x33\x49\xe0\xbd\xb6\xd8\x83\x88\xef\x2a\x99\x3e\xa0\xd1\xae\xda\x6c\x1b\xda\xb0\xb9\x78\x53\x2c\x67\xfd\x4e\x17\x8b\xf1\x7b\x8c\x3f\xa1\x83\x57\x6f\xb2\x9c\x68\xde\x4a\x99\x02\x3c\x96\xbd\x46\xb4\x52\xe2\x1c\x56\xdb\x46\xca\x89\xa0\xd9\x10\x05\x01\x10\xec\x74\xf2\x6c\xf6\x37\x87\x0b\xe5\xea\x07\xec\xea\xa0\x19\xea\x68\xfc\x0b\xe6\x79\x7c\x03\x1c\x14\xec\xf9\xe9\x15\xe1\x2f\xc8\xaa\x3d\x46\x08\x2d\x74\x84\x2d\x35\xa2\xce\x1c\x1c\xba\x79\x3c\xd9\x0b\x7d\xa5\xde\x34\x89\xa9\xc3\xe1\xb4\xc1\x1b\x66\xe1\x68\x5e\x07\x0e\x42\x28\x26\x9c\xa6\x49\xda\x31\xdd\xa2\xa4\xc9\xe1\xb1\xe7\xdc\x19\x62\x27\x14\x07\xd1\xbb\x8d\x34\xf1\xa9\xcf\xfc\x30\xda\x69\xd1\xe7\x89\x93\xe3\xfe\x0a\x28\xf9\x63\x90\x0f\xd8\x25\x9a\x7f\xae\x89\x6a\xc3\x0c\x41\x27\x2c\x16\xe0\xe7\x76\x20\x56\x15\x9a\x5a\xbe\xd8\xf2\x22\xdc\x41\x0c\x4c\x77\x14\xb5\xeb\xd9\x80\xf0\x20\xa1\x6b\x84\xc5\x69\x53\x1d\x54\x81\x06\xd3\x5e\x98\x57\x13\x1d\xc7\xa9\x56\xd1\x84\xcc\x95\x55\xa2\x6a\x7e\xbc\x38\x07\x6b\x29\x83\xdc\x51\x6e\x5c\x6f\xb6\xce\x5c\x91\xa9\xac\xdf\xe7\x40\x8d\x91\xb5\x1e\x51\x9f\x26\xf1\xb5\x0a\xa3\x59\x30\xa7\xd3\xdc\xbc\x21\x3d\x96\xef\x86\xf7\x4b\x2c\x2a\x90\x47\xb5\xea\xec\x13\x5b\xac\x4a\x12\x71\x6a\x56\xc9\x79\xf1\x10\xda\x1d\x6e\xeb\xe9\x83\xba\x02\x7d\x9e\x2a\xb5\x09\x96\x07\x74\xd6\x69\xde\x52\xdc\xa8\x7c\xfc\x84\x1f\x72\xfa\x04\x3f\x3f\x79\x66\xba\xe0\x13\x8c\xf2\x49\x85\x73\x25\x80\xcc\x7d\x15\x00\x52\x44\x4b\x80\x81\x78\xc1\x01\x56\xda\xb1\x9b\x23\xc5\xe2\x58\x3f\x91\x00\xb9\xa0\xe9\x22\x64\xcc\x95\x29\x21\x76\xaa\x44\x83\x75\x2d\x29\x31\xd6\x54\xde\x49\x26\xc5\x9d\xd7\xfe\x09\x98\xe1\x1b\xea\xba\x17\x6c\x64\x56\xc8\x86\x8b\xa2\x5d\x40\xc7\x41\xf9\xb6\x66\xd6\x95\x73\x5d\x8e\x78\x2a\x89\xa3\xa9\x2d\x26\xab\x88\xbb\x36\xf0\xd3\xd3\x58\xce\x6f\x61\x89\x0b\x69\xe2\xb6\xf2\x5b\x9f\x8d\x24\x8c\xbe\x18\x48\xd9\x79\x6a\x24\xb5\xd7\x7d\x2b\xcb\xbc\xfe\x0c\x14\xe7\x6c\x97\xfa\x2c\xe3\xf7\x16\xf5\x13\xf5\x27\xe2\xb8\x03\xb7\x66\xf7\xf0\x19\x38\x68\x2e\x70\x70\x3a\x24\x0a\x14\xd5\xda\xcb\x75\xae\xdb\xba\x25\xbf\xb0\xc5\xf1\xc5\x1d\xc7\xd5\x9e\x91\x06\x26\x37\x83\x51\xe7\x51\xe5\xbe\x84\x72\xde\xff\x71\x6b\xb1\xe7\xdf\xfb\xd1\xae\xda\xd4\xd5\x5c\xbd\x50\x12\xd7\xcc\x32\xeb\x56\xa5\x9a\x99\x38\xe1\x79\x12\x0f\x2a\x95\x87\x9c\x2c\x08\x25\xf0\xc2\x11\xe0\x53\x04\x35\x2c\xcb\x93\x47\xb3\xd9\xe7\x40\xde\xd5\xbf\xb9\xa4\xd7\x78\xd6\xf2\xc7\xba\xd3\x6d\xdc\x10\x72\x5f\x06\xb5\x3f\xd3\x51\xb3\xfc\xad\x3e\xcf\x51\xfb\xd5\x0d\xeb\xbb\x07\xe5\x27\x30\x8c\xf7\xa4\xf2\x41\x0c\xa3\xd9\x3a\x6d\x69\xf8\x66\x87\xf9\xbd\x0e\x7b\x1c\xed\xeb\x1d\x56\x13\x66\x0a\x03\x5b\xaf\x5a\x30\xe6\x69\x8c\xf1\x5d\x84\x17\x0e\x6a\x6b\x3e\x86\xa1\x34\x6c\x69\x6b\x2a\x5f\xf1\x70\x1f\xf9\x19\x66\xde\x3c\x62\xd1\xd7\xbb\x5b\x05\xab\xff\xa8\xca\xf6\xbf\x97\x52\xbb\xc8\xbc\x95\x8a\xa2\x35\xfc\x64\xda\x55\x51\xb4\x76\x2c\xb3\x9e\x3f\x3a\x0f\xe4\xea\xfa\x08\x9d\x40\x53\x75\xf2\xc6\xb0\xf8\xd0\x59\xfe\xd6\x8c\x6d\x64\xe3\xfa\x67\x98\xcd\x5b\xe0\x0a\x0e\x1b\x89\x07\x90\x23\x08\xd8\x93\x34\xfc\x42\x9d\xe5\xa3\x95\x5e\xae\xe3\x45\xed\xdb\x27\x4e\xbe\xfe\xe8\x40\x63\xbd\x59\xf3\x51\x99\x8a\x1b\x7d\xd9\xac\x92\xf5\xbb\xbb\xc2\x37\xd0\xae\x78\xdb\xa7\xce\xc6\x37\x11\x7a\xc5\x61\x5b\x79\x33\x55\xaa\x28\xdd\x63\x36\xcb\x11\xbd\x93\x85\x7f\x5d\xb4\xf1\x87\xb2\xf1\xf1\x91\x1f\x98\x09\xbf\xf1\x28\x4d\xfd\x87\xb2\xda\x5d\xbe\x35\x77\x52\x71\xf7\x90\x1f\x5b\x75\x81\xf4\x88\xef\x02\x3e\x01\x27\x1e\xd5\x11\x2f\x03\xf3\x4e\xab\x55\xf7\xf1\x11\x53\xe3\xab\x15\xfc\x37\x9e\x56\xef\x04\x2b\xa4\x2b\xcd\x89\x35\x41\x2f\x15\xf9\x3c\xc5\x0e\xa8\x63\x5a\x0c\x2f\xee\x58\x40\x2c\x66\xd6\x06\xaa\xc9\xc0\x14\x6e\xd1\xa8\xd8\xf0\xab\xa2\x64\xbc\x1c\xc8\x1b\x2c\x73\xcf\x75\x85\xf6\xc0\x5d\x55\xb7\xf6\x02\xad\xfc\x9a\x8b\x13\xdf\xe1\x26\xf8\xdc\x9f\x96\x2c\x97\xe8\x86\x3e\xc0\x02\x89\xc9\x8a\x6f\x6e\xdc\xbe\xf3\x97\x46\xc9\x24\x0a\x1f\x80\xc9\x6a\x59\xc5\x19\xd9\x67\xa5\x7f\xdf\xc5\x38\xf7\xae\x1f\xe3\x34\x8c\x6f\x3e\xf8\x29\x5b\x3b\x4a\x23\x7e\xef\xf4\xfc\xd7\xcf\xbf\x8e\xce\xdf\x5f\x78\x35\x9f\x79\x28\x15\xfe\xe8\x7c\x30\x1c\x8f\x6d\xd9\x37\x22\x9d\x0f\x49\x04\x5a\x5c\xb7\x09\x65\x58\xfb\x0e\xbd\x16\xac\xb3\x90\x40\x48\xc4\x77\xf0\x57\x16\xdc\x62\x45\x01\xd8\x98\x5b\x3f\xc5\x94\xed\xde\x34\x09\x6e\x68\xda\x63\xf0\x1f\x4f\x01\x7f\x07\x63\x73\xb8\xd5\xaa\x0f\xbf\x8a\xfb\xb0\x7c\x9f\x49\x6c\xaa\xd6\x95\xc3\xd7\x7c\x67\x68\xef\x56\x10\xb1\x57\xfd\x7e\x91\x55\x6a\xbf\x87\xbb\x84\xcf\x16\x77\x51\xcd\xd8\xaa\x76\x53\x51\x60\x2d\xa1\xf9\x4c\x8a\xb3\x7a\x57\x1d\x83\xdc\x70\xca\x5e\x1a\xbc\x6c\xd7\x53\xaf\xb5\x71\xae\x44\x5d\x31\x8e\xbb\xb8\x55\x77\x96\xd6\x5d\x12\x6f\x57\xfd\x54\xbd\xc6\x5c\xfa\x25\xba\x4f\xbe\x21\xd7\xb0\x5c\x3a\x8c\xe8\x35\x2d\x92\x04\xe5\x1b\x39\x98\x88\x18\x6b\xd1\x81\x61\xa9\x0b\x23\xf5\xcf\x0e\x55\x3f\xee\x63\x3a\xaf\xe3\x97\xfd\xbe\xfc\x84\x96\x24\xed\x18\x94\x10\xaa\x96\xa2\x0c\x05\x28\x40\x2e\x34\x78\xb7\x01\x66\x22\x90\x61\xa9\xb8\xd4\x60\xd7\x8d\x7b\x13\xff\x9a\xd9\x21\xaa\xf8\xde\x85\xc7\x1e\xc0\x63\x58\xa0\xb3\x5e\xd4\x0b\xc9\xaf\x76\x11\x33\x94\x94\xf0\xf8\x81\xc5\x6e\x6d\xe0\xa1\x6f\x0c\x97\x19\xd6\xb8\xf6\xdf\x01\x00\x00\xff\xff\x5b\x8d\x64\x68\x43\x5b\x00\x00") +var _templatesAppTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xec\x3c\xfd\x73\xdb\xb6\x92\x3f\x5f\xff\x0a\x0c\xa7\x6f\xe4\xa4\xb2\xec\x38\xef\x7a\xef\xd4\x26\x33\x8e\xac\x34\xee\x73\x6c\x9f\xa4\xe4\xcd\x35\xf1\x64\x68\x0a\xb2\x58\x53\xa4\xca\x0f\x7f\x54\xa3\xff\xfd\x76\xf1\x41\x02\x20\x20\xd2\xb2\x93\xbb\x9b\xf7\xd4\x26\x91\x88\xe5\x62\xb1\x58\x2c\x76\x17\x8b\x5d\xad\xc8\x94\xce\xc2\x98\x12\xcf\x5f\x2e\x3d\xb2\x5e\x7f\x47\xc8\x0a\xfe\x10\xe2\x1d\xfe\x63\x3c\xa1\x8b\x65\xe4\xe7\xf4\x6d\x92\x2e\xfc\xfc\x23\x4d\xb3\x30\x89\x3d\xd2\x27\xde\xc1\xfe\x8b\xfd\xdd\xfd\xff\x84\xff\xbd\x2e\x07\x1f\x24\xf1\x34\xcc\xa1\x3d\xf3\xfa\x02\x05\xa0\x5a\x91\x5c\xe0\x20\xde\xa5\x1f\xf9\x71\x40\xd3\xdd\xa0\x02\x25\x3d\xde\x67\x0d\x78\x99\x26\x01\xcd\xb2\x56\xb0\x29\xbd\x0a\xb3\x3c\xbd\x77\x01\x7b\xe7\x69\x78\x03\x90\x48\x18\xf1\xde\xc6\xfd\xfe\xf0\x8f\xc2\x8f\x90\xd0\x4f\xf8\x64\x44\x67\xf0\xb5\x84\x22\xeb\x2e\xf1\xfe\x9b\x02\x8e\x0b\xf8\x2a\x71\xbc\x01\xe2\xaf\xc7\x34\x28\xd2\x30\xbf\xff\x25\x4d\x8a\x25\x32\x62\xa5\xa2\x83\xdf\x9f\x56\x0c\x1b\xb2\x48\x87\x45\x9c\xde\x05\xa7\x48\x20\xf5\xce\xfd\xd4\x5f\xd0\x1c\xd8\xca\x50\x6d\xe4\xd9\x12\x61\x5b\xf0\x4b\x83\x93\xb4\x0f\xa2\x22\x83\x6e\x94\x89\x81\x87\x93\xfb\x25\xe5\x84\xe6\x69\x18\x5f\x79\xdd\xaa\xe9\x88\xce\xfc\x22\xca\x59\xab\xfe\x3c\x0b\xd2\x70\x99\x4b\x29\xf0\x44\x53\xc5\xa5\x23\xba\x8c\x92\xfb\x05\x8d\xf3\xf7\xfe\x5d\xb8\x28\x16\x96\x3e\xe1\xc5\xd3\x62\x71\x09\xf4\x58\xba\x64\xb2\xb5\xef\xea\x14\x5a\x05\x5e\xb2\xa4\x69\x00\xdd\xf8\x57\x94\x24\x33\x22\x86\x4f\x33\x92\x27\xe4\x9a\xd2\x25\x49\x8b\x38\x86\x61\x91\xdb\x79\x18\x51\x90\x72\xa4\x0b\x87\xb9\x89\xe4\x30\xde\x92\xe4\x17\x9b\x49\xe6\x78\x9f\x8e\xe4\x61\x7c\x13\xa6\x49\x8c\x34\xdb\x89\x75\x4f\xe9\x86\x19\xb5\x4e\xe8\xdf\xe9\xfd\xd7\xee\x42\x59\x9d\xed\xba\xd1\xf0\x0d\x52\x8a\x0b\x20\x8c\x41\xc0\x63\x3f\x22\x51\xe2\x4f\x89\x5c\x36\x19\x3c\x07\x46\x33\xfc\x24\x2b\x2e\x63\x9a\x67\x0e\x92\x4f\x13\xb5\xe1\x30\x8a\x92\x5b\x3a\xfd\xe8\x47\x05\xe5\x7a\x82\x69\x84\x2e\x83\x23\x17\xb5\x31\x8c\x68\x44\xfd\xcc\x36\x86\xa7\x5e\x61\x23\xba\x4c\xb2\x30\x4f\x52\xdb\xbc\x3c\xae\xb3\x71\x52\x80\x80\x92\x20\x99\x52\x92\x56\xdd\xd4\x48\xd0\x35\xdb\x53\x53\x31\x99\x53\x72\xa2\x4e\x22\xc9\x44\x7f\xe4\x0a\x3b\x24\xb3\x24\x25\xf9\x3c\xcc\x08\x6e\x59\x75\xe2\xc4\x2c\xdb\xc9\x3a\x81\x8d\xe2\x67\xd8\xd9\x40\x67\x0f\x0e\xfa\x7d\x0e\xdc\xef\x1f\x4f\x5f\x6f\x43\xea\xc7\xf3\x81\x94\xaa\x76\x54\xb9\x45\xfd\xeb\x10\x67\x88\x7e\x03\x91\x72\x83\xd7\xa8\x33\x96\xdb\xce\x68\xf8\x5f\x1f\x8e\x47\xc3\xa3\x67\xe4\xc4\x5f\x5c\x4e\x7d\x32\x80\xbd\x25\x59\x4c\x92\x65\x18\x90\x77\x7e\x3c\x8d\x60\xc6\xc4\x72\x20\x12\xa3\x42\x26\x28\xc3\x13\x1a\x5f\xe5\x73\x46\xe4\x0b\xb5\xc9\x58\xf3\x75\xfa\xce\x07\x0e\xce\x55\x4c\x03\x18\xe4\xd8\xb6\x0c\x6b\x60\xd0\xf9\x60\x70\x7c\x34\x7a\x72\x91\xc7\x9e\x11\xb1\xbd\x7b\xcd\x66\x78\x0f\x2d\xd0\x8b\x2a\xdf\xde\x79\x92\xe6\xe7\x69\x92\x27\x41\x12\xe9\xb4\xcd\xf3\x7c\xc9\xad\x1e\x94\x2d\x1a\xd3\x54\x81\xf3\xde\x4d\x26\xe7\xa8\xd2\x8e\xe3\x2c\xc7\x95\x66\x6b\x63\x6b\x9d\xba\x20\xc6\x5e\xc5\x1d\xd1\x5d\xb6\xb9\xbf\xf1\xa3\x3b\xd4\x7a\xcc\x83\x0d\xe3\x9b\x0c\x9c\xc3\x13\x4d\xee\xce\xc6\xe3\x13\xb3\xab\x68\xc3\xd0\x10\xfc\x71\x5d\x91\xb5\x75\xbe\x47\x34\x63\x5a\x59\x9b\x70\x65\xc9\x8d\x92\xc8\xb1\x73\xb2\x35\x71\x7c\xf8\xbe\xdf\x67\x30\xca\x48\xa0\x73\x30\x45\xf2\x90\xea\x5a\x12\xb7\xbd\x2c\x2b\x16\x14\xe1\xcf\x93\x28\x0c\xee\x8f\x92\xa0\xa8\x59\x19\x7c\x29\x94\xba\x02\x7d\x81\x83\x5d\x70\x07\x5e\xfc\x87\xd2\x09\x03\x1a\xe7\xa0\x7c\xc4\xfb\x9f\xb4\x26\x62\xe0\x63\xe0\xc3\xd9\x8c\x06\x6c\x33\x66\xdb\xaf\x81\x4d\x90\x1e\xc6\x41\xb8\xf4\x23\x3e\x15\x63\x9a\xde\x84\x01\xe5\x1b\x74\xc4\xf4\x51\xcf\x5f\xf8\x7f\x26\xb1\x7f\x9b\xf5\x82\x64\xa1\xd9\xf0\xea\x40\x03\xa1\xd0\xe0\xbd\x2c\xcf\xfa\xd5\xc0\xab\xdd\x5d\x7e\xd6\xda\x6f\xb5\x55\xc3\x0c\xe6\x3c\x28\x35\x20\x7e\xcf\xd3\x1f\x23\x27\x39\xaf\x75\x1e\x98\x1c\xe0\x90\xf7\xa7\xe0\x13\x30\x1e\x4c\x17\x60\x37\x82\x5f\xe3\xc3\x2e\x5c\xe3\x85\xd7\x30\x41\x0c\xa6\xcd\x24\x31\x40\x6d\xa2\x90\xb1\xb5\xa9\x50\x58\xe6\x3d\xc7\x9f\x52\x30\xf9\x03\xb2\x6e\x60\x9b\xfa\xab\x82\x5c\xd7\x54\xac\x22\xda\x1b\xc4\x9a\x6f\x3d\xfd\xfe\xdb\x22\xe6\x54\xb5\x92\xee\x01\x18\x36\x75\x49\x1e\xbf\x7c\x53\x04\xd7\x34\xaf\xbc\xc3\x5f\x93\x50\x88\xc6\x2e\x8c\x14\xfe\x01\xbf\xf2\x26\xb9\x83\xef\x95\xb3\xc8\xc8\x18\x81\xe3\x89\x2a\x1c\x06\x5f\x97\x33\x40\x2c\x8c\x67\x13\x2b\x47\x9a\xf2\x3d\x72\x4f\x43\x5b\xfa\xd8\xe8\x2f\xee\xcd\x98\xdf\x0d\xbf\x7b\x7f\x86\x4b\x8f\x77\xe2\x14\x3f\xb1\xf7\x22\x16\xb1\x12\xe8\x1d\xb7\x89\x75\x79\x7c\x4f\x17\x60\xd5\x8d\xc3\x3f\x19\x3b\x5f\x1c\xfc\x4d\x6f\x96\x0a\x85\x13\xfd\x0b\xcd\x0f\x73\x2e\x15\x35\xad\x83\x32\x91\xc6\xb5\x15\xe6\x8d\x8a\x38\x0f\xb9\x0c\xc7\xc0\xf1\xdf\x33\xbd\x83\x09\xb4\x25\x05\x93\xad\x97\xfb\x9e\x5b\x14\xec\x7e\x70\x5a\xea\x43\xa7\x2b\x1c\x80\x6b\xf4\x7b\x72\xd9\x06\x54\x7a\xcd\x0f\x00\xcd\xb8\xca\x69\x13\x8e\x30\xb1\xda\x80\xa5\x6d\xeb\x39\x90\x65\x39\x0f\x49\xe8\xbb\xc2\x59\x91\x2f\x8b\xbc\x39\xd2\x92\x08\xb8\xc6\x51\x35\x02\x96\x83\xd2\x21\x2b\x97\x20\xcf\x0d\xb3\x04\xf5\x0f\xba\x4f\x5c\x98\x84\x7c\x97\x70\xe6\x76\xf7\x1d\xfe\x81\x1e\x69\x3c\x65\x78\x95\xc8\x94\x2d\x14\xc4\x03\x55\x2b\x92\xfa\x31\x78\xd3\xdf\x5f\x93\xfe\x2b\xd2\x1b\xc6\x40\x20\xaa\xcf\x4c\x0e\x82\x47\x6d\x00\xae\x58\x82\x4e\x40\xb8\xf5\xba\xda\x33\xea\xc1\x20\x5c\x9a\x9e\x22\xd1\xe0\x69\xfb\x97\x11\x9d\xea\x18\xaa\x57\x4f\x13\xb6\x36\xac\x51\x25\x7c\x32\x86\x35\x1e\xf0\xe5\xb3\xaf\x2e\x73\x1d\xdf\x5b\xb9\xcc\xb9\x26\xc1\xa5\xbf\xfb\x82\x51\x21\x08\xa9\xf8\xb2\x99\x43\x32\xf8\x63\x70\x87\x32\xee\x94\x3c\xa9\x3a\xa7\x3d\xe4\x96\x46\x81\x62\x65\x48\x8d\x3b\x48\x16\x0b\xff\x88\x46\xe1\x22\xcc\xe9\x14\xad\x1f\x4f\x09\x9e\x54\x31\x90\xee\x7e\xf7\xe0\xdf\x7f\x54\xdb\x34\xcf\x81\x07\x50\x6a\x91\x8f\xb4\x88\xbb\x64\x70\xfe\x81\x14\x71\x98\xf3\x27\x14\xd7\x18\xed\x12\x50\x68\xe4\xfd\x1b\x7c\x63\x74\xf8\x5e\x69\xf1\xaa\xb5\xd0\x96\x33\xa5\xd4\x32\x26\x78\x27\xc9\x95\xee\xbc\x5a\x44\xb5\x84\xe1\xc2\xd9\x6d\xe8\x41\x59\xec\xae\x3e\xf4\x2d\x2c\xb9\xca\xd8\xdf\x1c\xa8\x4d\x17\x95\xea\x91\x13\xfc\xfd\xc2\x8f\xc3\x19\xcd\x72\x65\x86\xe1\x71\x38\x23\xbd\x77\x3e\x78\x9b\x92\xcf\x62\xea\x5d\x22\x61\x17\x8a\xe1\x60\x3c\xf1\xb3\xeb\x23\xa4\x22\xcc\x2d\x8e\xe1\x12\x68\xcd\xce\xd8\xa6\xa6\xed\xdb\xdd\xd2\x30\x63\xfb\xc4\x85\xc5\xc5\xe3\xe0\xe8\xb3\x99\x7d\x28\xc0\x8a\xf9\xf2\xa2\xb7\xdf\x6e\x8f\x17\x1d\x4f\x92\x6b\x1a\x37\x6e\x63\xce\x2d\x4c\xd8\x60\x0e\x7b\xc0\xb0\x02\xc0\x78\x0a\xae\xd9\x1b\x6c\xe9\xe2\xb4\x94\x3c\xf4\xea\x96\x81\x1a\x2b\x2a\x11\xc9\x67\x06\xa8\x11\xe8\x2b\xc1\xd5\xe7\xc6\x2b\xa5\xcd\x21\x40\xf1\xb7\x01\x82\x1c\x17\x6a\x4a\x55\xf1\x14\xd5\xe7\x97\x1c\x1a\xb9\x72\xdf\x68\xa7\xd9\xe5\x45\xd1\xad\xd5\x64\x95\x27\x03\x9c\x72\x43\xa1\x56\xac\xea\x3a\x64\x4b\x21\x9d\xcb\x36\xbc\x03\xd2\xfd\x46\x86\x87\xd6\xba\xa5\xe9\xa9\xeb\xa2\x27\xa1\xa4\xb9\xca\x3a\xb3\x76\xaa\x2a\x13\x05\x9b\x26\x2e\x16\x49\x63\x22\x5e\x3d\x6f\x10\x76\xc9\xa0\xff\x13\x52\xae\x1c\x0b\x94\xe2\x22\x9f\x19\xa0\xa0\xcb\xc3\x94\x4e\x07\x49\x11\x2b\x86\x72\xf3\xf6\x66\xd9\x61\xc4\x1e\xf7\xcd\x96\x5b\x5d\x87\x6d\xa2\xb3\xae\x90\xcc\xd5\x5b\xda\xc7\xa5\x49\x53\xc9\x41\x8d\x6b\xc6\xd1\xc2\x39\x3f\x01\xd0\xde\xaf\x9f\x3f\xb8\xb1\xf0\xb3\x8f\x06\x2c\xe2\xe0\xc5\xc0\x82\x21\x55\xb9\x18\x2c\xbe\x68\xb5\x33\xf4\x30\x9c\x24\xc3\x4c\xe6\xe2\x22\xf5\x49\xea\x1b\x93\xf4\xa0\xe5\x67\x99\x42\xfe\xa0\x07\x5a\x23\xf7\x61\xfb\x4b\xed\xd3\x6a\x5f\xad\xc4\x14\x96\xd3\x84\x6f\xec\xed\xfc\x4f\x15\x65\x93\x65\x61\x3d\xcd\xd4\x0d\xaf\x72\xf4\xea\x06\xfc\xbd\xd8\xcd\xd9\x70\x61\x13\xe6\x02\xd8\x3b\x57\x9e\x2a\xc0\xb2\x97\xf3\x14\xba\xbd\x43\xf8\x65\x1a\xc6\xf9\x0c\x2c\x5b\xd1\xf2\x17\xe8\x56\xc3\xa9\x98\x79\xe6\xeb\xeb\x35\xb3\x87\xdf\x51\x3f\xca\xe7\x22\x5c\x51\x9a\x7b\xba\x05\x5b\xb2\x68\xa5\xce\xab\xde\x8f\x82\x47\x0d\x94\x49\x6d\x78\xa1\xb9\x2c\x4d\xe4\x54\x6e\xe1\xa3\x29\x92\xa8\x1a\x89\xaa\x66\xca\x2e\xf3\x76\xa2\x11\x16\x25\x54\xd9\x80\x60\xf6\xee\x8c\xf3\x18\xe7\x31\x73\x9d\x6a\x27\x42\xe5\x24\xda\xb6\x01\xb7\x22\x8d\xc7\x1d\x9f\x92\x36\x81\xd1\x49\xdc\x56\xab\xc8\xee\xba\xd8\x57\x50\x79\x30\xe4\x70\x6b\x64\xbb\xb1\xa8\xec\x62\xef\x38\x68\xb4\x9e\x66\x9a\x2e\x0d\xe2\x22\x45\x46\xa7\xe4\x76\x4e\x63\x32\x67\x1d\x90\x60\x4e\x83\x6b\x74\x72\x58\x84\x97\x84\x19\xc1\xb8\xf8\x4e\xf6\xcc\x33\x17\x44\x1b\x7a\x2d\xeb\x42\x21\x0d\xa7\x46\xfc\xd4\xc0\x55\xd3\xc6\x75\x84\x8d\x47\xe9\xd2\xed\xf9\x71\xff\xa1\xeb\x62\x33\xed\x16\xb1\x91\x5f\x2d\x61\xbd\xe6\xd3\x13\x03\xd7\xc3\x8e\x4c\xb7\xa1\x76\x80\x86\xd7\x2c\x0c\xdc\xa7\x75\x4f\x79\xa8\xbb\x0d\x85\xef\x92\xcc\x76\xfa\xdf\x8a\x97\x61\x3c\xa5\x77\x4a\x67\x23\x70\xb5\x93\x45\xf6\x8d\x79\x6c\x53\x4d\x2d\xc7\xa0\x9f\xd6\xd7\xc8\x7b\xc4\x49\xfe\x36\x03\xb1\x1f\xbe\xb5\x1c\x0a\x9e\x2b\x6d\x3f\x16\x76\xc2\xd7\x95\x47\x6f\x5d\x7e\x22\xd6\xe5\x58\x9f\x6e\x74\xe6\xe6\xf6\xbf\x3b\x4b\x5b\x6d\x30\x7a\x04\x68\xab\x1d\x46\x82\x96\x4c\x34\x15\xb6\xbe\x22\x37\x3b\xbe\xc6\xbb\x95\x56\x56\x22\x51\xa6\x53\x87\x13\xa3\x59\xd2\xdc\x5c\x3e\x3a\x1d\x73\x7f\xe8\x42\x3f\x3c\xfc\x86\x6a\x7c\xb3\x8f\xef\xc0\xae\x79\xc1\xb5\xf8\xdb\xa3\x88\xdb\x18\xb1\x78\x38\x3e\xe9\xa0\x7e\x8d\x01\x2b\xe2\xd6\x53\x9d\x34\xd5\x98\x7f\x9c\xe8\x9b\xa1\xc9\x6d\xcd\x2b\x53\xf6\x5c\x79\x40\x8f\x64\x8e\x1e\x27\xe5\xa9\x30\x5a\x4f\x4a\xe6\x98\x35\x40\xe2\x31\x30\xdd\x56\xab\xb9\xad\xa4\x45\x6c\x61\xf7\xb2\x94\x27\xc3\x01\xd5\x73\xa0\x8e\xe3\x2b\xe0\xb1\xe9\x55\x37\x2d\x3f\x01\x65\xfa\xd7\x3c\x7c\x7b\x5e\x5c\x46\x61\x50\x77\xbf\xbd\x41\x38\x4d\x8f\x91\xdb\xde\x7e\x8f\xfd\xb7\xb7\x5f\x3b\xd1\x45\x79\x88\x32\xba\xe9\x6d\xe5\xc8\x51\x24\xb5\xd4\xcf\xc9\xed\x1e\x36\x60\x39\x5e\xaa\xf9\x0b\x6c\xc7\x31\x41\xde\xa6\xc9\x02\x87\xfd\x94\x4b\xba\xd6\xc9\x24\x79\xea\x2e\xb4\x1e\xd6\x4d\xc1\xc1\xe6\x60\x83\x1a\x0e\xfc\xb8\x0c\x8e\xa7\x26\xeb\x6b\x07\x61\x5d\xe7\x72\xb3\x79\x2d\x7c\x89\x44\x7e\x96\x87\x41\xa5\x3c\x40\xce\xf0\x68\xa1\xd2\x25\xd5\x92\xd9\x6e\x4f\xd2\xe2\xb1\x2d\x74\x41\x35\x6e\xd7\x1a\xe5\x62\x4e\xff\x20\xbd\x31\xf8\x4b\x80\xc2\x93\x19\x9c\x9e\x11\x80\xe5\xed\xd2\xd9\x11\xd0\x46\xe4\x56\xcd\xfa\xe3\x0b\xfd\x78\xc6\x49\x95\x19\x77\x5d\x47\x94\xc8\x48\xcc\xab\x05\x99\x4c\x40\x23\x92\xa4\xc2\x5b\x57\x9d\x4e\x59\x0d\x97\xfe\xb6\x2e\x5f\x38\x57\x31\x65\xf9\x0d\x47\xa9\x1f\x62\x6a\x30\x4f\xfa\xe0\xb8\xc4\xe4\xc1\x8f\x3c\x2d\x68\x57\x3d\x58\xff\x71\x5f\xd3\x55\x15\x1e\xf5\x98\x16\x96\xf1\x34\xa2\xd5\x4b\x2f\x7f\xdc\x37\x5e\x4b\x93\x2c\xfb\x2d\x89\xa9\xec\x42\xa5\xb5\x5c\x5e\xc2\xab\xae\xc5\xa7\xfe\x92\xf1\x16\x8f\xec\x6c\x58\x90\xcf\xb4\x01\xf3\x37\x06\xe8\x3f\x9b\x11\x6f\xde\x74\x3f\x99\x83\xa2\x9d\x27\x11\x0e\xdb\x3b\xd0\x65\xe0\x18\x05\xe8\x86\xa5\x06\x31\x51\xe1\xaf\xc8\xa7\x35\x91\x99\xf8\xe9\x15\xad\x27\xce\xac\x56\x7b\xcf\x09\x6e\x13\xec\x2c\x12\x33\x30\xc8\xcf\xd2\x97\x7f\xdd\xff\x79\x09\xea\xe3\xf5\xde\xcf\x4b\xf0\xfc\x5f\x93\xe7\x7b\xe6\xd9\x83\xba\xc7\x98\xda\xaa\xa6\x24\x4d\x08\x5b\x52\x54\x3b\x82\xea\x94\x34\xd3\x23\x20\xfa\x96\x7c\x20\x3b\x71\x6e\x12\x95\xce\xf8\xba\x73\xc2\xd8\xac\x68\x97\xa6\x36\x63\x95\x76\x3a\x05\x55\xc8\xa4\xe3\x99\x11\x82\xc1\xf0\x4c\x98\x91\x4b\x44\xe4\x62\x51\xf3\xb8\xda\x8f\xed\x61\xe3\x93\x3b\x91\x18\x22\xfc\xaa\x7c\xe2\x4d\x63\x65\xd4\x32\x82\xde\x82\x1f\x7f\x1c\x83\x65\x81\x74\xe9\x69\xa0\x95\x27\xe8\x48\x3c\xbc\xb0\xa4\xc5\x6d\xdd\x87\x05\xfb\x46\xe4\x66\xae\x98\xfa\xd9\x48\xd7\xc6\x79\x3e\x3d\x9b\xfc\xb3\xce\xb5\x0c\x03\x7c\xd5\xc9\x96\x9d\x3c\xe9\x6c\x3b\xdb\x5c\x6f\x39\x87\xb2\x85\x11\xa8\x4d\x07\x73\xdf\x1d\x04\xd9\x88\xa9\x3f\xb3\x90\xa6\xc7\xd6\xad\x9b\x26\x90\x83\xea\xad\xd6\xb3\x8e\xdf\x9d\x77\x5a\x8f\x10\x8b\x06\xa7\x1c\x6f\xa5\x83\x65\x37\x35\x2b\x5c\xf3\x60\x9b\x82\xd1\x0f\xe2\x8b\xec\xb2\x75\x0a\xee\x87\x78\x6e\xb5\x13\xbe\xb3\x80\x97\x79\xdc\x5b\xfa\x6d\xba\x9d\xf9\x60\x4d\x50\x8f\x83\xd6\x58\x54\x13\x26\x4f\x0d\x34\x92\xfa\x8a\x25\xe6\x92\x7d\x9c\x5f\x54\x22\x62\xce\x70\x2d\xed\xdd\x91\x5a\xad\xfa\x1d\x5f\xdb\x03\x24\xd6\x94\xfb\x6f\xce\x1a\x87\xd6\x75\x30\xa8\x84\x7b\x0a\xe6\x08\xa5\x65\xcb\xe9\x1e\x9f\x28\x87\x18\x86\xe7\xf9\xd8\x23\x91\x9a\xb2\xaa\x07\x0f\xfe\x25\xbd\xff\x4f\xa4\xf7\x9f\x5b\x6e\xf5\x9d\xe5\xa9\x63\x3e\x8e\xcb\x1f\xdf\x7c\x8b\xe1\x67\x38\x6d\xd6\xa8\x76\x07\x85\xc7\x18\xd8\xcb\x95\xf0\xb9\x5e\x92\x31\x29\x0d\x5c\x69\xb2\xbc\x78\x98\xe7\x69\x78\x59\xe4\x9c\x41\x76\xb3\x5c\x66\x87\x79\x4d\x64\x30\x60\x19\x56\xf7\x30\x62\xe1\xd5\x2d\xb4\x8b\x06\xc1\xe6\x84\x3c\x85\x68\xd7\xee\xc3\xb8\x4d\x20\x77\xaa\xd2\x57\x10\xc9\x93\x37\x83\x24\xb9\x0e\xe9\x38\x0f\x83\xeb\x30\x86\xa1\x94\x51\x25\x1c\xb8\x2e\x00\xfe\x8c\xe5\xc1\x61\x2a\x8a\x86\xc3\x38\xa7\xe0\xe7\x18\xb6\xe3\x0b\x57\xc8\x5c\x54\x4b\x28\x25\x1c\x7f\x7d\xf7\x6f\x0c\xce\x52\x69\xa1\xcb\x9b\xaa\xe2\x0a\x8d\x11\xc8\x75\xed\x15\xa3\xbd\xe2\x4d\x39\x53\x4a\x04\xb6\xe9\x6c\xc5\x72\xc7\x44\x4d\xbe\x1e\x40\xf3\xaf\xc9\x65\x75\x0f\x01\x1f\x94\x97\x95\x5c\x71\x5c\xe7\xad\x26\xe7\x41\x87\x84\x94\xd3\xc5\xd8\xe2\x07\x78\xa9\x60\x17\xbf\x1f\x2e\x97\x82\x3b\xbb\x48\xb1\x7a\xfe\xa4\x5c\x17\x62\xd9\x00\xbd\xb9\x78\xa0\xc0\x3c\xf2\x2e\xd0\xc6\x9b\x40\x8a\xdb\xf2\x62\x5f\x0b\x56\xd6\x2e\x69\x79\xbf\x85\xcb\xb7\x21\x23\xc5\x3c\xc7\xf1\x3e\xc7\x78\x8e\xa3\xfb\x3d\x9d\x22\xa3\x24\x03\xcd\x12\xe4\x9d\x9f\xcc\x3b\x89\xe6\xef\x1b\x3f\x65\xf9\x39\x19\x79\x45\x52\xfa\x47\x11\xa6\x74\xa7\xc3\x1e\x74\x9e\xd5\x5e\x46\x60\xff\x56\x03\x85\x9f\xbb\xd9\xf4\xda\x01\x1c\x44\x49\x31\x2d\xaf\x71\xc1\x7b\x31\xbd\x45\x0c\xbd\x01\x36\x94\x49\xb1\x3b\xf6\xb7\xff\x28\x68\x7a\x9f\xb1\x23\x76\xb5\x4b\xe5\xb1\xa5\x5b\x1b\x22\x9e\x5d\x05\x38\x56\x66\x2b\xfe\x55\x9e\x7a\xf5\x49\x47\x91\xa0\x8e\x09\xbb\x6e\xec\x4b\xe4\x8e\xf5\x68\x7c\xd3\x3b\x3d\x3b\x1a\x7e\x99\x9c\x8c\xbf\x8c\x86\xbf\x0e\x07\x93\x2f\x1f\x4e\x0f\x3f\x4c\xde\x9d\x8d\x8e\x7f\x1b\x1e\x01\x25\x9d\xfd\xe6\xb9\xa1\x77\x18\xdd\xcc\xa4\x68\xc2\x5b\x33\x21\xf0\x3b\xf4\x86\xc6\x79\x97\x04\x49\x9c\xd3\xbb\xfc\x99\x7d\x60\xd0\x9a\x81\x74\xf6\xa2\xe4\x6a\xa7\x83\x17\xd7\x87\xe3\x09\x19\x0d\x07\xc3\xe3\x8f\xc3\x23\x18\x2c\xf9\x81\xfc\x3a\x3e\x3b\xed\x71\x5e\x86\xb3\x7b\x8e\xf6\x59\x33\x53\x19\x76\x6d\x6e\x7b\x53\x76\xde\x78\x49\x19\x37\xb3\x1d\xce\xf2\xae\x42\x71\x9a\x76\xc9\xd4\xcf\x7d\x07\xb1\xf8\x01\xdd\x81\x70\x1b\x20\xcc\x61\x21\x74\x8d\x5a\xf9\x65\xcd\x0f\x24\x36\x22\x43\xf1\x98\xfa\xd9\xfc\x32\xf1\xd3\xa9\x13\x93\x84\x5c\xfa\x59\x76\x9b\xb4\x00\x14\xe9\x16\x30\x65\x38\xe4\x1e\x67\xca\xa7\xfd\x8b\x9e\xb8\xba\xd6\xa2\x27\x59\x1c\xa7\x8e\xa3\x2a\x9c\xd3\x6a\xa2\xe4\x07\xe6\x6a\x07\x51\x87\xaf\xf6\x7f\x92\x04\xf6\x22\x56\x8c\xe0\x75\xf8\x13\x09\x7f\xf8\xa1\x81\xf1\xf8\xc1\x29\x12\xef\x7e\x0a\xe5\x70\xfe\x4e\xef\xc9\x2b\x90\xe9\x23\xc9\xc8\x4e\x0b\x4c\xf8\x29\x39\x0f\x83\xac\x61\x65\xdb\xf8\x46\x46\xe1\xc7\x8c\xad\x78\x1b\x1b\x9b\xf8\xc3\x78\x53\xf1\x7e\x2b\xf6\x54\xaf\xe3\x58\xca\xc9\x92\x4c\x3a\x17\x32\xd4\x96\x47\x52\xe6\x80\x45\x0e\xcc\xdf\x9a\x51\x4c\xc0\x59\x66\x81\x53\xa7\xaa\x9f\x39\x18\x84\xfd\x6a\xaa\xbb\x4d\xf0\xa8\xf4\xfa\xe4\xaf\x7f\x7d\xd9\x0c\xe9\xe7\x73\xd0\x63\x7b\xe0\x40\x64\x7b\xa8\xce\x98\xfe\xea\xc1\x4f\xf8\xde\xd9\x2b\x2f\xda\x29\x6d\xe2\x19\x6b\x4f\x8b\xb8\xd3\xd8\x07\x70\x78\x9e\x4c\xa1\x97\xf3\xb3\xf1\xa4\x19\x7c\x4e\xfd\x29\xcc\x4f\xbf\xdd\xdc\x76\x0e\x83\x80\x2e\xf3\x0e\xa0\x07\xa2\x23\x74\xd2\x80\xab\x7b\xbf\x67\x49\x0b\xca\x18\x02\xbc\x27\x00\xe3\xda\x45\x4b\xca\x44\x73\xb7\x7b\x7b\x7b\xbb\x8b\x2a\x7a\xb7\x48\x41\x92\xb1\xb2\xcd\xb4\x25\xde\x0f\x19\x4d\x77\x0f\xaf\x00\x35\x62\x05\xd3\x31\xda\xab\x6d\x88\xe6\x4b\xeb\x46\xd4\x7e\xc1\x26\x8c\x5f\x28\xef\xe3\xac\x48\xe9\xde\x28\x9c\x0f\x52\x73\x28\x9d\x60\x2b\x80\x64\x32\x33\xa6\x87\x76\x03\xcd\xf2\x1d\x21\xb1\xca\x96\x04\xd6\x6b\x8b\x35\x88\xf8\x2e\x93\xe9\x3d\x6e\xda\xf5\x3d\xdb\x84\xd6\xf6\x5c\xac\x2b\x50\x64\xfd\x4e\x17\xaf\x6e\xf6\x32\xf6\x0b\x0d\x3c\xf7\x96\x65\x45\xf3\x4e\xc8\x14\xe0\x31\xf6\x6b\x44\x2b\x24\xce\xb2\x6b\x9b\x48\x19\x11\x34\x1f\xa2\x20\x00\x82\x9d\x4e\x91\xcf\xfe\x66\x31\xa1\x6c\xef\x01\xbb\x3a\xb8\x0d\x75\x14\xfe\x05\xf3\x22\xbe\x06\x0e\x72\xf6\xfc\xf0\x8a\xb0\x07\x64\xdd\x1e\x23\xb8\x16\x2a\xc2\x96\x1a\x51\x65\x0e\x76\xdd\xdc\x9f\x78\x0b\x6d\xa5\xde\x34\x89\xa9\xc5\xe0\x34\xc1\x1b\x46\x61\x69\xde\x04\x0e\x42\xc8\x07\x9c\xa6\x49\xda\xd1\xcd\xa2\xa4\xc9\xe0\x31\xc7\xdc\x19\xe2\x4b\x28\x0e\xfc\xed\x36\xd2\xc4\x86\x3e\xf3\xc3\x68\xa7\xc5\x3b\x0f\x1c\x1c\xb3\x57\x40\xc9\x1f\x81\x7c\xc0\x2a\x51\xec\x73\x45\x54\x1b\x46\x08\x3a\x61\xb1\x00\x3b\xb7\x03\xbe\x2a\xd7\xd4\xe2\xc1\x13\x4f\xc2\x2d\xf8\xc0\x74\x47\x52\xbb\x99\x0d\x08\x0f\x12\xba\x41\x58\xac\x7b\xaa\x85\x2a\xd0\x60\xca\x03\xbd\x90\x85\x25\x01\xca\x48\x73\x14\xb1\xb2\x9a\x57\xcd\x12\x82\xe6\xb0\x5b\x0a\x27\x77\x54\x68\xc5\x70\x8c\x2c\x29\x64\x6a\xd6\xef\x33\xa0\x46\xcf\x5a\xf5\xa8\x4f\x92\xf8\x4a\xba\xd1\x59\x30\xa7\xd3\x42\xaf\xa7\x33\x16\xcf\x86\x77\x4b\x4c\x03\x14\xc9\x55\x32\x5b\x09\x5b\x8c\xdc\x4f\x9e\x7a\x52\x8b\x79\x31\x17\xda\xee\x6e\xab\xe1\x03\xd7\x75\x4e\x16\x2a\x35\x09\x16\x59\x2e\x46\xa2\xcc\x92\xd7\xdf\x58\x7d\xc6\xb2\x9f\x9f\xe1\xeb\x67\x4f\x0f\x17\x7c\x86\x5e\x3e\x4b\x77\xae\x02\x10\xb1\xaf\x12\x40\x88\x68\x05\x30\xe0\x0f\x18\xc0\x5a\x39\x76\xb3\x84\x58\x2c\xf3\xc7\x03\x20\xe7\x34\x5d\x84\x59\x66\x8b\x94\x10\x33\x54\xa2\xc0\xda\xa6\x94\x68\x73\x2a\x2a\xd8\x90\xb2\x42\x4a\xff\x18\xb6\xe1\x6b\x6a\xab\x22\xa3\x45\x56\xc8\x96\x93\xa2\x94\x2b\xc2\x4e\xd9\xb2\xce\x8c\x02\x45\xaa\x1c\xb1\x50\x12\x43\xe3\x4c\xff\xae\x89\xbb\xd2\xf1\xc3\xc3\x58\xd6\xca\xa9\xbc\x7c\x01\xaf\x6d\xf3\xce\xcf\x46\x02\xc6\x33\x6e\xe6\x9d\xa5\x5a\x50\x7b\x53\x65\x55\xbd\x58\x0e\x50\x5c\x64\xbb\xd4\xcf\x72\x56\xe5\x42\xcd\x81\x7b\x20\x8e\x5b\x30\x6b\x76\x0f\x1e\x81\x83\x16\x1c\x07\xa3\x43\xa0\x40\x51\x75\x96\x62\xb0\xd5\x76\xa9\xf8\x85\x2d\x96\xfa\x8c\x96\x8b\xe0\x23\x05\x4c\x2c\x06\x2d\x33\xb3\xce\x7d\x01\x65\xbd\x2d\x6e\xd7\x62\x8f\xbf\x25\xae\x5c\xcc\x76\x65\x49\x7f\x27\x25\xae\x99\x65\x46\x0d\x0e\x39\x32\x7e\xc2\xf3\x20\x1e\xd4\xee\x0a\x30\xb2\xc0\x95\xc0\xeb\xe9\x80\x4f\x12\xd4\x30\x2d\x0f\xee\xcd\x64\x9f\x05\x79\x57\xad\xd0\xa9\xde\xca\x70\xf2\xc7\xa8\x00\xa4\xdd\x27\xb7\x97\x0e\x31\x8b\xba\x39\xa6\xbf\x55\x31\x37\x67\x8d\x36\x23\x97\xa4\x2a\x98\xa6\x3d\x27\xb5\xf2\x69\x5a\xb3\x71\xda\xd2\x50\xe1\x4d\xaf\xee\x66\xf6\xa3\xd4\x7a\x33\x9a\x30\x52\x18\x98\x7a\xd5\x80\xd1\x4f\x63\xd4\xd3\x13\x47\xb2\xb6\xb5\x74\x9a\xd4\xb0\xd5\x5e\x53\xab\xf9\x66\x3f\xf2\xd3\xb6\x79\xfd\x88\x45\x9d\xef\x6e\x1d\xcc\x5d\x82\xef\xe9\xab\xeb\x39\x27\x99\xb5\x52\x9e\x66\x8e\x05\x76\x2f\xcb\x34\xf3\x23\x11\xf5\x7c\x6e\x3d\x90\x73\xbd\xc3\x75\x02\x4d\xe5\xc9\x5b\x86\xd7\x05\xac\x09\xeb\xcd\xd8\x46\x26\xae\x7f\x84\xf9\xbc\x05\xae\xe0\xa0\x91\x78\x00\x39\x04\x87\x3d\x49\xc3\x3f\xa9\xf5\xc2\x47\xed\x2d\xdb\xf1\xa2\x52\x29\xcf\xca\xd7\xe7\x16\x34\xc6\x93\x0d\xf9\x4f\x35\x33\xfa\xa2\x59\x25\xab\x95\x5e\xb8\x6d\xa0\x14\x04\x32\x4f\x9d\xb5\x0a\x5a\xbd\xf2\xb0\xad\xaa\x63\x22\x54\x94\x6a\x31\xeb\x17\x08\xbc\xe3\x85\x7f\x55\xb6\xb1\x1f\x55\xe3\x6a\xc5\x0e\xcc\xb8\xdd\x78\x98\xa6\xfe\x7d\x75\x3f\x4d\x3c\xd5\x57\x52\x59\xa9\x82\x1d\x5b\x75\x81\xf4\x88\xad\x02\x36\x00\x2b\x1e\xf9\x22\x96\x8e\x61\x2f\xad\xd7\xdd\xd5\x0a\x43\xe3\xeb\x35\xfc\x1b\x4f\xeb\x15\x64\x24\xd2\xb5\x62\xc4\xea\xa0\x17\x92\x7c\x16\x62\x07\xd4\x31\x2d\xbb\xe7\xb7\x22\xc1\x17\xd3\xb3\xf9\xe5\x60\x60\x08\x37\xb8\xa9\x98\xf0\xeb\xf2\x92\x57\xd5\x91\x37\x58\x16\x9e\xad\xe0\xca\x0b\x6b\x12\xc8\xe6\x72\x2b\xa2\xf6\x9f\x15\xdf\xc1\x36\xf8\xec\x85\xc8\xab\x29\xba\xa6\xf7\x30\x41\x7c\xb0\xbc\x42\xdb\xcd\x7b\x7f\xa9\xe5\xfc\xa3\xf0\x01\x98\xb8\xdf\x22\x39\x23\xde\x59\xab\xd5\x00\xb5\x73\x6f\x77\x1f\x27\x61\x7c\xfd\xd1\x4f\xb3\x8d\xbd\x34\xe2\xf7\x4e\xce\x7e\xf9\xf2\xcb\xe8\xec\xc3\xb9\xe7\x28\x0a\x56\x29\xfc\xd1\xd9\x60\x38\x1e\x9b\xb2\xaf\x79\x3a\x1f\x93\x08\xb4\xb8\xba\x27\x54\x6e\xed\x7b\xb4\x5a\x30\xcf\x42\x00\xa9\x84\x57\xd7\x64\x30\xab\x00\xf6\x99\x1b\x3f\xc5\xb0\xed\xde\x34\x09\xae\x69\xda\xcb\xe0\x1f\xf3\xc2\xcc\x6a\xc5\x80\xd7\xeb\x3e\x7c\x2b\xcb\xa8\x68\x1e\xa8\xf5\xaa\x8a\xa3\x4e\xe5\xde\x0d\x27\x6b\xaf\x5e\xff\xd2\xb8\x2e\xb7\x87\xeb\x86\x8d\x1f\xd7\x95\x83\x08\xf3\x26\x9d\x65\x62\xf5\xdf\xa4\x3c\xc1\xb7\x65\x37\x88\x65\x28\x77\x51\x8d\xc3\xed\xde\x54\x33\x70\xac\xf3\xe3\x4a\xd1\xb1\x57\xc2\xd1\x19\xea\x2e\x34\xd4\x2e\x27\xaa\x5e\x0a\xa7\xb2\x56\x54\x3e\x6e\xc9\x35\xbc\xf6\x14\x46\xf4\x8a\x96\xa1\x83\xea\x89\xe8\x8c\xfb\x91\x4e\x74\xb0\xdd\xb8\x9c\x4b\xb5\x74\x65\xbd\x40\xa4\x6e\xd2\x8e\x5f\xf6\xfb\xa2\x0c\xab\x20\xed\x08\x54\x13\x2a\x9c\x32\x39\x05\x28\x40\x2e\x34\xd8\xbc\x01\xc6\x27\x90\x61\x29\xbf\x9c\x68\xde\xff\xf2\x26\xfe\x55\x66\x3a\xae\xbc\x66\x9a\x97\xdd\x83\x1d\xb1\x40\x13\xbe\xcc\x22\x12\x95\x5f\x89\xee\x60\x0a\x78\x2c\xd2\xdd\x75\xba\x23\xea\xe2\xb0\x6d\xce\x0a\xd7\xfe\x27\x00\x00\xff\xff\xcc\x9a\x22\xab\x87\x65\x00\x00") func templatesAppTmplBytes() ([]byte, error) { return bindataRead( @@ -90,7 +90,7 @@ func templatesAppTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/app.tmpl", size: 23363, mode: os.FileMode(420), modTime: time.Unix(1467255543, 0)} + info := bindataFileInfo{name: "templates/app.tmpl", size: 25991, mode: os.FileMode(420), modTime: time.Unix(1468573220, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -110,7 +110,7 @@ func templatesServiceMysqlTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/service/mysql.tmpl", size: 3447, mode: os.FileMode(420), modTime: time.Unix(1464623978, 0)} + info := bindataFileInfo{name: "templates/service/mysql.tmpl", size: 3447, mode: os.FileMode(420), modTime: time.Unix(1465343086, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -130,7 +130,7 @@ func templatesServicePostgresTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/service/postgres.tmpl", size: 4173, mode: os.FileMode(420), modTime: time.Unix(1464623978, 0)} + info := bindataFileInfo{name: "templates/service/postgres.tmpl", size: 4173, mode: os.FileMode(420), modTime: time.Unix(1465343086, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -150,7 +150,7 @@ func templatesServiceRedisTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/service/redis.tmpl", size: 3162, mode: os.FileMode(420), modTime: time.Unix(1464623978, 0)} + info := bindataFileInfo{name: "templates/service/redis.tmpl", size: 3162, mode: os.FileMode(420), modTime: time.Unix(1465343086, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -170,7 +170,7 @@ func templatesServiceS3Tmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/service/s3.tmpl", size: 4427, mode: os.FileMode(420), modTime: time.Unix(1464102225, 0)} + info := bindataFileInfo{name: "templates/service/s3.tmpl", size: 4427, mode: os.FileMode(420), modTime: time.Unix(1464072726, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -190,7 +190,7 @@ func templatesServiceSnsTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/service/sns.tmpl", size: 2882, mode: os.FileMode(420), modTime: time.Unix(1464102225, 0)} + info := bindataFileInfo{name: "templates/service/sns.tmpl", size: 2882, mode: os.FileMode(420), modTime: time.Unix(1464072726, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -210,7 +210,7 @@ func templatesServiceSqsTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/service/sqs.tmpl", size: 1343, mode: os.FileMode(420), modTime: time.Unix(1464102225, 0)} + info := bindataFileInfo{name: "templates/service/sqs.tmpl", size: 1343, mode: os.FileMode(420), modTime: time.Unix(1464072726, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -230,7 +230,7 @@ func templatesServiceWebhookTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/service/webhook.tmpl", size: 781, mode: os.FileMode(420), modTime: time.Unix(1445799814, 0)} + info := bindataFileInfo{name: "templates/service/webhook.tmpl", size: 781, mode: os.FileMode(420), modTime: time.Unix(1464072726, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/api/models/templates/app.tmpl b/api/models/templates/app.tmpl index 234eb90c2f..9e92880fe8 100644 --- a/api/models/templates/app.tmpl +++ b/api/models/templates/app.tmpl @@ -233,13 +233,26 @@ {{ define "balancer-conditions" }} {{ range .Balancers }} - {{ $balancer := . }} + {{ $processName := upper .ProcessName }} + {{ $balancerPrefix := printf "Balancer%s" $processName }} + "{{ $balancerPrefix }}BlankHealthPath": { + "Fn::Equals": [ + {"Ref": "{{ $processName }}HealthPath"}, + "" + ] + }, + "{{ $balancerPrefix }}BlankHealthTimeout": { + "Fn::Equals": [ + {"Ref": "{{ $processName }}HealthTimeout"}, + "" + ] + }, {{ range .PortMappings }} - "Balancer{{ upper $balancer.ProcessName }}Port{{ .Balancer }}Proxy": { - "Fn::Equals": [ { "Ref": "{{ upper $balancer.ProcessName }}Port{{ .Balancer }}Proxy" }, "Yes" ] + "{{ $balancerPrefix }}Port{{ .Balancer }}Proxy": { + "Fn::Equals": [ { "Ref": "{{ $processName }}Port{{ .Balancer }}Proxy" }, "Yes" ] }, - "Balancer{{ upper $balancer.ProcessName }}Port{{ .Balancer }}Secure": { - "Fn::Equals": [ { "Ref": "{{ upper $balancer.ProcessName }}Port{{ .Balancer }}Secure" }, "Yes" ] + "{{ $balancerPrefix }}Port{{ .Balancer }}Secure": { + "Fn::Equals": [ { "Ref": "{{ $processName }}Port{{ .Balancer }}Secure" }, "Yes" ] }, {{ end }} {{ end }} @@ -248,6 +261,16 @@ {{ define "balancer-params" }} {{ range .Balancers }} {{ $balancer := . }} + "{{ upper $balancer.ProcessName }}HealthPath": { + "Type": "String", + "Default": "", + "Description": "Path used when health check protocol is http(s)" + }, + "{{ upper $balancer.ProcessName }}HealthTimeout": { + "Default": "{{ .DefaultHealthTimeout }}", + "Type": "Number", + "MaxValue": 60 + }, {{ range .PortMappings }} "{{ upper $balancer.ProcessName }}Port{{ .Balancer }}Balancer": { "Type" : "String", @@ -349,11 +372,56 @@ "ConnectionDrainingPolicy": { "Enabled": true, "Timeout": 60 }, "ConnectionSettings": { "IdleTimeout": 3600 }, "CrossZone": true, + {{ $balancerHealthPrefix := printf "%sHealth" (upper $balancer.ProcessName) }} "HealthCheck": { "HealthyThreshold": "2", - "Interval": 5, - "Target": { "Fn::Join": [ ":", [ "TCP", { "Ref": "{{ upper .ProcessName }}Port{{ .FirstPort }}Host" } ] ] }, - "Timeout": 3, + "Interval": "{{ .HealthInterval }}", + "Target": { + {{/* Joins to form :/ */}} + "Fn::Join": [ + "", + [ + { + {{/* Joins to form : */}} + "Fn::Join": [ + ":", + [ + { + "Fn::If": [ + "Balancer{{ upper $balancer.ProcessName }}BlankHealthPath", + {{/* If health check path is blank */}} + { + "Fn::If": [ + "Balancer{{ upper $balancer.ProcessName }}Port{{ .HealthPort }}Secure", + {"Fn::FindInMap": ["PortProtocol", "tcp", "SecureInstanceProtocol"]}, + {"Fn::FindInMap": ["PortProtocol", "tcp", "InstanceProtocol"]} + ] + }, + {{/* If health check path is NOT blank */}} + { + "Fn::If": [ + "Balancer{{ upper $balancer.ProcessName }}Port{{ .HealthPort }}Secure", + {"Fn::FindInMap": ["PortProtocol", "http", "SecureInstanceProtocol"]}, + {"Fn::FindInMap": ["PortProtocol", "http", "InstanceProtocol"]} + ] + } + ] + }, + { "Ref": "{{ upper $balancer.ProcessName }}Port{{ .HealthPort }}Host" } + ] + ] + }, + { "Ref": "{{ $balancerHealthPrefix }}Path" } + ] + ] + }, + "Timeout": { + "Fn::If": [ + "Balancer{{ upper $balancer.ProcessName }}BlankHealthTimeout", + "{{ $balancer.DefaultHealthTimeout }}", + { "Ref": "{{ $balancerHealthPrefix }}Timeout" } + ] + }, "UnhealthyThreshold": "2" }, "Listeners": [ diff --git a/api/provider/aws/templates.go b/api/provider/aws/templates.go index d57b5b6b98..433545ef5b 100644 --- a/api/provider/aws/templates.go +++ b/api/provider/aws/templates.go @@ -83,7 +83,7 @@ func templatesServiceSyslogTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/service/syslog.tmpl", size: 4758, mode: os.FileMode(420), modTime: time.Unix(1463789829, 0)} + info := bindataFileInfo{name: "templates/service/syslog.tmpl", size: 4758, mode: os.FileMode(420), modTime: time.Unix(1464072726, 0)} a := &asset{bytes: bytes, info: info} return a, nil }