diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a6741a4baf..984d887881 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,21 @@ CHANGELOG ========= +1.0.0 +===== +Offiical release of the CfnCluster 1.x CLI, templates and AMIs. Available in all regions except BJS, with +support for Amazon Linux, CentOS 6 & 7 and Ubuntu 14.04 LTS. All AMIs are built via packer from the CfnCluster +Cookbook project (https://github.com/awslabs/cfncluster-cookbook). + +1.0.0-beta +========== + +This is a major update for CfnCluster. Boostrapping of the instances has moved from shell scripts into Chef +receipes. Through the use of Chef, there is now wider base OS support, covering Amazon Linux, CentOS 6 & 7 +and also Ubuntu. All AMIs are now created using the same receipes. All previously capabilites exisit and the +changes should be non-instrusive. + + 0.0.22 ====== * updates:``ami``: Pulled latest CentOS6 errata diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 85113a056b..332d4de343 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -6,3 +6,4 @@ List of contributors: - Kenneth Daily - kmdaily at gmail dot com - John Lilley - johnbot at ltech dot edu - Nelson R Monserrate - MonserrateNelson at JohnDeere dot com + - Karl Gutwin - https://github.com/kgutwin diff --git a/amis.txt b/amis.txt index 4704ce2c0c..747264c816 100644 --- a/amis.txt +++ b/amis.txt @@ -1,10 +1,48 @@ -us-west-2 ami-f35e56c3 -eu-central-1 ami-0adcd817 -sa-east-1 ami-1ffb7202 -ap-northeast-1 ami-4ed26d4e -eu-west-1 ami-c05203b7 -us-east-1 ami-f1dd7e9a -us-west-1 ami-b3956af7 -ap-southeast-2 ami-83a1e1b9 -ap-southeast-1 ami-76f9f524 -us-gov-west-1 ami-43563560 +# centos6 +ap-northeast-1: ami-37060159 +ap-northeast-2: ami-0e1ad460 +ap-southeast-1: ami-3a2ee059 +ap-southeast-2: ami-d91e39ba +eu-central-1: ami-3fc4df53 +eu-west-1: ami-b9e95aca +sa-east-1: ami-87890aeb +us-east-1: ami-a22114c8 +us-west-1: ami-cdd4a2ad +us-west-2: ami-46ec0c26 +us-gov-west-1: ami-1dc27e7c +# centos7 +ap-northeast-1: ami-b40304da +ap-northeast-2: ami-991fd1f7 +ap-southeast-1: ami-1b2ae478 +ap-southeast-2: ami-801c3be3 +eu-central-1: ami-e7fbe08b +eu-west-1: ami-25d56656 +sa-east-1: ami-e48d0e88 +us-east-1: ami-682e1b02 +us-west-1: ami-1ad7a17a +us-west-2: ami-04f11164 +us-gov-west-1: ami-3cbe025d +# alinux +ap-northeast-1: ami-5503043b +ap-northeast-2: ami-591fd137 +ap-southeast-1: ami-b42ee0d7 +ap-southeast-2: ami-8a1c3be9 +eu-central-1: ami-79c4df15 +eu-west-1: ami-88d360fb +sa-east-1: ami-af9211c3 +us-east-1: ami-0b2b1e61 +us-west-1: ami-3bd6a05b +us-west-2: ami-31f01051 +us-gov-west-1: ami-6eb8040f +# ubuntu1404 +ap-northeast-1: ami-ba0106d4 +ap-northeast-2: ami-581fd136 +ap-southeast-1: ami-832fe1e0 +ap-southeast-2: ami-ab1a3dc8 +eu-central-1: ami-17fbe07b +eu-west-1: ami-c5d261b6 +sa-east-1: ami-998d0ef5 +us-east-1: ami-5114213b +us-west-1: ami-3be99f5b +us-west-2: ami-72f31312 +us-gov-west-1: ami-a0ba06c1 diff --git a/bootstrap/Makefile b/bootstrap/Makefile deleted file mode 100644 index af46e95a12..0000000000 --- a/bootstrap/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -SHELL = /bin/sh -DESTDIR ?= /opt/cfncluster - -install: - install -d -m 755 $(DESTDIR) - install -d -m 755 $(DESTDIR)/scripts - install -d -m 755 $(DESTDIR)/templates - cp -r src/scripts/* $(DESTDIR)/scripts - cp -r src/templates/* $(DESTDIR)/templates \ No newline at end of file diff --git a/bootstrap/README b/bootstrap/README index 6912c63c7e..792fc4964b 100644 --- a/bootstrap/README +++ b/bootstrap/README @@ -1,11 +1 @@ -This as the bootstrap scripts deployed in an AMI that is launched by the -CfnCluster CloudFormation template. They are called by cfn-init. They are -typically installed in /opt/cfncluster - -Install -------- - -As root: - - # tar xf CfnClusterBootstrap.tar.gz - # make install \ No newline at end of file +This is the bootstrap script called initially during cloud-init diff --git a/bootstrap/cfncluster-setup.sh b/bootstrap/cfncluster-setup.sh new file mode 100644 index 0000000000..136445e984 --- /dev/null +++ b/bootstrap/cfncluster-setup.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# CfnCluster setup script. This is called by CloudFormation and +# ensures the instance is capable of running the bootstap actions. + +VERSION=$1 + +if [ "${VERSION}x" == "x" ]; then + echo "Version not set. Exiting." + exit 0 +fi + +if [ -f /opt/cfncluster/.cfncluster-setup-${VERSION} ]; then + runtime=`cat /opt/cfncluster/.cfncluster-setup-${VERSION}` + echo "cfncluster previously run at $runtime." + echo "Exiting." + exit 0 +else + rm /opt/cfncluster/.cfncluster-setup-* + distro="$(cat /etc/issue | awk ''NR==1'{ print $1 }')" + case "$distro" in + Ubuntu) + apt-get update + apt-get install -y build-essential curl + ;; + CentOS|Amazon|RedHat) + yum groupinstall -y "Development Tools" + yum install -y curl + ;; + *) + echo "Your distro is not supported." 1>&2 + exit 1 + ;; + esac + + mkdir -p /opt/cfncluster + easy_install -U https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz + curl -LO https://www.chef.io/chef/install.sh && sudo bash ./install.sh -d /opt/cfncluster -v 12.4.1 && rm install.sh + /opt/chef/embedded/bin/gem install berkshelf --no-ri --no-rdoc 2>&1 >/tmp/berkshelf.log + echo `date` > /opt/cfncluster/.cfncluster-setup-${VERSION} +fi \ No newline at end of file diff --git a/bootstrap/src/scripts/boot_as_compute b/bootstrap/src/scripts/boot_as_compute deleted file mode 100755 index a6cf62f0cf..0000000000 --- a/bootstrap/src/scripts/boot_as_compute +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x - -# Source config -. /opt/cfncluster/cfnconfig -cfn_master=$(echo $cfn_master|cut -d. -f1) - -# Source functions -. /opt/cfncluster/scripts/functions.shlib - -# Check basic DNS -check_dns_basic || error_exit "Basic DNS checks failed." - -# Run preinstall script if defined -run_preinstall - -## Non-scheduler specific functions -## - -# LVM stripe, format, mount ephemeral drives -setup_ephemeral_drives - -# Mount NFS exports -RC=0 -echo "$cfn_master:/home /home nfs hard,intr,noatime,vers=3,_netdev 0 0" >> /etc/fstab || RC=1 -echo "$cfn_master:${cfn_shared_dir} ${cfn_shared_dir} nfs hard,intr,noatime,vers=3,_netdev 0 0" >> /etc/fstab || RC=1 -mkdir -p ${cfn_shared_dir} || RC=1 -mount -v /home || RC=1 -mount -v ${cfn_shared_dir} || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed during during NFS mounts" -fi - -# Configure ganglia -RC=0 -location=`curl --retry 3 --retry-delay 0 --silent --fail http://169.254.169.254/latest/meta-data/placement/availability-zone` || RC=1 -cd /etc/ganglia || RC=1 -/bin/cp -f /opt/cfncluster/templates/os/gmond.conf.COMPUTE gmond.conf || RC=1 -sed -i "s//${cfn_master}/" gmond.conf || RC=1 -sed -i "s//$location/" gmond.conf || RC=1 -chkconfig gmond on || RC=1 -service gmond start || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed during Ganglia setup" -fi - -# Startup nodewatcher -service supervisord restart -supervisorctl status - -## -# Run boot as compute for a specific scheduler -RC=0 -/opt/cfncluster/scripts/${cfn_scheduler}/boot_as_compute >/var/log/cfncluster.log 2>&1 || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to run boot_as_compute for ${cfn_scheduler}" -fi - -# Run postinstall script if defined -run_postinstall - -# Notify compute is ready -instance_id_url="http://169.254.169.254/latest/meta-data/instance-id" -instance_id=$(curl --retry 3 --retry-delay 0 --silent --fail ${instance_id_url}) -aws --region ${cfn_region} sqs send-message --queue-url ${cfn_sqs_url} --message-body '{"Type" : "Notification", "Message" : "{\"StatusCode\":\"Complete\",\"Description\":\"Succesfully launched '${instance_id}'\",\"Event\":\"cfncluster:COMPUTE_READY\",\"EC2InstanceId\":\"'${instance_id}'\"}"}' diff --git a/bootstrap/src/scripts/boot_as_master b/bootstrap/src/scripts/boot_as_master deleted file mode 100755 index 2fe1aa4d55..0000000000 --- a/bootstrap/src/scripts/boot_as_master +++ /dev/null @@ -1,164 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x - -# Source config -. /opt/cfncluster/cfnconfig - -# Source functions -. /opt/cfncluster/scripts/functions.shlib - -# Check basic DNS -check_dns_basic || error_exit "Basic DNS checks failed." - -# Run preinstall script if defined -run_preinstall - -## Non-scheduler specific functions -## - -# Check cfn_volume is present in config -if [ "${cfn_volume}x" == "x" ]; then - error_exit "Volume must be provided." -fi - -# Check hostname resolves using DNS -myhostname=$(hostname -s) -if [ $? != 0 ]; then - error_exit 'Failed to determine local hostname' -fi - -# Enable PAT -RC=0 -/opt/cfncluster/scripts/os/configure-pat.sh || RC=1 -echo -e "\n# Enable PAT\n/opt/cfncluster/scripts/os/configure-pat.sh\n\n" >> /etc/rc.local || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to enable NAT(PAT)" -fi - -# LVM stripe, format, mount ephemeral drives -setup_ephemeral_drives - -# Attach and mount ${cfn_shared_dir} volume -RC=0 -/usr/local/sbin/attachVolume.py ${cfn_volume} || RC=1 -TRY=0 -while [ $TRY -lt 3 ]; do - sleep 10 - stat /dev/disk/by-ebs-volumeid/${cfn_volume} 2>&1 >/dev/null - check_stat=$? - if [ $check_stat -eq 0 ]; then - break - else - TRY=$(( $TRY + 1 )) - fi -done -dev=$(stat /dev/disk/by-ebs-volumeid/${cfn_volume}|grep -- 'File:'|awk '{print $4}'|cut -d'/' -f3|tr -d "'") -fs_type=$(blkid -o list /dev/$dev | grep -- "$dev" | awk '{print $2}') -if [ "${fs_type}x" == "x" ]; then - mkfs.xfs /dev/disk/by-ebs-volumeid/${cfn_volume} || RC=1 - fs_type="xfs" - sleep 5 -fi -echo "/dev/disk/by-ebs-volumeid/${cfn_volume} ${cfn_shared_dir} $fs_type noatime,nodiratime,_netdev 0 0" >> /etc/fstab -mkdir -p ${cfn_shared_dir} || RC=1 -mount -v ${cfn_shared_dir} || RC=1 -chmod 1777 ${cfn_shared_dir} || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to attach and mount volume" -fi - -# Setup NFS as Master -# 1. Determine subnet for NFS exports -ETH0_MAC=`/sbin/ifconfig | /bin/grep eth0 | awk '{print tolower($5)}' | grep '^[0-9a-f]\{2\}\(:[0-9a-f]\{2\}\)\{5\}$'` -VPC_CIDR_URI="http://169.254.169.254/latest/meta-data/network/interfaces/macs/${ETH0_MAC}/vpc-ipv4-cidr-block" -VPC_CIDR_RANGE=`curl --retry 3 --retry-delay 0 --silent --fail ${VPC_CIDR_URI}` -if [ $? -ne 0 ] ; then - echo "Unable to retrive VPC CIDR range from meta-data. This either means a) non-VPC or b) an error" | logger -t "cfncluster" - VPC_CIDR_RANGE="10.0.0.0/8" -else - echo "Retrived the VPC CIDR range: ${VPC_CIDR_RANGE} from meta-data for NFS export." | logger -t "cfncluster" -fi -# 2. Update config -RC=0 -cd /etc || RC=1 -/bin/cp -f /opt/cfncluster/templates/os/exports.MASTER exports || RC=1 -sed -i "s??$VPC_CIDR_RANGE?" exports || RC=1 -sed -i "s??$cfn_shared_dir?" exports || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to configure NFS exports" -fi -# 3. Start NFS -RC=0 -chkconfig nfs on || RC=1 -chkconfig rpcbind on || RC=1 -chkconfig rpcidmapd on || RC=1 -service rpcbind restart || RC=1 -service rpcidmapd restart || RC=1 -service nfs restart || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to start NFS server" -fi - -# Setup Ganglia as Master -RC=0 -location=`curl --retry 3 --retry-delay 0 --silent --fail http://169.254.169.254/latest/meta-data/placement/availability-zone` || RC=1 -cd /etc/ganglia || RC=1 -/bin/cp -f /opt/cfncluster/templates/os/gmond.conf.MASTER gmond.conf || RC=1 -/bin/cp -f /opt/cfncluster/templates/os/gmetad.conf.MASTER gmetad.conf || RC=1 -sed -i "s//$myhostname/" gmond.conf || RC=1 -sed -i "s//$location/" gmond.conf || RC=1 -sed -i "s//$stack_name/" gmond.conf || RC=1 -sed -i "s//$stack_name/" gmetad.conf || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to configure Ganglia" -fi - -# Start httpd and ganglia services -RC=0 -chkconfig gmond on || RC=1 -chkconfig gmetad on || RC=1 -chkconfig httpd on || RC=1 -service gmond start || RC=1 -service gmetad start || RC=1 -service httpd start || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to start Ganglia" -fi - -# Setup ${cfn_cluster_user} SSH auth -RC=0 -su - ${cfn_cluster_user} -c "ssh-keygen -q -t rsa -f ~/.ssh/id_rsa -N ''" || RC=1 -su - ${cfn_cluster_user} -c "cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys2 && chmod 0600 ~/.ssh/authorized_keys2" || RC=1 -su - ${cfn_cluster_user} -c "ssh-keyscan ${myhostname} > ~/.ssh/known_hosts && chmod 0600 ~/.ssh/known_hosts" || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to setup ${cfn_cluster_user} SSH auth" -fi - -## Scheduler specific section -## - -# Run boot as master for a specific scheduler -RC=0 -/opt/cfncluster/scripts/${cfn_scheduler}/boot_as_master >/var/log/cfncluster.log 2>&1 || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to run boot_as_master for ${cfn_scheduler}" -fi - -# Start sqswatcher -service supervisord restart -supervisorctl status - -# Run postinstall script if defined -run_postinstall diff --git a/bootstrap/src/scripts/functions.shlib b/bootstrap/src/scripts/functions.shlib deleted file mode 100755 index 8f1e3251db..0000000000 --- a/bootstrap/src/scripts/functions.shlib +++ /dev/null @@ -1,162 +0,0 @@ -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -# Error exit function -function error_exit () { - script=`basename $0` - echo "cfncluster: $script - $1" - logger -t cfncluster "$script - $1" - exit 1 -} - -# Basic DNS check, using A record for cloudformation endpoint -function check_dns_basic () { - TRY=0 - domain="cloudformation.${cfn_region}.amazonaws.com" - while [ $TRY -lt 3 ]; do - host $domain >/dev/null - check_dns=$? - if [ $check_dns -eq 0 ]; then - break - else - sleep 10 - TRY=$(( $TRY + 1 )) - fi - done - return $check_dns -} - -# Check DNS is working, as it is required for correct operation -function check_dns_fqdn () { - TRY=0 - while [ $TRY -lt 3 ]; do - hostname -f >/dev/null - check_fqdn=$? - if [ $check_fqdn -eq 0 ]; then - break - else - sleep 10 - TRY=$(( $TRY + 1 )) - fi - done - return $check_fqdn -} - -# Check and run preinstall -function run_preinstall () { - RC=0 - if [ "${cfn_preinstall}" != "NONE" ]; then - scheme=$(echo "${cfn_preinstall}"| cut -d: -f1) - tmpfile=$(mktemp) - if [ "${scheme}" == "s3" ]; then - aws --region ${cfn_region} s3 cp ${cfn_preinstall} - > $tmpfile || RC=1 - else - wget -qO- ${cfn_preinstall} > $tmpfile || RC=1 - fi - if [ "${cfn_preinstall_args}" != "NONE" ]; then - args=${cfn_preinstall_args} - fi - /bin/sh $tmpfile $args || RC=1 - /bin/rm $tmpfile - fi - if [ $RC -ne 0 ]; then - error_exit "Failed to run boot_as_master preinstall" - fi -} - -# LVM stripe, format, mount ephemeral drives -function setup_ephemeral_drives () { - RC=0 - mkdir -p ${cfn_ephemeral_dir} || RC=1 - chmod 1777 ${cfn_ephemeral_dir} || RC=1 - MAPPING=$(/usr/bin/ec2-metadata -b | grep ephemeral | awk '{print $2}' | sed 's/sd/xvd/') - NUM_DEVS=0 - for m in $MAPPING; do - stat -t /dev/${m} >/dev/null 2>&1 - check=$? - if [ ${check} -eq 0 ]; then - DEVS="${m} $DEVS" - let NUM_DEVS++ - fi - done - if [ $NUM_DEVS -gt 0 ]; then - for d in $DEVS; do - d=/dev/${d} - dd if=/dev/zero of=${d} bs=32k count=1 || RC=1 - parted -s ${d} mklabel msdos || RC=1 - parted -s ${d} || RC=1 - parted -s -a optimal ${d} mkpart primary 1MB 100% || RC=1 - parted -s ${d} set 1 lvm on || RC=1 - PARTITIONS="${d}1 $PARTITIONS" - done - if [ $RC -ne 0 ]; then - error_exit "Failed to detect and/or partition ephemeral devices." - fi - - # sleep 10 seconds to let partitions settle (bug?) - sleep 10 - - # Setup LVM - RC=0 - pvcreate $PARTITIONS || RC=1 - vgcreate vg.01 $PARTITIONS || RC=1 - lvcreate -i $NUM_DEVS -I 64 -l 100%FREE -n lv_ephemeral vg.01 || RC=1 - if [ "$cfn_encrypted_ephemeral" == "true" ]; then - mkfs -q /dev/ram1 1024 || RC=1 - mkdir -p /root/keystore || RC=1 - mount /dev/ram1 /root/keystore || RC=1 - if [ "${cfn_ephemeral_kms_key_id}" != "NONE" ]; then - # Use KMS for keyfile - instanceId=$(curl -fs http://169.254.169.254/latest/meta-data/instance-id) - kms_array=($(aws --region ${cfn_region} kms generate-data-key --key-id ${cfn_ephemeral_kms_key_id} --number-of-bytes 1024 --encryption-context InstanceId=${instanceId} --output text)) - echo -n ${kms_array[0]} > /root/keystore/keyfile || RC=1 - echo -n ${kms_array[2]} > /root/ephemeral_ciphertext.blob || RC=1 - chmod 0400 /root/ephemeral_ciphertext.blob || RC=1 - else - # Use urandom for keyfile - dd if=/dev/urandom of=/root/keystore/keyfile bs=1024 count=4 || RC=1 - fi - chmod 0400 /root/keystore/keyfile || RC=1 - cryptsetup -q luksFormat /dev/vg.01/lv_ephemeral /root/keystore/keyfile || RC=1 - cryptsetup -d /root/keystore/keyfile luksOpen /dev/vg.01/lv_ephemeral ephemeral_luks || RC=1 - mkfs.xfs /dev/mapper/ephemeral_luks || RC=1 - mount -v -t xfs -o noatime,nodiratime /dev/mapper/ephemeral_luks ${cfn_ephemeral_dir} || RC=1 - else - mkfs.xfs /dev/vg.01/lv_ephemeral || RC=1 - echo "/dev/vg.01/lv_ephemeral ${cfn_ephemeral_dir} xfs noatime,nodiratime 0 0" >> /etc/fstab || RC=1 - mount -v ${cfn_ephemeral_dir} || RC=1 - fi - fi - chmod 1777 ${cfn_ephemeral_dir} || RC=1 - if [ $RC -ne 0 ]; then - error_exit "Failed to create LVM stripe and/or format ephemeral volume." - fi -} - -# Run post install -function run_postinstall () { - RC=0 - if [ "${cfn_postinstall}" != "NONE" ]; then - scheme=$(echo "${cfn_postinstall}"| cut -d: -f1) - tmpfile=$(mktemp) - if [ "${scheme}" == "s3" ]; then - aws --region ${cfn_region} s3 cp ${cfn_postinstall} - > $tmpfile || RC=1 - else - wget -qO- ${cfn_postinstall} > $tmpfile || RC=1 - fi - if [ "${cfn_postinstall_args}" != "NONE" ]; then - args=${cfn_postinstall_args} - fi - /bin/sh $tmpfile $args || RC=1 - /bin/rm $tmpfile - fi - if [ $RC -ne 0 ]; then - error_exit "Failed to run boot_as_master postinstall" - fi -} diff --git a/bootstrap/src/scripts/openlava/boot_as_compute b/bootstrap/src/scripts/openlava/boot_as_compute deleted file mode 100755 index fdc569ec7a..0000000000 --- a/bootstrap/src/scripts/openlava/boot_as_compute +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x - -. /opt/cfncluster/cfnconfig -cfn_master=$(echo $cfn_master|cut -d. -f1) - -function error_exit () { - script=`basename $0` - echo "cfncluster: $script - $1" - logger -t cfncluster "$script - $1" - exit 1 -} - -if [ "x$cfn_master" == "x" ]; then - error_exit 'No master server specified.' - usage -fi - -myhostname=$(hostname -s) -if [ $? != 0 ]; then - error_exit 'Failed to determine short hostname.' -fi - -# Determine instance type -instance_type=`curl --retry 3 --retry-delay 0 --silent --fail http://169.254.169.254/latest/meta-data/instance-type` -instance_type=$(echo $instance_type| tr '.' '_') - -# Setup resources -resources="cs $instance_type $cfn_resources" - -# Configure openlava -function configure_openlava () { -RC=0 -cd /opt/openlava-2.2/etc || RC=1 -/bin/cp -f /opt/cfncluster/templates/openlava/lsf.conf.COMPUTE lsf.conf || RC=1 -/bin/cp -f /opt/cfncluster/templates/openlava/lsf.cluster.openlava.COMPUTE lsf.cluster.openlava || RC=1 -sed -i "s//$cfn_master/" lsf.conf || RC=1 -sed -i "s//$cfn_master/" lsf.cluster.openlava || RC=1 -sed -i "s//$myhostname/" lsf.cluster.openlava || RC=1 -ln -s /opt/openlava-2.2/etc/openlava.sh /etc/profile.d/openlava.sh || RC=1 -ln -s /opt/openlava-2.2/etc/openlava.csh /etc/profile.d/openlava.csh || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed during Openlava configuration" -fi -} - -# Start openlava -function start_openlava () { -RC=0 -chkconfig openlava on || RC=1 -service openlava start || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to start openlava" -fi -} - -function do_install () { - configure_openlava - start_openlava -} - -## Main script -do_install - - -script=`basename $0` -echo "cfncluster: $script - SUCCESS - Booted as cfncluster Compute connected to Master - $cfn_master" -logger -t cfncluster "$script - SUCCESS - Booted as cfncluster Compute connected to Master - $cfn_master" diff --git a/bootstrap/src/scripts/openlava/boot_as_master b/bootstrap/src/scripts/openlava/boot_as_master deleted file mode 100755 index 263dfa5349..0000000000 --- a/bootstrap/src/scripts/openlava/boot_as_master +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x - -# Source cfncluster config -. /opt/cfncluster/cfnconfig - -function error_exit () { - script=`basename $0` - echo "cfncluster: $script - $1" - logger -t cfncluster "$script - $1" - exit 1 -} - -myhostname=$(hostname -s) -if [ $? != 0 ]; then - error_exit 'Failed to determine local hostname' -fi - -# Setup openlava config as Master -function setup_master_openlava () { -RC=0 -cd /opt/openlava-2.2/etc || RC=1 -/bin/cp -f /opt/cfncluster/templates/openlava/lsf.conf.MASTER lsf.conf || RC=1 -/bin/cp -f /opt/cfncluster/templates/openlava/lsf.cluster.openlava.MASTER lsf.cluster.openlava || RC=1 -/bin/cp -f /opt/cfncluster/templates/openlava/lsb.hosts.MASTER lsb.hosts || RC=1 -sed -i "s//$myhostname/" lsf.cluster.openlava || RC=1 -sed -i "s//$myhostname/" lsb.hosts || RC=1 -ln -s /opt/openlava-2.2/etc/openlava.sh /etc/profile.d/openlava.sh || RC=1 -ln -s /opt/openlava-2.2/etc/openlava.csh /etc/profile.d/openlava.csh || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to configure Openlava" -fi -} - -# Adding custom CloudWatch metric to crontab -function add_custom_metric () { -RC=0 -crontab -l > /tmp/root.crontab -echo "* * * * * /opt/cfncluster/scripts/openlava/publish_pending_jobs.sh 2>&1" >> /tmp/root.crontab || RC=1 -crontab /tmp/root.crontab || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to add custom metric crontab" -fi -} - -# Start openlava -function start_openlava () { -RC=0 -chkconfig openlava on || RC=1 -service openlava start || RC=1 -. /etc/profile.d/openlava.sh || RC=1 -badmin hclose ${myhostname} || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to start Openlava" -fi -} - -function do_install () { - setup_master_openlava - start_openlava - add_custom_metric -} - -## Main script -do_install - -script=`basename $0` -echo "cfncluster: $script - SUCCESS - Booted as cfncluster Master" -logger -t cfncluster "$script - SUCCESS - Booted as cfncluster Master" diff --git a/bootstrap/src/scripts/openlava/publish_pending_jobs.sh b/bootstrap/src/scripts/openlava/publish_pending_jobs.sh deleted file mode 100755 index 169ae40128..0000000000 --- a/bootstrap/src/scripts/openlava/publish_pending_jobs.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -. /opt/cfncluster/cfnconfig -. /etc/profile.d/openlava.sh - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -ec2_region_url="http://169.254.169.254/latest/meta-data/placement/availability-zone" -ec2_region=$(curl --retry 3 --retry-delay 0 --silent --fail ${ec2_region_url}) - -pending=$(bqueues normal | awk '{ if (NR > 1) { total += $9; } } END { print total; }') - -aws --region ${ec2_region%?} cloudwatch put-metric-data --namespace cfncluster --metric-name pending --unit Count --value ${pending} --dimensions Stack=${stack_name} diff --git a/bootstrap/src/scripts/os/configure-pat.sh b/bootstrap/src/scripts/os/configure-pat.sh deleted file mode 100755 index e60d3f9d9a..0000000000 --- a/bootstrap/src/scripts/os/configure-pat.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x -echo "Determining the MAC address on eth0" -ETH0_MAC=`/sbin/ifconfig | /bin/grep eth0 | awk '{print tolower($5)}' | grep '^[0-9a-f]\{2\}\(:[0-9a-f]\{2\}\)\{5\}$'` -if [ $? -ne 0 ] ; then - echo "Unable to determine MAC address on eth0" | logger -t "ec2" - exit 1 -fi -echo "Found MAC: ${ETH0_MAC} on eth0" | logger -t "ec2" - - -VPC_CIDR_URI="http://169.254.169.254/latest/meta-data/network/interfaces/macs/${ETH0_MAC}/vpc-ipv4-cidr-block" -echo "Metadata location for vpc ipv4 range: ${VPC_CIDR_URI}" | logger -t "ec2" - -VPC_CIDR_RANGE=`curl --retry 3 --retry-delay 0 --silent --fail ${VPC_CIDR_URI}` -if [ $? -ne 0 ] ; then - echo "Unable to retrive VPC CIDR range from meta-data. Using 0.0.0.0/0 instead. PAT may not function correctly" | logger -t "ec2" - VPC_CIDR_RANGE="0.0.0.0/0" -else - echo "Retrived the VPC CIDR range: ${VPC_CIDR_RANGE} from meta-data" |logger -t "ec2" -fi - -echo 1 > /proc/sys/net/ipv4/ip_forward && \ - echo 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects && \ - /sbin/iptables -t nat -A POSTROUTING -o eth0 -s ${VPC_CIDR_RANGE} -j MASQUERADE - -if [ $? -ne 0 ] ; then - echo "Configuration of PAT failed" | logger -t "ec2" - exit 0 -fi - -echo "Configuration of PAT complete" |logger -t "ec2" -exit 0 diff --git a/bootstrap/src/scripts/sge/boot_as_compute b/bootstrap/src/scripts/sge/boot_as_compute deleted file mode 100755 index 90a6d704f6..0000000000 --- a/bootstrap/src/scripts/sge/boot_as_compute +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x - -. /opt/cfncluster/cfnconfig -cfn_master=$(echo $cfn_master|cut -d. -f1) - -# Source functions -. /opt/cfncluster/scripts/functions.shlib - -function error_exit () { - script=`basename $0` - echo "cfncluster: $script - $1" - logger -t cfncluster "$script - $1" - exit 1 -} - -# Check FQDN dns -check_dns_fqdn || error_exit "FQDN DNS checks failed." - - -if [ "x$cfn_master" == "x" ]; then - error_exit 'No master server specified.' - usage -fi - -myhostname=$(hostname -s) -if [ $? != 0 ]; then - error_exit 'Failed to determine short hostname.' -fi - -# Mount SGE NFS exports -function mount_nfs () { -RC=0 -echo "$cfn_master:/opt/sge /opt/sge nfs hard,intr,noatime,vers=3,_netdev 0 0" >> /etc/fstab || RC=1 -mount -v /opt/sge || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed during during SGE NFS mounts" -fi -} - -# Setup sge profile -function setup_sge_profile () { -RC=0 -ln -s /opt/sge/default/common/settings.sh /etc/profile.d/sge.sh || RC=1 -ln -s /opt/sge/default/common/settings.csh /etc/profile.d/sge.csh || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed during SGE profile setup" -fi -} - -function do_install () { - mount_nfs - setup_sge_profile -} - -## Main script -do_install - - -script=`basename $0` -echo "cfncluster: $script - SUCCESS - Booted as cfncluster Compute connected to Master - $cfn_master" -logger -t cfncluster "$script - SUCCESS - Booted as cfncluster Compute connected to Master - $cfn_master" diff --git a/bootstrap/src/scripts/sge/boot_as_master b/bootstrap/src/scripts/sge/boot_as_master deleted file mode 100755 index 1226655d8e..0000000000 --- a/bootstrap/src/scripts/sge/boot_as_master +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x - -# Source cfncluster config -. /opt/cfncluster/cfnconfig - -# Source functions -. /opt/cfncluster/scripts/functions.shlib - -function error_exit () { - script=`basename $0` - echo "cfncluster: $script - $1" - logger -t cfncluster "$script - $1" - exit 1 -} - -# Check FQDN dns -check_dns_fqdn || error_exit "FQDN DNS checks failed." - -myhostname=$(hostname -s) -if [ $? != 0 ]; then - error_exit 'Failed to determine local hostname' -fi - -# Setup SGE config as Master -function setup_master_sge () { -RC=0 -cd /opt/sge || RC=1 -./inst_sge -m -auto /opt/cfncluster/templates/sge/sge_inst.conf || RC=1 -ln -s /opt/sge/default/common/settings.sh /etc/profile.d/sge.sh || RC=1 -ln -s /opt/sge/default/common/settings.csh /etc/profile.d/sge.csh || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to configure SGE" -fi -} - -# Start SGE -function start_sge () { -RC=0 -chkconfig sgemaster.p6444 on || RC=1 -service sgemaster.p6444 start || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to start SGE" -fi -} - -# Add master as submit host -function add_master_submit () { -RC=0 -. /opt/sge/default/common/settings.sh -qconf -as $myhostname || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to add $myhostname as submit host" -fi -} - -# Adding custom CloudWatch metric to crontab -function add_custom_metric () { -RC=0 -crontab -l > /tmp/root.crontab -echo "* * * * * /opt/cfncluster/scripts/sge/publish_pending_jobs.sh 2>&1" >> /tmp/root.crontab || RC=1 -crontab /tmp/root.crontab || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to add custom metric crontab" -fi -} - -function do_install () { - setup_master_sge - start_sge - add_master_submit - add_custom_metric -} - -## Main script -do_install - -script=`basename $0` -echo "cfncluster: $script - SUCCESS - Booted as cfncluster Master" -logger -t cfncluster "$script - SUCCESS - Booted as cfncluster Master" diff --git a/bootstrap/src/scripts/sge/publish_pending_jobs.sh b/bootstrap/src/scripts/sge/publish_pending_jobs.sh deleted file mode 100755 index 4e87671160..0000000000 --- a/bootstrap/src/scripts/sge/publish_pending_jobs.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -. /opt/cfncluster/cfnconfig - -ec2_region_url="http://169.254.169.254/latest/meta-data/placement/availability-zone" -ec2_region=$(curl --retry 3 --retry-delay 0 --silent --fail ${ec2_region_url}) - -. /opt/sge/default/common/settings.sh -pending=$(qstat -g d -s p -u '*' | tail -n+3 | awk '$5 == "qw" {total = total+ $8} END {print total}') - -if [ "${pending}x" == "x" ]; then -pending=0 -fi - -aws --region ${ec2_region%?} cloudwatch put-metric-data --namespace cfncluster --metric-name pending --unit Count --value ${pending} --dimensions Stack=${stack_name} diff --git a/bootstrap/src/scripts/test/boot_as_compute b/bootstrap/src/scripts/test/boot_as_compute deleted file mode 100755 index e3f5bbc1ee..0000000000 --- a/bootstrap/src/scripts/test/boot_as_compute +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -exit 0 diff --git a/bootstrap/src/scripts/test/boot_as_master b/bootstrap/src/scripts/test/boot_as_master deleted file mode 100755 index e3f5bbc1ee..0000000000 --- a/bootstrap/src/scripts/test/boot_as_master +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -exit 0 diff --git a/bootstrap/src/scripts/torque/boot_as_compute b/bootstrap/src/scripts/torque/boot_as_compute deleted file mode 100755 index e9d5978118..0000000000 --- a/bootstrap/src/scripts/torque/boot_as_compute +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x - -. /opt/cfncluster/cfnconfig -cfn_master=$(echo $cfn_master|cut -d. -f1) - -function error_exit () { - script=`basename $0` - echo "cfncluster: $script - $1" - logger -t cfncluster "$script - $1" - exit 1 -} - -if [ "x$cfn_master" == "x" ]; then - error_exit 'No master server specified.' - usage -fi - -myhostname=$(hostname -s) -if [ $? != 0 ]; then - error_exit 'Failed to determine short hostname.' -fi - -function setup_torque () { -RC=0 -. /opt/cfncluster/templates/torque/torque.sh || RC=1 -echo "/opt/torque/lib" >> /etc/ld.so.conf.d/torque.conf || RC=1 -ldconfig || RC=1 -cd /var/spool/torque || RC=1 -/bin/cp -f /opt/cfncluster/templates/torque/server_name.COMPUTE server_name || RC=1 -sed -i "s//$cfn_master/" server_name || RC=1 -chkconfig trqauthd on || RC=1 -service trqauthd start || RC=1 -cd /var/spool/torque/mom_priv || RC=1 -cp /opt/cfncluster/templates/torque/config.COMPUTE config || RC=1 -sed -i "s//$cfn_master/" config || RC=1 -chkconfig pbs_mom on || RC=1 -service pbs_mom start || RC=1 -cp /opt/cfncluster/templates/torque/torque.sh /etc/profile.d || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed during during setup-torque" -fi -} - -function do_install () { - setup_torque -} - -## Main script -do_install - - -script=`basename $0` -echo "cfncluster: $script - SUCCESS - Booted as cfncluster Compute connected to Master - $cfn_master" -logger -t cfncluster "$script - SUCCESS - Booted as cfncluster Compute connected to Master - $cfn_master" diff --git a/bootstrap/src/scripts/torque/boot_as_master b/bootstrap/src/scripts/torque/boot_as_master deleted file mode 100755 index ca7b070b0a..0000000000 --- a/bootstrap/src/scripts/torque/boot_as_master +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -set -x - -# Source cfncluster config -. /opt/cfncluster/cfnconfig - -function error_exit () { - script=`basename $0` - echo "cfncluster: $script - $1" - logger -t cfncluster "$script - $1" - exit 1 -} - -myhostname=$(hostname -s) -if [ $? != 0 ]; then - error_exit 'Failed to determine local hostname' -fi - -# Setup Torque on master -function setup_master_torque () { -RC=0 -. /opt/cfncluster/templates/torque/torque.sh || RC=1 -echo "/opt/torque/lib" >> /etc/ld.so.conf.d/torque.conf || RC=1 -ldconfig || RC=1 -cd /var/spool/torque || RC=1 -/bin/cp -f /opt/cfncluster/templates/torque/server_name.MASTER server_name || RC=1 -sed -i "s//$myhostname/" server_name || RC=1 -chkconfig trqauthd on || RC=1 -service trqauthd start || RC=1 -cd /opt/cfncluster/scripts/torque || RC=1 -./torque.setup root || RC=1 -chkconfig pbs_server on || RC=1 -service pbs_server restart || RC=1 -chkconfig pbs_sched on || RC=1 -service pbs_sched start || RC=1 -cp /opt/cfncluster/templates/torque/torque.sh /etc/profile.d || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to configure Torque" -fi -} - -# Adding custom CloudWatch metric to crontab -function add_custom_metric () { -RC=0 -crontab -l > /tmp/root.crontab -echo "* * * * * /opt/cfncluster/scripts/torque/publish_pending_jobs.sh 2>&1" >> /tmp/root.crontab || RC=1 -crontab /tmp/root.crontab || RC=1 -if [ $RC -ne 0 ]; then - error_exit "Failed to add custom metric crontab" -fi -} - -function do_install () { - setup_master_torque - add_custom_metric -} - -## Main script -do_install - -script=`basename $0` -echo "cfncluster: $script - SUCCESS - Booted as cfncluster Master" -logger -t cfncluster "$script - SUCCESS - Booted as cfncluster Master" diff --git a/bootstrap/src/scripts/torque/publish_pending_jobs.sh b/bootstrap/src/scripts/torque/publish_pending_jobs.sh deleted file mode 100755 index 16a025ac0b..0000000000 --- a/bootstrap/src/scripts/torque/publish_pending_jobs.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -. /opt/cfncluster/cfnconfig -. /etc/profile.d/torque.sh - -ec2_region_url="http://169.254.169.254/latest/meta-data/placement/availability-zone" -ec2_region=$(curl --retry 3 --retry-delay 0 --silent --fail ${ec2_region_url}) - -pending=$(qstat -i | tail -n+6 | awk '{total = total+ $7}END{print total}') - -if [ "${pending}x" == "x" ]; then -pending=0 -fi - -aws --region ${ec2_region%?} cloudwatch put-metric-data --namespace cfncluster --metric-name pending --unit Count --value ${pending} --dimensions Stack=${stack_name} diff --git a/bootstrap/src/scripts/torque/torque.setup b/bootstrap/src/scripts/torque/torque.setup deleted file mode 100755 index 12e3ae9478..0000000000 --- a/bootstrap/src/scripts/torque/torque.setup +++ /dev/null @@ -1,95 +0,0 @@ -#!/bin/sh -# torque.setup - -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the -# License. A copy of the License is located at -# -# http://aws.amazon.com/asl/ -# -# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES -# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and -# limitations under the License. - -# USAGE: torque.setup [] - -if [ "$1" = "" ] ; then - echo "USAGE: torque.setup []" - exit 1 - fi - -unset PBSDEBUG -TRQ_CHECK=`pgrep trqauthd` -TRQ_CHECK_RES=$? -if [ "$TRQ_CHECK_RES" = "1" ]; then - TRQ_START=`trqauthd` - TRQ_START_RES=$? - if [ "$TRQ_START_RES" -ne "0" ]; then - echo "trqauthd failed to start!!! exiting setup" - exit 1 - else - echo "trqauthd successfully started" - fi -fi - -if [ "$2" = "" ] ; then - # obtain name obtained from reverse lookup of ip address - HOSTNAME=`hostname -f` -else - HOSTNAME=$2 -fi - -# enable operator privileges - -USER=$1@$HOSTNAME - -echo "initializing TORQUE (admin: $USER)" - -ps -ef | grep -v grep | grep pbs_server - -if [ "$?" -eq "0" ] ; then - echo "ERROR: pbs_server already running... run 'qterm' to stop pbs_server and rerun" - exit 1; -fi - -pbs_server -f -t create -# Starting in TORQUE 3.1 the server is multi-threaded. -# We need to pause a second to allow the server to finish coming -# up. If we go to qmgr right away it will fail. -sleep 2 - -ps -ef | grep -v grep | grep pbs_server - -if [ "$?" -ne "0" ] ; then - echo "ERROR: pbs_server failed to start, check syslog and server logs for more information" - exit 1; -fi - -echo set server operators += $USER@* | qmgr - -if [ "$?" -ne "0" ] ; then - echo "ERROR: cannot set TORQUE admins" - qterm - exit 1; -fi - -echo set server managers += $USER | qmgr - - -qmgr -c 'set server scheduling = true' -qmgr -c 'set server keep_completed = 300' -qmgr -c 'set server mom_job_sync = true' - -# create default queue - -qmgr -c 'create queue batch' -qmgr -c 'set queue batch queue_type = execution' -qmgr -c 'set queue batch started = true' -qmgr -c 'set queue batch enabled = true' -qmgr -c 'set queue batch resources_default.walltime = 1:00:00' -qmgr -c 'set queue batch resources_default.nodes = 1' - -qmgr -c 'set server default_queue = batch' - -qmgr -c 'set server auto_node_np = True' diff --git a/bootstrap/src/templates/openlava/lsb.hosts.MASTER b/bootstrap/src/templates/openlava/lsb.hosts.MASTER deleted file mode 100644 index 2c5bfb278e..0000000000 --- a/bootstrap/src/templates/openlava/lsb.hosts.MASTER +++ /dev/null @@ -1,45 +0,0 @@ -# -# The section "host" is optional. If no hosts are listed here, all hosts -# known by LSF will be used by Batch. Otherwise only the hosts listed will -# be used by Batch. The value of keyword HOST_NAME may be an official host -# name (see gethostbyname(3)), a host type/model name (see lsf.shared(5)), or -# the reserved word "default". The type/model name represents each of the -# hosts which are of that particular host type/model. The reserved -# word "default" represents all other hosts in the LSF cluster. - -# MXJ is the maximum number of jobs which can run on the host at one time. -# JL/U is the maximum number of jobs belonging to a user that can run on the -# host at one time. The default is no limit. - -# DISPATCH_WINDOW is the time windows when the host is available to run -# batch jobs. The default dispatch window is always open. - -# Other columns specify scheduling and stopping thresholds for LIM load -# indices. A "()" or "-" is used to specify the default value in a column -# and cannot be omitted. - -# All the host names (except default) in this example are commented out, -# since they are just examples which may not be suitable for some sites. -# Don't use non-default thresholds unless job dispatch needs to be controlled. - -Begin Host -HOST_NAME MXJ JL/U r1m pg ls tmp DISPATCH_WINDOW # Keywords -#host0 1 1 3.5/4.5 15/ 12/15 0 () # Example -#host1 () 2 3.5 15/18 12/ 0/ (5:19:00-1:8:30 20:00-8:30) -#host2 () () 3.5/5 18 15 () () # Example - 1024 () () () () () () # Example -default ! () () () () () () # Example -End Host - -# Host groups can be referenced by the queue file. Each line defines a host -# group. The first line contains key words; each subsequent line contains a -# group name, followed by white space, followed by the list of group members. -# The list of members should be enclosed in parentheses and separated by white -# space. This section is optional. - -# This example is commented out -#Begin HostGroup -#GROUP_NAME GROUP_MEMBER # Key words -#group0 (host0 host1) # Define a host group -#End HostGroup - diff --git a/bootstrap/src/templates/openlava/lsf.cluster.openlava.COMPUTE b/bootstrap/src/templates/openlava/lsf.cluster.openlava.COMPUTE deleted file mode 100644 index 0772a41690..0000000000 --- a/bootstrap/src/templates/openlava/lsf.cluster.openlava.COMPUTE +++ /dev/null @@ -1,29 +0,0 @@ -#----------------------------------------------------------------------- -# T H I S I S A O N E P E R C L U S T E R F I L E -# -# This is a sample cluster definition file. There is a cluster -# definition file for each cluster. This file's name should be -# lsf.cluster.. -# See lsf.cluster(5) and the "LSF Administrator's Guide". -# - -Begin Parameters -EXINTERVAL = 45 -End Parameters - -Begin ClusterAdmins -Administrators = openlava -End ClusterAdmins - -Begin Host -HOSTNAME model type server r1m RESOURCES - IntelXeon linux 1 3.5 (ms) - IntelXeon linux 1 3.5 (cs) -End Host - -Begin ResourceMap -RESOURCENAME LOCATION -# tmp2 [default] -# nio [all] -# console [default] -End ResourceMap diff --git a/bootstrap/src/templates/openlava/lsf.cluster.openlava.MASTER b/bootstrap/src/templates/openlava/lsf.cluster.openlava.MASTER deleted file mode 100644 index c7aeba4fc9..0000000000 --- a/bootstrap/src/templates/openlava/lsf.cluster.openlava.MASTER +++ /dev/null @@ -1,28 +0,0 @@ -#----------------------------------------------------------------------- -# T H I S I S A O N E P E R C L U S T E R F I L E -# -# This is a sample cluster definition file. There is a cluster -# definition file for each cluster. This file's name should be -# lsf.cluster.. -# See lsf.cluster(5) and the "LSF Administrator's Guide". -# - -Begin Parameters -EXINTERVAL = 45 -End Parameters - -Begin ClusterAdmins -Administrators = openlava -End ClusterAdmins - -Begin Host -HOSTNAME model type server r1m RESOURCES - IntelXeon linux 1 3.5 (ms) -End Host - -Begin ResourceMap -RESOURCENAME LOCATION -# tmp2 [default] -# nio [all] -# console [default] -End ResourceMap diff --git a/bootstrap/src/templates/openlava/lsf.conf.COMPUTE b/bootstrap/src/templates/openlava/lsf.conf.COMPUTE deleted file mode 100644 index 0c1da3e354..0000000000 --- a/bootstrap/src/templates/openlava/lsf.conf.COMPUTE +++ /dev/null @@ -1,42 +0,0 @@ -# -# openlava main configuration file lsf.conf -# This file is designed as Bourne Shell rc file -# and it is sourced by all openlava components. -# -LSF_SERVERDIR=/opt/openlava-2.2/sbin -LSF_BINDIR=/opt/openlava-2.2/bin -LSB_SHAREDIR=/opt/openlava-2.2/work -LSF_ENVDIR=/opt/openlava-2.2/etc - -# Configuration directories -LSF_CONFDIR=/opt/openlava-2.2/etc -LSB_CONFDIR=/opt/openlava-2.2/etc - -# Daemon log messages -LSF_LOGDIR=/opt/openlava-2.2/log -LSF_LOG_MASK=LOG_WARNING - -# Daemons listening ports must not -# be in use by other programs. -LSF_LIM_PORT=6322 -LSF_RES_PORT=6323 -LSB_MBD_PORT=6324 -LSB_SBD_PORT=6325 -# -# Use eauth authentication. -LSF_AUTH=eauth - -# Batch mail message handling -LSB_MAILTO=!U - -# Display shorthost list -LSB_SHORT_HOSTLIST=1 - -# Define the openlava Master for quicker start -LSF_SERVER_HOSTS="" - -# Do not use compute as Master -LIM_COMPUTE_ONLY=y - -# Ignore chksum error messages -LSF_LIM_IGNORE_CHECKSUM=y diff --git a/bootstrap/src/templates/openlava/lsf.conf.MASTER b/bootstrap/src/templates/openlava/lsf.conf.MASTER deleted file mode 100644 index 78ff798fab..0000000000 --- a/bootstrap/src/templates/openlava/lsf.conf.MASTER +++ /dev/null @@ -1,36 +0,0 @@ -# -# openlava main configuration file lsf.conf -# This file is designed as Bourne Shell rc file -# and it is sourced by all openlava components. -# -LSF_SERVERDIR=/opt/openlava-2.2/sbin -LSF_BINDIR=/opt/openlava-2.2/bin -LSB_SHAREDIR=/opt/openlava-2.2/work -LSF_ENVDIR=/opt/openlava-2.2/etc - -# Configuration directories -LSF_CONFDIR=/opt/openlava-2.2/etc -LSB_CONFDIR=/opt/openlava-2.2/etc - -# Daemon log messages -LSF_LOGDIR=/opt/openlava-2.2/log -LSF_LOG_MASK=LOG_WARNING - -# Daemons listening ports must not -# be in use by other programs. -LSF_LIM_PORT=6322 -LSF_RES_PORT=6323 -LSB_MBD_PORT=6324 -LSB_SBD_PORT=6325 -# -# Use eauth authentication. -LSF_AUTH=eauth - -# Batch mail message handling -LSB_MAILTO=!U - -# Display shorthost list -LSB_SHORT_HOSTLIST=1 - -# Ignore chksum error messages -LSF_LIM_IGNORE_CHECKSUM=y diff --git a/bootstrap/src/templates/openlava/openlava.csh b/bootstrap/src/templates/openlava/openlava.csh deleted file mode 100755 index 4463a65183..0000000000 --- a/bootstrap/src/templates/openlava/openlava.csh +++ /dev/null @@ -1,11 +0,0 @@ -# -# cshrc.lsf: -# Sets the C shell user environment for openlava commands -# -setenv LSF_ENVDIR /opt/openlava-2.2/etc -set path = ($path /opt/openlava-2.2/bin) -if ( ${?MANPATH} ) then - setenv MANPATH ${MANPATH}:/opt/openlava-2.2/share/man -else - setenv MANPATH :/opt/openlava-2.2/share/man -endif diff --git a/bootstrap/src/templates/openlava/openlava.sh b/bootstrap/src/templates/openlava/openlava.sh deleted file mode 100755 index fbdb435f3c..0000000000 --- a/bootstrap/src/templates/openlava/openlava.sh +++ /dev/null @@ -1,10 +0,0 @@ -# -# openlava.sh: -# Setup openlava environment variables -# - -LSF_ENVDIR=/opt/openlava-2.2/etc -PATH=$PATH:/opt/openlava-2.2/bin -MANPATH=$MANPATH:/opt/openlava-2.2/share/man - -export LSF_ENVDIR PATH MANPATH diff --git a/bootstrap/src/templates/os/exports.MASTER b/bootstrap/src/templates/os/exports.MASTER deleted file mode 100644 index f3b6e9fda0..0000000000 --- a/bootstrap/src/templates/os/exports.MASTER +++ /dev/null @@ -1,3 +0,0 @@ -/home (rw,no_root_squash) - (rw,no_root_squash) -/opt/sge (rw,no_root_squash) diff --git a/bootstrap/src/templates/os/gmetad.conf.MASTER b/bootstrap/src/templates/os/gmetad.conf.MASTER deleted file mode 100644 index 5920afb0e4..0000000000 --- a/bootstrap/src/templates/os/gmetad.conf.MASTER +++ /dev/null @@ -1,166 +0,0 @@ -# This is an example of a Ganglia Meta Daemon configuration file -# http://ganglia.sourceforge.net/ -# -# -#------------------------------------------------------------------------------- -# Setting the debug_level to 1 will keep daemon in the forground and -# show only error messages. Setting this value higher than 1 will make -# gmetad output debugging information and stay in the foreground. -# default: 0 -# debug_level 10 -# -#------------------------------------------------------------------------------- -# What to monitor. The most important section of this file. -# -# The data_source tag specifies either a cluster or a grid to -# monitor. If we detect the source is a cluster, we will maintain a complete -# set of RRD databases for it, which can be used to create historical -# graphs of the metrics. If the source is a grid (it comes from another gmetad), -# we will only maintain summary RRDs for it. -# -# Format: -# data_source "my cluster" [polling interval] address1:port addreses2:port ... -# -# The keyword 'data_source' must immediately be followed by a unique -# string which identifies the source, then an optional polling interval in -# seconds. The source will be polled at this interval on average. -# If the polling interval is omitted, 15sec is asssumed. -# -# If you choose to set the polling interval to something other than the default, -# note that the web frontend determines a host as down if its TN value is less -# than 4 * TMAX (20sec by default). Therefore, if you set the polling interval -# to something around or greater than 80sec, this will cause the frontend to -# incorrectly display hosts as down even though they are not. -# -# A list of machines which service the data source follows, in the -# format ip:port, or name:port. If a port is not specified then 8649 -# (the default gmond port) is assumed. -# default: There is no default value -# -# data_source "my cluster" 10 localhost my.machine.edu:8649 1.2.3.5:8655 -# data_source "my grid" 50 1.3.4.7:8655 grid.org:8651 grid-backup.org:8651 -# data_source "another source" 1.3.4.7:8655 1.3.4.8 - -data_source "" localhost - -# -# Round-Robin Archives -# You can specify custom Round-Robin archives here (defaults are listed below) -# -# Old Default RRA: Keep 1 hour of metrics at 15 second resolution. 1 day at 6 minute -# RRAs "RRA:AVERAGE:0.5:1:244" "RRA:AVERAGE:0.5:24:244" "RRA:AVERAGE:0.5:168:244" "RRA:AVERAGE:0.5:672:244" \ -# "RRA:AVERAGE:0.5:5760:374" -# New Default RRA -# Keep 5856 data points at 15 second resolution assuming 15 second (default) polling. That's 1 day -# Two weeks of data points at 1 minute resolution (average) -#RRAs "RRA:AVERAGE:0.5:1:5856" "RRA:AVERAGE:0.5:4:20160" "RRA:AVERAGE:0.5:40:52704" - -# -#------------------------------------------------------------------------------- -# Scalability mode. If on, we summarize over downstream grids, and respect -# authority tags. If off, we take on 2.5.0-era behavior: we do not wrap our output -# in tags, we ignore all tags we see, and always assume -# we are the "authority" on data source feeds. This approach does not scale to -# large groups of clusters, but is provided for backwards compatibility. -# default: on -# scalable off -# -#------------------------------------------------------------------------------- -# The name of this Grid. All the data sources above will be wrapped in a GRID -# tag with this name. -# default: unspecified -gridname "" -# -#------------------------------------------------------------------------------- -# The authority URL for this grid. Used by other gmetads to locate graphs -# for our data sources. Generally points to a ganglia/ -# website on this machine. -# default: "http://hostname/ganglia/", -# where hostname is the name of this machine, as defined by gethostname(). -# authority "http://mycluster.org/newprefix/" -# -#------------------------------------------------------------------------------- -# List of machines this gmetad will share XML with. Localhost -# is always trusted. -# default: There is no default value -# trusted_hosts 127.0.0.1 169.229.50.165 my.gmetad.org -# -#------------------------------------------------------------------------------- -# If you want any host which connects to the gmetad XML to receive -# data, then set this value to "on" -# default: off -# all_trusted on -# -#------------------------------------------------------------------------------- -# If you don't want gmetad to setuid then set this to off -# default: on -# setuid off -# -#------------------------------------------------------------------------------- -# User gmetad will setuid to (defaults to "nobody") -# default: "nobody" -# setuid_username "nobody" -# -#------------------------------------------------------------------------------- -# Umask to apply to created rrd files and grid directory structure -# default: 0 (files are public) -# umask 022 -# -#------------------------------------------------------------------------------- -# The port gmetad will answer requests for XML -# default: 8651 -# xml_port 8651 -# -#------------------------------------------------------------------------------- -# The port gmetad will answer queries for XML. This facility allows -# simple subtree and summation views of the XML tree. -# default: 8652 -# interactive_port 8652 -# -#------------------------------------------------------------------------------- -# The number of threads answering XML requests -# default: 4 -# server_threads 10 -# -#------------------------------------------------------------------------------- -# Where gmetad stores its round-robin databases -# default: "/var/lib/ganglia/rrds" -# rrd_rootdir "/some/other/place" -# -#------------------------------------------------------------------------------- -# List of metric prefixes this gmetad will not summarize at cluster or grid level. -# default: There is no default value -# unsummarized_metrics diskstat CPU -# -#------------------------------------------------------------------------------- -# In earlier versions of gmetad, hostnames were handled in a case -# sensitive manner -# If your hostname directories have been renamed to lower case, -# set this option to 0 to disable backward compatibility. -# From version 3.2, backwards compatibility will be disabled by default. -# default: 1 (for gmetad < 3.2) -# default: 0 (for gmetad >= 3.2) -case_sensitive_hostnames 0 - -#------------------------------------------------------------------------------- -# It is now possible to export all the metrics collected by gmetad directly to -# graphite by setting the following attributes. -# -# The hostname or IP address of the Graphite server -# default: unspecified -# carbon_server "my.graphite.box" -# -# The port on which Graphite is listening -# default: 2003 -# carbon_port 2003 -# -# A prefix to prepend to the metric names exported by gmetad. Graphite uses dot- -# separated paths to organize and refer to metrics. -# default: unspecified -# graphite_prefix "datacenter1.gmetad" -# -# Number of milliseconds gmetad will wait for a response from the graphite server -# default: 500 -# carbon_timeout 500 -# - diff --git a/bootstrap/src/templates/os/gmond.conf.COMPUTE b/bootstrap/src/templates/os/gmond.conf.COMPUTE deleted file mode 100644 index 1454eb689d..0000000000 --- a/bootstrap/src/templates/os/gmond.conf.COMPUTE +++ /dev/null @@ -1,361 +0,0 @@ -/* This configuration is as close to 2.5.x default behavior as possible - The values closely match ./gmond/metric.h definitions in 2.5.x */ -globals { - daemonize = yes - setuid = yes - user = nobody - debug_level = 0 - max_udp_msg_len = 1472 - mute = no - deaf = no - allow_extra_data = yes - host_dmax = 3600 /*secs. Expires (removes from web interface) hosts in 1 hour */ - host_tmax = 20 /*secs */ - cleanup_threshold = 300 /*secs */ - gexec = no - send_metadata_interval = 0 /*secs */ -} - -/* - * The cluster attributes specified will be used as part of the - * tag that will wrap all hosts collected by this instance. - */ -cluster { - name = "" -} - -/* The host section describes attributes of the host, like the location */ -host { - location = "" -} - -/* Feel free to specify as many udp_send_channels as you like. Gmond - used to only support having a single channel */ -udp_send_channel { - bind_hostname = yes # Highly recommended, soon to be default. - # This option tells gmond to use a source address - # that resolves to the machine's hostname. Without - # this, the metrics may appear to come from any - # interface and the DNS names associated with - # those IPs will be used to create the RRDs. - host = - port = 8649 - ttl = 1 -} - -/* You can specify as many udp_recv_channels as you like as well. */ -udp_recv_channel { - port = 8649 -} - -/* You can specify as many tcp_accept_channels as you like to share - an xml description of the state of the cluster */ -tcp_accept_channel { - port = 8649 -} - -/* Channel to receive sFlow datagrams */ -#udp_recv_channel { -# port = 6343 -#} - -/* Optional sFlow settings */ -#sflow { -# udp_port = 6343 -# accept_vm_metrics = yes -# accept_jvm_metrics = yes -# multiple_jvm_instances = no -# accept_http_metrics = yes -# multiple_http_instances = no -# accept_memcache_metrics = yes -# multiple_memcache_instances = no -#} - -/* Each metrics module that is referenced by gmond must be specified and - loaded. If the module has been statically linked with gmond, it does - not require a load path. However all dynamically loadable modules must - include a load path. */ -modules { - module { - name = "core_metrics" - } - module { - name = "cpu_module" - path = "modcpu.so" - } - module { - name = "disk_module" - path = "moddisk.so" - } - module { - name = "load_module" - path = "modload.so" - } - module { - name = "mem_module" - path = "modmem.so" - } - module { - name = "net_module" - path = "modnet.so" - } - module { - name = "proc_module" - path = "modproc.so" - } - module { - name = "sys_module" - path = "modsys.so" - } -} - -/* The old internal 2.5.x metric array has been replaced by the following - collection_group directives. What follows is the default behavior for - collecting and sending metrics that is as close to 2.5.x behavior as - possible. */ - -/* This collection group will cause a heartbeat (or beacon) to be sent every - 20 seconds. In the heartbeat is the GMOND_STARTED data which expresses - the age of the running gmond. */ -collection_group { - collect_once = yes - time_threshold = 20 - metric { - name = "heartbeat" - } -} - -/* This collection group will send general info about this host every - 1200 secs. - This information doesn't change between reboots and is only collected - once. */ -collection_group { - collect_once = yes - time_threshold = 1200 - metric { - name = "cpu_num" - title = "CPU Count" - } - metric { - name = "cpu_speed" - title = "CPU Speed" - } - metric { - name = "mem_total" - title = "Memory Total" - } - /* Should this be here? Swap can be added/removed between reboots. */ - metric { - name = "swap_total" - title = "Swap Space Total" - } - metric { - name = "boottime" - title = "Last Boot Time" - } - metric { - name = "machine_type" - title = "Machine Type" - } - metric { - name = "os_name" - title = "Operating System" - } - metric { - name = "os_release" - title = "Operating System Release" - } - metric { - name = "location" - title = "Location" - } -} - -/* This collection group will send the status of gexecd for this host - every 300 secs.*/ -/* Unlike 2.5.x the default behavior is to report gexecd OFF. */ -collection_group { - collect_once = yes - time_threshold = 300 - metric { - name = "gexec" - title = "Gexec Status" - } -} - -/* This collection group will collect the CPU status info every 20 secs. - The time threshold is set to 90 seconds. In honesty, this - time_threshold could be set significantly higher to reduce - unneccessary network chatter. */ -collection_group { - collect_every = 20 - time_threshold = 90 - /* CPU status */ - metric { - name = "cpu_user" - value_threshold = "1.0" - title = "CPU User" - } - metric { - name = "cpu_system" - value_threshold = "1.0" - title = "CPU System" - } - metric { - name = "cpu_idle" - value_threshold = "5.0" - title = "CPU Idle" - } - metric { - name = "cpu_nice" - value_threshold = "1.0" - title = "CPU Nice" - } - metric { - name = "cpu_aidle" - value_threshold = "5.0" - title = "CPU aidle" - } - metric { - name = "cpu_wio" - value_threshold = "1.0" - title = "CPU wio" - } - /* The next two metrics are optional if you want more detail... - ... since they are accounted for in cpu_system. - metric { - name = "cpu_intr" - value_threshold = "1.0" - title = "CPU intr" - } - metric { - name = "cpu_sintr" - value_threshold = "1.0" - title = "CPU sintr" - } - */ -} - -collection_group { - collect_every = 20 - time_threshold = 90 - /* Load Averages */ - metric { - name = "load_one" - value_threshold = "1.0" - title = "One Minute Load Average" - } - metric { - name = "load_five" - value_threshold = "1.0" - title = "Five Minute Load Average" - } - metric { - name = "load_fifteen" - value_threshold = "1.0" - title = "Fifteen Minute Load Average" - } -} - -/* This group collects the number of running and total processes */ -collection_group { - collect_every = 80 - time_threshold = 950 - metric { - name = "proc_run" - value_threshold = "1.0" - title = "Total Running Processes" - } - metric { - name = "proc_total" - value_threshold = "1.0" - title = "Total Processes" - } -} - -/* This collection group grabs the volatile memory metrics every 40 secs and - sends them at least every 180 secs. This time_threshold can be increased - significantly to reduce unneeded network traffic. */ -collection_group { - collect_every = 40 - time_threshold = 180 - metric { - name = "mem_free" - value_threshold = "1024.0" - title = "Free Memory" - } - metric { - name = "mem_shared" - value_threshold = "1024.0" - title = "Shared Memory" - } - metric { - name = "mem_buffers" - value_threshold = "1024.0" - title = "Memory Buffers" - } - metric { - name = "mem_cached" - value_threshold = "1024.0" - title = "Cached Memory" - } - metric { - name = "swap_free" - value_threshold = "1024.0" - title = "Free Swap Space" - } -} - -collection_group { - collect_every = 40 - time_threshold = 300 - metric { - name = "bytes_out" - value_threshold = 4096 - title = "Bytes Sent" - } - metric { - name = "bytes_in" - value_threshold = 4096 - title = "Bytes Received" - } - metric { - name = "pkts_in" - value_threshold = 256 - title = "Packets Received" - } - metric { - name = "pkts_out" - value_threshold = 256 - title = "Packets Sent" - } -} - -/* Different than 2.5.x default since the old config made no sense */ -collection_group { - collect_every = 1800 - time_threshold = 3600 - metric { - name = "disk_total" - value_threshold = 1.0 - title = "Total Disk Space" - } -} - -collection_group { - collect_every = 40 - time_threshold = 180 - metric { - name = "disk_free" - value_threshold = 1.0 - title = "Disk Space Available" - } - metric { - name = "part_max_used" - value_threshold = 1.0 - title = "Maximum Disk Space Used" - } -} - -include ("/etc/ganglia/conf.d/*.conf") - diff --git a/bootstrap/src/templates/os/gmond.conf.MASTER b/bootstrap/src/templates/os/gmond.conf.MASTER deleted file mode 100644 index 1454eb689d..0000000000 --- a/bootstrap/src/templates/os/gmond.conf.MASTER +++ /dev/null @@ -1,361 +0,0 @@ -/* This configuration is as close to 2.5.x default behavior as possible - The values closely match ./gmond/metric.h definitions in 2.5.x */ -globals { - daemonize = yes - setuid = yes - user = nobody - debug_level = 0 - max_udp_msg_len = 1472 - mute = no - deaf = no - allow_extra_data = yes - host_dmax = 3600 /*secs. Expires (removes from web interface) hosts in 1 hour */ - host_tmax = 20 /*secs */ - cleanup_threshold = 300 /*secs */ - gexec = no - send_metadata_interval = 0 /*secs */ -} - -/* - * The cluster attributes specified will be used as part of the - * tag that will wrap all hosts collected by this instance. - */ -cluster { - name = "" -} - -/* The host section describes attributes of the host, like the location */ -host { - location = "" -} - -/* Feel free to specify as many udp_send_channels as you like. Gmond - used to only support having a single channel */ -udp_send_channel { - bind_hostname = yes # Highly recommended, soon to be default. - # This option tells gmond to use a source address - # that resolves to the machine's hostname. Without - # this, the metrics may appear to come from any - # interface and the DNS names associated with - # those IPs will be used to create the RRDs. - host = - port = 8649 - ttl = 1 -} - -/* You can specify as many udp_recv_channels as you like as well. */ -udp_recv_channel { - port = 8649 -} - -/* You can specify as many tcp_accept_channels as you like to share - an xml description of the state of the cluster */ -tcp_accept_channel { - port = 8649 -} - -/* Channel to receive sFlow datagrams */ -#udp_recv_channel { -# port = 6343 -#} - -/* Optional sFlow settings */ -#sflow { -# udp_port = 6343 -# accept_vm_metrics = yes -# accept_jvm_metrics = yes -# multiple_jvm_instances = no -# accept_http_metrics = yes -# multiple_http_instances = no -# accept_memcache_metrics = yes -# multiple_memcache_instances = no -#} - -/* Each metrics module that is referenced by gmond must be specified and - loaded. If the module has been statically linked with gmond, it does - not require a load path. However all dynamically loadable modules must - include a load path. */ -modules { - module { - name = "core_metrics" - } - module { - name = "cpu_module" - path = "modcpu.so" - } - module { - name = "disk_module" - path = "moddisk.so" - } - module { - name = "load_module" - path = "modload.so" - } - module { - name = "mem_module" - path = "modmem.so" - } - module { - name = "net_module" - path = "modnet.so" - } - module { - name = "proc_module" - path = "modproc.so" - } - module { - name = "sys_module" - path = "modsys.so" - } -} - -/* The old internal 2.5.x metric array has been replaced by the following - collection_group directives. What follows is the default behavior for - collecting and sending metrics that is as close to 2.5.x behavior as - possible. */ - -/* This collection group will cause a heartbeat (or beacon) to be sent every - 20 seconds. In the heartbeat is the GMOND_STARTED data which expresses - the age of the running gmond. */ -collection_group { - collect_once = yes - time_threshold = 20 - metric { - name = "heartbeat" - } -} - -/* This collection group will send general info about this host every - 1200 secs. - This information doesn't change between reboots and is only collected - once. */ -collection_group { - collect_once = yes - time_threshold = 1200 - metric { - name = "cpu_num" - title = "CPU Count" - } - metric { - name = "cpu_speed" - title = "CPU Speed" - } - metric { - name = "mem_total" - title = "Memory Total" - } - /* Should this be here? Swap can be added/removed between reboots. */ - metric { - name = "swap_total" - title = "Swap Space Total" - } - metric { - name = "boottime" - title = "Last Boot Time" - } - metric { - name = "machine_type" - title = "Machine Type" - } - metric { - name = "os_name" - title = "Operating System" - } - metric { - name = "os_release" - title = "Operating System Release" - } - metric { - name = "location" - title = "Location" - } -} - -/* This collection group will send the status of gexecd for this host - every 300 secs.*/ -/* Unlike 2.5.x the default behavior is to report gexecd OFF. */ -collection_group { - collect_once = yes - time_threshold = 300 - metric { - name = "gexec" - title = "Gexec Status" - } -} - -/* This collection group will collect the CPU status info every 20 secs. - The time threshold is set to 90 seconds. In honesty, this - time_threshold could be set significantly higher to reduce - unneccessary network chatter. */ -collection_group { - collect_every = 20 - time_threshold = 90 - /* CPU status */ - metric { - name = "cpu_user" - value_threshold = "1.0" - title = "CPU User" - } - metric { - name = "cpu_system" - value_threshold = "1.0" - title = "CPU System" - } - metric { - name = "cpu_idle" - value_threshold = "5.0" - title = "CPU Idle" - } - metric { - name = "cpu_nice" - value_threshold = "1.0" - title = "CPU Nice" - } - metric { - name = "cpu_aidle" - value_threshold = "5.0" - title = "CPU aidle" - } - metric { - name = "cpu_wio" - value_threshold = "1.0" - title = "CPU wio" - } - /* The next two metrics are optional if you want more detail... - ... since they are accounted for in cpu_system. - metric { - name = "cpu_intr" - value_threshold = "1.0" - title = "CPU intr" - } - metric { - name = "cpu_sintr" - value_threshold = "1.0" - title = "CPU sintr" - } - */ -} - -collection_group { - collect_every = 20 - time_threshold = 90 - /* Load Averages */ - metric { - name = "load_one" - value_threshold = "1.0" - title = "One Minute Load Average" - } - metric { - name = "load_five" - value_threshold = "1.0" - title = "Five Minute Load Average" - } - metric { - name = "load_fifteen" - value_threshold = "1.0" - title = "Fifteen Minute Load Average" - } -} - -/* This group collects the number of running and total processes */ -collection_group { - collect_every = 80 - time_threshold = 950 - metric { - name = "proc_run" - value_threshold = "1.0" - title = "Total Running Processes" - } - metric { - name = "proc_total" - value_threshold = "1.0" - title = "Total Processes" - } -} - -/* This collection group grabs the volatile memory metrics every 40 secs and - sends them at least every 180 secs. This time_threshold can be increased - significantly to reduce unneeded network traffic. */ -collection_group { - collect_every = 40 - time_threshold = 180 - metric { - name = "mem_free" - value_threshold = "1024.0" - title = "Free Memory" - } - metric { - name = "mem_shared" - value_threshold = "1024.0" - title = "Shared Memory" - } - metric { - name = "mem_buffers" - value_threshold = "1024.0" - title = "Memory Buffers" - } - metric { - name = "mem_cached" - value_threshold = "1024.0" - title = "Cached Memory" - } - metric { - name = "swap_free" - value_threshold = "1024.0" - title = "Free Swap Space" - } -} - -collection_group { - collect_every = 40 - time_threshold = 300 - metric { - name = "bytes_out" - value_threshold = 4096 - title = "Bytes Sent" - } - metric { - name = "bytes_in" - value_threshold = 4096 - title = "Bytes Received" - } - metric { - name = "pkts_in" - value_threshold = 256 - title = "Packets Received" - } - metric { - name = "pkts_out" - value_threshold = 256 - title = "Packets Sent" - } -} - -/* Different than 2.5.x default since the old config made no sense */ -collection_group { - collect_every = 1800 - time_threshold = 3600 - metric { - name = "disk_total" - value_threshold = 1.0 - title = "Total Disk Space" - } -} - -collection_group { - collect_every = 40 - time_threshold = 180 - metric { - name = "disk_free" - value_threshold = 1.0 - title = "Disk Space Available" - } - metric { - name = "part_max_used" - value_threshold = 1.0 - title = "Maximum Disk Space Used" - } -} - -include ("/etc/ganglia/conf.d/*.conf") - diff --git a/bootstrap/src/templates/os/motd.MASTER b/bootstrap/src/templates/os/motd.MASTER deleted file mode 100644 index 9f4d169930..0000000000 --- a/bootstrap/src/templates/os/motd.MASTER +++ /dev/null @@ -1,11 +0,0 @@ - - ___ ___ _ _ ___ _ _ _ ___ _____ ___ ___ - / __| __| \| |/ __| | | | | / __|_ _| __| _ \ - | (__| _|| .` | (__| |_| |_| \__ \ | | | _|| / - \___|_| |_|\_|\___|____\___/|___/ |_| |___|_|_\ - - Welcome to CFNCLUSTER! - A simple way to launch HPC clusters on AWS. - - This is the Master server. - diff --git a/bootstrap/src/templates/os/tvncservers.MASTER b/bootstrap/src/templates/os/tvncservers.MASTER deleted file mode 100644 index 72d3400389..0000000000 --- a/bootstrap/src/templates/os/tvncservers.MASTER +++ /dev/null @@ -1,21 +0,0 @@ -# The VNCSERVERS variable is a list of display:user pairs, separated by -# spaces. -# -# Uncomment the line below to start a VNC server on display :1 as 'myusername' -# (adjust this to your own user name). You will also need to configure a VNC -# password (run 'man -M {TurboVNC_directory}/man vncpasswd' for instructions on -# how to set this) or another form of authentication. See the TurboVNC User's -# Guide for more information about the authentication methods available in -# TurboVNC. -# -# DO NOT RUN THIS SERVICE if your local area network is untrusted! See the -# TurboVNC User's Guide for information about tunneling TurboVNC over SSH. -# -# Use "-nohttpd" to prevent web-based VNC clients from connecting. -# -# Use "-localhost" to prevent remote VNC clients from connecting except when -# doing so through a secure tunnel. See the TurboVNC User's Guide and the -# vncviewer and Xvnc man pages for more information. - -VNCSERVERS="1:ec2-user" -VNCSERVERARGS[1]="-geometry 1024x768 -nohttpd -localhost" diff --git a/bootstrap/src/templates/sge/sge_inst.conf b/bootstrap/src/templates/sge/sge_inst.conf deleted file mode 100644 index 6e0593f56c..0000000000 --- a/bootstrap/src/templates/sge/sge_inst.conf +++ /dev/null @@ -1,261 +0,0 @@ -#------------------------------------------------- -*- sh -*- -# SGE default configuration file -#------------------------------------------------- - -# Use always fully qualified pathnames, please -# This file is sourced by a Bourne shell script, so the assignments -# must be in sh syntax, i.e. -# = -# with no space around "=", and must be quoted if it includes -# whitespace or sh metacharacters that should be read literally. - -# SGE_ROOT Path, this is basic information -#(mandatory for qmaster and execd installation) -SGE_ROOT="/opt/sge" - -# SGE_QMASTER_PORT is used by qmaster for communication -# Please enter the port in this way: 1300 -# not like this: 1300/tcp -# (mandatory for qmaster installation) -SGE_QMASTER_PORT=6444 - -# SGE_EXECD_PORT is used by execd for communication -# Please enter the port in this way: 1300 -# Not like this: 1300/tcp -# (mandatory for qmaster installation) -SGE_EXECD_PORT=6445 - -# SGE_ENABLE_SMF -# if set to false SMF will not control SGE services -SGE_ENABLE_SMF="false" - -# SGE_CLUSTER_NAME -# Name of this cluster (used by SMF as a service instance name) -SGE_CLUSTER_NAME=p6444 - -# SGE_JMX_PORT is used by qmaster's JMX MBean server -# mandatory if install_qmaster -jmx -auto -# range: 1024-65500 -SGE_JMX_PORT="Please enter port" - -# SGE_JMX_SSL is used by qmaster's JMX MBean server -# if SGE_JMX_SSL=true, the mbean server connection uses -# SSL authentication -SGE_JMX_SSL="false" - -# SGE_JMX_SSL_CLIENT is used by qmaster's JMX MBean server -# if SGE_JMX_SSL_CLIENT=true, the mbean server connection uses -# SSL authentication of the client in addition -SGE_JMX_SSL_CLIENT="false" - -# SGE_JMX_SSL_KEYSTORE is used by qmaster's JMX MBean server -# if SGE_JMX_SSL=true the server keystore found here is used -# e.g. /var/lib/sgeCA/port//private/keystore -SGE_JMX_SSL_KEYSTORE="Please enter absolute path of server keystore file" - -# SGE_JMX_SSL_KEYSTORE_PW is used by qmaster's JMX MBean server -# password for the SGE_JMX_SSL_KEYSTORE file -SGE_JMX_SSL_KEYSTORE_PW="Please enter the server keystore password" - -# SGE_JVM_LIB_PATH is used by qmaster's jvm thread -# path to libjvm.so -# If value is missing or set to "none", the JMX thread will not be -# installed. When the value is empty, or the path does not exist on -# the system, Grid Engine will try to find a correct value. If it -# cannot do so, the value is set to "jvmlib_missing" and the JMX -# thread will be configured but will fail to start -SGE_JVM_LIB_PATH="Please enter absolute path of libjvm.so" - -# SGE_ADDITIONAL_JVM_ARGS is used by qmaster's jvm thread -# jvm specific arguments as -verbose:jni etc. -# optional, can be empty -SGE_ADDITIONAL_JVM_ARGS="-Xmx256m" - -# CELL_NAME, will be a directory in SGE_ROOT, contains the common dir -# Please enter only the name of the cell. No path please -# (mandatory for qmaster and execd installation) -CELL_NAME="default" - -# ADMIN_USER, if you want to use a different admin user than the owner -# of SGE_ROOT, you have to enter the user name here -# Leaving this blank, the owner of the SGE_ROOT dir will be used as admin user -ADMIN_USER=sgeadmin - -# The directory where qmaster spools the parts which are not spooled by DB -# (mandatory for qmaster installation) -QMASTER_SPOOL_DIR=$SGE_ROOT/$CELL_NAME/spool/qmaster - -# The directory where the execd spools (active jobs) -# This entry is needed even if you are going to use -# berkeley db spooling. Only cluster configuration and jobs will -# be spooled in the database. The execution daemon still needs a spool -# directory -# (mandatory for qmaster installation) -EXECD_SPOOL_DIR=$SGE_ROOT/$CELL_NAME/spool - -# For monitoring and accounting of jobs, every job will get -# unique GID. So you have to enter a free GID Range, which -# is assigned to each job running on a machine. -# If you want to run 100 Jobs at the same time on one host you -# have to enter a GID-Range like that: 16000-16100 -# (mandatory for qmaster installation) -GID_RANGE="20000-21000" - -# If SGE is compiled with -spool-dynamic, you have to enter here which -# spooling method should be used. (classic or berkeleydb) -# (mandatory for qmaster installation) -SPOOLING_METHOD="classic" - -# The directory where the DB spools -# If berkeley db spooling is used, it must contain the path to -# the spooling db. Please enter the full path. (eg. /tmp/data/spooldb) -# Remember, this directory must normally be local on the qmaster host. -# An NFS4 mount is supposed to be safe, and NFS2/3, or other remote -# filesystems can be used if the "private" bootstrap option is given. -DB_SPOOLING_DIR="spooldb" - -# This parameter sets the number of parallel installation processes. -# To prevents a system overload, or exceeding the number of open file -# descriptors, the user can limit the number of parallel install processes. -# e.g. set PAR_EXECD_INST_COUNT="20", maximum 20 execds are installed in -# parallel. -PAR_EXECD_INST_COUNT="20" - -# A list of hosts which should become admin hosts -# If you do not enter any host here, you have to add all of your hosts -# by hand after the installation. The example works without any entry -ADMIN_HOST_LIST="" - -# A list of hosts which should become submit hosts -# If you do not enter any host here, you have to add all of your hosts -# by hand after the installation. The example works without any entry -SUBMIT_HOST_LIST="" - -# A list of hosts which should become exec hosts -# If you do not enter any host here, you have to add all of your hosts -# by hand after the installation. The example works without any entry -# (mandatory for execution host installation) -EXEC_HOST_LIST=`hostname` - -# The directory where the execd spools (local configuration) -# If you want configure your execution daemons to spool in -# a local directory, you have to enter that directory here. -# If you do not want to configure a local execution host spool directory -# please leave this empty -EXECD_SPOOL_DIR_LOCAL="/var/spool/sge" - -# If true, the domainnames will be ignored during the hostname resolving -# if false, the fully qualified domain name will be used for name resolving -HOSTNAME_RESOLVING="true" - -# Shell which should be used for remote installation (rsh/ssh) -# This is only supported if your hosts and rshd/sshd are configured -# not to ask for a password, or prompting with any message. -SHELL_NAME="ssh" - -# This remote copy command is used for CSP installation. -# The script needs the remote copy command for distributing -# the CSP certificates. Using SSH the command scp has to be entered, -# using the not so secure rsh, the command rcp has to be entered. -# Both need a passwordless ssh/rsh connection to the hosts which -# should be connected to. (Mandatory for CSP installation mode) -COPY_COMMAND="scp" - -# Enter your default domain, if you are using /etc/hosts or NIS configuration -DEFAULT_DOMAIN="none" - -# If a job stops, fails, or finishes, you can send mail to this address -ADMIN_MAIL="root" - -# If true, the rc scripts (sgemaster, sgeexecd) will be added -# to start automatically during boottime -ADD_TO_RC="true" - -# If this is "true" the file permissions of executables will be set to 755 -# and of ordinary files to 644. -SET_FILE_PERMS="true" - -# This option is not implemented, yet. -# When a exechost should be uninstalled, the running jobs will be rescheduled -RESCHEDULE_JOBS="wait" - -# Enter one of the three distributed scheduler tuning configuration sets -# (1=normal, 2=high, 3=max) -SCHEDD_CONF="1" - -# The name of the shadow host. This host must have read/write permission -# to the qmaster spool directory -# If you want to setup a shadow host, you must enter the servername -# (mandatory for shadow host installation) -SHADOW_HOST="" - -# Remove these execution hosts in automatic mode -# (mandatory for uninstallation of execution hosts) -EXEC_HOST_LIST_RM="" - -# This option is used for startup script removing. -# If true, all rc startup scripts will be removed during -# automatic deinstallation. If false, the scripts won't -# be touched. -# (mandatory for uninstallation of execution/qmaster hosts) -REMOVE_RC="true" - -# This is a Windows specific part of the auto isntallation template -# If you going to install windows executions hosts, you have to enable the -# windows support. To do this, please set the WINDOWS_SUPPORT variable -# to "true". ("false" is disabled) -# (Mandatory for qmaster installation. By default WINDOWS_SUPPORT is -# disabled) -WINDOWS_SUPPORT="false" - -# Enabling the WINDOWS_SUPPORT recommends the following parameter. -# The WIN_ADMIN_NAME will be added to the list of SGE managers. -# Without adding the WIN_ADMIN_NAME, the execution host installation -# won't work correctly. -# WIN_ADMIN_NAME is set to "Administrator", which is default on most -# Windows systems. In some cases the WIN_ADMIN_NAME can be prefixed with -# the windows domain name (eg. DOMAIN+Administrator) -# (Mandatory for qmaster installation if windows hosts should be installed) -WIN_ADMIN_NAME="Administrator" - -# This parameter is used to switch between local ADMINUSER and Windows -# Domain Adminuser. Setting the WIN_DOMAIN_ACCESS variable to true, the -# Adminuser will be a Windows Domain User. It is recommended that -# a Windows Domain Server is configured and the Windows Domain User is -# created. Setting this variable to false, the local Adminuser will be -# used as ADMINUSER. The install script tries to create this user account -# but we recommend, because it will be safer, to create this user -# before running the installation. -# (Mandatory for qmaster installation if windows hosts should be installed) -WIN_DOMAIN_ACCESS="false" - -# This section is used for CSP installation mode. -# CSP_RECREATE recreates the certs on each installation, if true. -# If false, the certs will be created if they don't exist. -# Existing certs won't be overwritten. (Mandatory for CSP install) -CSP_RECREATE="true" - -# The created certs won't be copied if this option is set to false -# If true, the script tries to copy the generated certs. This -# requires passwordless ssh/rsh access for user root to the -# execution hosts -CSP_COPY_CERTS="false" - -# csp information, your country code (only 2 characters) -# (mandatory for csp install) -CSP_COUNTRY_CODE="DE" - -# your state (mandatory for csp install) -CSP_STATE="Germany" - -# your location, e.g. the building (mandatory for csp install) -CSP_LOCATION="Building" - -# your arganisation (mandatory for csp install) -CSP_ORGA="Organisation" - -# your organisation unit (mandatory for csp install) -CSP_ORGA_UNIT="Organisation_unit" - -# your email (mandatory for csp install) -CSP_MAIL_ADDRESS="name@yourdomain.com" diff --git a/bootstrap/src/templates/torque/config.COMPUTE b/bootstrap/src/templates/torque/config.COMPUTE deleted file mode 100644 index 2eac2471b2..0000000000 --- a/bootstrap/src/templates/torque/config.COMPUTE +++ /dev/null @@ -1,2 +0,0 @@ -$pbsserver # hostname running pbs server -$logevent 225 # bitmap of which events to log diff --git a/bootstrap/src/templates/torque/server_name.COMPUTE b/bootstrap/src/templates/torque/server_name.COMPUTE deleted file mode 100644 index 488399503c..0000000000 --- a/bootstrap/src/templates/torque/server_name.COMPUTE +++ /dev/null @@ -1 +0,0 @@ - diff --git a/bootstrap/src/templates/torque/server_name.MASTER b/bootstrap/src/templates/torque/server_name.MASTER deleted file mode 100644 index 488399503c..0000000000 --- a/bootstrap/src/templates/torque/server_name.MASTER +++ /dev/null @@ -1 +0,0 @@ - diff --git a/bootstrap/src/templates/torque/torque.sh b/bootstrap/src/templates/torque/torque.sh deleted file mode 100644 index 1fd8c80082..0000000000 --- a/bootstrap/src/templates/torque/torque.sh +++ /dev/null @@ -1,4 +0,0 @@ -PATH=$PATH:/opt/torque/bin:/opt/torque/sbin -MANPATH=$MANPATH:/opt/torque/share/man - -export PATH MANPATH diff --git a/cli/cfncluster/cfncluster.py b/cli/cfncluster/cfncluster.py index 62b0343b6f..b4274aaa88 100644 --- a/cli/cfncluster/cfncluster.py +++ b/cli/cfncluster/cfncluster.py @@ -264,7 +264,7 @@ def status(args): sys.stdout.write('\rStatus: %s' % status) sys.stdout.flush() if not args.nowait: - while ((status != 'CREATE_COMPLETE') and (status != 'UPDATE_COMPLETE') + while ((status != 'CREATE_COMPLETE') and (status != 'UPDATE_COMPLETE') and (status != 'UPDATE_ROLLBACK_COMPLETE') and (status != 'ROLLBACK_COMPLETE') and (status != 'CREATE_FAILED') and (status != 'DELETE_FAILED')): time.sleep(5) status = cfnconn.describe_stacks(stack)[0].stack_status @@ -278,10 +278,12 @@ def status(args): outputs = cfnconn.describe_stacks(stack)[0].outputs for output in outputs: print output - elif ((status == 'ROLLBACK_COMPLETE') or (status == 'CREATE_FAILED') or (status == 'DELETE_FAILED')): + elif ((status == 'ROLLBACK_COMPLETE') or (status == 'CREATE_FAILED') or (status == 'DELETE_FAILED') or + (status == 'UPDATE_ROLLBACK_COMPLETE')): events = cfnconn.describe_stack_events(stack) for event in events: - if ((event.resource_status == 'CREATE_FAILED') or (event.resource_status == 'DELETE_FAILED')): + if ((event.resource_status == 'CREATE_FAILED') or (event.resource_status == 'DELETE_FAILED') or + (event.resource_status == 'UPDATE_FAILED')): print event.timestamp, event.resource_status, event.resource_type, event.logical_resource_id, \ event.resource_status_reason else: diff --git a/cli/cfncluster/cfnconfig.py b/cli/cfncluster/cfnconfig.py index 26d9e404a2..a3f33e838f 100644 --- a/cli/cfncluster/cfnconfig.py +++ b/cli/cfncluster/cfnconfig.py @@ -175,7 +175,10 @@ def __init__(self, args): compute_subnet_cidr=('ComputeSubnetCidr',None), compute_subnet_id=('ComputeSubnetId', 'VPCSubnet'), use_public_ips=('UsePublicIps', None), - ssh_from=('SSHFrom', None), additional_sg=('AdditionalSG','VPCSecurityGroup')) + ssh_from=('AccessFrom', None), access_from=('AccessFrom', None), + additional_sg=('AdditionalSG','VPCSecurityGroup'), + vpc_security_group_id=('VPCSecurityGroupId','VPCSecurityGroup') + ) # Loop over all VPC options and add define to parameters, raise Exception is defined but null for key in self.__vpc_options: @@ -205,7 +208,8 @@ def __init__(self, args): s3_read_write_resource=('S3ReadWriteResource',None),cwl_region=('CWLRegion',None), cwl_log_group=('CWLLogGroup',None),shared_dir=('SharedDir',None),tenancy=('Tenancy',None), ephemeral_kms_key_id=('EphemeralKMSKeyId',None), cluster_ready=('ClusterReadyScript','URL'), - master_root_volume_size=('MasterRootVolumeSize',None),compute_root_volume_size=('ComputeRootVolumeSize',None) + master_root_volume_size=('MasterRootVolumeSize',None),compute_root_volume_size=('ComputeRootVolumeSize',None), + base_os=('BaseOS',None),ec2_iam_role=('EC2IAMRoleName',None),extra_json=('ExtraJson',None) ) # Loop over all the cluster options and add define to parameters, raise Exception if defined but null @@ -237,7 +241,9 @@ def __init__(self, args): # Dictionary list of all EBS options self.__ebs_options = dict(ebs_snapshot_id=('EBSSnapshotId','EC2Snapshot'), volume_type=('VolumeType',None), volume_size=('VolumeSize',None), ebs_kms_key_id=('EBSKMSKeyId', None), - volume_iops=('VolumeIOPS',None), encrypted=('EBSEncryption',None)) + volume_iops=('VolumeIOPS',None), encrypted=('EBSEncryption',None), + ebs_volume_id=('EBSVolumeId','EC2Volume') + ) try: if self.__ebs_section: diff --git a/cli/cfncluster/config_sanity.py b/cli/cfncluster/config_sanity.py index 71efeb5fc1..4613451d9c 100644 --- a/cli/cfncluster/config_sanity.py +++ b/cli/cfncluster/config_sanity.py @@ -105,3 +105,12 @@ def check_resource(region, aws_access_key_id, aws_secret_access_key, resource_ty except boto.exception.BotoServerError as e: print('Config sanity error: %s' % e.message) sys.exit(1) + # EC2 EBS Volume Id + elif resource_type == 'EC2Volume': + try: + ec2_conn = boto.ec2.connect_to_region(region,aws_access_key_id=aws_access_key_id, + aws_secret_access_key=aws_secret_access_key) + test = ec2_conn.get_all_volumes(volume_ids=resource_value) + except boto.exception.BotoServerError as e: + print('Config sanity error: %s' % e.message) + sys.exit(1) diff --git a/cli/cfncluster/examples/config b/cli/cfncluster/examples/config index 66157a9e97..e7dcd6c2c3 100644 --- a/cli/cfncluster/examples/config +++ b/cli/cfncluster/examples/config @@ -34,7 +34,7 @@ key_name = mykey #master_instance_type = t2.micro # Inital number of EC2 instances to launch as compute nodes in the cluster. # (defaults to 2 for default template) -#initial_queue_size = 1 +#initial_queue_size = 2 # Maximum number of EC2 instances that can be launched in the cluster. # (defaults to 10 for the default template) #max_queue_size = 10 @@ -94,14 +94,20 @@ key_name = mykey # (defaults to 10 in default template) #compute_root_volume_size = 10 # OS type used in the cluster -# (defaults to centos6 in the default template) -#base_os = centos6 +# (defaults to alinux in the default template) +#base_os = alinux # CloudWatch Logs region # (defaults to NONE in the default template) #cwl_region = NONE # CloudWatch Logs Log Group name -# (defaults to NONE in the default template +# (defaults to NONE in the default template) #cwl_log_group = NONE +# Existing EC2 IAM role to be assosiated with the EC2 instances +# (defaults to NONE in the default template) +#ec2_iam_role = NONE +# Extra Json to be merged with the dna.json used by Chef +# (defaults to {} in the default template) +#extra_json = {} # Settings section relating to VPC to be used vpc_settings = public # Settings section relating to EBS volume @@ -122,6 +128,9 @@ master_subnet_id = subnet- # Additional VPC security group Id for all instances # (defaults to NONE in the default template) #additional_sg = sg- +# Existing EC2 security group to be assosiated with the EC2 instances +# (defaults to NONE in the default template) +#vpc_security_group_id = sg- #[vpc private-new] # ID of the VPC you want to provision cluster into. @@ -155,15 +164,18 @@ master_subnet_id = subnet- # Use encrypted volume (should not be used with snapshots) # (defaults to false for default template) #encrypted = false +# Existing EBS volume to be attached to the MasterServer +# (defaults to NONE in the default template) +#ebs_volume_id = NONE ## Scaling settings #[scaling custom] # Threshold for triggering CloudWatch ScaleUp action -# (defaults to 4 for default template) -#scaling_threshold = 4 +# (defaults to 1 for default template) +#scaling_threshold = 1 # Number of instances to add when called CloudWatch ScaleUp action -# (defaults to 2 for default template) -#scaling_adjustment = 2 +# (defaults to 1 for default template) +#scaling_adjustment = 1 # Threshold for triggering CloudWatch ScaleUp2 action # (defaults to 200 for default template) #scaling_threshold2 = 200 @@ -177,5 +189,5 @@ master_subnet_id = subnet- # (defaults to 2 for default template) #scaling_evaluation_periods = 2 # Amount of time in seconds to wait before attempting further scaling actions -# (defaults to 120 for the default template -#scaling_cooldown = 120 +# (defaults to 300 for the default template +#scaling_cooldown = 300 diff --git a/cli/setup.py b/cli/setup.py index ef0b060f29..f4e63e9532 100644 --- a/cli/setup.py +++ b/cli/setup.py @@ -1,4 +1,4 @@ -# Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# Copyright 2013-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the # License. A copy of the License is located at @@ -20,8 +20,8 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() console_scripts = ['cfncluster = cfncluster.cli:main'] -version = "0.0.22" -requires = ['boto>=2.38'] +version = "1.0.0" +requires = ['boto>=2.39'] if sys.version_info[:2] == (2, 6): # For python2.6 we have to require argparse since it @@ -46,7 +46,7 @@ def read(fname): }, long_description=read('README'), classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Environment :: Console", "Programming Language :: Python", "Topic :: Scientific/Engineering", diff --git a/cloudformation/cfncluster.cfn.json b/cloudformation/cfncluster.cfn.json index f28aad07cd..88a721083e 100644 --- a/cloudformation/cfncluster.cfn.json +++ b/cloudformation/cfncluster.cfn.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion" : "2010-09-09", - "Description" : "AWS CloudFormation Sample Template cfncluster.cfn.json: Sample template showing an framework for deploying master + compute type clusters on AWS. **WARNING** This template creates AWS resources. You will be billed for the AWS resources used if you create a stack from this template. Version: ami-20150803-3 cfncluster-0.0.22", + "Description" : "AWS CloudFormation Sample Template cfncluster.cfn.json: Sample template showing an framework for deploying master + compute type clusters on AWS. **WARNING** This template creates AWS resources. You will be billed for the AWS resources used if you create a stack from this template. Version: ami-201602120030 cfncluster-1.0.0", "Parameters" : { "KeyName" : { "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances", @@ -40,6 +40,7 @@ "m3.2xlarge", "hi1.4xlarge", "g2.2xlarge", + "g2.8xlarge", "t2.micro", "t2.small", "t2.medium", @@ -89,6 +90,7 @@ "m3.2xlarge", "hi1.4xlarge", "g2.2xlarge", + "g2.8xlarge", "t2.micro", "t2.small", "t2.medium", @@ -122,7 +124,7 @@ "ScalingThreshold" : { "Description" : "Threshold for triggering CloudWatch ScaleUp action", "Type" : "String", - "Default" : "4" + "Default" : "1" }, "ScalingEvaluationPeriods" : { "Description" : "Number of periods consective periods required to trigger the scaling adjustment", @@ -192,8 +194,8 @@ "Description" : "ID of the VPC you want to provision cluster into. Only used with UseVPCBase=false", "Type" : "AWS::EC2::VPC::Id" }, - "SSHFrom" : { - "Description" : "Lockdown SSH access (default can be accessed from anywhere)", + "AccessFrom" : { + "Description" : "Lockdown SSH/HTTP access (default can be accessed from anywhere)", "Type" : "String", "MinLength" : "9", "MaxLength" : "18", @@ -268,7 +270,7 @@ ] }, "PlacementGroup" : { - "Description" : "The name of an exisiting placement group", + "Description" : "The name of an existing placement group", "Type" : "String", "Default" : "NONE" }, @@ -310,10 +312,13 @@ "BaseOS" : { "Description" : "Base OS type for cluster AMI", "Type" : "String", - "Default" : "centos6", + "Default" : "alinux", "ConstraintDescription" : "must be a supported base OS", "AllowedValues" : [ - "centos6" + "centos6", + "centos7", + "alinux", + "ubuntu1404" ] }, "ScalingThreshold2" : { @@ -324,17 +329,17 @@ "ScalingCooldown" : { "Description" : "Period in seconds to wait before allowing further scaling actions", "Type" : "String", - "Default" : "120" + "Default" : "300" }, "ScalingAdjustment" : { "Description" : "Number of instances to add to cluster when the CloudWatch ScaleUp action is called.", "Type" : "String", - "Default" : "2" + "Default" : "1" }, "ScalingAdjustment2" : { "Description" : "Number of instances to add to cluster when the CloudWatch ScaleUp2 action is called.", "Type" : "String", - "Default" : "20" + "Default" : "10" }, "Scheduler" : { "Description" : "Cluster scheduler", @@ -345,8 +350,9 @@ "sge", "openlava", "torque", - "test", - "custom" + "slurm", + "custom", + "test" ] }, "SharedDir" : { @@ -372,6 +378,21 @@ "Type" : "String", "Default" : "NONE" }, + "CustomChefRunList" : { + "Description" : "Custom run list, which will override the default", + "Type" : "String", + "Default" : "NONE" + }, + "CustomChefCookbook" : { + "Description" : "URL of custom cookbook that will override the default. This will be unpacked and then dependencies resolved with Berkshelf.", + "Type" : "String", + "Default" : "NONE" + }, + "ExtraJson" : { + "Description" : "Extra json to be added to Chef dna.json", + "Type" : "String", + "Default" : "{}" + }, "Tenancy" : { "Description" : "Type of placement requird in cfncluster, it can either be cluster or compute.", "Type" : "String", @@ -405,6 +426,21 @@ "Description" : "Size of ComputeFleet EBS root volume in GB", "Type" : "Number", "Default" : "10" + }, + "EC2IAMRoleName" : { + "Description" : "Existing EC2 IAM role name", + "Type" : "String", + "Default" : "NONE" + }, + "VPCSecurityGroupId" : { + "Description" : "Existing VPC security group Id", + "Type" : "String", + "Default" : "NONE" + }, + "EBSVolumeId" : { + "Description" : "Existing EBS volume Id", + "Type" : "String", + "Default" : "NONE" } }, "Conditions" : { @@ -496,6 +532,18 @@ } ] }, + "UseCustomRunList" : { + "Fn::Not" : [ + { + "Fn::Equals" : [ + { + "Ref" : "CustomChefRunList" + }, + "NONE" + ] + } + ] + }, "UseCustomAMI" : { "Fn::Not" : [ { @@ -696,6 +744,66 @@ }, "dedicated" ] + }, + "UseEC2IAMRole" : { + "Fn::Not" : [ + { + "Fn::Equals" : [ + { + "Ref" : "EC2IAMRoleName" + }, + "NONE" + ] + } + ] + }, + "CreateEC2IAMRole" : { + "Fn::Equals" : [ + { + "Ref" : "EC2IAMRoleName" + }, + "NONE" + ] + }, + "UseExistingSecurityGroup" : { + "Fn::Not" : [ + { + "Fn::Equals" : [ + { + "Ref" : "VPCSecurityGroupId" + }, + "NONE" + ] + } + ] + }, + "UseExistingEBSVolume" : { + "Fn::Not" : [ + { + "Fn::Equals" : [ + { + "Ref" : "EBSVolumeId" + }, + "NONE" + ] + } + ] + }, + "CreateEBSVolume" : { + "Fn::Equals" : [ + { + "Ref" : "EBSVolumeId" + }, + "NONE" + ] + }, + "CreateSecurityGroups" : { + "Fn::Equals" : [ + { + "Ref" : "VPCSecurityGroupId" + }, + "NONE" + ] } }, "Mappings" : { @@ -712,6 +820,10 @@ "Arch" : "64HVM", "EBSOpt" : "True" }, + "g2.8xlarge" : { + "Arch" : "64HVM", + "EBSOpt" : "True" + }, "m3.medium" : { "Arch" : "64HVM", "EBSOpt" : "False" @@ -824,10 +936,6 @@ "Arch" : "64HVM", "EBSOpt" : "False" }, - "t2.large" : { - "Arch" : "64HVM", - "EBSOpt" : "False" - }, "d2.8xlarge" : { "Arch" : "64HVM", "EBSOpt" : "True" @@ -844,6 +952,10 @@ "Arch" : "64HVM", "EBSOpt" : "True" }, + "t2.large" : { + "Arch" : "64HVM", + "EBSOpt" : "False" + }, "m4.10xlarge" : { "Arch" : "64HVM", "EBSOpt" : "True" @@ -863,49 +975,106 @@ "m4.large" : { "Arch" : "64HVM", "EBSOpt" : "True" + }, + "t2.nano" : { + "Arch" : "64HVM", + "EBSOpt" : "False" } }, "AWSRegionOS2AMI" : { + "eu-west-1" : { + "centos6" : "ami-b9e95aca", + "centos7" : "ami-25d56656", + "alinux" : "ami-88d360fb", + "ubuntu1404" : "ami-c5d261b6" + }, "us-west-2" : { - "centos6" : "ami-f35e56c3" + "centos6" : "ami-46ec0c26", + "centos7" : "ami-04f11164", + "alinux" : "ami-31f01051", + "ubuntu1404" : "ami-72f31312" }, "eu-central-1" : { - "centos6" : "ami-0adcd817" + "centos6" : "ami-3fc4df53", + "centos7" : "ami-e7fbe08b", + "alinux" : "ami-79c4df15", + "ubuntu1404" : "ami-17fbe07b" }, "sa-east-1" : { - "centos6" : "ami-1ffb7202" + "centos6" : "ami-87890aeb", + "centos7" : "ami-e48d0e88", + "alinux" : "ami-af9211c3", + "ubuntu1404" : "ami-998d0ef5" }, "ap-northeast-1" : { - "centos6" : "ami-4ed26d4e" - }, - "eu-west-1" : { - "centos6" : "ami-c05203b7" + "centos6" : "ami-37060159", + "centos7" : "ami-b40304da", + "alinux" : "ami-5503043b", + "ubuntu1404" : "ami-ba0106d4" }, "us-east-1" : { - "centos6" : "ami-f1dd7e9a" + "centos6" : "ami-a22114c8", + "centos7" : "ami-682e1b02", + "alinux" : "ami-0b2b1e61", + "ubuntu1404" : "ami-5114213b" }, "us-west-1" : { - "centos6" : "ami-b3956af7" + "centos6" : "ami-cdd4a2ad", + "centos7" : "ami-1ad7a17a", + "alinux" : "ami-3bd6a05b", + "ubuntu1404" : "ami-3be99f5b" }, "ap-southeast-2" : { - "centos6" : "ami-83a1e1b9" + "centos6" : "ami-d91e39ba", + "centos7" : "ami-801c3be3", + "alinux" : "ami-8a1c3be9", + "ubuntu1404" : "ami-ab1a3dc8" }, "ap-southeast-1" : { - "centos6" : "ami-76f9f524" + "centos6" : "ami-3a2ee059", + "centos7" : "ami-1b2ae478", + "alinux" : "ami-b42ee0d7", + "ubuntu1404" : "ami-832fe1e0" }, "us-gov-west-1" : { - "centos6" : "ami-43563560" + "centos6" : "ami-1dc27e7c", + "centos7" : "ami-3cbe025d", + "alinux" : "ami-6eb8040f", + "ubuntu1404" : "ami-a0ba06c1" + }, + "ap-northeast-2" : { + "centos6" : "ami-0e1ad460", + "centos7" : "ami-991fd1f7", + "alinux" : "ami-591fd137", + "ubuntu1404" : "ami-581fd136" } }, - "ClusterUser" : { + "OSFeatures" : { "centos6" : { - "User" : "ec2-user" + "User" : "centos", + "RootDevice" : "/dev/sda1" + }, + "centos7" : { + "User" : "centos", + "RootDevice" : "/dev/sda1" }, "alinux" : { - "User" : "ec2-user" + "User" : "ec2-user", + "RootDevice" : "/dev/xvda" }, - "ubuntu" : { - "User" : "ubuntu" + "ubuntu1404" : { + "User" : "ubuntu", + "RootDevice" : "/dev/sda1" + } + }, + "CfnClusterVersions" : { + "default" : { + "cfncluster" : "cfncluster-1.0.0", + "cookbook" : "cfncluster-cookbook-1.0.0", + "chef" : "12.4.3", + "ridley" : "4.3.2", + "berkshelf" : "4.0.1", + "ami" : "201602120030" } }, "AWSRegion2Capabilites" : { @@ -938,6 +1107,9 @@ }, "us-gov-west-1" : { "arn" : "aws-us-gov" + }, + "ap-northeast-2" : { + "arn" : "aws" } } }, @@ -1036,7 +1208,8 @@ ] }, "Path" : "/" - } + }, + "Condition" : "CreateEC2IAMRole" }, "RootInstanceProfile" : { "Type" : "AWS::IAM::InstanceProfile", @@ -1047,7 +1220,8 @@ "Ref" : "RootRole" } ] - } + }, + "Condition" : "CreateEC2IAMRole" }, "CfnClusterPolicies" : { "Type" : "AWS::IAM::Policy", @@ -1205,7 +1379,8 @@ "Ref" : "RootRole" } ] - } + }, + "Condition" : "CreateEC2IAMRole" }, "S3ReadRolePolicies" : { "Type" : "AWS::IAM::Policy", @@ -1377,7 +1552,15 @@ "VirtualName" : "ephemeral23" }, { - "DeviceName" : "/dev/sda1", + "DeviceName" : { + "Fn::FindInMap" : [ + "OSFeatures", + { + "Ref" : "BaseOS" + }, + "RootDevice" + ] + }, "Ebs" : { "VolumeSize" : { "Ref" : "MasterRootVolumeSize" @@ -1401,12 +1584,73 @@ "Value" : "Master" } ], + "NetworkInterfaces" : [ + { + "NetworkInterfaceId" : { + "Ref" : "MasterENI" + }, + "DeviceIndex" : "0" + } + ], + "ImageId" : { + "Fn::If" : [ + "UseCustomAMI", + { + "Ref" : "CustomAMI" + }, + { + "Fn::FindInMap" : [ + "AWSRegionOS2AMI", + { + "Ref" : "AWS::Region" + }, + { + "Ref" : "BaseOS" + } + ] + } + ] + }, + "EbsOptimized" : { + "Fn::FindInMap" : [ + "AWSInstanceType2Capabilites", + { + "Ref" : "MasterInstanceType" + }, + "EBSOpt" + ] + }, + "IamInstanceProfile" : { + "Fn::If" : [ + "UseEC2IAMRole", + { + "Ref" : "EC2IAMRoleName" + }, + { + "Ref" : "RootInstanceProfile" + } + ] + }, + "PlacementGroupName" : { + "Fn::If" : [ + "UseClusterPlacement", + { + "Ref" : "PlacementGroup" + }, + { + "Ref" : "AWS::NoValue" + } + ] + }, + "Tenancy" : { + "Ref" : "Tenancy" + }, "UserData" : { "Fn::Base64" : { "Fn::Join" : [ "", [ - "#!/bin/bash\n\n", + "#!/bin/bash -x\n\n", "function error_exit\n", "{\n", " cfn-signal ${proxy_args} --exit-code=1 --reason=\"$1\" --stack=", @@ -1420,45 +1664,141 @@ "\n", " exit 1\n", "}\n", + "function bootstrap_instance\n", + "{\n", + " which yum 2>/dev/null; yum=$?\n", + " which apt-get 2>/dev/null; apt=$?\n", + " if [ \"$yum\" == \"0\" ]; then\n", + " yum -y groupinstall development && yum -y install curl wget\n", + " fi\n", + " if [ \"$apt\" == \"0\" ]; then\n", + " apt-cache search build-essential; apt-get clean; apt-get update; apt-get -y install build-essential curl wget\n", + " fi\n", + " which cfn-init 2>/dev/null || ( curl -s -L -o /tmp/aws-cfn-bootstrap-latest.tar.gz https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz; easy_install -U /tmp/aws-cfn-bootstrap-latest.tar.gz)\n", + " mkdir -p /etc/chef && chown -R root:root /etc/chef\n", + " curl -L https://www.chef.io/chef/install.sh | bash -s -- -v $chef_version\n", + " /opt/chef/embedded/bin/gem install --no-rdoc --no-ri ridley:$ridley_version berkshelf:$berkshelf_version\n", + " mkdir /opt/cfncluster && echo $cfncluster_version | tee /opt/cfncluster/.bootstrapped\n", + "}\n", "proxy=", { "Ref" : "ProxyServer" }, "\n", + "custom_cookbook=", + { + "Ref" : "CustomChefCookbook" + }, + "\n", "if [ \"$proxy\" != \"NONE\" ]; then\n", " proxy_args=\"--http-proxy=${proxy} --https-proxy=${proxy}\"\n", " proxy_host=$(echo \"$proxy\" | awk -F/ '{print $3}' | cut -d: -f1)\n", " proxy_port=$(echo \"$proxy\" | awk -F/ '{print $3}' | cut -d: -f2)\n", + " export http_proxy=$proxy; export https_proxy=$http_proxy\n", + " export HTTP_PROXY=$proxy; export HTTPS_PROXY=$http_proxy\n", " echo -e \"[Boto]\nproxy = ${proxy_host}\nproxy_port = ${proxy_port}\n\" >/etc/boto.cfg\n", "else\n", " proxy_args=\"\"\n", "fi\n", - "cfn-init ${proxy_args} -s ", + "if [ \"$custom_cookbook\" != \"NONE\" ]; then\n", + " cookbook_url=$custom_cookbook\n", + "else\n", + " if [ \"", { - "Ref" : "AWS::StackName" + "Ref" : "AWS::Region" }, - " -v -c default -r MasterServer --region ", + "\" == \"us-east-1\" ]; then\n", + " s3_prefix=s3\n", + " else\n", + " s3_prefix=s3-", { "Ref" : "AWS::Region" }, - " || error_exit 'Failed to run cfn-init. If --norollback was specified, check /var/log/cfn-init.log and /var/log/cfncluster.log.'\n", - "cfn_cwl=", + "\n", + " fi\n", + " cookbook_url=https://${s3_prefix}.amazonaws.com/cfncluster-", + { + "Ref" : "AWS::Region" + }, + "/cookbooks/", + { + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "cookbook" + ] + }, + ".tgz\n", + "fi\n", + "export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin\n", + "export cfncluster_version=", { - "Fn::If" : [ - "CloudWatchLogs", - "true", - "false" + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "cfncluster" ] }, "\n", - "if [ \"$cfn_cwl\" == \"true\" ]; then\n", - "# Setup CloudWatch Logs agent\n", - "python /root/awslogs-agent-setup.py -n -r ", + "export cookbook_version=", { - "Ref" : "CWLRegion" + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "cookbook" + ] + }, + "\n", + "export chef_version=", + { + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "chef" + ] + }, + "\n", + "export ridley_version=", + { + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "ridley" + ] + }, + "\n", + "export berkshelf_version=", + { + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "berkshelf" + ] }, - " -c /tmp/cwlogs/cfn-logs.conf || error_exit 'Failed to run CloudWatch Logs agent setup'\n", + "\n", + "if [ -f /opt/cfncluster/.bootstrapped ]; then\n", + " installed_version=$(cat /opt/cfncluster/.bootstrapped)\n", + " if [ \"$cfncluster_version\" != \"$installed_version\" ]; then\n", + " bootstrap_instance\n", + " fi\n", + "else\n", + " bootstrap_instance\n", "fi\n", + "mkdir /tmp/cookbooks\n", + "cd /tmp/cookbooks\n", + "curl -s -L -o cookbook.tar.gz $cookbook_url\n", + "tar -xzf cookbook.tar.gz\n", + "cd /tmp\n", + "# Call CloudFormation\n", + "cfn-init ${proxy_args} -s ", + { + "Ref" : "AWS::StackName" + }, + " -v -c default -r MasterServer --region ", + { + "Ref" : "AWS::Region" + }, + " || error_exit 'Failed to run cfn-init. If --norollback was specified, check /var/log/cfn-init.log and /var/log/cfncluster.log.'\n", "cfn-signal ${proxy_args} --exit-code=0 --reason=\"MasterServer setup complete\" --stack=", { "Ref" : "AWS::StackName" @@ -1472,59 +1812,6 @@ ] ] } - }, - "NetworkInterfaces" : [ - { - "NetworkInterfaceId" : { - "Ref" : "MasterENI" - }, - "DeviceIndex" : "0" - } - ], - "ImageId" : { - "Fn::If" : [ - "UseCustomAMI", - { - "Ref" : "CustomAMI" - }, - { - "Fn::FindInMap" : [ - "AWSRegionOS2AMI", - { - "Ref" : "AWS::Region" - }, - { - "Ref" : "BaseOS" - } - ] - } - ] - }, - "EbsOptimized" : { - "Fn::FindInMap" : [ - "AWSInstanceType2Capabilites", - { - "Ref" : "MasterInstanceType" - }, - "EBSOpt" - ] - }, - "IamInstanceProfile" : { - "Ref" : "RootInstanceProfile" - }, - "PlacementGroupName" : { - "Fn::If" : [ - "UseClusterPlacement", - { - "Ref" : "PlacementGroup" - }, - { - "Ref" : "AWS::NoValue" - } - ] - }, - "Tenancy" : { - "Ref" : "Tenancy" } }, "Metadata" : { @@ -1533,218 +1820,187 @@ "configSets" : { "default" : [ "deployConfigFiles", - "runBootAsMaster" + "getCookbooks", + "chefPrepEnv", + "shellRunPreInstall", + "chefConfig", + "shellRunPostInstall", + "shellForkClusterReadyInstall" ] }, "deployConfigFiles" : { "files" : { - "/tmp/cwlogs/cfn-logs.conf" : { + "/tmp/dna.json" : { + "mode" : "000644", + "owner" : "root", + "group" : "root", "content" : { - "Fn::If" : [ - "CloudWatchLogs", - { - "Fn::Join" : [ - "", - [ - "[general]\n", - "state_file= /var/awslogs/agent-state\n", - "[/var/log/cloud-init.log]\n", - "file = /var/log/cloud-init.log\n", - "log_group_name = ", - { - "Ref" : "CWLLogGroup" - }, - "\n", - "log_stream_name = {instance_id}/cloud-init.log\n", - "datetime_format = %d/%b/%Y:%H:%M:%S\n", - "[/var/log/cloud-init-output.log]\n", - "file = /var/log/cloud-init-output.log\n", - "log_group_name = ", - { - "Ref" : "CWLLogGroup" - }, - "\n", - "log_stream_name = {instance_id}/cloud-init-output.log\n", - "datetime_format = %d/%b/%Y:%H:%M:%S\n", - "[/var/log/cfn-init.log]\n", - "file = /var/log/cfn-init.log\n", - "log_group_name = ", - { - "Ref" : "CWLLogGroup" - }, - "\n", - "log_stream_name = {instance_id}/cfn-init.log\n", - "datetime_format = %d/%b/%Y:%H:%M:%S\n", - "[/var/log/cfn-wire.log]\n", - "file = /var/log/cfn-wire.log\n", - "log_group_name = ", - { - "Ref" : "CWLLogGroup" - }, - "\n", - "log_stream_name = {instance_id}/cfn-wire.log\n", - "datetime_format = %d/%b/%Y:%H:%M:%S\n" - ] + "cfncluster" : { + "stack_name" : { + "Ref" : "AWS::StackName" + }, + "cfn_preinstall" : { + "Ref" : "PreInstallScript" + }, + "cfn_preinstall_args" : { + "Ref" : "PreInstallArgs" + }, + "cfn_postinstall" : { + "Ref" : "PostInstallScript" + }, + "cfn_postinstall_args" : { + "Ref" : "PostInstallArgs" + }, + "cfn_region" : { + "Ref" : "AWS::Region" + }, + "cfn_volume" : { + "Fn::If" : [ + "UseExistingEBSVolume", + { + "Ref" : "EBSVolumeId" + }, + { + "Ref" : "SharedVolume" + } ] }, - "\n" - ] - }, - "mode" : "000444", - "owner" : "root", - "group" : "root" - }, - "/opt/cfncluster/cfnconfig" : { - "content" : { - "Fn::Join" : [ - "", - [ - "stack_name=", - { - "Ref" : "AWS::StackName" - }, - "\n", - "cfn_preinstall=", - { - "Ref" : "PreInstallScript" - }, - "\n", - "cfn_preinstall_args=\"", - { - "Ref" : "PreInstallArgs" - }, - "\"\n", - "cfn_postinstall=", - { - "Ref" : "PostInstallScript" - }, - "\n", - "cfn_postinstall_args=\"", - { - "Ref" : "PostInstallArgs" - }, - "\"\n", - "cfn_region=", - { - "Ref" : "AWS::Region" - }, - "\n", - "cfn_volume=", - { - "Ref" : "SharedVolume" - }, - "\n", - "cfn_scheduler=", - { - "Ref" : "Scheduler" - }, - "\n", - "cfn_encrypted_ephemeral=", - { - "Ref" : "EncryptedEphemeral" - }, - "\n", - "cfn_ephemeral_dir=", - { - "Ref" : "EphemeralDir" - }, - "\n", - "cfn_shared_dir=", - { - "Ref" : "SharedDir" - }, - "\n", - "cfn_proxy=", + "cfn_scheduler" : { + "Ref" : "Scheduler" + }, + "cfn_encrypted_ephemeral" : { + "Ref" : "EncryptedEphemeral" + }, + "cfn_ephemeral_dir" : { + "Ref" : "EphemeralDir" + }, + "cfn_shared_dir" : { + "Ref" : "SharedDir" + }, + "cfn_proxy" : { + "Ref" : "ProxyServer" + }, + "cfn_node_type" : "MasterServer", + "cfn_cluster_user" : { + "Fn::FindInMap" : [ + "OSFeatures", + { + "Ref" : "BaseOS" + }, + "User" + ] + }, + "cfn_ddb_table" : { + "Ref" : "DynamoDBTable" + }, + "cfn_sqs_queue" : { + "Fn::GetAtt" : [ + "SQS", + "QueueName" + ] + } + }, + "run_list" : { + "Fn::If" : [ + "UseCustomRunList", { - "Ref" : "ProxyServer" + "Ref" : "CustomChefRunList" }, - "\n", - "cfn_node_type=MasterServer\n", - "cfn_cluster_user=", { - "Fn::FindInMap" : [ - "ClusterUser", - { - "Ref" : "BaseOS" - }, - "User" + "Fn::Join" : [ + "", + [ + "recipe[cfncluster::", + { + "Ref" : "Scheduler" + }, + "_config]" + ] ] - }, - "\n" + } ] - ] - }, - "mode" : "000644", - "owner" : "root", - "group" : "root" + } + } }, - "/etc/sqswatcher.cfg" : { - "content" : { - "Fn::Join" : [ - "", - [ - "[sqswatcher]\n", - "region = ", - { - "Ref" : "AWS::Region" - }, - "\n", - "sqsqueue = ", - { - "Fn::GetAtt" : [ - "SQS", - "QueueName" - ] - }, - "\n", - "table_name = ", - { - "Ref" : "DynamoDBTable" - }, - "\n", - "scheduler = ", - { - "Ref" : "Scheduler" - }, - "\n", - "cluster_user = ", - { - "Fn::FindInMap" : [ - "ClusterUser", - { - "Ref" : "BaseOS" - }, - "User" - ] - }, - "\n" - ] - ] - }, + "/etc/chef/client.rb" : { "mode" : "000644", "owner" : "root", - "group" : "root" - }, - "/etc/cfncluster/cfncluster_supervisord.conf" : { + "group" : "root", "content" : { "Fn::Join" : [ "", [ - "[program:sqswatcher]\n", - "command = /usr/bin/sqswatcher\n" + "cookbook_path ['/etc/chef/cookbooks']" ] ] - }, + } + }, + "/tmp/extra.json" : { "mode" : "000644", "owner" : "root", - "group" : "root" + "group" : "root", + "content" : { + "Ref" : "ExtraJson" + } + } + }, + "commands" : { + "mkdir" : { + "command" : "mkdir -p /etc/chef/ohai/hints" + }, + "touch" : { + "command" : "touch /etc/chef/ohai/hints/ec2.json" + }, + "jq" : { + "command" : "/usr/local/bin/jq --argfile f1 /tmp/dna.json --argfile f2 /tmp/extra.json -n '$f1 + $f2 | .cfncluster = $f1.cfncluster + $f2.cfncluster' > /etc/chef/dna.json || echo \"jq not installed\"; cp /tmp/dna.json /etc/chef/dna.json" + } + } + }, + "getCookbooks" : { + "commands" : { + "berk" : { + "command" : "for d in `ls /tmp/cookbooks`; do cd /tmp/cookbooks/$d;LANG=en_US.UTF-8 /opt/chef/embedded/bin/berks vendor /etc/chef/cookbooks; done ", + "cwd" : "/tmp/cookbooks", + "env" : { + "HOME" : "/tmp" + } + } + } + }, + "chefPrepEnv" : { + "commands" : { + "chef" : { + "command" : "chef-client --local-mode --config /etc/chef/client.rb --log_level auto --force-formatter --no-color --chef-zero-port 8889 --json-attributes /etc/chef/dna.json --override-runlist cfncluster::_prep_env", + "cwd" : "/etc/chef" + } + } + }, + "shellRunPreInstall" : { + "commands" : { + "runpreinstall" : { + "command" : "/opt/cfncluster/scripts/fetch_and_run -preinstall" } } }, - "runBootAsMaster" : { + "chefConfig" : { "commands" : { - "bootasmaster" : { - "command" : "/opt/cfncluster/scripts/boot_as_master" + "chef" : { + "command" : "chef-client --local-mode --config /etc/chef/client.rb --log_level auto --force-formatter --no-color --chef-zero-port 8889 --json-attributes /etc/chef/dna.json", + "cwd" : "/etc/chef" + } + } + }, + "shellRunPostInstall" : { + "commands" : { + "runpostinstall" : { + "command" : "/opt/cfncluster/scripts/fetch_and_run -postinstall" + } + } + }, + "shellForkClusterReadyInstall" : { + "commands" : { + "clusterreadyinstall" : { + "command" : "/opt/cfncluster/scripts/fetch_and_run -clusterreadyinstall" } } } @@ -1846,7 +2102,15 @@ "Properties" : { "SecurityGroups" : [ { - "Ref" : "ComputeSecurityGroup" + "Fn::If" : [ + "CreateSecurityGroups", + { + "Ref" : "ComputeSecurityGroup" + }, + { + "Ref" : "AWS::NoValue" + } + ] }, { "Fn::If" : [ @@ -1858,6 +2122,17 @@ "Ref" : "AWS::NoValue" } ] + }, + { + "Fn::If" : [ + "UseExistingSecurityGroup", + { + "Ref" : "VPCSecurityGroupId" + }, + { + "Ref" : "AWS::NoValue" + } + ] } ], "AssociatePublicIpAddress" : { @@ -1870,6 +2145,51 @@ "InstanceType" : { "Ref" : "ComputeInstanceType" }, + "KeyName" : { + "Ref" : "KeyName" + }, + "IamInstanceProfile" : { + "Fn::If" : [ + "UseEC2IAMRole", + { + "Ref" : "EC2IAMRoleName" + }, + { + "Ref" : "RootInstanceProfile" + } + ] + }, + "SpotPrice" : { + "Fn::If" : [ + "UseSpotInstances", + { + "Ref" : "SpotPrice" + }, + { + "Ref" : "AWS::NoValue" + } + ] + }, + "ImageId" : { + "Fn::If" : [ + "UseCustomAMI", + { + "Ref" : "CustomAMI" + }, + { + "Fn::FindInMap" : [ + "AWSRegionOS2AMI", + { + "Ref" : "AWS::Region" + }, + { + "Ref" : "BaseOS" + } + ] + } + ] + }, + "InstanceMonitoring" : "false", "BlockDeviceMappings" : [ { "DeviceName" : "/dev/xvdba", @@ -1968,7 +2288,15 @@ "VirtualName" : "ephemeral23" }, { - "DeviceName" : "/dev/sda1", + "DeviceName" : { + "Fn::FindInMap" : [ + "OSFeatures", + { + "Ref" : "BaseOS" + }, + "RootDevice" + ] + }, "Ebs" : { "VolumeSize" : { "Ref" : "ComputeRootVolumeSize" @@ -1977,15 +2305,23 @@ } } ], - "KeyName" : { - "Ref" : "KeyName" + "PlacementTenancy" : { + "Fn::If" : [ + "UseDedicatedTenancy", + { + "Ref" : "Tenancy" + }, + { + "Ref" : "AWS::NoValue" + } + ] }, "UserData" : { "Fn::Base64" : { "Fn::Join" : [ "", [ - "#!/bin/bash\n", + "#!/bin/bash -x\n\n", "function error_exit\n", "{\n", " cfn-signal ${proxy_args} --exit-code=1 --reason=\"$1\" --stack=", @@ -1999,103 +2335,154 @@ "\n", " exit 1\n", "}\n", + "function bootstrap_instance\n", + "{\n", + " which yum 2>/dev/null; yum=$?\n", + " which apt-get 2>/dev/null; apt=$?\n", + " if [ \"$yum\" == \"0\" ]; then\n", + " yum -y groupinstall development && yum -y install curl wget\n", + " fi\n", + " if [ \"$apt\" == \"0\" ]; then\n", + " apt-cache search build-essential; apt-get clean; apt-get update; apt-get -y install build-essential curl wget\n", + " fi\n", + " which cfn-init 2>/dev/null || ( curl -s -L -o /tmp/aws-cfn-bootstrap-latest.tar.gz https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz; easy_install -U /tmp/aws-cfn-bootstrap-latest.tar.gz)\n", + " mkdir -p /etc/chef && chown -R root:root /etc/chef\n", + " curl -L https://www.chef.io/chef/install.sh | bash -s -- -v $chef_version\n", + " /opt/chef/embedded/bin/gem install --no-rdoc --no-ri ridley:$ridley_version berkshelf:$berkshelf_version\n", + " mkdir /opt/cfncluster && echo $cfncluster_version | tee /opt/cfncluster/.bootstrapped\n", + "}\n", "proxy=", { "Ref" : "ProxyServer" }, "\n", + "custom_cookbook=", + { + "Ref" : "CustomChefCookbook" + }, + "\n", "if [ \"$proxy\" != \"NONE\" ]; then\n", " proxy_args=\"--http-proxy=${proxy} --https-proxy=${proxy}\"\n", " proxy_host=$(echo \"$proxy\" | awk -F/ '{print $3}' | cut -d: -f1)\n", " proxy_port=$(echo \"$proxy\" | awk -F/ '{print $3}' | cut -d: -f2)\n", + " export http_proxy=$proxy; export https_proxy=$http_proxy\n", + " export HTTP_PROXY=$proxy; export HTTPS_PROXY=$http_proxy\n", " echo -e \"[Boto]\nproxy = ${proxy_host}\nproxy_port = ${proxy_port}\n\" >/etc/boto.cfg\n", "else\n", " proxy_args=\"\"\n", "fi\n", - "cfn-init ${proxy_args} -v -s ", + "if [ \"$custom_cookbook\" != \"NONE\" ]; then\n", + " cookbook_url=$custom_cookbook\n", + "else\n", + " if [ \"", { - "Ref" : "AWS::StackName" + "Ref" : "AWS::Region" + }, + "\" == \"us-east-1\" ]; then\n", + " s3_prefix=s3\n", + " else\n", + " s3_prefix=s3-", + { + "Ref" : "AWS::Region" }, - " -c default -r ComputeServerLaunchConfig ", - " --region ", + "\n", + " fi\n", + " cookbook_url=https://${s3_prefix}.amazonaws.com/cfncluster-", { "Ref" : "AWS::Region" }, - " || error_exit 'Failed to run cfn-init'\n", - "cfn_cwl=", + "/cookbooks/", { - "Fn::If" : [ - "CloudWatchLogs", - "true", - "false" + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "cookbook" + ] + }, + ".tgz\n", + "fi\n", + "export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin\n", + "export cfncluster_version=", + { + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "cfncluster" ] }, "\n", - "if [ \"$cfn_cwl\" == \"true\" ]; then\n", - "# Setup CloudWatch Logs agent\n", - "python /root/awslogs-agent-setup.py -n -r ", + "export cookbook_version=", { - "Ref" : "CWLRegion" + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "cookbook" + ] + }, + "\n", + "export chef_version=", + { + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "chef" + ] + }, + "\n", + "export ridley_version=", + { + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "ridley" + ] }, - " -c /tmp/cwlogs/cfn-logs.conf || error_exit 'Failed to run CloudWatch Logs agent setup'\n", + "\n", + "export berkshelf_version=", + { + "Fn::FindInMap" : [ + "CfnClusterVersions", + "default", + "berkshelf" + ] + }, + "\n", + "if [ -f /opt/cfncluster/.bootstrapped ]; then\n", + " installed_version=$(cat /opt/cfncluster/.bootstrapped)\n", + " if [ \"$cfncluster_version\" != \"$installed_version\" ]; then\n", + " bootstrap_instance\n", + " fi\n", + "else\n", + " bootstrap_instance\n", "fi\n", - "cfn-signal ${proxy_args} --exit-code=0 --reason=\"Compute setup complete\" --stack=", + "mkdir /tmp/cookbooks\n", + "cd /tmp/cookbooks\n", + "curl -s -L -o cookbook.tar.gz $cookbook_url\n", + "tar -xzf cookbook.tar.gz\n", + "cd /tmp\n", + "# Call CloudFormation\n", + "cfn-init ${proxy_args} -s ", { "Ref" : "AWS::StackName" }, - " --resource=ComputeFleet --region=", + " -v -c default -r ComputeServerLaunchConfig --region ", { "Ref" : "AWS::Region" }, - "\n" - ] - ] - } - }, - "IamInstanceProfile" : { - "Ref" : "RootInstanceProfile" - }, - "SpotPrice" : { - "Fn::If" : [ - "UseSpotInstances", - { - "Ref" : "SpotPrice" - }, - { - "Ref" : "AWS::NoValue" - } - ] - }, - "ImageId" : { - "Fn::If" : [ - "UseCustomAMI", - { - "Ref" : "CustomAMI" - }, - { - "Fn::FindInMap" : [ - "AWSRegionOS2AMI", + " || error_exit 'Failed to run cfn-init. If --norollback was specified, check /var/log/cfn-init.log and /var/log/cfncluster.log.'\n", + "cfn-signal ${proxy_args} --exit-code=0 --reason=\"MasterServer setup complete\" --stack=", { - "Ref" : "AWS::Region" + "Ref" : "AWS::StackName" }, + " --resource=ComputeFleet --region=", { - "Ref" : "BaseOS" - } + "Ref" : "AWS::Region" + }, + "\n", + "# End of file\n" ] - } - ] - }, - "InstanceMonitoring" : "false", - "PlacementTenancy" : { - "Fn::If" : [ - "UseDedicatedTenancy", - { - "Ref" : "Tenancy" - }, - { - "Ref" : "AWS::NoValue" - } - ] + ] + } } }, "Metadata" : { @@ -2104,197 +2491,184 @@ "configSets" : { "default" : [ "deployConfigFiles", - "runBootAsCompute" + "getCookbooks", + "chefPrepEnv", + "shellRunPreInstall", + "chefConfig", + "shellRunPostInstall", + "shellForkClusterReadyInstall", + "signalComputeReady" ] }, "deployConfigFiles" : { "files" : { - "/opt/cfncluster/cfnconfig" : { - "content" : { - "Fn::Join" : [ - "", - [ - "cfn_scheduler=", - { - "Ref" : "Scheduler" - }, - "\n", - "cfn_region=", - { - "Ref" : "AWS::Region" - }, - "\n", - "cfn_preinstall=", - { - "Ref" : "PreInstallScript" - }, - "\n", - "cfn_preinstall_args=\"", - { - "Ref" : "PreInstallArgs" - }, - "\"\n", - "cfn_postinstall=", - { - "Ref" : "PostInstallScript" - }, - "\n", - "cfn_postinstall_args=\"", - { - "Ref" : "PostInstallArgs" - }, - "\"\n", - "cfn_sqs_url=", - { - "Ref" : "SQS" - }, - "\n", - "cfn_proxy=", - { - "Ref" : "ProxyServer" - }, - "\n", - "cfn_master=", - { - "Fn::GetAtt" : [ - "MasterServer", - "PrivateDnsName" - ] - }, - "\n", - "cfn_node_type=ComputeFleet\n", - "cfn_ephemeral_dir=", - { - "Ref" : "EphemeralDir" - }, - "\n", - "cfn_shared_dir=", - { - "Ref" : "SharedDir" - }, - "\n", - "cfn_encrypted_ephemeral=", - { - "Ref" : "EncryptedEphemeral" - }, - "\n", - "cfn_cluster_user=", - { - "Fn::FindInMap" : [ - "ClusterUser", - { - "Ref" : "BaseOS" - }, - "User" - ] - }, - "\n" - ] - ] - }, + "/tmp/dna.json" : { "mode" : "000644", "owner" : "root", - "group" : "root" - }, - "/etc/nodewatcher.cfg" : { + "group" : "root", "content" : { - "Fn::Join" : [ - "", - [ - "[nodewatcher]\n", - "region = ", + "cfncluster" : { + "stack_name" : { + "Ref" : "AWS::StackName" + }, + "cfn_preinstall" : { + "Ref" : "PreInstallScript" + }, + "cfn_preinstall_args" : { + "Ref" : "PreInstallArgs" + }, + "cfn_postinstall" : { + "Ref" : "PostInstallScript" + }, + "cfn_postinstall_args" : { + "Ref" : "PostInstallArgs" + }, + "cfn_region" : { + "Ref" : "AWS::Region" + }, + "cfn_scheduler" : { + "Ref" : "Scheduler" + }, + "cfn_encrypted_ephemeral" : { + "Ref" : "EncryptedEphemeral" + }, + "cfn_ephemeral_dir" : { + "Ref" : "EphemeralDir" + }, + "cfn_shared_dir" : { + "Ref" : "SharedDir" + }, + "cfn_proxy" : { + "Ref" : "ProxyServer" + }, + "cfn_sqs_queue" : { + "Ref" : "SQS" + }, + "cfn_master" : { + "Fn::GetAtt" : [ + "MasterServer", + "PrivateDnsName" + ] + }, + "cfn_node_type" : "ComputeFleet", + "cfn_cluster_user" : { + "Fn::FindInMap" : [ + "OSFeatures", + { + "Ref" : "BaseOS" + }, + "User" + ] + } + }, + "run_list" : { + "Fn::If" : [ + "UseCustomRunList", { - "Ref" : "AWS::Region" + "Ref" : "CustomChefRunList" }, - "\n", - "scheduler = ", { - "Ref" : "Scheduler" - }, - "\n" + "Fn::Join" : [ + "", + [ + "recipe[cfncluster::", + { + "Ref" : "Scheduler" + }, + "_config]" + ] + ] + } ] - ] - }, + } + } + }, + "/etc/chef/client.rb" : { "mode" : "000644", "owner" : "root", - "group" : "root" - }, - "/etc/cfncluster/cfncluster_supervisord.conf" : { + "group" : "root", "content" : { "Fn::Join" : [ "", [ - "[program:nodewatcher]\n", - "command = /usr/bin/nodewatcher\n" + "cookbook_path ['/etc/chef/cookbooks']" ] ] - }, + } + }, + "/tmp/extra.json" : { "mode" : "000644", "owner" : "root", - "group" : "root" - }, - "/tmp/cwlogs/cfn-logs.conf" : { + "group" : "root", "content" : { - "Fn::If" : [ - "CloudWatchLogs", - { - "Fn::Join" : [ - "", - [ - "[general]\n", - "state_file= /var/awslogs/agent-state\n", - "[/var/log/cloud-init.log]\n", - "file = /var/log/cloud-init.log\n", - "log_group_name = ", - { - "Ref" : "CWLLogGroup" - }, - "\n", - "log_stream_name = {instance_id}/cloud-init.log\n", - "datetime_format = %d/%b/%Y:%H:%M:%S\n", - "[/var/log/cloud-init-output.log]\n", - "file = /var/log/cloud-init-output.log\n", - "log_group_name = ", - { - "Ref" : "CWLLogGroup" - }, - "\n", - "log_stream_name = {instance_id}/cloud-init-output.log\n", - "datetime_format = %d/%b/%Y:%H:%M:%S\n", - "[/var/log/cfn-init.log]\n", - "file = /var/log/cfn-init.log\n", - "log_group_name = ", - { - "Ref" : "CWLLogGroup" - }, - "\n", - "log_stream_name = {instance_id}/cfn-init.log\n", - "datetime_format = %d/%b/%Y:%H:%M:%S\n", - "[/var/log/cfn-wire.log]\n", - "file = /var/log/cfn-wire.log\n", - "log_group_name = ", - { - "Ref" : "CWLLogGroup" - }, - "\n", - "log_stream_name = {instance_id}/cfn-wire.log\n", - "datetime_format = %d/%b/%Y:%H:%M:%S\n" - ] - ] - }, - "\n" - ] - }, - "mode" : "000444", - "owner" : "root", - "group" : "root" + "Ref" : "ExtraJson" + } + } + }, + "commands" : { + "mkdir" : { + "command" : "mkdir -p /etc/chef/ohai/hints" + }, + "touch" : { + "command" : "touch /etc/chef/ohai/hints/ec2.json" + }, + "jq" : { + "command" : "/usr/local/bin/jq --argfile f1 /tmp/dna.json --argfile f2 /tmp/extra.json -n '$f1 + $f2 | .cfncluster = $f1.cfncluster + $f2.cfncluster' > /etc/chef/dna.json || echo \"jq not installed\"; cp /tmp/dna.json /etc/chef/dna.json" + } + } + }, + "getCookbooks" : { + "commands" : { + "berk" : { + "command" : "for d in `ls /tmp/cookbooks`; do cd /tmp/cookbooks/$d;LANG=en_US.UTF-8 /opt/chef/embedded/bin/berks vendor /etc/chef/cookbooks; done ", + "cwd" : "/tmp/cookbooks", + "env" : { + "HOME" : "/tmp" + } + } + } + }, + "chefPrepEnv" : { + "commands" : { + "chef" : { + "command" : "chef-client --local-mode --config /etc/chef/client.rb --log_level auto --force-formatter --no-color --chef-zero-port 8889 --json-attributes /etc/chef/dna.json --override-runlist cfncluster::_prep_env", + "cwd" : "/etc/chef" + } + } + }, + "shellRunPreInstall" : { + "commands" : { + "runpreinstall" : { + "command" : "/opt/cfncluster/scripts/fetch_and_run -preinstall" + } + } + }, + "chefConfig" : { + "commands" : { + "chef" : { + "command" : "chef-client --local-mode --config /etc/chef/client.rb --log_level auto --force-formatter --no-color --chef-zero-port 8889 --json-attributes /etc/chef/dna.json", + "cwd" : "/etc/chef" + } + } + }, + "shellRunPostInstall" : { + "commands" : { + "runpostinstall" : { + "command" : "/opt/cfncluster/scripts/fetch_and_run -postinstall" } } }, - "runBootAsCompute" : { + "shellForkClusterReadyInstall" : { "commands" : { - "bootascompute" : { - "command" : "/opt/cfncluster/scripts/boot_as_compute" + "clusterreadyinstall" : { + "command" : "/opt/cfncluster/scripts/fetch_and_run -clusterreadyinstall" + } + } + }, + "signalComputeReady" : { + "commands" : { + "compute_ready" : { + "command" : "/opt/cfncluster/scripts/compute_ready" } } } @@ -2473,17 +2847,20 @@ "FromPort" : "22", "ToPort" : "22", "CidrIp" : { - "Ref" : "SSHFrom" + "Ref" : "AccessFrom" } }, { "IpProtocol" : "tcp", "FromPort" : "80", "ToPort" : "80", - "CidrIp" : "0.0.0.0/0" + "CidrIp" : { + "Ref" : "AccessFrom" + } } ] - } + }, + "Condition" : "CreateSecurityGroups" }, "MasterSecurityGroupIngress" : { "Type" : "AWS::EC2::SecurityGroupIngress", @@ -2497,7 +2874,8 @@ "GroupId" : { "Ref" : "MasterSecurityGroup" } - } + }, + "Condition" : "CreateSecurityGroups" }, "ComputeSecurityGroup" : { "Type" : "AWS::EC2::SecurityGroup", @@ -2516,7 +2894,8 @@ "ToPort" : "65535" } ] - } + }, + "Condition" : "CreateSecurityGroups" }, "ComputeSecurityGroupIngress" : { "Type" : "AWS::EC2::SecurityGroupIngress", @@ -2530,7 +2909,8 @@ "GroupId" : { "Ref" : "ComputeSecurityGroup" } - } + }, + "Condition" : "CreateSecurityGroups" }, "MasterENI" : { "Type" : "AWS::EC2::NetworkInterface", @@ -2542,7 +2922,15 @@ "SourceDestCheck" : "false", "GroupSet" : [ { - "Ref" : "MasterSecurityGroup" + "Fn::If" : [ + "CreateSecurityGroups", + { + "Ref" : "MasterSecurityGroup" + }, + { + "Ref" : "AWS::NoValue" + } + ] }, { "Fn::If" : [ @@ -2554,6 +2942,17 @@ "Ref" : "AWS::NoValue" } ] + }, + { + "Fn::If" : [ + "UseExistingSecurityGroup", + { + "Ref" : "VPCSecurityGroupId" + }, + { + "Ref" : "AWS::NoValue" + } + ] } ] } @@ -2622,7 +3021,8 @@ } ] } - } + }, + "Condition" : "CreateEBSVolume" }, "AssosiateEIP" : { "Type" : "AWS::EC2::EIPAssociation", diff --git a/docs/source/_static/logo.png b/docs/source/_static/logo.png new file mode 100644 index 0000000000..684f30f92d Binary files /dev/null and b/docs/source/_static/logo.png differ diff --git a/docs/source/_templates/feedback.html b/docs/source/_templates/feedback.html new file mode 100644 index 0000000000..62f4f503c4 --- /dev/null +++ b/docs/source/_templates/feedback.html @@ -0,0 +1,5 @@ +
+

Feedback

+ +
diff --git a/docs/source/_templates/page.html b/docs/source/_templates/page.html new file mode 100644 index 0000000000..cf16520d15 --- /dev/null +++ b/docs/source/_templates/page.html @@ -0,0 +1,8 @@ +{%- extends "!page.html" %} + +{%- block nav_links %} +
  • Home
  • +
  • Forum
  • +
  • GitHub
  • +{%- endblock %} + diff --git a/docs/source/_templates/sidebarlogo.html b/docs/source/_templates/sidebarlogo.html new file mode 100644 index 0000000000..e3206e77ff --- /dev/null +++ b/docs/source/_templates/sidebarlogo.html @@ -0,0 +1,5 @@ + diff --git a/docs/source/_templates/userguide.html b/docs/source/_templates/userguide.html new file mode 100644 index 0000000000..7eb42050a0 --- /dev/null +++ b/docs/source/_templates/userguide.html @@ -0,0 +1,6 @@ +
    +

    Getting Started

    +

    First time using CfnCluster? See the + Getting Started section for + help getting started.

    +
    diff --git a/docs/source/conf.py b/docs/source/conf.py index 4615d76d88..77bebfb44b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,13 +12,12 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys -import os +import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('.')) # -- General configuration ------------------------------------------------ @@ -28,9 +27,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [ - 'sphinx.ext.todo', -] +extensions = [] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -46,16 +43,16 @@ # General information about the project. project = u'CfnCluster' -copyright = u'2014-2015, Amazon Web Services' +copyright = u'2014-2016, Amazon Web Services' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = 'v0.0.22' +version = '1.0' # The full version, including alpha/beta/rc tags. -release = 'v0.0.22-rc.1' +release = '1.0.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -87,7 +84,8 @@ #show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = 'guzzle_sphinx_theme.GuzzleStyle' +#pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] @@ -103,7 +101,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' +#html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -115,7 +113,7 @@ # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". -#html_title = None +html_title = "CfnCluster %s" % release # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None @@ -148,7 +146,13 @@ #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. -#html_sidebars = {} +html_sidebars = { + '**': ['sidebarlogo.html', + 'localtoc.html', + 'searchbox.html', + 'feedback.html', + 'userguide.html'] +} # Additional templates that should be rendered to pages, maps page names to # template names. @@ -183,6 +187,27 @@ # Output file base name for HTML help builder. htmlhelp_basename = 'cfnclusterdoc' +html_translator_class = 'guzzle_sphinx_theme.HTMLTranslator' +p = os.path.abspath('.') +p = os.path.join(p, 'guzzle_sphinx_theme') +html_theme_path = [p] +html_theme = 'guzzle_sphinx_theme' +# Register the theme as an extension to generate a sitemap.xml +extensions.append("guzzle_sphinx_theme") + +html_theme_options = { + # Set the name of the project to appear in the nav menu + "project_nav_name": "CfnCluster", + # Set your GitHub user and repo to enable GitHub stars links + "github_user": "awslabs", + "github_repo": "cfncluster", + # Set to true to bind left and right key events to turn the page + "bind_key_events": False, + # Specify a base_url used to generate sitemap.xml links. If not + # specified, then no sitemap will be built. + "base_url": "http://cfncluster.readthedocs.org/lastet/" +} + # -- Options for LaTeX output --------------------------------------------- diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index 45fdfffcd0..ee88d8859d 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -274,7 +274,7 @@ Defaults to 10 in default template. :: master_root_volume_size = 10 compute_root_volume_size -""""""""""""""""""""""" +"""""""""""""""""""""""" ComputeFleet root volume size in GB. (AMI must support growroot) Defaults to 10 in default template. :: @@ -285,9 +285,9 @@ base_os """"""" OS type used in the cluster -Defaults to centos6 in the default template. :: +Defaults to alinux in the default template. :: - base_os = centos6 + base_os = alinux cwl_region """""""""" @@ -305,6 +305,22 @@ Defaults to NONE in the default template. :: cwl_log_group = NONE +ec2_iam_role +"""""""""""" +Existing EC2 IAM Role that will be attached to all instances in the cluster. + +Defaults to NONE in the default template. :: + + ec2_iam_role = NONE + +extra_json +"""""""""" +Extra JSON that will be merged into the dna.json used by Chef. + +Defaults to {} in the default template. :: + + extra_json = {} + vpc_settings """""""""""" Settings section relating to VPC to be used @@ -369,11 +385,11 @@ Defaults to NONE in the default template. :: additional_sg = sg-xxxxxx -master_subnet_id -"""""""""""""""" +compute_subnet_id +""""""""""""""""" ID of an existing subnet you want to provision the compute nodes into. :: - master_subnet_id = subnet-xxxxxx + compute_subnet_id = subnet-xxxxxx compute_subnet_cidr """"""""""""""""""" @@ -391,6 +407,14 @@ Defaults to true. :: use_public_ips = true +vpc_security_group_id +""""""""""""""""""""" +Use an existing security group for all instances. + +Defaults to NONE in the default template. :: + + vpc_security_group_id = sg-xxxxxx + .. _ebs_section: ebs @@ -440,6 +464,14 @@ Defaults to false for default template. :: encrypted = false +ebs_volume_id +""""""""""""" +EBS Volume Id of an existing volume that will be attached to the MasterServer. + +Defaults to NONE for default template. :: + + ebs_volume_id = vol-xxxxxx + .. _scaling_section: scaling @@ -449,23 +481,23 @@ Settings which define how the compute nodes scale. :: [scaling custom] scaling_period = 60 - scaling_cooldown = 120 + scaling_cooldown = 300 scaling_threshold """"""""""""""""" Threshold for triggering CloudWatch ScaleUp action. -Defaults to 4 for default template. :: +Defaults to 1 for default template. :: - scaling_threshold = 4 + scaling_threshold = 1 scaling_adjustment """""""""""""""""" Number of instances to add when called CloudWatch ScaleUp action. -Defaults to 2 for default template. :: +Defaults to 1 for default template. :: - scaling_adjustment = 2 + scaling_adjustment = 1 scaling_threshold2 @@ -504,6 +536,6 @@ scaling_cooldown """""""""""""""" Amount of time in seconds to wait before attempting further scaling actions. -Defaults to 120 for the default template. :: +Defaults to 300 for the default template. :: - scaling_cooldown = 120 + scaling_cooldown = 300 diff --git a/docs/source/functional.rst b/docs/source/functional.rst index 43d64eac5f..40b4451b73 100644 --- a/docs/source/functional.rst +++ b/docs/source/functional.rst @@ -1,4 +1,4 @@ -.. _functional +.. _functional: How CfnCluster Works #################### diff --git a/docs/source/guzzle_sphinx_theme/LICENSE b/docs/source/guzzle_sphinx_theme/LICENSE new file mode 100644 index 0000000000..b711d95871 --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2013 Michael Dowling + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/docs/source/guzzle_sphinx_theme/__init__.py b/docs/source/guzzle_sphinx_theme/__init__.py new file mode 100644 index 0000000000..a5bdd2109f --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/__init__.py @@ -0,0 +1,157 @@ +"""Sphinx Guzzle theme.""" + +import os +import xml.etree.ElementTree as ET + +from docutils import nodes +from sphinx.locale import admonitionlabels +from sphinx.writers.html import HTMLTranslator as SphinxHTMLTranslator + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, \ + Number, Operator, Generic, Whitespace, Punctuation, Other, Literal + + +def setup(app): + """Setup conntects events to the sitemap builder""" + app.connect('html-page-context', add_html_link) + app.connect('build-finished', create_sitemap) + app.sitemap_links = [] + + +def add_html_link(app, pagename, templatename, context, doctree): + """As each page is built, collect page names for the sitemap""" + base_url = app.config['html_theme_options'].get('base_url', '') + if base_url: + app.sitemap_links.append(base_url + pagename + ".html") + + +def create_sitemap(app, exception): + """Generates the sitemap.xml from the collected HTML page links""" + if (not app.config['html_theme_options'].get('base_url', '') or + exception is not None or + not app.sitemap_links): + return + + filename = app.outdir + "/sitemap.xml" + print("Generating sitemap.xml in %s" % filename) + + root = ET.Element("urlset") + root.set("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9") + + for link in app.sitemap_links: + url = ET.SubElement(root, "url") + ET.SubElement(url, "loc").text = link + + ET.ElementTree(root).write(filename) + + +def html_theme_path(): + return [os.path.dirname(os.path.abspath(__file__))] + + +class HTMLTranslator(SphinxHTMLTranslator): + """ + Handle translating to bootstrap structure. + """ + def visit_table(self, node, name=''): + """ + Override docutils default table formatter to not include a border + and to use Bootstrap CSS + See: http://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/docutils/writers/html4css1/__init__.py#l1550 + """ + self.context.append(self.compact_p) + self.compact_p = True + classes = ' '.join(['table', 'table-bordered', + self.settings.table_style]).strip() + self.body.append( + self.starttag(node, 'table', CLASS=classes)) + + def depart_table(self, node): + """ + This needs overridin' too + """ + self.compact_p = self.context.pop() + self.body.append('\n') + + +class GuzzleStyle(Style): + background_color = "#f8f8f8" + default_style = "" + + styles = { + # No corresponding class for the following: + #Text: "", # class: '' + Whitespace: "underline #f8f8f8", # class: 'w' + Error: "#a40000 border:#ef2929", # class: 'err' + Other: "#000000", # class 'x' + + Comment: "italic #8f5902", # class: 'c' + Comment.Preproc: "noitalic", # class: 'cp' + + Keyword: "bold #004461", # class: 'k' + Keyword.Constant: "bold #004461", # class: 'kc' + Keyword.Declaration: "bold #004461", # class: 'kd' + Keyword.Namespace: "bold #004461", # class: 'kn' + Keyword.Pseudo: "bold #004461", # class: 'kp' + Keyword.Reserved: "bold #004461", # class: 'kr' + Keyword.Type: "bold #004461", # class: 'kt' + + Operator: "#582800", # class: 'o' + Operator.Word: "bold #004461", # class: 'ow' - like keywords + + Punctuation: "bold #000000", # class: 'p' + + # because special names such as Name.Class, Name.Function, etc. + # are not recognized as such later in the parsing, we choose them + # to look the same as ordinary variables. + Name: "#000000", # class: 'n' + Name.Attribute: "#006EC4", # class: 'na' - to be revised + Name.Builtin: "#004461", # class: 'nb' + Name.Builtin.Pseudo: "#3465a4", # class: 'bp' + Name.Class: "#000000", # class: 'nc' - to be revised + Name.Constant: "#000000", # class: 'no' - to be revised + Name.Decorator: "#888", # class: 'nd' - to be revised + Name.Entity: "#ce5c00", # class: 'ni' + Name.Exception: "bold #cc0000", # class: 'ne' + Name.Function: "#000000", # class: 'nf' + Name.Property: "#000000", # class: 'py' + Name.Label: "#f57900", # class: 'nl' + Name.Namespace: "#000000", # class: 'nn' - to be revised + Name.Other: "#000000", # class: 'nx' + Name.Tag: "bold #004461", # class: 'nt' - like a keyword + Name.Variable: "#000000", # class: 'nv' - to be revised + Name.Variable.Class: "#000000", # class: 'vc' - to be revised + Name.Variable.Global: "#000000", # class: 'vg' - to be revised + Name.Variable.Instance: "#000000", # class: 'vi' - to be revised + + Number: "#990000", # class: 'm' + + Literal: "#000000", # class: 'l' + Literal.Date: "#000000", # class: 'ld' + + String: "#4e9a06", # class: 's' + String.Backtick: "#4e9a06", # class: 'sb' + String.Char: "#4e9a06", # class: 'sc' + String.Doc: "italic #8f5902", # class: 'sd' - like a comment + String.Double: "#4e9a06", # class: 's2' + String.Escape: "#4e9a06", # class: 'se' + String.Heredoc: "#4e9a06", # class: 'sh' + String.Interpol: "#4e9a06", # class: 'si' + String.Other: "#4e9a06", # class: 'sx' + String.Regex: "#4e9a06", # class: 'sr' + String.Single: "#4e9a06", # class: 's1' + String.Symbol: "#4e9a06", # class: 'ss' + + Generic: "#000000", # class: 'g' + Generic.Deleted: "#a40000", # class: 'gd' + Generic.Emph: "italic #000000", # class: 'ge' + Generic.Error: "#ef2929", # class: 'gr' + Generic.Heading: "bold #000080", # class: 'gh' + Generic.Inserted: "#00A000", # class: 'gi' + Generic.Output: "#888", # class: 'go' + Generic.Prompt: "#745334", # class: 'gp' + Generic.Strong: "bold #000000", # class: 'gs' + Generic.Subheading: "bold #800080", # class: 'gu' + Generic.Traceback: "bold #a40000", # class: 'gt' + } diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/comments.html b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/comments.html new file mode 100644 index 0000000000..42a95fb912 --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/comments.html @@ -0,0 +1,16 @@ +{% if theme_disqus_comments_shortname %} +
    +
    + + + comments powered by Disqus +
    +{% endif %} diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/layout.html b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/layout.html new file mode 100644 index 0000000000..99ee9579b6 --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/layout.html @@ -0,0 +1,151 @@ +{%- extends "basic/layout.html" %} + +{# Do this so that bootstrap is included before the main css file #} +{%- block htmltitle %} + {{ super() }} + + +{%- endblock %} + +{# Displays the next and previous links both before and after content #} +{% macro render_relations(class='footer-links', add_spacer=0) -%} + {% if prev or next %} +
    + +
    + {% else %} + {% if add_spacer %} +
    + {% endif %} + {% endif %} +{%- endmacro %} + +{%- block extrahead %} + + + {% if theme_touch_icon %} + + {% endif %} + {{ super() }} +{% endblock %} + +{% block header %} + + {{ super() }} + +{% endblock %} + +{%- block content %} + + {%- if pagename == 'index' and theme_index_template %} + {% include theme_index_template %} + {%- else %} +
    + + {%- block top_rel_links %} + {{ render_relations('top-links', 1) }} + {%- endblock %} + + {%- block document_wrapper %} +
    + {%- block sidebar1 %}{{ sidebar() }}{% endblock %} + {%- block document %} +
    + {% block body %} {% endblock %} +
    + {%- endblock %} + {%- block sidebar2 %}{# Place holder for other sidebar #}{% endblock %} +
    +
    + {%- endblock %} + + {%- block bottom_rel_links %} + {{ render_relations('footer-links') }} + {%- endblock %} + + {%- block comments -%} + {% if theme_disqus_comments_shortname %} +
    + {% include "comments.html" %} +
    + {% endif %} + {%- endblock %} + +
    + {%- endif %} +{%- endblock %} + +{%- block footer %} + + {%- block footer_wrapper %} + + {%- endblock %} + + {%- block ga %} + {%- if theme_google_analytics_account %} + + {%- endif %} + {%- endblock %} + + {% block key_events %} + {% if theme_bind_key_events %} + + {% endif %} + {% endblock %} + +{%- endblock %} + diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/searchbox.html b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/searchbox.html new file mode 100644 index 0000000000..115b88e190 --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/searchbox.html @@ -0,0 +1,12 @@ +{%- if pagename != "search" %} + + +{%- endif %} diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap-responsive.min.css b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap-responsive.min.css new file mode 100644 index 0000000000..d1b7f4b0b8 --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap-responsive.min.css @@ -0,0 +1,9 @@ +/*! + * Bootstrap Responsive v2.3.1 + * + * Copyright 2012 Twitter, Inc + * Licensed under the Apache License v2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Designed and built with all the love in the world @twitter by @mdo and @fat. + */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@-ms-viewport{width:device-width}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}.visible-desktop{display:inherit!important}@media(min-width:768px) and (max-width:979px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}}@media(max-width:767px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-phone{display:inherit!important}.hidden-phone{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:inherit!important}.hidden-print{display:none!important}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:30px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.564102564102564%;*margin-left:2.5109110747408616%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.564102564102564%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145299145%;*width:91.39979996362975%}.row-fluid .span10{width:82.90598290598291%;*width:82.8527914166212%}.row-fluid .span9{width:74.35897435897436%;*width:74.30578286961266%}.row-fluid .span8{width:65.81196581196582%;*width:65.75877432260411%}.row-fluid .span7{width:57.26495726495726%;*width:57.21176577559556%}.row-fluid .span6{width:48.717948717948715%;*width:48.664757228587014%}.row-fluid .span5{width:40.17094017094017%;*width:40.11774868157847%}.row-fluid .span4{width:31.623931623931625%;*width:31.570740134569924%}.row-fluid .span3{width:23.076923076923077%;*width:23.023731587561375%}.row-fluid .span2{width:14.52991452991453%;*width:14.476723040552828%}.row-fluid .span1{width:5.982905982905983%;*width:5.929714493544281%}.row-fluid .offset12{margin-left:105.12820512820512%;*margin-left:105.02182214948171%}.row-fluid .offset12:first-child{margin-left:102.56410256410257%;*margin-left:102.45771958537915%}.row-fluid .offset11{margin-left:96.58119658119658%;*margin-left:96.47481360247316%}.row-fluid .offset11:first-child{margin-left:94.01709401709402%;*margin-left:93.91071103837061%}.row-fluid .offset10{margin-left:88.03418803418803%;*margin-left:87.92780505546462%}.row-fluid .offset10:first-child{margin-left:85.47008547008548%;*margin-left:85.36370249136206%}.row-fluid .offset9{margin-left:79.48717948717949%;*margin-left:79.38079650845607%}.row-fluid .offset9:first-child{margin-left:76.92307692307693%;*margin-left:76.81669394435352%}.row-fluid .offset8{margin-left:70.94017094017094%;*margin-left:70.83378796144753%}.row-fluid .offset8:first-child{margin-left:68.37606837606839%;*margin-left:68.26968539734497%}.row-fluid .offset7{margin-left:62.393162393162385%;*margin-left:62.28677941443899%}.row-fluid .offset7:first-child{margin-left:59.82905982905982%;*margin-left:59.72267685033642%}.row-fluid .offset6{margin-left:53.84615384615384%;*margin-left:53.739770867430444%}.row-fluid .offset6:first-child{margin-left:51.28205128205128%;*margin-left:51.175668303327875%}.row-fluid .offset5{margin-left:45.299145299145295%;*margin-left:45.1927623204219%}.row-fluid .offset5:first-child{margin-left:42.73504273504273%;*margin-left:42.62865975631933%}.row-fluid .offset4{margin-left:36.75213675213675%;*margin-left:36.645753773413354%}.row-fluid .offset4:first-child{margin-left:34.18803418803419%;*margin-left:34.081651209310785%}.row-fluid .offset3{margin-left:28.205128205128204%;*margin-left:28.0987452264048%}.row-fluid .offset3:first-child{margin-left:25.641025641025642%;*margin-left:25.53464266230224%}.row-fluid .offset2{margin-left:19.65811965811966%;*margin-left:19.551736679396257%}.row-fluid .offset2:first-child{margin-left:17.094017094017094%;*margin-left:16.98763411529369%}.row-fluid .offset1{margin-left:11.11111111111111%;*margin-left:11.004728132387708%}.row-fluid .offset1:first-child{margin-left:8.547008547008547%;*margin-left:8.440625568285142%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:30px}input.span12,textarea.span12,.uneditable-input.span12{width:1156px}input.span11,textarea.span11,.uneditable-input.span11{width:1056px}input.span10,textarea.span10,.uneditable-input.span10{width:956px}input.span9,textarea.span9,.uneditable-input.span9{width:856px}input.span8,textarea.span8,.uneditable-input.span8{width:756px}input.span7,textarea.span7,.uneditable-input.span7{width:656px}input.span6,textarea.span6,.uneditable-input.span6{width:556px}input.span5,textarea.span5,.uneditable-input.span5{width:456px}input.span4,textarea.span4,.uneditable-input.span4{width:356px}input.span3,textarea.span3,.uneditable-input.span3{width:256px}input.span2,textarea.span2,.uneditable-input.span2{width:156px}input.span1,textarea.span1,.uneditable-input.span1{width:56px}.thumbnails{margin-left:-30px}.thumbnails>li{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.7624309392265194%;*margin-left:2.709239449864817%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.7624309392265194%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.43646408839778%;*width:91.38327259903608%}.row-fluid .span10{width:82.87292817679558%;*width:82.81973668743387%}.row-fluid .span9{width:74.30939226519337%;*width:74.25620077583166%}.row-fluid .span8{width:65.74585635359117%;*width:65.69266486422946%}.row-fluid .span7{width:57.18232044198895%;*width:57.12912895262725%}.row-fluid .span6{width:48.61878453038674%;*width:48.56559304102504%}.row-fluid .span5{width:40.05524861878453%;*width:40.00205712942283%}.row-fluid .span4{width:31.491712707182323%;*width:31.43852121782062%}.row-fluid .span3{width:22.92817679558011%;*width:22.87498530621841%}.row-fluid .span2{width:14.3646408839779%;*width:14.311449394616199%}.row-fluid .span1{width:5.801104972375691%;*width:5.747913483013988%}.row-fluid .offset12{margin-left:105.52486187845304%;*margin-left:105.41847889972962%}.row-fluid .offset12:first-child{margin-left:102.76243093922652%;*margin-left:102.6560479605031%}.row-fluid .offset11{margin-left:96.96132596685082%;*margin-left:96.8549429881274%}.row-fluid .offset11:first-child{margin-left:94.1988950276243%;*margin-left:94.09251204890089%}.row-fluid .offset10{margin-left:88.39779005524862%;*margin-left:88.2914070765252%}.row-fluid .offset10:first-child{margin-left:85.6353591160221%;*margin-left:85.52897613729868%}.row-fluid .offset9{margin-left:79.8342541436464%;*margin-left:79.72787116492299%}.row-fluid .offset9:first-child{margin-left:77.07182320441989%;*margin-left:76.96544022569647%}.row-fluid .offset8{margin-left:71.2707182320442%;*margin-left:71.16433525332079%}.row-fluid .offset8:first-child{margin-left:68.50828729281768%;*margin-left:68.40190431409427%}.row-fluid .offset7{margin-left:62.70718232044199%;*margin-left:62.600799341718584%}.row-fluid .offset7:first-child{margin-left:59.94475138121547%;*margin-left:59.838368402492065%}.row-fluid .offset6{margin-left:54.14364640883978%;*margin-left:54.037263430116376%}.row-fluid .offset6:first-child{margin-left:51.38121546961326%;*margin-left:51.27483249088986%}.row-fluid .offset5{margin-left:45.58011049723757%;*margin-left:45.47372751851417%}.row-fluid .offset5:first-child{margin-left:42.81767955801105%;*margin-left:42.71129657928765%}.row-fluid .offset4{margin-left:37.01657458563536%;*margin-left:36.91019160691196%}.row-fluid .offset4:first-child{margin-left:34.25414364640884%;*margin-left:34.14776066768544%}.row-fluid .offset3{margin-left:28.45303867403315%;*margin-left:28.346655695309746%}.row-fluid .offset3:first-child{margin-left:25.69060773480663%;*margin-left:25.584224756083227%}.row-fluid .offset2{margin-left:19.88950276243094%;*margin-left:19.783119783707537%}.row-fluid .offset2:first-child{margin-left:17.12707182320442%;*margin-left:17.02068884448102%}.row-fluid .offset1{margin-left:11.32596685082873%;*margin-left:11.219583872105325%}.row-fluid .offset1:first-child{margin-left:8.56353591160221%;*margin-left:8.457152932878806%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:710px}input.span11,textarea.span11,.uneditable-input.span11{width:648px}input.span10,textarea.span10,.uneditable-input.span10{width:586px}input.span9,textarea.span9,.uneditable-input.span9{width:524px}input.span8,textarea.span8,.uneditable-input.span8{width:462px}input.span7,textarea.span7,.uneditable-input.span7{width:400px}input.span6,textarea.span6,.uneditable-input.span6{width:338px}input.span5,textarea.span5,.uneditable-input.span5{width:276px}input.span4,textarea.span4,.uneditable-input.span4{width:214px}input.span3,textarea.span3,.uneditable-input.span3{width:152px}input.span2,textarea.span2,.uneditable-input.span2{width:90px}input.span1,textarea.span1,.uneditable-input.span1{width:28px}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom,.navbar-static-top{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}.thumbnails>li{float:none;margin-left:0}[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:100%;margin-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.span12,.row-fluid .span12{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="offset"]:first-child{margin-left:0}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}.controls-row [class*="span"]+[class*="span"]{margin-left:0}.modal{position:fixed;top:20px;right:20px;left:20px;width:auto;margin:0}.modal.fade{top:-100px}.modal.fade.in{top:20px}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:20px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.media .pull-left,.media .pull-right{display:block;float:none;margin-bottom:10px}.media-object{margin-right:0;margin-left:0}.modal{top:10px;right:10px;left:10px}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top,.navbar-fixed-bottom{position:static}.navbar-fixed-top{margin-bottom:20px}.navbar-fixed-bottom{margin-top:20px}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 10px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#777;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:9px 15px;font-weight:bold;color:#777;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .nav>li>a:focus,.nav-collapse .dropdown-menu a:hover,.nav-collapse .dropdown-menu a:focus{background-color:#f2f2f2}.navbar-inverse .nav-collapse .nav>li>a,.navbar-inverse .nav-collapse .dropdown-menu a{color:#999}.navbar-inverse .nav-collapse .nav>li>a:hover,.navbar-inverse .nav-collapse .nav>li>a:focus,.navbar-inverse .nav-collapse .dropdown-menu a:hover,.navbar-inverse .nav-collapse .dropdown-menu a:focus{background-color:#111}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:none;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .open>.dropdown-menu{display:block}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .nav>li>.dropdown-menu:before,.nav-collapse .nav>li>.dropdown-menu:after{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:10px 15px;margin:10px 0;border-top:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar-inverse .nav-collapse .navbar-form,.navbar-inverse .nav-collapse .navbar-search{border-top-color:#111;border-bottom-color:#111}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}} diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap.min.css b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap.min.css new file mode 100644 index 0000000000..3fd3b1a78d --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap.min.css @@ -0,0 +1,9 @@ +/*! + * Bootstrap v2.3.1 + * + * Copyright 2012 Twitter, Inc + * Licensed under the Apache License v2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Designed and built with all the love in the world @twitter by @mdo and @fat. + */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}label,select,button,input[type="button"],input[type="reset"],input[type="submit"],input[type="radio"],input[type="checkbox"]{cursor:pointer}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}a{color:#08c;text-decoration:none}a:hover,a:focus{color:#005580;text-decoration:underline}.img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.img-polaroid{padding:4px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.1);box-shadow:0 1px 3px rgba(0,0,0,0.1)}.img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.span12{width:940px}.span11{width:860px}.span10{width:780px}.span9{width:700px}.span8{width:620px}.span7{width:540px}.span6{width:460px}.span5{width:380px}.span4{width:300px}.span3{width:220px}.span2{width:140px}.span1{width:60px}.offset12{margin-left:980px}.offset11{margin-left:900px}.offset10{margin-left:820px}.offset9{margin-left:740px}.offset8{margin-left:660px}.offset7{margin-left:580px}.offset6{margin-left:500px}.offset5{margin-left:420px}.offset4{margin-left:340px}.offset3{margin-left:260px}.offset2{margin-left:180px}.offset1{margin-left:100px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.127659574468085%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.48936170212765%;*width:91.43617021276594%}.row-fluid .span10{width:82.97872340425532%;*width:82.92553191489361%}.row-fluid .span9{width:74.46808510638297%;*width:74.41489361702126%}.row-fluid .span8{width:65.95744680851064%;*width:65.90425531914893%}.row-fluid .span7{width:57.44680851063829%;*width:57.39361702127659%}.row-fluid .span6{width:48.93617021276595%;*width:48.88297872340425%}.row-fluid .span5{width:40.42553191489362%;*width:40.37234042553192%}.row-fluid .span4{width:31.914893617021278%;*width:31.861702127659576%}.row-fluid .span3{width:23.404255319148934%;*width:23.351063829787233%}.row-fluid .span2{width:14.893617021276595%;*width:14.840425531914894%}.row-fluid .span1{width:6.382978723404255%;*width:6.329787234042553%}.row-fluid .offset12{margin-left:104.25531914893617%;*margin-left:104.14893617021275%}.row-fluid .offset12:first-child{margin-left:102.12765957446808%;*margin-left:102.02127659574467%}.row-fluid .offset11{margin-left:95.74468085106382%;*margin-left:95.6382978723404%}.row-fluid .offset11:first-child{margin-left:93.61702127659574%;*margin-left:93.51063829787232%}.row-fluid .offset10{margin-left:87.23404255319149%;*margin-left:87.12765957446807%}.row-fluid .offset10:first-child{margin-left:85.1063829787234%;*margin-left:84.99999999999999%}.row-fluid .offset9{margin-left:78.72340425531914%;*margin-left:78.61702127659572%}.row-fluid .offset9:first-child{margin-left:76.59574468085106%;*margin-left:76.48936170212764%}.row-fluid .offset8{margin-left:70.2127659574468%;*margin-left:70.10638297872339%}.row-fluid .offset8:first-child{margin-left:68.08510638297872%;*margin-left:67.9787234042553%}.row-fluid .offset7{margin-left:61.70212765957446%;*margin-left:61.59574468085106%}.row-fluid .offset7:first-child{margin-left:59.574468085106375%;*margin-left:59.46808510638297%}.row-fluid .offset6{margin-left:53.191489361702125%;*margin-left:53.085106382978715%}.row-fluid .offset6:first-child{margin-left:51.063829787234035%;*margin-left:50.95744680851063%}.row-fluid .offset5{margin-left:44.68085106382979%;*margin-left:44.57446808510638%}.row-fluid .offset5:first-child{margin-left:42.5531914893617%;*margin-left:42.4468085106383%}.row-fluid .offset4{margin-left:36.170212765957444%;*margin-left:36.06382978723405%}.row-fluid .offset4:first-child{margin-left:34.04255319148936%;*margin-left:33.93617021276596%}.row-fluid .offset3{margin-left:27.659574468085104%;*margin-left:27.5531914893617%}.row-fluid .offset3:first-child{margin-left:25.53191489361702%;*margin-left:25.425531914893618%}.row-fluid .offset2{margin-left:19.148936170212764%;*margin-left:19.04255319148936%}.row-fluid .offset2:first-child{margin-left:17.02127659574468%;*margin-left:16.914893617021278%}.row-fluid .offset1{margin-left:10.638297872340425%;*margin-left:10.53191489361702%}.row-fluid .offset1:first-child{margin-left:8.51063829787234%;*margin-left:8.404255319148938%}[class*="span"].hide,.row-fluid [class*="span"].hide{display:none}[class*="span"].pull-right,.row-fluid [class*="span"].pull-right{float:right}.container{margin-right:auto;margin-left:auto;*zoom:1}.container:before,.container:after{display:table;line-height:0;content:""}.container:after{clear:both}.container-fluid{padding-right:20px;padding-left:20px;*zoom:1}.container-fluid:before,.container-fluid:after{display:table;line-height:0;content:""}.container-fluid:after{clear:both}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:21px;font-weight:200;line-height:30px}small{font-size:85%}strong{font-weight:bold}em{font-style:italic}cite{font-style:normal}.muted{color:#999}a.muted:hover,a.muted:focus{color:#808080}.text-warning{color:#c09853}a.text-warning:hover,a.text-warning:focus{color:#a47e3c}.text-error{color:#b94a48}a.text-error:hover,a.text-error:focus{color:#953b39}.text-info{color:#3a87ad}a.text-info:hover,a.text-info:focus{color:#2d6987}.text-success{color:#468847}a.text-success:hover,a.text-success:focus{color:#356635}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}h1,h2,h3,h4,h5,h6{margin:10px 0;font-family:inherit;font-weight:bold;line-height:20px;color:inherit;text-rendering:optimizelegibility}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:normal;line-height:1;color:#999}h1,h2,h3{line-height:40px}h1{font-size:38.5px}h2{font-size:31.5px}h3{font-size:24.5px}h4{font-size:17.5px}h5{font-size:14px}h6{font-size:11.9px}h1 small{font-size:24.5px}h2 small{font-size:17.5px}h3 small{font-size:14px}h4 small{font-size:14px}.page-header{padding-bottom:9px;margin:20px 0 30px;border-bottom:1px solid #eee}ul,ol{padding:0;margin:0 0 10px 25px}ul ul,ul ol,ol ol,ol ul{margin-bottom:0}li{line-height:20px}ul.unstyled,ol.unstyled{margin-left:0;list-style:none}ul.inline,ol.inline{margin-left:0;list-style:none}ul.inline>li,ol.inline>li{display:inline-block;*display:inline;padding-right:5px;padding-left:5px;*zoom:1}dl{margin-bottom:20px}dt,dd{line-height:20px}dt{font-weight:bold}dd{margin-left:10px}.dl-horizontal{*zoom:1}.dl-horizontal:before,.dl-horizontal:after{display:table;line-height:0;content:""}.dl-horizontal:after{clear:both}.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}hr{margin:20px 0;border:0;border-top:1px solid #eee;border-bottom:1px solid #fff}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:0 0 0 15px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{margin-bottom:0;font-size:15px;line-height:1.25}blockquote small{display:block;line-height:20px;color:#999}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right small:before{content:''}blockquote.pull-right small:after{content:'\00A0 \2014'}q:before,q:after,blockquote:before,blockquote:after{content:""}address{display:block;margin-bottom:20px;font-style:normal;line-height:20px}code,pre{padding:0 3px 2px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;color:#333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}code{padding:2px 4px;color:#d14;white-space:nowrap;background-color:#f7f7f9;border:1px solid #e1e1e8}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:20px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}pre.prettyprint{margin-bottom:20px}pre code{padding:0;color:inherit;white-space:pre;white-space:pre-wrap;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}form{margin:0 0 20px}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:40px;color:#333;border:0;border-bottom:1px solid #e5e5e5}legend small{font-size:15px;color:#999}label,input,button,select,textarea{font-size:14px;font-weight:normal;line-height:20px}input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}label{display:block;margin-bottom:5px}select,textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{display:inline-block;height:20px;padding:4px 6px;margin-bottom:10px;font-size:14px;line-height:20px;color:#555;vertical-align:middle;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}input,textarea,.uneditable-input{width:206px}textarea{height:auto}textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}textarea:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus,.uneditable-input:focus{border-color:rgba(82,168,236,0.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6)}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;*margin-top:0;line-height:normal}input[type="file"],input[type="image"],input[type="submit"],input[type="reset"],input[type="button"],input[type="radio"],input[type="checkbox"]{width:auto}select,input[type="file"]{height:30px;*margin-top:4px;line-height:30px}select{width:220px;background-color:#fff;border:1px solid #ccc}select[multiple],select[size]{height:auto}select:focus,input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.uneditable-input,.uneditable-textarea{color:#999;cursor:not-allowed;background-color:#fcfcfc;border-color:#ccc;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);box-shadow:inset 0 1px 2px rgba(0,0,0,0.025)}.uneditable-input{overflow:hidden;white-space:nowrap}.uneditable-textarea{width:auto;height:auto}input:-moz-placeholder,textarea:-moz-placeholder{color:#999}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#999}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#999}.radio,.checkbox{min-height:20px;padding-left:20px}.radio input[type="radio"],.checkbox input[type="checkbox"]{float:left;margin-left:-20px}.controls>.radio:first-child,.controls>.checkbox:first-child{padding-top:5px}.radio.inline,.checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle}.radio.inline+.radio.inline,.checkbox.inline+.checkbox.inline{margin-left:10px}.input-mini{width:60px}.input-small{width:90px}.input-medium{width:150px}.input-large{width:210px}.input-xlarge{width:270px}.input-xxlarge{width:530px}input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"]{float:none;margin-left:0}.input-append input[class*="span"],.input-append .uneditable-input[class*="span"],.input-prepend input[class*="span"],.input-prepend .uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"],.row-fluid .input-prepend [class*="span"],.row-fluid .input-append [class*="span"]{display:inline-block}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:926px}input.span11,textarea.span11,.uneditable-input.span11{width:846px}input.span10,textarea.span10,.uneditable-input.span10{width:766px}input.span9,textarea.span9,.uneditable-input.span9{width:686px}input.span8,textarea.span8,.uneditable-input.span8{width:606px}input.span7,textarea.span7,.uneditable-input.span7{width:526px}input.span6,textarea.span6,.uneditable-input.span6{width:446px}input.span5,textarea.span5,.uneditable-input.span5{width:366px}input.span4,textarea.span4,.uneditable-input.span4{width:286px}input.span3,textarea.span3,.uneditable-input.span3{width:206px}input.span2,textarea.span2,.uneditable-input.span2{width:126px}input.span1,textarea.span1,.uneditable-input.span1{width:46px}.controls-row{*zoom:1}.controls-row:before,.controls-row:after{display:table;line-height:0;content:""}.controls-row:after{clear:both}.controls-row [class*="span"],.row-fluid .controls-row [class*="span"]{float:left}.controls-row .checkbox[class*="span"],.controls-row .radio[class*="span"]{padding-top:5px}input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background-color:#eee}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"][readonly],input[type="checkbox"][readonly]{background-color:transparent}.control-group.warning .control-label,.control-group.warning .help-block,.control-group.warning .help-inline{color:#c09853}.control-group.warning .checkbox,.control-group.warning .radio,.control-group.warning input,.control-group.warning select,.control-group.warning textarea{color:#c09853}.control-group.warning input,.control-group.warning select,.control-group.warning textarea{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.warning input:focus,.control-group.warning select:focus,.control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e}.control-group.warning .input-prepend .add-on,.control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.control-group.error .control-label,.control-group.error .help-block,.control-group.error .help-inline{color:#b94a48}.control-group.error .checkbox,.control-group.error .radio,.control-group.error input,.control-group.error select,.control-group.error textarea{color:#b94a48}.control-group.error input,.control-group.error select,.control-group.error textarea{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.error input:focus,.control-group.error select:focus,.control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392}.control-group.error .input-prepend .add-on,.control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.control-group.success .control-label,.control-group.success .help-block,.control-group.success .help-inline{color:#468847}.control-group.success .checkbox,.control-group.success .radio,.control-group.success input,.control-group.success select,.control-group.success textarea{color:#468847}.control-group.success input,.control-group.success select,.control-group.success textarea{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.success input:focus,.control-group.success select:focus,.control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b}.control-group.success .input-prepend .add-on,.control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847}.control-group.info .control-label,.control-group.info .help-block,.control-group.info .help-inline{color:#3a87ad}.control-group.info .checkbox,.control-group.info .radio,.control-group.info input,.control-group.info select,.control-group.info textarea{color:#3a87ad}.control-group.info input,.control-group.info select,.control-group.info textarea{border-color:#3a87ad;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.info input:focus,.control-group.info select:focus,.control-group.info textarea:focus{border-color:#2d6987;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3}.control-group.info .input-prepend .add-on,.control-group.info .input-append .add-on{color:#3a87ad;background-color:#d9edf7;border-color:#3a87ad}input:focus:invalid,textarea:focus:invalid,select:focus:invalid{color:#b94a48;border-color:#ee5f5b}input:focus:invalid:focus,textarea:focus:invalid:focus,select:focus:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7}.form-actions{padding:19px 20px 20px;margin-top:20px;margin-bottom:20px;background-color:#f5f5f5;border-top:1px solid #e5e5e5;*zoom:1}.form-actions:before,.form-actions:after{display:table;line-height:0;content:""}.form-actions:after{clear:both}.help-block,.help-inline{color:#595959}.help-block{display:block;margin-bottom:10px}.help-inline{display:inline-block;*display:inline;padding-left:5px;vertical-align:middle;*zoom:1}.input-append,.input-prepend{display:inline-block;margin-bottom:10px;font-size:0;white-space:nowrap;vertical-align:middle}.input-append input,.input-prepend input,.input-append select,.input-prepend select,.input-append .uneditable-input,.input-prepend .uneditable-input,.input-append .dropdown-menu,.input-prepend .dropdown-menu,.input-append .popover,.input-prepend .popover{font-size:14px}.input-append input,.input-prepend input,.input-append select,.input-prepend select,.input-append .uneditable-input,.input-prepend .uneditable-input{position:relative;margin-bottom:0;*margin-left:0;vertical-align:top;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-append input:focus,.input-prepend input:focus,.input-append select:focus,.input-prepend select:focus,.input-append .uneditable-input:focus,.input-prepend .uneditable-input:focus{z-index:2}.input-append .add-on,.input-prepend .add-on{display:inline-block;width:auto;height:20px;min-width:16px;padding:4px 5px;font-size:14px;font-weight:normal;line-height:20px;text-align:center;text-shadow:0 1px 0 #fff;background-color:#eee;border:1px solid #ccc}.input-append .add-on,.input-prepend .add-on,.input-append .btn,.input-prepend .btn,.input-append .btn-group>.dropdown-toggle,.input-prepend .btn-group>.dropdown-toggle{vertical-align:top;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.input-append .active,.input-prepend .active{background-color:#a9dba9;border-color:#46a546}.input-prepend .add-on,.input-prepend .btn{margin-right:-1px}.input-prepend .add-on:first-child,.input-prepend .btn:first-child{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.input-append input,.input-append select,.input-append .uneditable-input{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.input-append input+.btn-group .btn:last-child,.input-append select+.btn-group .btn:last-child,.input-append .uneditable-input+.btn-group .btn:last-child{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-append .add-on,.input-append .btn,.input-append .btn-group{margin-left:-1px}.input-append .add-on:last-child,.input-append .btn:last-child,.input-append .btn-group:last-child>.dropdown-toggle{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-prepend.input-append input,.input-prepend.input-append select,.input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.input-prepend.input-append input+.btn-group .btn,.input-prepend.input-append select+.btn-group .btn,.input-prepend.input-append .uneditable-input+.btn-group .btn{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-prepend.input-append .add-on:first-child,.input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.input-prepend.input-append .add-on:last-child,.input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-prepend.input-append .btn-group:first-child{margin-left:0}input.search-query{padding-right:14px;padding-right:4px \9;padding-left:14px;padding-left:4px \9;margin-bottom:0;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.form-search .input-append .search-query,.form-search .input-prepend .search-query{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.form-search .input-append .search-query{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px}.form-search .input-append .btn{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0}.form-search .input-prepend .search-query{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0}.form-search .input-prepend .btn{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px}.form-search input,.form-inline input,.form-horizontal input,.form-search textarea,.form-inline textarea,.form-horizontal textarea,.form-search select,.form-inline select,.form-horizontal select,.form-search .help-inline,.form-inline .help-inline,.form-horizontal .help-inline,.form-search .uneditable-input,.form-inline .uneditable-input,.form-horizontal .uneditable-input,.form-search .input-prepend,.form-inline .input-prepend,.form-horizontal .input-prepend,.form-search .input-append,.form-inline .input-append,.form-horizontal .input-append{display:inline-block;*display:inline;margin-bottom:0;vertical-align:middle;*zoom:1}.form-search .hide,.form-inline .hide,.form-horizontal .hide{display:none}.form-search label,.form-inline label,.form-search .btn-group,.form-inline .btn-group{display:inline-block}.form-search .input-append,.form-inline .input-append,.form-search .input-prepend,.form-inline .input-prepend{margin-bottom:0}.form-search .radio,.form-search .checkbox,.form-inline .radio,.form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle}.form-search .radio input[type="radio"],.form-search .checkbox input[type="checkbox"],.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:left;margin-right:3px;margin-left:0}.control-group{margin-bottom:10px}legend+.control-group{margin-top:20px;-webkit-margin-top-collapse:separate}.form-horizontal .control-group{margin-bottom:20px;*zoom:1}.form-horizontal .control-group:before,.form-horizontal .control-group:after{display:table;line-height:0;content:""}.form-horizontal .control-group:after{clear:both}.form-horizontal .control-label{float:left;width:160px;padding-top:5px;text-align:right}.form-horizontal .controls{*display:inline-block;*padding-left:20px;margin-left:180px;*margin-left:0}.form-horizontal .controls:first-child{*padding-left:180px}.form-horizontal .help-block{margin-bottom:0}.form-horizontal input+.help-block,.form-horizontal select+.help-block,.form-horizontal textarea+.help-block,.form-horizontal .uneditable-input+.help-block,.form-horizontal .input-prepend+.help-block,.form-horizontal .input-append+.help-block{margin-top:10px}.form-horizontal .form-actions{padding-left:180px}table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.table{width:100%;margin-bottom:20px}.table th,.table td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px solid #ddd}.table th{font-weight:bold}.table thead th{vertical-align:bottom}.table caption+thead tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child th,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child th,.table thead:first-child tr:first-child td{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed th,.table-condensed td{padding:4px 5px}.table-bordered{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.table-bordered th,.table-bordered td{border-left:1px solid #ddd}.table-bordered caption+thead tr:first-child th,.table-bordered caption+tbody tr:first-child th,.table-bordered caption+tbody tr:first-child td,.table-bordered colgroup+thead tr:first-child th,.table-bordered colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody tr:first-child td,.table-bordered thead:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child td{border-top:0}.table-bordered thead:first-child tr:first-child>th:first-child,.table-bordered tbody:first-child tr:first-child>td:first-child,.table-bordered tbody:first-child tr:first-child>th:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.table-bordered thead:first-child tr:first-child>th:last-child,.table-bordered tbody:first-child tr:first-child>td:last-child,.table-bordered tbody:first-child tr:first-child>th:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px}.table-bordered thead:last-child tr:last-child>th:first-child,.table-bordered tbody:last-child tr:last-child>td:first-child,.table-bordered tbody:last-child tr:last-child>th:first-child,.table-bordered tfoot:last-child tr:last-child>td:first-child,.table-bordered tfoot:last-child tr:last-child>th:first-child{-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px}.table-bordered thead:last-child tr:last-child>th:last-child,.table-bordered tbody:last-child tr:last-child>td:last-child,.table-bordered tbody:last-child tr:last-child>th:last-child,.table-bordered tfoot:last-child tr:last-child>td:last-child,.table-bordered tfoot:last-child tr:last-child>th:last-child{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px}.table-bordered tfoot+tbody:last-child tr:last-child td:first-child{-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;-moz-border-radius-bottomleft:0}.table-bordered tfoot+tbody:last-child tr:last-child td:last-child{-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomright:0}.table-bordered caption+thead tr:first-child th:first-child,.table-bordered caption+tbody tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child th:first-child,.table-bordered colgroup+tbody tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.table-bordered caption+thead tr:first-child th:last-child,.table-bordered caption+tbody tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child th:last-child,.table-bordered colgroup+tbody tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px}.table-striped tbody>tr:nth-child(odd)>td,.table-striped tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover tbody tr:hover>td,.table-hover tbody tr:hover>th{background-color:#f5f5f5}table td[class*="span"],table th[class*="span"],.row-fluid table td[class*="span"],.row-fluid table th[class*="span"]{display:table-cell;float:none;margin-left:0}.table td.span1,.table th.span1{float:none;width:44px;margin-left:0}.table td.span2,.table th.span2{float:none;width:124px;margin-left:0}.table td.span3,.table th.span3{float:none;width:204px;margin-left:0}.table td.span4,.table th.span4{float:none;width:284px;margin-left:0}.table td.span5,.table th.span5{float:none;width:364px;margin-left:0}.table td.span6,.table th.span6{float:none;width:444px;margin-left:0}.table td.span7,.table th.span7{float:none;width:524px;margin-left:0}.table td.span8,.table th.span8{float:none;width:604px;margin-left:0}.table td.span9,.table th.span9{float:none;width:684px;margin-left:0}.table td.span10,.table th.span10{float:none;width:764px;margin-left:0}.table td.span11,.table th.span11{float:none;width:844px;margin-left:0}.table td.span12,.table th.span12{float:none;width:924px;margin-left:0}.table tbody tr.success>td{background-color:#dff0d8}.table tbody tr.error>td{background-color:#f2dede}.table tbody tr.warning>td{background-color:#fcf8e3}.table tbody tr.info>td{background-color:#d9edf7}.table-hover tbody tr.success:hover>td{background-color:#d0e9c6}.table-hover tbody tr.error:hover>td{background-color:#ebcccc}.table-hover tbody tr.warning:hover>td{background-color:#faf2cc}.table-hover tbody tr.info:hover>td{background-color:#c4e3f3}[class^="icon-"],[class*=" icon-"]{display:inline-block;width:14px;height:14px;margin-top:1px;*margin-right:.3em;line-height:14px;vertical-align:text-top;background-image:url("../img/glyphicons-halflings.png");background-position:14px 14px;background-repeat:no-repeat}.icon-white,.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:focus>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>li>a:focus>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],.dropdown-submenu:focus>a>[class^="icon-"],.dropdown-submenu:hover>a>[class*=" icon-"],.dropdown-submenu:focus>a>[class*=" icon-"]{background-image:url("../img/glyphicons-halflings-white.png")}.icon-glass{background-position:0 0}.icon-music{background-position:-24px 0}.icon-search{background-position:-48px 0}.icon-envelope{background-position:-72px 0}.icon-heart{background-position:-96px 0}.icon-star{background-position:-120px 0}.icon-star-empty{background-position:-144px 0}.icon-user{background-position:-168px 0}.icon-film{background-position:-192px 0}.icon-th-large{background-position:-216px 0}.icon-th{background-position:-240px 0}.icon-th-list{background-position:-264px 0}.icon-ok{background-position:-288px 0}.icon-remove{background-position:-312px 0}.icon-zoom-in{background-position:-336px 0}.icon-zoom-out{background-position:-360px 0}.icon-off{background-position:-384px 0}.icon-signal{background-position:-408px 0}.icon-cog{background-position:-432px 0}.icon-trash{background-position:-456px 0}.icon-home{background-position:0 -24px}.icon-file{background-position:-24px -24px}.icon-time{background-position:-48px -24px}.icon-road{background-position:-72px -24px}.icon-download-alt{background-position:-96px -24px}.icon-download{background-position:-120px -24px}.icon-upload{background-position:-144px -24px}.icon-inbox{background-position:-168px -24px}.icon-play-circle{background-position:-192px -24px}.icon-repeat{background-position:-216px -24px}.icon-refresh{background-position:-240px -24px}.icon-list-alt{background-position:-264px -24px}.icon-lock{background-position:-287px -24px}.icon-flag{background-position:-312px -24px}.icon-headphones{background-position:-336px -24px}.icon-volume-off{background-position:-360px -24px}.icon-volume-down{background-position:-384px -24px}.icon-volume-up{background-position:-408px -24px}.icon-qrcode{background-position:-432px -24px}.icon-barcode{background-position:-456px -24px}.icon-tag{background-position:0 -48px}.icon-tags{background-position:-25px -48px}.icon-book{background-position:-48px -48px}.icon-bookmark{background-position:-72px -48px}.icon-print{background-position:-96px -48px}.icon-camera{background-position:-120px -48px}.icon-font{background-position:-144px -48px}.icon-bold{background-position:-167px -48px}.icon-italic{background-position:-192px -48px}.icon-text-height{background-position:-216px -48px}.icon-text-width{background-position:-240px -48px}.icon-align-left{background-position:-264px -48px}.icon-align-center{background-position:-288px -48px}.icon-align-right{background-position:-312px -48px}.icon-align-justify{background-position:-336px -48px}.icon-list{background-position:-360px -48px}.icon-indent-left{background-position:-384px -48px}.icon-indent-right{background-position:-408px -48px}.icon-facetime-video{background-position:-432px -48px}.icon-picture{background-position:-456px -48px}.icon-pencil{background-position:0 -72px}.icon-map-marker{background-position:-24px -72px}.icon-adjust{background-position:-48px -72px}.icon-tint{background-position:-72px -72px}.icon-edit{background-position:-96px -72px}.icon-share{background-position:-120px -72px}.icon-check{background-position:-144px -72px}.icon-move{background-position:-168px -72px}.icon-step-backward{background-position:-192px -72px}.icon-fast-backward{background-position:-216px -72px}.icon-backward{background-position:-240px -72px}.icon-play{background-position:-264px -72px}.icon-pause{background-position:-288px -72px}.icon-stop{background-position:-312px -72px}.icon-forward{background-position:-336px -72px}.icon-fast-forward{background-position:-360px -72px}.icon-step-forward{background-position:-384px -72px}.icon-eject{background-position:-408px -72px}.icon-chevron-left{background-position:-432px -72px}.icon-chevron-right{background-position:-456px -72px}.icon-plus-sign{background-position:0 -96px}.icon-minus-sign{background-position:-24px -96px}.icon-remove-sign{background-position:-48px -96px}.icon-ok-sign{background-position:-72px -96px}.icon-question-sign{background-position:-96px -96px}.icon-info-sign{background-position:-120px -96px}.icon-screenshot{background-position:-144px -96px}.icon-remove-circle{background-position:-168px -96px}.icon-ok-circle{background-position:-192px -96px}.icon-ban-circle{background-position:-216px -96px}.icon-arrow-left{background-position:-240px -96px}.icon-arrow-right{background-position:-264px -96px}.icon-arrow-up{background-position:-289px -96px}.icon-arrow-down{background-position:-312px -96px}.icon-share-alt{background-position:-336px -96px}.icon-resize-full{background-position:-360px -96px}.icon-resize-small{background-position:-384px -96px}.icon-plus{background-position:-408px -96px}.icon-minus{background-position:-433px -96px}.icon-asterisk{background-position:-456px -96px}.icon-exclamation-sign{background-position:0 -120px}.icon-gift{background-position:-24px -120px}.icon-leaf{background-position:-48px -120px}.icon-fire{background-position:-72px -120px}.icon-eye-open{background-position:-96px -120px}.icon-eye-close{background-position:-120px -120px}.icon-warning-sign{background-position:-144px -120px}.icon-plane{background-position:-168px -120px}.icon-calendar{background-position:-192px -120px}.icon-random{width:16px;background-position:-216px -120px}.icon-comment{background-position:-240px -120px}.icon-magnet{background-position:-264px -120px}.icon-chevron-up{background-position:-288px -120px}.icon-chevron-down{background-position:-313px -119px}.icon-retweet{background-position:-336px -120px}.icon-shopping-cart{background-position:-360px -120px}.icon-folder-close{width:16px;background-position:-384px -120px}.icon-folder-open{width:16px;background-position:-408px -120px}.icon-resize-vertical{background-position:-432px -119px}.icon-resize-horizontal{background-position:-456px -118px}.icon-hdd{background-position:0 -144px}.icon-bullhorn{background-position:-24px -144px}.icon-bell{background-position:-48px -144px}.icon-certificate{background-position:-72px -144px}.icon-thumbs-up{background-position:-96px -144px}.icon-thumbs-down{background-position:-120px -144px}.icon-hand-right{background-position:-144px -144px}.icon-hand-left{background-position:-168px -144px}.icon-hand-up{background-position:-192px -144px}.icon-hand-down{background-position:-216px -144px}.icon-circle-arrow-right{background-position:-240px -144px}.icon-circle-arrow-left{background-position:-264px -144px}.icon-circle-arrow-up{background-position:-288px -144px}.icon-circle-arrow-down{background-position:-312px -144px}.icon-globe{background-position:-336px -144px}.icon-wrench{background-position:-360px -144px}.icon-tasks{background-position:-384px -144px}.icon-filter{background-position:-408px -144px}.icon-briefcase{background-position:-432px -144px}.icon-fullscreen{background-position:-456px -144px}.dropup,.dropdown{position:relative}.dropdown-toggle{*margin-bottom:-3px}.dropdown-toggle:active,.open .dropdown-toggle{outline:0}.caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:""}.dropdown .caret{margin-top:8px;margin-left:2px}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);*border-right-width:2px;*border-bottom-width:2px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:20px;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus,.dropdown-submenu:hover>a,.dropdown-submenu:focus>a{color:#fff;text-decoration:none;background-color:#0081c2;background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#0081c2;background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;outline:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:default;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open{*z-index:1000}.open>.dropdown-menu{display:block}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropup .dropdown-submenu>.dropdown-menu{top:auto;bottom:0;margin-top:0;margin-bottom:-2px;-webkit-border-radius:5px 5px 5px 0;-moz-border-radius:5px 5px 5px 0;border-radius:5px 5px 5px 0}.dropdown-submenu>a:after{display:block;float:right;width:0;height:0;margin-top:5px;margin-right:-10px;border-color:transparent;border-left-color:#ccc;border-style:solid;border-width:5px 0 5px 5px;content:" "}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.dropdown .dropdown-menu .nav-header{padding-right:20px;padding-left:20px}.typeahead{z-index:1051;margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.fade{opacity:0;-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-moz-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.collapse.in{height:auto}.close{float:right;font-size:20px;font-weight:bold;line-height:20px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.btn{display:inline-block;*display:inline;padding:4px 12px;margin-bottom:0;*margin-left:.3em;font-size:14px;line-height:20px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,0.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;*background-color:#e6e6e6;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border:1px solid #ccc;*border:0;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);*zoom:1;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.btn:hover,.btn:focus,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn:active,.btn.active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:hover,.btn:focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class^="icon-"],.btn-large [class*=" icon-"]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class^="icon-"],.btn-small [class*=" icon-"]{margin-top:0}.btn-mini [class^="icon-"],.btn-mini [class*=" icon-"]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;*background-color:#04c;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary:active,.btn-primary.active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#faa732;*background-color:#f89406;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning:active,.btn-warning.active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#da4f49;*background-color:#bd362f;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeat:repeat-x;border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffbd362f',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{color:#fff;background-color:#bd362f;*background-color:#a9302a}.btn-danger:active,.btn-danger.active{background-color:#942a25 \9}.btn-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#5bb75b;*background-color:#51a351;background-image:-moz-linear-gradient(top,#62c462,#51a351);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(to bottom,#62c462,#51a351);background-repeat:repeat-x;border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff51a351',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{color:#fff;background-color:#51a351;*background-color:#499249}.btn-success:active,.btn-success.active{background-color:#408140 \9}.btn-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#49afcd;*background-color:#2f96b4;background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(to bottom,#5bc0de,#2f96b4);background-repeat:repeat-x;border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff2f96b4',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{color:#fff;background-color:#2f96b4;*background-color:#2a85a0}.btn-info:active,.btn-info.active{background-color:#24748c \9}.btn-inverse{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#363636;*background-color:#222;background-image:-moz-linear-gradient(top,#444,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#444),to(#222));background-image:-webkit-linear-gradient(top,#444,#222);background-image:-o-linear-gradient(top,#444,#222);background-image:linear-gradient(to bottom,#444,#222);background-repeat:repeat-x;border-color:#222 #222 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444',endColorstr='#ff222222',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-inverse:hover,.btn-inverse:focus,.btn-inverse:active,.btn-inverse.active,.btn-inverse.disabled,.btn-inverse[disabled]{color:#fff;background-color:#222;*background-color:#151515}.btn-inverse:active,.btn-inverse.active{background-color:#080808 \9}button.btn,input[type="submit"].btn{*padding-top:3px;*padding-bottom:3px}button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0}button.btn.btn-large,input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px}button.btn.btn-small,input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px}button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px}.btn-link,.btn-link:active,.btn-link[disabled]{background-color:transparent;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-link{color:#08c;cursor:pointer;border-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-link:hover,.btn-link:focus{color:#005580;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,.btn-link[disabled]:focus{color:#333;text-decoration:none}.btn-group{position:relative;display:inline-block;*display:inline;*margin-left:.3em;font-size:0;white-space:nowrap;vertical-align:middle;*zoom:1}.btn-group:first-child{*margin-left:0}.btn-group+.btn-group{margin-left:5px}.btn-toolbar{margin-top:10px;margin-bottom:10px;font-size:0}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group{margin-left:5px}.btn-group>.btn{position:relative;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-group>.btn+.btn{margin-left:-1px}.btn-group>.btn,.btn-group>.dropdown-menu,.btn-group>.popover{font-size:14px}.btn-group>.btn-mini{font-size:10.5px}.btn-group>.btn-small{font-size:11.9px}.btn-group>.btn-large{font-size:17.5px}.btn-group>.btn:first-child{margin-left:0;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px}.btn-group>.btn:last-child,.btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px}.btn-group>.btn.large:first-child{margin-left:0;-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px}.btn-group>.btn.large:last-child,.btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px}.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active{z-index:2}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{*padding-top:5px;padding-right:8px;*padding-bottom:5px;padding-left:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.btn-group>.btn-mini+.dropdown-toggle{*padding-top:2px;padding-right:5px;*padding-bottom:2px;padding-left:5px}.btn-group>.btn-small+.dropdown-toggle{*padding-top:5px;*padding-bottom:4px}.btn-group>.btn-large+.dropdown-toggle{*padding-top:7px;padding-right:12px;*padding-bottom:7px;padding-left:12px}.btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05)}.btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6}.btn-group.open .btn-primary.dropdown-toggle{background-color:#04c}.btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406}.btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f}.btn-group.open .btn-success.dropdown-toggle{background-color:#51a351}.btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4}.btn-group.open .btn-inverse.dropdown-toggle{background-color:#222}.btn .caret{margin-top:8px;margin-left:0}.btn-large .caret{margin-top:6px}.btn-large .caret{border-top-width:5px;border-right-width:5px;border-left-width:5px}.btn-mini .caret,.btn-small .caret{margin-top:8px}.dropup .btn-large .caret{border-bottom-width:5px}.btn-primary .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret,.btn-success .caret,.btn-inverse .caret{border-top-color:#fff;border-bottom-color:#fff}.btn-group-vertical{display:inline-block;*display:inline;*zoom:1}.btn-group-vertical>.btn{display:block;float:none;max-width:100%;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-group-vertical>.btn+.btn{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:first-child{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.btn-group-vertical>.btn:last-child{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.btn-group-vertical>.btn-large:first-child{-webkit-border-radius:6px 6px 0 0;-moz-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.btn-group-vertical>.btn-large:last-child{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.alert{padding:8px 35px 8px 14px;margin-bottom:20px;text-shadow:0 1px 0 rgba(255,255,255,0.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.alert,.alert h4{color:#c09853}.alert h4{margin:0}.alert .close{position:relative;top:-2px;right:-21px;line-height:20px}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-success h4{color:#468847}.alert-danger,.alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-danger h4,.alert-error h4{color:#b94a48}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.alert-info h4{color:#3a87ad}.alert-block{padding-top:14px;padding-bottom:14px}.alert-block>p,.alert-block>ul{margin-bottom:0}.alert-block p+p{margin-top:5px}.nav{margin-bottom:20px;margin-left:0;list-style:none}.nav>li>a{display:block}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li>a>img{max-width:none}.nav>.pull-right{float:right}.nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:bold;line-height:20px;color:#999;text-shadow:0 1px 0 rgba(255,255,255,0.5);text-transform:uppercase}.nav li+.nav-header{margin-top:9px}.nav-list{padding-right:15px;padding-left:15px;margin-bottom:0}.nav-list>li>a,.nav-list .nav-header{margin-right:-15px;margin-left:-15px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.nav-list>li>a{padding:3px 15px}.nav-list>.active>a,.nav-list>.active>a:hover,.nav-list>.active>a:focus{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.2);background-color:#08c}.nav-list [class^="icon-"],.nav-list [class*=" icon-"]{margin-right:2px}.nav-list .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.nav-tabs,.nav-pills{*zoom:1}.nav-tabs:before,.nav-pills:before,.nav-tabs:after,.nav-pills:after{display:table;line-height:0;content:""}.nav-tabs:after,.nav-pills:after{clear:both}.nav-tabs>li,.nav-pills>li{float:left}.nav-tabs>li>a,.nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{margin-bottom:-1px}.nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:20px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover,.nav-tabs>li>a:focus{border-color:#eee #eee #ddd}.nav-tabs>.active>a,.nav-tabs>.active>a:hover,.nav-tabs>.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.nav-pills>.active>a,.nav-pills>.active>a:hover,.nav-pills>.active>a:focus{color:#fff;background-color:#08c}.nav-stacked>li{float:none}.nav-stacked>li>a{margin-right:0}.nav-tabs.nav-stacked{border-bottom:0}.nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.nav-tabs.nav-stacked>li:first-child>a{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-topleft:4px}.nav-tabs.nav-stacked>li:last-child>a{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-moz-border-radius-bottomleft:4px}.nav-tabs.nav-stacked>li>a:hover,.nav-tabs.nav-stacked>li>a:focus{z-index:2;border-color:#ddd}.nav-pills.nav-stacked>li>a{margin-bottom:3px}.nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px}.nav-tabs .dropdown-menu{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.nav-pills .dropdown-menu{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.nav .dropdown-toggle .caret{margin-top:6px;border-top-color:#08c;border-bottom-color:#08c}.nav .dropdown-toggle:hover .caret,.nav .dropdown-toggle:focus .caret{border-top-color:#005580;border-bottom-color:#005580}.nav-tabs .dropdown-toggle .caret{margin-top:8px}.nav .active .dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff}.nav-tabs .active .dropdown-toggle .caret{border-top-color:#555;border-bottom-color:#555}.nav>.dropdown.active>a:hover,.nav>.dropdown.active>a:focus{cursor:pointer}.nav-tabs .open .dropdown-toggle,.nav-pills .open .dropdown-toggle,.nav>li.dropdown.open.active>a:hover,.nav>li.dropdown.open.active>a:focus{color:#fff;background-color:#999;border-color:#999}.nav li.dropdown.open .caret,.nav li.dropdown.open.active .caret,.nav li.dropdown.open a:hover .caret,.nav li.dropdown.open a:focus .caret{border-top-color:#fff;border-bottom-color:#fff;opacity:1;filter:alpha(opacity=100)}.tabs-stacked .open>a:hover,.tabs-stacked .open>a:focus{border-color:#999}.tabbable{*zoom:1}.tabbable:before,.tabbable:after{display:table;line-height:0;content:""}.tabbable:after{clear:both}.tab-content{overflow:auto}.tabs-below>.nav-tabs,.tabs-right>.nav-tabs,.tabs-left>.nav-tabs{border-bottom:0}.tab-content>.tab-pane,.pill-content>.pill-pane{display:none}.tab-content>.active,.pill-content>.active{display:block}.tabs-below>.nav-tabs{border-top:1px solid #ddd}.tabs-below>.nav-tabs>li{margin-top:-1px;margin-bottom:0}.tabs-below>.nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.tabs-below>.nav-tabs>li>a:hover,.tabs-below>.nav-tabs>li>a:focus{border-top-color:#ddd;border-bottom-color:transparent}.tabs-below>.nav-tabs>.active>a,.tabs-below>.nav-tabs>.active>a:hover,.tabs-below>.nav-tabs>.active>a:focus{border-color:transparent #ddd #ddd #ddd}.tabs-left>.nav-tabs>li,.tabs-right>.nav-tabs>li{float:none}.tabs-left>.nav-tabs>li>a,.tabs-right>.nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px}.tabs-left>.nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd}.tabs-left>.nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.tabs-left>.nav-tabs>li>a:hover,.tabs-left>.nav-tabs>li>a:focus{border-color:#eee #ddd #eee #eee}.tabs-left>.nav-tabs .active>a,.tabs-left>.nav-tabs .active>a:hover,.tabs-left>.nav-tabs .active>a:focus{border-color:#ddd transparent #ddd #ddd;*border-right-color:#fff}.tabs-right>.nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd}.tabs-right>.nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.tabs-right>.nav-tabs>li>a:hover,.tabs-right>.nav-tabs>li>a:focus{border-color:#eee #eee #eee #ddd}.tabs-right>.nav-tabs .active>a,.tabs-right>.nav-tabs .active>a:hover,.tabs-right>.nav-tabs .active>a:focus{border-color:#ddd #ddd #ddd transparent;*border-left-color:#fff}.nav>.disabled>a{color:#999}.nav>.disabled>a:hover,.nav>.disabled>a:focus{text-decoration:none;cursor:default;background-color:transparent}.navbar{*position:relative;*z-index:2;margin-bottom:20px;overflow:visible}.navbar-inner{min-height:40px;padding-right:20px;padding-left:20px;background-color:#fafafa;background-image:-moz-linear-gradient(top,#fff,#f2f2f2);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#f2f2f2));background-image:-webkit-linear-gradient(top,#fff,#f2f2f2);background-image:-o-linear-gradient(top,#fff,#f2f2f2);background-image:linear-gradient(to bottom,#fff,#f2f2f2);background-repeat:repeat-x;border:1px solid #d4d4d4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#fff2f2f2',GradientType=0);*zoom:1;-webkit-box-shadow:0 1px 4px rgba(0,0,0,0.065);-moz-box-shadow:0 1px 4px rgba(0,0,0,0.065);box-shadow:0 1px 4px rgba(0,0,0,0.065)}.navbar-inner:before,.navbar-inner:after{display:table;line-height:0;content:""}.navbar-inner:after{clear:both}.navbar .container{width:auto}.nav-collapse.collapse{height:auto;overflow:visible}.navbar .brand{display:block;float:left;padding:10px 20px 10px;margin-left:-20px;font-size:20px;font-weight:200;color:#777;text-shadow:0 1px 0 #fff}.navbar .brand:hover,.navbar .brand:focus{text-decoration:none}.navbar-text{margin-bottom:0;line-height:40px;color:#777}.navbar-link{color:#777}.navbar-link:hover,.navbar-link:focus{color:#333}.navbar .divider-vertical{height:40px;margin:0 9px;border-right:1px solid #fff;border-left:1px solid #f2f2f2}.navbar .btn,.navbar .btn-group{margin-top:5px}.navbar .btn-group .btn,.navbar .input-prepend .btn,.navbar .input-append .btn,.navbar .input-prepend .btn-group,.navbar .input-append .btn-group{margin-top:0}.navbar-form{margin-bottom:0;*zoom:1}.navbar-form:before,.navbar-form:after{display:table;line-height:0;content:""}.navbar-form:after{clear:both}.navbar-form input,.navbar-form select,.navbar-form .radio,.navbar-form .checkbox{margin-top:5px}.navbar-form input,.navbar-form select,.navbar-form .btn{display:inline-block;margin-bottom:0}.navbar-form input[type="image"],.navbar-form input[type="checkbox"],.navbar-form input[type="radio"]{margin-top:3px}.navbar-form .input-append,.navbar-form .input-prepend{margin-top:5px;white-space:nowrap}.navbar-form .input-append input,.navbar-form .input-prepend input{margin-top:0}.navbar-search{position:relative;float:left;margin-top:5px;margin-bottom:0}.navbar-search .search-query{padding:4px 14px;margin-bottom:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:1;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.navbar-static-top{position:static;margin-bottom:0}.navbar-static-top .navbar-inner{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0}.navbar-fixed-top .navbar-inner,.navbar-static-top .navbar-inner{border-width:0 0 1px}.navbar-fixed-bottom .navbar-inner{border-width:1px 0 0}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding-right:0;padding-left:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.navbar-fixed-top{top:0}.navbar-fixed-top .navbar-inner,.navbar-static-top .navbar-inner{-webkit-box-shadow:0 1px 10px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 10px rgba(0,0,0,0.1);box-shadow:0 1px 10px rgba(0,0,0,0.1)}.navbar-fixed-bottom{bottom:0}.navbar-fixed-bottom .navbar-inner{-webkit-box-shadow:0 -1px 10px rgba(0,0,0,0.1);-moz-box-shadow:0 -1px 10px rgba(0,0,0,0.1);box-shadow:0 -1px 10px rgba(0,0,0,0.1)}.navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0}.navbar .nav.pull-right{float:right;margin-right:0}.navbar .nav>li{float:left}.navbar .nav>li>a{float:none;padding:10px 15px 10px;color:#777;text-decoration:none;text-shadow:0 1px 0 #fff}.navbar .nav .dropdown-toggle .caret{margin-top:8px}.navbar .nav>li>a:focus,.navbar .nav>li>a:hover{color:#333;text-decoration:none;background-color:transparent}.navbar .nav>.active>a,.navbar .nav>.active>a:hover,.navbar .nav>.active>a:focus{color:#555;text-decoration:none;background-color:#e5e5e5;-webkit-box-shadow:inset 0 3px 8px rgba(0,0,0,0.125);-moz-box-shadow:inset 0 3px 8px rgba(0,0,0,0.125);box-shadow:inset 0 3px 8px rgba(0,0,0,0.125)}.navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-right:5px;margin-left:5px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#ededed;*background-color:#e5e5e5;background-image:-moz-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f2f2f2),to(#e5e5e5));background-image:-webkit-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:-o-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:linear-gradient(to bottom,#f2f2f2,#e5e5e5);background-repeat:repeat-x;border-color:#e5e5e5 #e5e5e5 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2',endColorstr='#ffe5e5e5',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075)}.navbar .btn-navbar:hover,.navbar .btn-navbar:focus,.navbar .btn-navbar:active,.navbar .btn-navbar.active,.navbar .btn-navbar.disabled,.navbar .btn-navbar[disabled]{color:#fff;background-color:#e5e5e5;*background-color:#d9d9d9}.navbar .btn-navbar:active,.navbar .btn-navbar.active{background-color:#ccc \9}.navbar .btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,0.25);box-shadow:0 1px 0 rgba(0,0,0,0.25)}.btn-navbar .icon-bar+.icon-bar{margin-top:3px}.navbar .nav>li>.dropdown-menu:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,0.2);content:''}.navbar .nav>li>.dropdown-menu:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.navbar-fixed-bottom .nav>li>.dropdown-menu:before{top:auto;bottom:-7px;border-top:7px solid #ccc;border-bottom:0;border-top-color:rgba(0,0,0,0.2)}.navbar-fixed-bottom .nav>li>.dropdown-menu:after{top:auto;bottom:-6px;border-top:6px solid #fff;border-bottom:0}.navbar .nav li.dropdown>a:hover .caret,.navbar .nav li.dropdown>a:focus .caret{border-top-color:#333;border-bottom-color:#333}.navbar .nav li.dropdown.open>.dropdown-toggle,.navbar .nav li.dropdown.active>.dropdown-toggle,.navbar .nav li.dropdown.open.active>.dropdown-toggle{color:#555;background-color:#e5e5e5}.navbar .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#777;border-bottom-color:#777}.navbar .nav li.dropdown.open>.dropdown-toggle .caret,.navbar .nav li.dropdown.active>.dropdown-toggle .caret,.navbar .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#555;border-bottom-color:#555}.navbar .pull-right>li>.dropdown-menu,.navbar .nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar .pull-right>li>.dropdown-menu:before,.navbar .nav>li>.dropdown-menu.pull-right:before{right:12px;left:auto}.navbar .pull-right>li>.dropdown-menu:after,.navbar .nav>li>.dropdown-menu.pull-right:after{right:13px;left:auto}.navbar .pull-right>li>.dropdown-menu .dropdown-menu,.navbar .nav>li>.dropdown-menu.pull-right .dropdown-menu{right:100%;left:auto;margin-right:-1px;margin-left:0;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.navbar-inverse .navbar-inner{background-color:#1b1b1b;background-image:-moz-linear-gradient(top,#222,#111);background-image:-webkit-gradient(linear,0 0,0 100%,from(#222),to(#111));background-image:-webkit-linear-gradient(top,#222,#111);background-image:-o-linear-gradient(top,#222,#111);background-image:linear-gradient(to bottom,#222,#111);background-repeat:repeat-x;border-color:#252525;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222',endColorstr='#ff111111',GradientType=0)}.navbar-inverse .brand,.navbar-inverse .nav>li>a{color:#999;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.navbar-inverse .brand:hover,.navbar-inverse .nav>li>a:hover,.navbar-inverse .brand:focus,.navbar-inverse .nav>li>a:focus{color:#fff}.navbar-inverse .brand{color:#999}.navbar-inverse .navbar-text{color:#999}.navbar-inverse .nav>li>a:focus,.navbar-inverse .nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .nav .active>a,.navbar-inverse .nav .active>a:hover,.navbar-inverse .nav .active>a:focus{color:#fff;background-color:#111}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover,.navbar-inverse .navbar-link:focus{color:#fff}.navbar-inverse .divider-vertical{border-right-color:#222;border-left-color:#111}.navbar-inverse .nav li.dropdown.open>.dropdown-toggle,.navbar-inverse .nav li.dropdown.active>.dropdown-toggle,.navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle{color:#fff;background-color:#111}.navbar-inverse .nav li.dropdown>a:hover .caret,.navbar-inverse .nav li.dropdown>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#999;border-bottom-color:#999}.navbar-inverse .nav li.dropdown.open>.dropdown-toggle .caret,.navbar-inverse .nav li.dropdown.active>.dropdown-toggle .caret,.navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-search .search-query{color:#fff;background-color:#515151;border-color:#111;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.navbar-inverse .navbar-search .search-query:-moz-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query:-ms-input-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query::-webkit-input-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query:focus,.navbar-inverse .navbar-search .search-query.focused{padding:5px 15px;color:#333;text-shadow:0 1px 0 #fff;background-color:#fff;border:0;outline:0;-webkit-box-shadow:0 0 3px rgba(0,0,0,0.15);-moz-box-shadow:0 0 3px rgba(0,0,0,0.15);box-shadow:0 0 3px rgba(0,0,0,0.15)}.navbar-inverse .btn-navbar{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#0e0e0e;*background-color:#040404;background-image:-moz-linear-gradient(top,#151515,#040404);background-image:-webkit-gradient(linear,0 0,0 100%,from(#151515),to(#040404));background-image:-webkit-linear-gradient(top,#151515,#040404);background-image:-o-linear-gradient(top,#151515,#040404);background-image:linear-gradient(to bottom,#151515,#040404);background-repeat:repeat-x;border-color:#040404 #040404 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff151515',endColorstr='#ff040404',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.navbar-inverse .btn-navbar:hover,.navbar-inverse .btn-navbar:focus,.navbar-inverse .btn-navbar:active,.navbar-inverse .btn-navbar.active,.navbar-inverse .btn-navbar.disabled,.navbar-inverse .btn-navbar[disabled]{color:#fff;background-color:#040404;*background-color:#000}.navbar-inverse .btn-navbar:active,.navbar-inverse .btn-navbar.active{background-color:#000 \9}.breadcrumb{padding:8px 15px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.breadcrumb>li{display:inline-block;*display:inline;text-shadow:0 1px 0 #fff;*zoom:1}.breadcrumb>li>.divider{padding:0 5px;color:#ccc}.breadcrumb>.active{color:#999}.pagination{margin:20px 0}.pagination ul{display:inline-block;*display:inline;margin-bottom:0;margin-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*zoom:1;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 2px rgba(0,0,0,0.05)}.pagination ul>li{display:inline}.pagination ul>li>a,.pagination ul>li>span{float:left;padding:4px 12px;line-height:20px;text-decoration:none;background-color:#fff;border:1px solid #ddd;border-left-width:0}.pagination ul>li>a:hover,.pagination ul>li>a:focus,.pagination ul>.active>a,.pagination ul>.active>span{background-color:#f5f5f5}.pagination ul>.active>a,.pagination ul>.active>span{color:#999;cursor:default}.pagination ul>.disabled>span,.pagination ul>.disabled>a,.pagination ul>.disabled>a:hover,.pagination ul>.disabled>a:focus{color:#999;cursor:default;background-color:transparent}.pagination ul>li:first-child>a,.pagination ul>li:first-child>span{border-left-width:1px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px}.pagination ul>li:last-child>a,.pagination ul>li:last-child>span{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px}.pagination-centered{text-align:center}.pagination-right{text-align:right}.pagination-large ul>li>a,.pagination-large ul>li>span{padding:11px 19px;font-size:17.5px}.pagination-large ul>li:first-child>a,.pagination-large ul>li:first-child>span{-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px}.pagination-large ul>li:last-child>a,.pagination-large ul>li:last-child>span{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px}.pagination-mini ul>li:first-child>a,.pagination-small ul>li:first-child>a,.pagination-mini ul>li:first-child>span,.pagination-small ul>li:first-child>span{-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px}.pagination-mini ul>li:last-child>a,.pagination-small ul>li:last-child>a,.pagination-mini ul>li:last-child>span,.pagination-small ul>li:last-child>span{-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px}.pagination-small ul>li>a,.pagination-small ul>li>span{padding:2px 10px;font-size:11.9px}.pagination-mini ul>li>a,.pagination-mini ul>li>span{padding:0 6px;font-size:10.5px}.pager{margin:20px 0;text-align:center;list-style:none;*zoom:1}.pager:before,.pager:after{display:table;line-height:0;content:""}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#f5f5f5}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;cursor:default;background-color:#fff}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop,.modal-backdrop.fade.in{opacity:.8;filter:alpha(opacity=80)}.modal{position:fixed;top:10%;left:50%;z-index:1050;width:560px;margin-left:-280px;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.3);*border:1px solid #999;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;outline:0;-webkit-box-shadow:0 3px 7px rgba(0,0,0,0.3);-moz-box-shadow:0 3px 7px rgba(0,0,0,0.3);box-shadow:0 3px 7px rgba(0,0,0,0.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box}.modal.fade{top:-25%;-webkit-transition:opacity .3s linear,top .3s ease-out;-moz-transition:opacity .3s linear,top .3s ease-out;-o-transition:opacity .3s linear,top .3s ease-out;transition:opacity .3s linear,top .3s ease-out}.modal.fade.in{top:10%}.modal-header{padding:9px 15px;border-bottom:1px solid #eee}.modal-header .close{margin-top:2px}.modal-header h3{margin:0;line-height:30px}.modal-body{position:relative;max-height:400px;padding:15px;overflow-y:auto}.modal-form{margin-bottom:0}.modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;*zoom:1;-webkit-box-shadow:inset 0 1px 0 #fff;-moz-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.modal-footer:before,.modal-footer:after{display:table;line-height:0;content:""}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.tooltip{position:absolute;z-index:1030;display:block;font-size:11px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.8;filter:alpha(opacity=80)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000;border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.popover-title:empty{display:none}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,0.25);border-bottom-width:0}.popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#fff;border-bottom-width:0}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,0.25);border-left-width:0}.popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#fff;border-left-width:0}.popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,0.25);border-top-width:0}.popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#fff;border-top-width:0}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0,0,0,0.25);border-right-width:0}.popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#fff;border-right-width:0}.thumbnails{margin-left:-20px;list-style:none;*zoom:1}.thumbnails:before,.thumbnails:after{display:table;line-height:0;content:""}.thumbnails:after{clear:both}.row-fluid .thumbnails{margin-left:0}.thumbnails>li{float:left;margin-bottom:20px;margin-left:20px}.thumbnail{display:block;padding:4px;line-height:20px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.055);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.055);box-shadow:0 1px 3px rgba(0,0,0,0.055);-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}a.thumbnail:hover,a.thumbnail:focus{border-color:#08c;-webkit-box-shadow:0 1px 4px rgba(0,105,214,0.25);-moz-box-shadow:0 1px 4px rgba(0,105,214,0.25);box-shadow:0 1px 4px rgba(0,105,214,0.25)}.thumbnail>img{display:block;max-width:100%;margin-right:auto;margin-left:auto}.thumbnail .caption{padding:9px;color:#555}.media,.media-body{overflow:hidden;*overflow:visible;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{margin-left:0;list-style:none}.label,.badge{display:inline-block;padding:2px 4px;font-size:11.844px;font-weight:bold;line-height:14px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);white-space:nowrap;vertical-align:baseline;background-color:#999}.label{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.badge{padding-right:9px;padding-left:9px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px}.label:empty,.badge:empty{display:none}a.label:hover,a.label:focus,a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}.label-important,.badge-important{background-color:#b94a48}.label-important[href],.badge-important[href]{background-color:#953b39}.label-warning,.badge-warning{background-color:#f89406}.label-warning[href],.badge-warning[href]{background-color:#c67605}.label-success,.badge-success{background-color:#468847}.label-success[href],.badge-success[href]{background-color:#356635}.label-info,.badge-info{background-color:#3a87ad}.label-info[href],.badge-info[href]{background-color:#2d6987}.label-inverse,.badge-inverse{background-color:#333}.label-inverse[href],.badge-inverse[href]{background-color:#1a1a1a}.btn .label,.btn .badge{position:relative;top:-1px}.btn-mini .label,.btn-mini .badge{top:0}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f7f7f7;background-image:-moz-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f5f5f5),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-o-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:linear-gradient(to bottom,#f5f5f5,#f9f9f9);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#fff9f9f9',GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress .bar{float:left;width:0;height:100%;font-size:12px;color:#fff;text-align:center;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top,#149bdf,#0480be);background-image:-webkit-gradient(linear,0 0,0 100%,from(#149bdf),to(#0480be));background-image:-webkit-linear-gradient(top,#149bdf,#0480be);background-image:-o-linear-gradient(top,#149bdf,#0480be);background-image:linear-gradient(to bottom,#149bdf,#0480be);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf',endColorstr='#ff0480be',GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress .bar+.bar{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15);-moz-box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15)}.progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px}.progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-danger .bar,.progress .bar-danger{background-color:#dd514c;background-image:-moz-linear-gradient(top,#ee5f5b,#c43c35);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#c43c35));background-image:-webkit-linear-gradient(top,#ee5f5b,#c43c35);background-image:-o-linear-gradient(top,#ee5f5b,#c43c35);background-image:linear-gradient(to bottom,#ee5f5b,#c43c35);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffc43c35',GradientType=0)}.progress-danger.progress-striped .bar,.progress-striped .bar-danger{background-color:#ee5f5b;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-success .bar,.progress .bar-success{background-color:#5eb95e;background-image:-moz-linear-gradient(top,#62c462,#57a957);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#57a957));background-image:-webkit-linear-gradient(top,#62c462,#57a957);background-image:-o-linear-gradient(top,#62c462,#57a957);background-image:linear-gradient(to bottom,#62c462,#57a957);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff57a957',GradientType=0)}.progress-success.progress-striped .bar,.progress-striped .bar-success{background-color:#62c462;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-info .bar,.progress .bar-info{background-color:#4bb1cf;background-image:-moz-linear-gradient(top,#5bc0de,#339bb9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#339bb9));background-image:-webkit-linear-gradient(top,#5bc0de,#339bb9);background-image:-o-linear-gradient(top,#5bc0de,#339bb9);background-image:linear-gradient(to bottom,#5bc0de,#339bb9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff339bb9',GradientType=0)}.progress-info.progress-striped .bar,.progress-striped .bar-info{background-color:#5bc0de;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-warning .bar,.progress .bar-warning{background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0)}.progress-warning.progress-striped .bar,.progress-striped .bar-warning{background-color:#fbb450;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.accordion{margin-bottom:20px}.accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.accordion-heading{border-bottom:0}.accordion-heading .accordion-toggle{display:block;padding:8px 15px}.accordion-toggle{cursor:pointer}.accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5}.carousel{position:relative;margin-bottom:20px;line-height:1}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-moz-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#fff;text-align:center;background:#222;border:3px solid #fff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:.5;filter:alpha(opacity=50)}.carousel-control.right{right:15px;left:auto}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-indicators{position:absolute;top:15px;right:15px;z-index:5;margin:0;list-style:none}.carousel-indicators li{display:block;float:left;width:10px;height:10px;margin-left:5px;text-indent:-999px;background-color:#ccc;background-color:rgba(255,255,255,0.25);border-radius:5px}.carousel-indicators .active{background-color:#fff}.carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:15px;background:#333;background:rgba(0,0,0,0.75)}.carousel-caption h4,.carousel-caption p{line-height:20px;color:#fff}.carousel-caption h4{margin:0 0 5px}.carousel-caption p{margin-bottom:0}.hero-unit{padding:60px;margin-bottom:30px;font-size:18px;font-weight:200;line-height:30px;color:inherit;background-color:#eee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit}.hero-unit li{line-height:30px}.pull-right{float:right}.pull-left{float:left}.hide{display:none}.show{display:block}.invisible{visibility:hidden}.affix{position:fixed} diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap.min.js b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap.min.js new file mode 100644 index 0000000000..95c5ac5ee6 --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/bootstrap.min.js @@ -0,0 +1,6 @@ +/*! +* Bootstrap.js by @fat & @mdo +* Copyright 2012 Twitter, Inc. +* http://www.apache.org/licenses/LICENSE-2.0.txt +*/ +!function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var n=this.getActiveIndex(),r=this;if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){r.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u](),f=e.Event("slide",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")}));if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o;i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("carousel").pause().to(o).cycle(),t.preventDefault()})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning||this.$element.hasClass("in"))return;t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning||!this.$element.hasClass("in"))return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=e.extend({},e.fn.collapse.defaults,r.data(),typeof n=="object"&&n);i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})}(window.jQuery),!function(e){"use strict";function r(){e(t).each(function(){i(e(this)).removeClass("open")})}function i(t){var n=t.attr("data-target"),r;n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=n&&e(n);if(!r||!r.length)r=t.parent();return r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||s.toggleClass("open"),n.focus(),!1},keydown:function(n){var r,s,o,u,a,f;if(!/(38|40|27)/.test(n.keyCode))return;r=e(this),n.preventDefault(),n.stopPropagation();if(r.is(".disabled, :disabled"))return;u=i(r),a=u.hasClass("open");if(!a||a&&n.keyCode==27)return n.which==27&&u.find(t).focus(),r.click();s=e("[role=menu] li:not(.divider):visible a",u);if(!s.length)return;f=s.index(s.filter(":focus")),n.keyCode==38&&f>0&&f--,n.keyCode==40&&f').appendTo(document.body),this.$backdrop.click(this.options.backdrop=="static"?e.proxy(this.$element[0].focus,this.$element[0]):e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!t)return;i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t):t()):t&&t()}};var n=e.fn.modal;e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault(),i.modal(s).one("hide",function(){n.focus()})})}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s,o,u,a;this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,o=this.options.trigger.split(" ");for(a=o.length;a--;)u=o[a],u=="click"?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):u!="manual"&&(i=u=="hover"?"mouseenter":"focus",s=u=="hover"?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this)));this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e.fn[this.type].defaults,r={},i;this._options&&e.each(this._options,function(e,t){n[e]!=t&&(r[e]=t)},this),i=e(t.currentTarget)[this.type](r).data(this.type);if(!i.options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout),i.hoverState="in",this.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out",this.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},show:function(){var t,n,r,i,s,o,u=e.Event("show");if(this.hasContent()&&this.enabled){this.$element.trigger(u);if(u.isDefaultPrevented())return;t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),n=this.getPosition(),r=t[0].offsetWidth,i=t[0].offsetHeight;switch(s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}this.applyPlacement(o,s),this.$element.trigger("shown")}},applyPlacement:function(e,t){var n=this.tip(),r=n[0].offsetWidth,i=n[0].offsetHeight,s,o,u,a;n.offset(e).addClass(t).addClass("in"),s=n[0].offsetWidth,o=n[0].offsetHeight,t=="top"&&o!=i&&(e.top=e.top+i-o,a=!0),t=="bottom"||t=="top"?(u=0,e.left<0&&(u=e.left*-2,e.left=0,n.offset(e),s=n[0].offsetWidth,o=n[0].offsetHeight),this.replaceArrow(u-r+s,s,"left")):this.replaceArrow(o-i,o,"top"),a&&n.offset(e)},replaceArrow:function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function i(){var t=setTimeout(function(){n.off(e.support.transition.end).detach()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.detach()})}var t=this,n=this.tip(),r=e.Event("hide");this.$element.trigger(r);if(r.isDefaultPrevented())return;return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?i():n.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return e.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var n=t?e(t.currentTarget)[this.type](this._options).data(this.type):this;n.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
    ',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=(typeof n.content=="function"?n.content.call(t[0]):n.content)||t.attr("data-content"),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

    '}),e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(window.jQuery),!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollElement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]),this.targets=e([]),n=this.$body.find(this.selector).map(function(){var n=e(this),r=n.data("target")||n.attr("href"),i=/^#\w/.test(r)&&e(r);return i&&i.length&&[[i.position().top+(!e.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},activate:function(t){var n,r;this.activeTarget=t,e(this.selector).parent(".active").removeClass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;i||r.data("scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.defaults={offset:10},e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasClass("active"))return;i=n.find(".active:last a")[0],o=e.Event("show",{relatedTarget:i}),t.trigger(o);if(o.isDefaultPrevented())return;s=e(r),this.activate(t.parent("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedTarget:i})})},activate:function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o):o(),i.removeClass("in")}};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this},e(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=e(this.options.menu),this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var n;return this.query=this.$element.val(),!this.query||this.query.length"+t+""})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(t){var n=this.$menu.find(".active").removeClass("active"),r=n.next();r.length||(r=e(this.$menu.find("li")[0])),r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last()),n.addClass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this))},eventSupported:function(e){var t=e in this.$element;return t||(this.$element.setAttribute(e,"return;"),t=typeof this.$element[e]=="function"),t},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),this.prev();break;case 40:e.preventDefault(),this.next()}e.stopPropagation()},keydown:function(t){this.suppressKeyPressRepeat=~e.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation(),e.preventDefault()},focus:function(e){this.focused=!0},blur:function(e){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(e){e.stopPropagation(),e.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")},mouseleave:function(e){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var n=e.fn.typeahead;e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;i||r.data("typeahead",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1},e.fn.typeahead.Constructor=t,e.fn.typeahead.noConflict=function(){return e.fn.typeahead=n,this},e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;n.typeahead(n.data())})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)).on("click.affix.data-api",e.proxy(function(){setTimeout(e.proxy(this.checkPosition,this),1)},this)),this.$element=e(t),this.checkPosition()};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;typeof i!="object"&&(s=o=i),typeof o=="function"&&(o=i.top()),typeof s=="function"&&(s=i.bottom()),a=this.unpin!=null&&n+this.unpin<=r.top?!1:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":!1;if(this.affixed===a)return;this.affixed=a,this.unpin=a=="bottom"?r.top-n:null,this.$element.removeClass(u).addClass("affix"+(a?"-"+a:""))};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;i||r.data("affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.defaults={offset:0},e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(window.jQuery); \ No newline at end of file diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/glyphicons-halflings-white.png b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/glyphicons-halflings-white.png new file mode 100644 index 0000000000..3bf6484a29 Binary files /dev/null and b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/glyphicons-halflings-white.png differ diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/glyphicons-halflings.png b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/glyphicons-halflings.png new file mode 100644 index 0000000000..a996999320 Binary files /dev/null and b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/glyphicons-halflings.png differ diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/guzzle.css_t b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/guzzle.css_t new file mode 100644 index 0000000000..ffd2ec294c --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/guzzle.css_t @@ -0,0 +1,729 @@ +/* Sphinx themes +-------------------------------------------------- */ + +.container { + max-width: 960px; +} + +body { + position: relative; + padding: 40px 0 0 0; + font-family: Helvetica, arial, freesans, clean, sans-serif; +} + +div.clearer { + clear: both; +} + +div.document { + margin: 0 auto; + font-size: 15px; + line-height: 1.5em; +} + +.body { + width: 713px; + float: right; +} + +div.related { + display: none; +} + +a.headerlink { + visibility: hidden; + color: #ddd; + padding: 0 4px; + text-decoration: none; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink { + visibility: visible; +} + +a.headerlink:hover { + color: #444; + background: #eaeaea; + text-decoration: none; +} + +div.body h1, +div.body h2, +div.body h3, +div.body h4, +div.body h5, +div.body h6 { + font-family: Helvetica, arial, freesans, clean, sans-serif; + font-weight: normal; + margin: 30px 0px 10px 0px; + padding: 0; +} + +div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; font-weight: bold; } +div.body h2 { font-size: 180%; border-bottom: 1px solid #ccc; padding-bottom: 6px; font-weight: bold; } +div.body h3 { font-size: 150%; font-weight: bold; } +div.body h4 { font-size: 130%; } +div.body h5 { font-size: 110%; } +div.body h6 { font-size: 100%; } + +p { + margin: 1em 0; +} + +div.body p, div.body dd, div.body li { + line-height: 1.5em; +} + +tt { + font-family: Consolas, Monaco, Menlo, "Courier New", monospace; + font-size: 14px; + color: #333; +} + +code, pre { + font-family: Consolas, Monaco, Menlo, "Courier New", monospace; + font-size: 14px; + color: #333333; + line-height: 23px; + margin: 20px 0; +} + +div.highlight { + background-color: white; +} + +.navbar .brand { + font-weight: bold; +} + +[class^="icon-"], +[class*=" icon-"] { + background-image: url("../_static/glyphicons-halflings.png"); +} + +.icon-white, +.nav-pills > .active > a > [class^="icon-"], +.nav-pills > .active > a > [class*=" icon-"], +.nav-list > .active > a > [class^="icon-"], +.nav-list > .active > a > [class*=" icon-"], +.navbar-inverse .nav > .active > a > [class^="icon-"], +.navbar-inverse .nav > .active > a > [class*=" icon-"], +.dropdown-menu > li > a:hover > [class^="icon-"], +.dropdown-menu > li > a:focus > [class^="icon-"], +.dropdown-menu > li > a:hover > [class*=" icon-"], +.dropdown-menu > li > a:focus > [class*=" icon-"], +.dropdown-menu > .active > a > [class^="icon-"], +.dropdown-menu > .active > a > [class*=" icon-"], +.dropdown-submenu:hover > a > [class^="icon-"], +.dropdown-submenu:focus > a > [class^="icon-"], +.dropdown-submenu:hover > a > [class*=" icon-"], +.dropdown-submenu:focus > a > [class*=" icon-"] { + background-image: url("../_static/glyphicons-halflings-white.png"); +} + +a.internal em { + font-style: normal; +} + +/* Sphinx sidebar +-------------------------------------------------- */ + +div.sphinxsidebar { + font-size: 14px; + line-height: 1.5; + float: left; + width: 200px; + padding: 0; + word-wrap: break-word; +} + +div.sphinxsidebarwrapper p.logo { + padding: 0 0 8px 0; + margin: 0; +} + +div.sphinxsidebar h3, +div.sphinxsidebar h4 { + font-family: Helvetica, arial, freesans, clean, sans-serif; + color: #444; + font-size: 24px; + font-weight: normal; + margin: 0 0 5px 0; + padding: 0; +} + +div.sphinxsidebar h4 { + font-size: 20px; +} + +div.sphinxsidebar h3 a { + color: #444; +} + +div.sphinxsidebar p.logo a, +div.sphinxsidebar h3 a, +div.sphinxsidebar p.logo a:hover, +div.sphinxsidebar h3 a:hover { + border: none; +} + +div.sphinxsidebarwrapper h3.logo { + margin: 0; +} + +div.sphinxsidebar p { + color: #555; + margin: 10px 0; +} + +div.sphinxsidebar ul { + margin: 0 0 12px 0; + list-style-type: none; + color: #000; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar input { + border: 1px solid #ccc; + font-family: Helvetica, arial, freesans, clean, sans-serif; + font-size: 1em; +} + +.margin-top-1em { + margin-top: 1em; +} + +/* Two-pane table list +-------------------------------------------------- */ + +table.two-column.table-bordered caption+thead tr:first-child th:first-child, +table.two-column.table-bordered caption+tbody tr:first-child td:first-child, +table.two-column.table-bordered colgroup+thead tr:first-child th:first-child, +table.two-column.table-bordered colgroup+tbody tr:first-child td:first-child, +table.two-column tbody td { + border: 0 0 1px 0 solid #eee; + border-left: none; + padding: 8px 4px; + font-size: 16px; +} + +table.two-column { + width: 100%; + border: 0px none; + box-shadow: none; +} + +/* GitHub stars in the menu +-------------------------------------------------- */ + +#github-stars { + float: right; + margin: 10px 0 0 0; + padding: 0; +} + +#github-stars iframe { + margin: 0; + padding: 0; +} + +/* Disqus comments styles +-------------------------------------------------- */ + +.comment-container { + margin: 24px auto; +} + +/* Next and previous links +-------------------------------------------------- */ + +.top-links .breadcrumb { + margin: 5px 0 0 0; +} + +.top-links .breadcrumb, .footer-links .breadcrumb { + background-color: #fff; +} + +.top-links a { + opacity: 0.7; +} + +.footer-links { + border-top: 1px solid #ccc; + padding-top: 12px; + margin-top: 30px; +} + +.rel-spacer { + height: 40px; +} + +/* Footer styling +-------------------------------------------------- */ + +div.footer { + margin: 20px auto 30px auto; + font-size: 14px; + color: #888; + text-align: right; +} + +div.footer a { + color: #888; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background: url(file.png) no-repeat 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li div.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable dl, table.indextable dd { + margin-top: 0; + margin-bottom: 0; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- general body styles --------------------------------------------------- */ + +div.body p.caption { + text-align: inherit; +} + +.field-list ul { + padding-left: 1em; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- topics ---------------------------------------------------------------- */ + +div.topic { + border: 1px solid #ccc; + padding: 7px 7px 0 7px; + margin: 10px 0 10px 0; + background-color: #f8f8f8; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + background: #fafafa; + margin: 20px 0; + padding: 10px 30px; + border-top: 1px solid #ccc; + border-bottom: 1px solid #ccc; +} + +div.admonition dt { + font-weight: bold; +} + +div.admonition dl { + margin-bottom: 0; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; + display: inline; +} + +p.admonition-title:after { + content: ":"; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +div.seealso { + background-color: #ffc; + border: 1px solid #ff6; +} + +div.admonition tt.xref, div.admonition a tt { + border-bottom: 1px solid #fafafa; +} + +dd div.admonition { + margin-left: -60px; + padding-left: 60px; +} + +div.admonition p.admonition-title { + font-weight: normal; + font-size: 22px; + margin: 0 0 10px 0; + padding: 0; + line-height: 1; +} + +div.admonition p.last { + margin-bottom: 0; +} + +div.note { + background-color: #f8f8f8; + border: 1px solid #ccc; + border-radius: 3px; +} + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +.highlighted { + background-color: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.refcount { + color: #060; +} + +.optional { + font-size: 1.3em; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +dt:target, .highlight { + background: #FAF3E8; +} + +/* -- code displays --------------------------------------------------------- */ + +td.linenos pre { + padding: 5px 0px; + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + margin-left: 0.5em; +} + +table.highlighttable td { + padding: 0 0.5em 0 0.5em; +} + +tt.descname { + background-color: transparent; + font-weight: bold; + padding-right: 0.08em; +} + +tt.descclassname { + background-color: transparent; +} + +tt.descname, tt.descclassname { + font-size: 0.95em; +} + +tt.xref, a tt { + background-color: transparent; + font-weight: bold; +} + +h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +/* -- Theme specific classes - */ + +.overflow-height-500px { + overflow: auto; + height: 500px; +} + +.overflow-height-250px { + overflow: auto; + height: 250px; +} + +/* Small screen styles +-------------------------------------------------- */ + +@media screen and (max-device-width: 480px) { + + body { + margin: 0; + padding-top: 0; + } + + .body { + width: 100%; + float: none; + min-height: 0; + padding: 10px; + margin-top: 20px; + } + + .navbar-fixed-top { + position: static; + } + + div.sphinxsidebar { + float: none; + width: 100%; + margin: 0 0 24px 0; + padding: 10px 20px; + } + + div.sphinxsidebar p.logo { + display: none; + } + + #github-stars { + display: none; + } +} diff --git a/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/jquery-1.9.1.min.js b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/jquery-1.9.1.min.js new file mode 100644 index 0000000000..c6a59aebb3 --- /dev/null +++ b/docs/source/guzzle_sphinx_theme/guzzle_sphinx_theme/static/jquery-1.9.1.min.js @@ -0,0 +1,5 @@ +/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license + //@ sourceMappingURL=jquery.min.map + */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&&b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
    a",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.createElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,enctype:!!o.createElement("form").enctype,html5Clone:"<:nav>"!==o.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("value",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.checked,t.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="
    t
    ",a=d.getElementsByTagName("td"),a[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=p&&0===a[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===d.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="
    ",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(u.style.zoom=1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&&(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[b.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelCase(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isArray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isEmptyObject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleanData([e],!0):b.support.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){return P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&b.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&&(s=b.data(o),1===o.nodeType&&!b._data(o,"parsedAttrs"))){for(r=o.attributes;r.length>a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function W(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isArray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b._data(e,n)||b._data(e,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._removeData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|area)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return e=b.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addClass":"removeClass"](o)}else(n===i||"boolean"===n)&&(this.className&&b._data(this,"__className__",this.className),this.className=this.className||e===!1?"":b._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(X," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this);1===this.nodeType&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);return b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=1!==u||!b.isXMLDoc(e),a&&(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&&(s=e.getAttribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.test(n)?!Q&&G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isXMLDoc(e),a&&(n=b.propFix[n]||n,o=b.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean"==typeof r?K&&Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?b.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&b.propFix[n]||n,n):e[b.camelCase("default-"+n)]=e[n]=!0,n}},K&&Q||(b.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&&r.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaultValue=n,t):I&&I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},b.attrHooks.contenteditable={get:I.get,set:function(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.support.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),b.support.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b.inArray(b(e).val(),n)>=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&&b._data(e);if(m&&(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&&(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.indexOf(":")&&"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n),n.isTrigger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&&!p.noBubble&&!b.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&&b._data(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptData(l)&&s.apply&&s.apply(l,r)===!1&&n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===g&&b.nodeName(i,"a")||!b.acceptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new b.Event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,a,s=n.button,u=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&u&&(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return b.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===o.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=o.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},b.Event=function(e,n){return this instanceof b.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&b.extend(this,n),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,n)},b.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj; + return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setup:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName(n,"button")?n.form:t;r&&!b._data(r,"submitBubbles")&&(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&b.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return b.nodeName(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changeBubbles||(b.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!b._data(t,"changeBubbles")&&(b.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||b.event.simulate("change",this.parentNode,e,!0)}),b._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return b.event.remove(this,"._change"),!Z.test(this.nodeName)}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),b.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,b(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){b.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T={},N=0,C=0,k=it(),E=it(),S=it(),A=typeof t,j=1<<31,D=[],L=D.pop,H=D.push,q=D.slice,M=D.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=F.replace("w","w#"),B="([*^$|!~]?=)",P="\\["+_+"*("+F+")"+_+"*(?:"+B+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+O+")|)|)"+_+"*\\]",R=":("+F+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+P.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=RegExp("^"+_+"*,"+_+"*"),I=RegExp("^"+_+"*([\\x20\\t\\r\\n\\f>+~])"+_+"*"),z=RegExp(R),X=RegExp("^"+O+"$"),U={ID:RegExp("^#("+F+")"),CLASS:RegExp("^\\.("+F+")"),NAME:RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:RegExp("^("+F.replace("w","w*")+")"),ATTR:RegExp("^"+P),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needsContext:RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},V=/[\x20\t\r\n\f]*[+~]/,Y=/^[^{]+\{\s*\[native code/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/'|\\/g,Z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{q.call(w.documentElement.childNodes,0)[0].nodeType}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return Y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cacheLength&&delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerDocument||t:w)!==p&&c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!d&&!r){if(i=J.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&y(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return H.apply(n,q.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&T.getByClassName&&t.getElementsByClassName)return H.apply(n,q.call(t.getElementsByClassName(a),0)),n}if(T.qsa&&!h.test(e)){if(f=!0,g=x,m=t,v=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=ft(e),(f=t.getAttribute("id"))?g=f.replace(K,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=V.test(e)&&t.parentNode||t,v=l.join(",")}if(v)try{return H.apply(n,q.call(m.querySelectorAll(v),0)),n}catch(b){}finally{f||t.removeAttribute("id")}}}return wt(e.replace(W,"$1"),t,n,r)}a=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},c=st.setDocument=function(e){var n=e?e.ownerDocument||e:w;return n!==p&&9===n.nodeType&&n.documentElement?(p=n,f=n.documentElement,d=a(n),T.tagNameNoComments=at(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.attributes=at(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),T.getByClassName=at(function(e){return e.innerHTML="",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),T.getByName=at(function(e){e.id=x+0,e.innerHTML="
    ",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&&n.getElementsByName(x).length===2+n.getElementsByName(x+0).length;return T.getIdNotName=!n.getElementById(x),f.removeChild(e),t}),i.attrHandle=at(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==A&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},T.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&&!d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==A&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==A&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=T.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.NAME=T.getByName&&function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName(name):t},i.find.CLASS=T.getByClassName&&function(e,n){return typeof n.getElementsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(n.querySelectorAll))&&(at(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){e.innerHTML="",e.querySelectorAll("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},v=f.compareDocumentPosition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11===e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&&g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerDocument||e)!==p&&c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}o=st.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return U.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&z.test(n)&&(t=ft(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&&l[1],f=l[0]===N&&l[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[N,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===N)f=l[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[x]||(p[x]={}))[e]=[N,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ot(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:ot(function(e){return function(t){return st(e,t).length>0}}),contains:ot(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ot(function(e){return X.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+" "+a;if(s){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?M.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type])break;return yt(u>1&>(f),u>1&&dt(e.slice(0,u-1)).replace(W,"$1"),n,r>u&&vt(e.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,T=l,C=s||a&&i.find.TAG("*",d&&u.parentNode||u),k=N+=null==T?1:Math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=C[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(N=k,r=++n)}o&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(f)}return w&&(N=k,l=T),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return H.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filter(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i>t;t++)b.find(e,this[t],n);return n=this.pushStack(i>1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:function(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&11!==n.nodeType){if(a?a.index(n)>-1:b.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0],b(e)):b.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&st.test(e)&&(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!b(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(t=t||0,b.isFunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.inArray(e,t)>=0===n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/\s*$/g,At={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:b.support.htmlSerialize?[0,"",""]:[1,"X
    ","
    "]},jt=dt(o),Dt=jt.appendChild(o.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){var t=b(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length>0)&&(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&&(t&&b.contains(n.ownerDocument,n)&&Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&b.cleanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&b.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return b.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!b.support.htmlSerialize&&mt.test(e)||!b.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(b.cleanData(Ot(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(b(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1>=p||"string"!=typeof g||b.support.checkClone)&&Ct.test(g))return this.each(function(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(p&&(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(n=n&&b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht),a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,Ot(o,"script"))),r.call(n&&b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||"")&&!b._data(o,"globalEval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.textContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.nodeType&&b.hasData(e)){var n,r,i,o=b._data(e),a=b._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)b.event.add(t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&&t[b.expando]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribute(b.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),b.support.html5Clone&&e.innerHTML&&!b.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});function Ot(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||b.nodeName(o,n)?s.push(o):b.merge(s,Ot(o,n));return n===t||n&&b.nodeName(e,n)?b.merge([e],s):s}function Bt(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;null!=(i=s[a]);++a)r[a]&&Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length>0&&Mt(r,!u&&Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!b.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?""!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l) +}b.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),b.support.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.inArray(o,r))&&(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),a&&Mt(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,u=b.expando,l=b.cache,p=b.support.deleteExpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&&(o=n[u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEvent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?n.removeAttribute(u):n[u]=null,c.push(o))}}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=b._data(r,"olddisplay",un(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&b._data(r,"olddisplay",i?n:b.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=tn(l,u)),s=b.cssHooks[n]||b.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks[n]||b.cssHooks[u],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||b.isNumeric(o)?o||0:a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&&Ut.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),Yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=b.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||(n=ln(e,t),"none"!==n&&n||(Pt=(Pt||b("