From 08a39f5f93cb546abb6ffdccb7fe4605a96a8ece Mon Sep 17 00:00:00 2001 From: Chris Joe Date: Tue, 20 Sep 2016 12:56:45 +1200 Subject: [PATCH] Update file edit form (#6024) * Added Created field to File/Image editor * switch default input value to null Fix react errors and added a field description * API Use new DBField::getSchemaValue() --- Assets/File.php | 4 + Assets/Image.php | 4 + Dev/Install/client/dist/styles/install.css | 2 +- Forms/FormField.php | 2 +- ORM/FieldType/DBField.php | 9 ++ ORM/FieldType/DBHTMLText.php | 10 +++ ORM/FieldType/DBHTMLVarchar.php | 9 ++ admin/client/dist/js/bundle-framework.js | 8 +- admin/client/dist/js/bundle-lib.js | 88 +++++++++---------- admin/client/dist/styles/bundle.css | 2 +- .../src/components/FieldHolder/FieldHolder.js | 72 +++++++++++++-- .../src/components/FormBuilder/FormBuilder.js | 5 +- .../src/components/HiddenField/HiddenField.js | 4 + .../src/components/TextField/TextField.js | 5 ++ lang/en.yml | 1 + 15 files changed, 166 insertions(+), 59 deletions(-) diff --git a/Assets/File.php b/Assets/File.php index e8325eb1a..076019837 100644 --- a/Assets/File.php +++ b/Assets/File.php @@ -493,6 +493,10 @@ class File extends DataObject implements ShortcodeHandler, AssetContainer, Thumb ) ), Tab::create('Usage', + DatetimeField::create( + "Created", + _t('AssetTableField.CREATED', 'First uploaded') + )->setReadonly(true), DatetimeField::create( "LastEdited", _t('AssetTableField.LASTEDIT', 'Last changed') diff --git a/Assets/Image.php b/Assets/Image.php index 2e8d6885a..78d63f9b5 100644 --- a/Assets/Image.php +++ b/Assets/Image.php @@ -79,6 +79,10 @@ class Image extends File implements ShortcodeHandler { ) ), Tab::create('Usage', + DatetimeField::create( + "Created", + _t('AssetTableField.CREATED', 'First uploaded') + )->setReadonly(true), DatetimeField::create( "LastEdited", _t('AssetTableField.LASTEDIT', 'Last changed') diff --git a/Dev/Install/client/dist/styles/install.css b/Dev/Install/client/dist/styles/install.css index f728b7e2c..7ea0853b2 100644 --- a/Dev/Install/client/dist/styles/install.css +++ b/Dev/Install/client/dist/styles/install.css @@ -1,2 +1,2 @@ -body{font-family:Arial,san-serif;margin-bottom:18px;width:940px;margin:0 auto 18px;background-color:#f4f4f4}body,body p{font-size:13px;line-height:18px;color:#333}body p{margin-bottom:18px}body a{color:#0973a6}body h1,body h2,body h3,body h4,body h5,body h6{color:#222;font-family:inherit;font-weight:700;margin:0;margin:27px 0 9px;text-rendering:optimizelegibility;clear:both;text-shadow:0 1px 0 #fff}body h1 small,body h2 small,body h3 small,body h4 small,body h5 small,body h6 small{font-weight:400;font-size:12px;color:#666}body h1{font-size:36px;background:transparent url(data:image/gif;base64,R0lGODlhoQCkALMGAABaknqRi7zIxZutqN7j4hBkmf///0CDrYKYkr/W5M3W0+7x8Ky6tzB5p3Ciwo+3zyH5BAEAAAYALAAAAAChAKQAAAT/0MhJq7046827/2AojmR5EYuprmzrbk/xvHRt39ZyADyB/8AgKFHg8RzCpDKpMzpTy6i0RXQ6Z9Os9rNwWK2HrXhsSTS+1gJ5Lfaiv1C2PEk4v7+JuR7ovuP3gDR1fm95gYcqMYSFiI0iBDuLjI6UHIqSb5WaGE2Ybw2boRNVnm9IopqdpW8CqJWkq2hqro1dsX6ntIFmt3cFcbp6fb1oWMFzg8RvYcdzw8pWDcDNYsnQX7/Ua5fX0dPaU5DdaA7f4FHc4zwFredbz+oH5u5MkerrxvRSC3b3AAc+9GWxp04GnQQJAgo0AO9aA4U1CDxw0C/agQcQmyXwByAXjS5F/zwVcJDRFYGQ4x7aSEAw1gFDtFpC8+hCXLeXrjamhPmi4cx5iGT2KleDH8d1JRHphFaAZ02URw1WErpK3kqoRwFIbUSAqVMXRrN+yRfogTKrN6hm3RpILSG2NZaKxZZUTq8CdV1UnOtt1y28QMzyvUNTjuBVZG24HZy3TSxQQLoO9sNMz2JyYElaODx50pzLf1gMgkzBZ2celeWAttL4wzCyq/m2nhLbyAprPEhL2FuqwYEDvGMVHlObx1cQnJ1A/IuRwoIHwTHpXlMcQGIPNjFPcAnU9KLj71yOSPdFd6mmlnpdDx8LPCfQFFaj5eCd8By5nqZrgEVI4WW4G4RVSv9qZEgmHAeqSAJTcl/M9wGDkugR3SIOVsCfgqP4sh4HBpYiDDEyTMPSLTwFp1IJE96hR4e9+ObAAViVwhM8w4VQ3R4xnqacc06cqMKNekCoIw8WuFHjCDkSsscCSZ5GoAE6uPfILYDUN9iGLliJDSACDtkDEEyKB4gAXhrxZA3VdXSIlkdJyQKbYx3SZWdn1pQmD0CtcZKOgN1AXm+O7NmZmyUkeAuWclyY1ZEqKBrLbGwIKhajhd5pBaV6GHoPoiQ4egukH/rjY2bqYBqIpndxOgIv4/SZk6VaPZBnCXBiomqgFFUlwKwk4HbTORIBd8cBDsiKQ63S8aoLAQg1q6z/Cr52g95CUvx5javU0gGrL6Bm24K1DhHqbQuo3vTsuI02qQyA6NqArCcAtRvEu5KwKy8N9C4y6r0rHWUqvyaEec++ANeQr30F/8AiNA2Im7AJB39B1MM/qCuSwxSXgF8vFWZssFceBwFrxyHXkKIf9pZMA8fdqmxCLCm7vHJvLctsgsVO/GszC6ARvPOxi0z8sxBC5obx0CwsQNi5SLcg07RNL5EcyVEHYQfUVUexEdVZC1Fz12CHLfbYZJdt9tlop6322my37fbbcMct99x0113wAgoIoLfeCgCzAN8TLEDA4F9/lPfeChSegwIK/IC33rMRMEAAlFde+QA+EIBA/+XtCGC5FgswYPnoDKgweQDtFIXAAHoj0HgGmo8ue+Oef25A7ZRnscDmsl+ugu82MMDAAKsTEMA8u/duOQIpKLC8BLgHkMXpCAgQEAF5u+6c9SCcnjoNmA8gugEI1OW85QzsfXrpUFL/evRTLFD5bLW3LLjiHQyggPgDkF+X6JV7XeAS5xyIwE8KxgsA+zZQPzkMjwGhEwDzMHC63InggIUaHNMS+L0MNFAQyhJcBRZAPAGIToAWqGAAWjOAFuoPep/bnws7aIDhtZB9BGAA7wKAgOpRQAAtbIUEKceABE4wAy3knQtZJ4EWCq6CPpChQvbXCgXsUIFJ2d/ydjWBvP/1TQMApFz5NGC5zn0ueZUDRgIpV0XlBWAAUKBe9OB4OaC4sX8GYOMVU/DB2/EwjKPLCCAtB0cQnI+QKKRAGWFYOQkAEoXRw5sb2djEyl1RiJZM5ASSSLkltmN5SWSkQqKXvuyJMQ64YwDjhqjAEKgwkxZYpB8bCSVCUmCHELyiKllJuRS8MoCOXJ4mRRlLIk6jj7hDYewC8Dr58RAia2QaCZU3xgnIEoMqhIIzKYc9WdZyfgZQYRENgIIJRK+HmuyjNXtpAWR2sp3vnCUNAViz0LlRgNe0nQEOycxgirGGlqxABVtRQQRkwJ6WhOAPuVlMPFbAnf0c4T/Dyc6HMlT/BAiVXUDySUsJ7NCg5ANmBTFHOMlxjqKU1MDfdlhIYlYgnhZdoTkv+lIL8m5vOD0d/lZKOglw1IIS4OcCtnk8lE6ynwPtQEYXqE6fvvECEE3K6Zx6VPxJIKMW/Kn0AofLQ7LvqOBMqgcOCYWm5vGp8JSpSwWa1U4u8a1W3aTttFqBMLYQnEZlHU5x6suTfkCna12nQxeq1lkmhZYdxcEB6eocSypRrjCloF898EGzRnamhTWrM0HKO6ZpYJhobGtKMQhZywkwkhoQqwfoGVinDhazo6RpF4noz2FitIeqJJwWK/dVv0Yvc7N9XnA7CQwFLFC1HEojIzV52bU2FY0B3jlfS00wSOVt1LeyA6lHvbldQnJSrcglp+umYUXaBtW8UHItVGlau+9NE61QUqIap9uBKypvgbLkZ2KFWoE1Kg+P4cXd6u5qyTisUXybS0FzDYtZHvLPkhDhJ/94t0AO9XCS35NlaPEa3wWXt3faM2oHf0nIafyycQuGaO8wZ4EPjy7EHyAAEEeqv2PuTSE53NzqvmjOFtYFb8TrpCopcDju9deEbzXyCG0ovvcJYJgy5iIjhbdE20JJhjfkMdzMajfKyrbLH+AymBn45TFzQMxmxgCa08zmNrv5zUiLAAA7) no-repeat 0 0;text-indent:-9999px;height:164px;width:161px;float:left;padding-right:40px;border-right:1px solid #b1c0c5;margin-right:40px}body h1,body h2{line-height:36px;letter-spacing:-.5px}body h2{font-size:34px}body h3{font-size:18px;line-height:27px}body h4{font-size:14px;margin:18px 0 9px}body h4,body h5{line-height:18px}body h5{font-size:12px;margin:18px 0 0}body .clear{clear:both}body .left{float:left}body .message{padding:2px 18px;margin-bottom:18px;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px}body .message p{margin:11px 0 13px}body .message.warning{background-color:#fcf8f2;border:1px solid #ffc28b}body .message.error{background-color:#fdf1f3;border:1px solid #f8c3cd}body .message ul{margin-left:18px;margin-top:-9px}body .helpText{float:right;width:425px;padding-left:20px;color:#666;margin-top:0;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPlJREFUeNrEk6EOg0AMhnvLEKAIBoOYwZItGOwsGN6I8EYYsNOoLQgM5gwCQbJgEezuAuRWOMWSNWl6ufT/2h6FTNMER4z8DEAIETHP8wsLCfOYuTnnvZlnzNMoiii/WHUygImv7PiQhNg46M4grw2gKApe+bmIdV0Hx3FgHEdo21ZECXILw1B0cpLoiSwOggCGYQDDMMD3fbkLc84FDIiXAxdVVQVd10HTNGBZFh5lzT0jsrC+70XUNA08zwNKKQaYex1sjIv57HVdK3NO6IW/zLZtMYria2wAGc4qy1JVONsDpLgL13VV1dPdTTy0SIdX+W9/40eAAQD6VnXnAlj5kwAAAABJRU5ErkJggg==) no-repeat left 1px}body .helpText.requirementsHelpText{margin-top:17px}body .typography table{margin:9px 0 27px;border-collapse:collapse;width:100%}body .typography table thead tr td,body .typography table thead tr th{font-weight:700;vertical-align:bottom;padding:12px}body .typography table td,body .typography table th{padding:8px 12px;text-align:left}body .typography table td{vertical-align:top;border-top:none;background-color:#fff}body .typography table tbody tr:nth-child(odd) td,body .typography table tbody tr:nth-child(odd) th{background-color:#fcfcfc}body .typography table tbody tr:hover td,body .typography table tbody tr:hover th{background-color:#f6f6f6}body .typography table tfoot{font-style:italic;color:#888}body .typography input,body .typography select,body .typography textarea{width:420px;margin-bottom:9px;color:#707070;border:1px solid #ddd;display:inline-block;height:18px;padding:4px 6px;line-height:18px;font-size:13px;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px}body .typography input,body .typography textarea{-webkit-transition:border .2s linear,-webkit-box-shadow .2s linear;transition:border .2s linear,box-shadow .2s linear;box-shadow:inset 0 1px 3px rgba(0,0,0,.1)}body .typography input:focus,body .typography textarea:focus{outline:0;border-color:rgba(82,168,236,.8);box-shadow:inset 0 1px 3px rgba(0,0,0,.1),0 0 4px rgba(82,168,236,.6)}body .typography input[type=checkbox]:focus,body .typography input[type=file]:focus,body .typography select:focus{box-shadow:none;outline:1px dotted #666}body .typography select{height:26px}body .typography option{line-height:27px;font-size:12px;padding:2px 6px;color:#666}body .typography label{width:auto;float:none;padding-top:0;margin:0 0 5px;text-align:left;display:block}body .typography .fields{float:left}body .typography input.action{text-align:center;font-weight:700;margin:9px 0 27px;padding:6px 8px;width:200px;width:auto;color:#222;border:1px solid #aaa;text-shadow:0 1px 0 #eee;font-size:13px;float:none;height:auto;background:#fbfbfb;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(100%,#bbb));background:-webkit-linear-gradient(top,#fbfbfb,#bbb);background:-webkit-gradient(linear,left top,left bottom,from(#fbfbfb),to(#bbb));background:linear-gradient(180deg,#fbfbfb 0,#bbb);-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px;box-shadow:0 1px 0 0 #fff;background-color:#ddd}.lt-ie9 body .typography input.action{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb',endColorstr='#bbb',GradientType=0)}body .typography input.action:hover{box-shadow:0 1px 2px 0 #ccc;background:#fbfbfb;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(100%,#ccc));background:-webkit-linear-gradient(top,#fbfbfb,#ccc);background:-webkit-gradient(linear,left top,left bottom,from(#fbfbfb),to(#ccc));background:linear-gradient(180deg,#fbfbfb 0,#ccc)}.lt-ie9 body .typography input.action:hover{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb',endColorstr='#ccc',GradientType=0)}body .typography input.action:active,body .typography input.action:focus{box-shadow:0 1px 0 0 #fff;background:#fbfbfb;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(100%,#bbb));background:-webkit-linear-gradient(top,#fbfbfb,#bbb);background:-webkit-gradient(linear,left top,left bottom,from(#fbfbfb),to(#bbb));background:linear-gradient(180deg,#fbfbfb 0,#bbb)}.lt-ie9 body .typography input.action:active,.lt-ie9 body .typography input.action:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb',endColorstr='#bbb',GradientType=0)}body .typography input.action:focus,body .typography input.action:hover{cursor:pointer}body .typography input[type=checkbox],body .typography input[type=radio]{border:medium none;height:auto;line-height:normal;padding:0;width:auto;margin-right:6px;float:left;margin-top:3px}body .typography #install_button{font-size:20px;color:#fff;border-color:#78a127 #78a127 #59781d;text-shadow:0 1px 1px #4d7326;padding:8px 14px;background-color:green;background:#80bf40;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#80bf40),color-stop(100%,#59862d));background:-webkit-linear-gradient(top,#80bf40,#59862d);background:-webkit-gradient(linear,left top,left bottom,from(#80bf40),to(#59862d));background:linear-gradient(180deg,#80bf40 0,#59862d);box-shadow:0 1px 0 0 #fff}.lt-ie9 body .typography #install_button{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80BF40',endColorstr='#59862D',GradientType=0)}body .typography #install_button:hover{box-shadow:0 1px 3px 0 #bbb}body .typography #install_button:active,body .typography #install_button:focus{box-shadow:0 1px 0 0 #fff;background:#80bf40;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#80bf40),color-stop(100%,#59862d));background:-webkit-linear-gradient(top,#80bf40,#59862d);background:-webkit-gradient(linear,left top,left bottom,from(#80bf40),to(#59862d));background:linear-gradient(180deg,#80bf40 0,#59862d)}.lt-ie9 body .typography #install_button:active,.lt-ie9 body .typography #install_button:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80BF40',endColorstr='#59862D',GradientType=0)}body .typography #install_button[disabled=disabled]{border:1px solid #aaa;border-color:#bbb #bbb #aaa;color:#999;text-shadow:0 1px 0 #eee;background:#fbfbfb;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(100%,#bbb));background:-webkit-linear-gradient(top,#fbfbfb,#bbb);background:-webkit-gradient(linear,left top,left bottom,from(#fbfbfb),to(#bbb));background:linear-gradient(180deg,#fbfbfb 0,#bbb)}.lt-ie9 body .typography #install_button[disabled=disabled]{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb',endColorstr='#bbb',GradientType=0)}body .typography #install_button[disabled=disabled]:hover{box-shadow:0 1px 0 0 #fff}body #Container{margin-bottom:40px}body #Container h3.sectionHeading{padding-top:27px;border-top:1px solid #b1c0c5;clear:both}body #Container #Header{margin-bottom:30px;height:200px}body #Container #Header div.left{width:698px;margin-top:47px}body #Container #Navigation{display:none}body h5.requirement{padding:12px 18px;font-size:14px;border:1px solid #798c93;border-top:1px solid #8d9da3;margin:0;color:#fff;position:relative;text-shadow:0 -1px 0 #71858c;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px;box-shadow:0 1px 0 0 #fff;background-color:#eee;background:#b1c0c5;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#b1c0c5),color-stop(100%,#7f9198));background:-webkit-linear-gradient(top,#b1c0c5,#7f9198);background:-webkit-gradient(linear,left top,left bottom,from(#b1c0c5),to(#7f9198));background:linear-gradient(180deg,#b1c0c5 0,#7f9198)}.lt-ie9 body h5.requirement{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#B1C0C5',endColorstr='#7F9198',GradientType=0)}body h5.requirement span{font-weight:400;font-size:12px;padding:3px 6px;margin-left:5px;text-shadow:none;background-color:#fafbfb;-moz-border-radius-topleft:2px;-moz-border-radius-topright:2px;-moz-border-radius-bottomright:2px;-moz-border-radius-bottomleft:2px;border-radius:2px 2px 2px 2px;box-shadow:0 0 2px 0 #7f9198}body h5.requirement.good span{color:#359318}body h5.requirement.warning span{color:#e07127}body h5.requirement.error span{color:#c61414}body h5.requirement a{font-size:11px;right:9px;position:absolute;line-height:19px;margin:0 0 0 30px;color:#fff;text-decoration:none;font-weight:400;padding-right:21px;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAACgCAYAAADTnDZxAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjE2MEZDREI1QTBDMTFFMUFCQkY5OUZGQzMwMDhDMDkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjE2MEZDREE1QTBDMTFFMUFCQkY5OUZGQzMwMDhDMDkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MkE5NTUzNTkwQURDRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MkE5NTUzNTkwQURDRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuunCocAAAOvSURBVHja7Jn7S1NRHMB3H05tm5tpMzNrEpUlIpiQ5SPFLFJ/sElFURFR9lBh0OMPCIIogjJ7iBioZZilrIc/1A/9YPRTSFkGRuUDrdQeezQ33e69fY+cxd1292CVSJ3Bl3PPPefzveeec+F8OKMEQZCF+6Nlv/GThPfWnFgcFgzgSijyQklAe4FaKDLRNUVR2VCPDQmGjgoA8t11mMgIhmHWwX15QBh1QCACxI0cx6lpms72B1OipUqGiJTo8wPiczB4DqzzrMCsaKm2QKGR6DPSfOlcd8AnGyr3vWMZhhM3qpSKyVMnDYNBh52ZnjaoL93c/2tIkEhfsqlfl5w0Gso7O8uKC9+uzcwYRpXiDbnvi/LWD8Al7/el0Tp7habN+DALSoVEm0f4+0gUELZgs/0/fmEEJjCBCfzPwbBjlofrYQYoOkNJ4LFjAFAAxRPsYVZoy4e9+UVQGEAdAL1QV7kbwcP6QKdyIYEpkIdpALwnBrGHpYGHNYcy7AqIOIk+yAwekV3S18PQemZI9DHCUpUH87B60Ce7l4eNgIc1h+JhN8DDakUeZgcPuwAe9iBUlVpUd72lbU/1caG1434t1OMCqZTUzXTwsCtQ6sL1MB3+soiHEZjABCYwgf/E/lw9EB5YlyLa3PEo3MGLIqgZMPiQQY1LB4QJH2e5Ar0zApG8LYPIsRibTvM2y0a4TsXHPWwg2A0WmO/Un3G8fKY33ao7y9ttpXBvVaAECF4CkW2523Bs6k3PUnTT9XEo1nTzYhUkKMSJVXiEPvBCU2ttpaPveZK4YSZB0/nDvNUE8ypTSi0rbb59tYSb+KRl4hIsTPxCqziEaQdjbq/fCf0ipJ7MqrcfaYDyMYQWzzR6AtIFpFVfIIbxrHNSS4WOrL5DyL2GhhI4cZJJf7AJx+x+28SGCExgAhOYwAT+awYYjTd55ByUlxnwWOKmsRkI3maAXCQB259clAABVogJ7CY+Nshau1rLBJcrh1YoEyk2QiWjaFYmCJzAuWyC3TYuTE+9itm6vxF7iec7R67OGrN0NhaDb8X7aIM8yqEsrujGo/FRCFquWzGg2W24zMzXevwzRkXNc6orDrREr8nvwU/lpZZqlF2Q+FSzq6bJnWAG3HbIKF+e3gXVIfy+vJRKfYV4DaCg3nF03Nx+7aCySN8hT0lFJ469EGN48nyGTVV9mLmH9DAWz3wMHuY4TiwJik0fmd43vDQsXlMnXhoh6Bkg7ugiBkhgAhOYwHMa/inAAI8u0fa7CiXFAAAAAElFTkSuQmCC) no-repeat 100% 0}body h5.requirement a:hover{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAACgCAYAAADTnDZxAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjE2MEZDREI1QTBDMTFFMUFCQkY5OUZGQzMwMDhDMDkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjE2MEZDREE1QTBDMTFFMUFCQkY5OUZGQzMwMDhDMDkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MkE5NTUzNTkwQURDRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MkE5NTUzNTkwQURDRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuunCocAAAOvSURBVHja7Jn7S1NRHMB3H05tm5tpMzNrEpUlIpiQ5SPFLFJ/sElFURFR9lBh0OMPCIIogjJ7iBioZZilrIc/1A/9YPRTSFkGRuUDrdQeezQ33e69fY+cxd1292CVSJ3Bl3PPPefzveeec+F8OKMEQZCF+6Nlv/GThPfWnFgcFgzgSijyQklAe4FaKDLRNUVR2VCPDQmGjgoA8t11mMgIhmHWwX15QBh1QCACxI0cx6lpms72B1OipUqGiJTo8wPiczB4DqzzrMCsaKm2QKGR6DPSfOlcd8AnGyr3vWMZhhM3qpSKyVMnDYNBh52ZnjaoL93c/2tIkEhfsqlfl5w0Gso7O8uKC9+uzcwYRpXiDbnvi/LWD8Al7/el0Tp7habN+DALSoVEm0f4+0gUELZgs/0/fmEEJjCBCfzPwbBjlofrYQYoOkNJ4LFjAFAAxRPsYVZoy4e9+UVQGEAdAL1QV7kbwcP6QKdyIYEpkIdpALwnBrGHpYGHNYcy7AqIOIk+yAwekV3S18PQemZI9DHCUpUH87B60Ce7l4eNgIc1h+JhN8DDakUeZgcPuwAe9iBUlVpUd72lbU/1caG1434t1OMCqZTUzXTwsCtQ6sL1MB3+soiHEZjABCYwgf/E/lw9EB5YlyLa3PEo3MGLIqgZMPiQQY1LB4QJH2e5Ar0zApG8LYPIsRibTvM2y0a4TsXHPWwg2A0WmO/Un3G8fKY33ao7y9ttpXBvVaAECF4CkW2523Bs6k3PUnTT9XEo1nTzYhUkKMSJVXiEPvBCU2ttpaPveZK4YSZB0/nDvNUE8ypTSi0rbb59tYSb+KRl4hIsTPxCqziEaQdjbq/fCf0ipJ7MqrcfaYDyMYQWzzR6AtIFpFVfIIbxrHNSS4WOrL5DyL2GhhI4cZJJf7AJx+x+28SGCExgAhOYwAT+awYYjTd55ByUlxnwWOKmsRkI3maAXCQB259clAABVogJ7CY+Nshau1rLBJcrh1YoEyk2QiWjaFYmCJzAuWyC3TYuTE+9itm6vxF7iec7R67OGrN0NhaDb8X7aIM8yqEsrujGo/FRCFquWzGg2W24zMzXevwzRkXNc6orDrREr8nvwU/lpZZqlF2Q+FSzq6bJnWAG3HbIKF+e3gXVIfy+vJRKfYV4DaCg3nF03Nx+7aCySN8hT0lFJ469EGN48nyGTVV9mLmH9DAWz3wMHuY4TiwJik0fmd43vDQsXlMnXhoh6Bkg7ugiBkhgAhOYwHMa/inAAI8u0fa7CiXFAAAAAElFTkSuQmCC) no-repeat right -40px}body table.testResults{border-top:none;margin-top:-1px;margin-bottom:9px;box-shadow:0 1px 0 0 #fff;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px;overflow:hidden}body table.testResults tr.good{display:none;border:none}body table.testResults tr.good td{color:#359318}body table.testResults tr.warning{border:none}body table.testResults tr.warning td{color:#e07127}body table.testResults tr.error{border:none;color:#c61414}body table.testResults td{border:1px solid #ddd;width:50%}body #database_selection,body #Themes{list-style:none;margin:0;margin-bottom:18px;padding-left:0}body #database_selection li,body #Themes li{clear:left;padding:3px 0}body #database_selection li .dbfields,body #Themes li .dbfields{padding:12px;border:1px solid #ddd;background-color:#fafafa;margin-bottom:9px;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px;box-shadow:inset 0 0 3px 0 #ddd;box-shadow:0 1px 0 0 #fff}body ul#Themes{float:left;width:445px}body .databaseError{width:422px}body #Footer{margin-top:67px;margin-bottom:18px}body #Footer p{font-size:12px;color:#999}body #Header h1{margin-top:45px;margin-bottom:27px}body #Header h3{margin-top:-10px}#adminAcc,#devHelp,#localeHelp{padding-top:20px}#devHelp,#devSection{height:18em}#use_environment_field{margin-bottom:25px;background-color:#fafafa;border:1px solid #ddd;border-radius:3px 3px 3px 3px;box-shadow:0 1px 0 0 #fff;margin-bottom:9px;padding:10px 10px 8px}#use_environment_field input{float:left;margin-right:5px}.databaseError ul{margin-bottom:0}.databaseError li,.databaseError ul{margin-left:0;padding-left:0}#Layout p.goodInstall,.goodInstall{color:#359318}.goodInstall{padding:.5em;background-color:#e2fee1;border:1px solid #43cb3e;overflow:hidden;line-height:18px;padding:10px}.goodInstall a{float:right;font-size:18px;padding:0 2px 2px 0;font-weight:700} +body{font-family:Arial,san-serif;margin-bottom:18px;width:940px;margin:0 auto 18px;background-color:#f4f4f4}body,body p{font-size:13px;line-height:18px;color:#333}body p{margin-bottom:18px}body a{color:#0973a6}body h1,body h2,body h3,body h4,body h5,body h6{color:#222;font-family:inherit;font-weight:700;margin:0;margin:27px 0 9px;text-rendering:optimizelegibility;clear:both;text-shadow:0 1px 0 #fff}body h1 small,body h2 small,body h3 small,body h4 small,body h5 small,body h6 small{font-weight:400;font-size:12px;color:#666}body h1{font-size:36px;background:transparent url(data:image/gif;base64,R0lGODlhoQCkALMGAABaknqRi7zIxZutqN7j4hBkmf///0CDrYKYkr/W5M3W0+7x8Ky6tzB5p3Ciwo+3zyH5BAEAAAYALAAAAAChAKQAAAT/0MhJq7046827/2AojmR5EYuprmzrbk/xvHRt39ZyADyB/8AgKFHg8RzCpDKpMzpTy6i0RXQ6Z9Os9rNwWK2HrXhsSTS+1gJ5Lfaiv1C2PEk4v7+JuR7ovuP3gDR1fm95gYcqMYSFiI0iBDuLjI6UHIqSb5WaGE2Ybw2boRNVnm9IopqdpW8CqJWkq2hqro1dsX6ntIFmt3cFcbp6fb1oWMFzg8RvYcdzw8pWDcDNYsnQX7/Ua5fX0dPaU5DdaA7f4FHc4zwFredbz+oH5u5MkerrxvRSC3b3AAc+9GWxp04GnQQJAgo0AO9aA4U1CDxw0C/agQcQmyXwByAXjS5F/zwVcJDRFYGQ4x7aSEAw1gFDtFpC8+hCXLeXrjamhPmi4cx5iGT2KleDH8d1JRHphFaAZ02URw1WErpK3kqoRwFIbUSAqVMXRrN+yRfogTKrN6hm3RpILSG2NZaKxZZUTq8CdV1UnOtt1y28QMzyvUNTjuBVZG24HZy3TSxQQLoO9sNMz2JyYElaODx50pzLf1gMgkzBZ2celeWAttL4wzCyq/m2nhLbyAprPEhL2FuqwYEDvGMVHlObx1cQnJ1A/IuRwoIHwTHpXlMcQGIPNjFPcAnU9KLj71yOSPdFd6mmlnpdDx8LPCfQFFaj5eCd8By5nqZrgEVI4WW4G4RVSv9qZEgmHAeqSAJTcl/M9wGDkugR3SIOVsCfgqP4sh4HBpYiDDEyTMPSLTwFp1IJE96hR4e9+ObAAViVwhM8w4VQ3R4xnqacc06cqMKNekCoIw8WuFHjCDkSsscCSZ5GoAE6uPfILYDUN9iGLliJDSACDtkDEEyKB4gAXhrxZA3VdXSIlkdJyQKbYx3SZWdn1pQmD0CtcZKOgN1AXm+O7NmZmyUkeAuWclyY1ZEqKBrLbGwIKhajhd5pBaV6GHoPoiQ4egukH/rjY2bqYBqIpndxOgIv4/SZk6VaPZBnCXBiomqgFFUlwKwk4HbTORIBd8cBDsiKQ63S8aoLAQg1q6z/Cr52g95CUvx5javU0gGrL6Bm24K1DhHqbQuo3vTsuI02qQyA6NqArCcAtRvEu5KwKy8N9C4y6r0rHWUqvyaEec++ANeQr30F/8AiNA2Im7AJB39B1MM/qCuSwxSXgF8vFWZssFceBwFrxyHXkKIf9pZMA8fdqmxCLCm7vHJvLctsgsVO/GszC6ARvPOxi0z8sxBC5obx0CwsQNi5SLcg07RNL5EcyVEHYQfUVUexEdVZC1Fz12CHLfbYZJdt9tlop6322my37fbbcMct99x0113wAgoIoLfeCgCzAN8TLEDA4F9/lPfeChSegwIK/IC33rMRMEAAlFde+QA+EIBA/+XtCGC5FgswYPnoDKgweQDtFIXAAHoj0HgGmo8ue+Oef25A7ZRnscDmsl+ugu82MMDAAKsTEMA8u/duOQIpKLC8BLgHkMXpCAgQEAF5u+6c9SCcnjoNmA8gugEI1OW85QzsfXrpUFL/evRTLFD5bLW3LLjiHQyggPgDkF+X6JV7XeAS5xyIwE8KxgsA+zZQPzkMjwGhEwDzMHC63InggIUaHNMS+L0MNFAQyhJcBRZAPAGIToAWqGAAWjOAFuoPep/bnws7aIDhtZB9BGAA7wKAgOpRQAAtbIUEKceABE4wAy3knQtZJ4EWCq6CPpChQvbXCgXsUIFJ2d/ydjWBvP/1TQMApFz5NGC5zn0ueZUDRgIpV0XlBWAAUKBe9OB4OaC4sX8GYOMVU/DB2/EwjKPLCCAtB0cQnI+QKKRAGWFYOQkAEoXRw5sb2djEyl1RiJZM5ASSSLkltmN5SWSkQqKXvuyJMQ64YwDjhqjAEKgwkxZYpB8bCSVCUmCHELyiKllJuRS8MoCOXJ4mRRlLIk6jj7hDYewC8Dr58RAia2QaCZU3xgnIEoMqhIIzKYc9WdZyfgZQYRENgIIJRK+HmuyjNXtpAWR2sp3vnCUNAViz0LlRgNe0nQEOycxgirGGlqxABVtRQQRkwJ6WhOAPuVlMPFbAnf0c4T/Dyc6HMlT/BAiVXUDySUsJ7NCg5ANmBTFHOMlxjqKU1MDfdlhIYlYgnhZdoTkv+lIL8m5vOD0d/lZKOglw1IIS4OcCtnk8lE6ynwPtQEYXqE6fvvECEE3K6Zx6VPxJIKMW/Kn0AofLQ7LvqOBMqgcOCYWm5vGp8JSpSwWa1U4u8a1W3aTttFqBMLYQnEZlHU5x6suTfkCna12nQxeq1lkmhZYdxcEB6eocSypRrjCloF898EGzRnamhTWrM0HKO6ZpYJhobGtKMQhZywkwkhoQqwfoGVinDhazo6RpF4noz2FitIeqJJwWK/dVv0Yvc7N9XnA7CQwFLFC1HEojIzV52bU2FY0B3jlfS00wSOVt1LeyA6lHvbldQnJSrcglp+umYUXaBtW8UHItVGlau+9NE61QUqIap9uBKypvgbLkZ2KFWoE1Kg+P4cXd6u5qyTisUXybS0FzDYtZHvLPkhDhJ/94t0AO9XCS35NlaPEa3wWXt3faM2oHf0nIafyycQuGaO8wZ4EPjy7EHyAAEEeqv2PuTSE53NzqvmjOFtYFb8TrpCopcDju9deEbzXyCG0ovvcJYJgy5iIjhbdE20JJhjfkMdzMajfKyrbLH+AymBn45TFzQMxmxgCa08zmNrv5zUiLAAA7) no-repeat 0 0;text-indent:-9999px;height:164px;width:161px;float:left;padding-right:40px;border-right:1px solid #b1c0c5;margin-right:40px}body h1,body h2{line-height:36px;letter-spacing:-.5px}body h2{font-size:34px}body h3{font-size:18px;line-height:27px}body h4{font-size:14px;margin:18px 0 9px}body h4,body h5{line-height:18px}body h5{font-size:12px;margin:18px 0 0}body #Header h1{margin-top:45px;margin-bottom:27px}body #Header h3{margin-top:-10px}body .clear{clear:both}body .left{float:left}body .message{padding:2px 18px;margin-bottom:18px;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px}body .message p{margin:11px 0 13px}body .message.warning{background-color:#fcf8f2;border:1px solid #ffc28b}body .message.error{background-color:#fdf1f3;border:1px solid #f8c3cd}body .message ul{margin-left:18px;margin-top:-9px}body .helpText{float:right;width:425px;padding-left:20px;color:#666;margin-top:0;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPlJREFUeNrEk6EOg0AMhnvLEKAIBoOYwZItGOwsGN6I8EYYsNOoLQgM5gwCQbJgEezuAuRWOMWSNWl6ufT/2h6FTNMER4z8DEAIETHP8wsLCfOYuTnnvZlnzNMoiii/WHUygImv7PiQhNg46M4grw2gKApe+bmIdV0Hx3FgHEdo21ZECXILw1B0cpLoiSwOggCGYQDDMMD3fbkLc84FDIiXAxdVVQVd10HTNGBZFh5lzT0jsrC+70XUNA08zwNKKQaYex1sjIv57HVdK3NO6IW/zLZtMYria2wAGc4qy1JVONsDpLgL13VV1dPdTTy0SIdX+W9/40eAAQD6VnXnAlj5kwAAAABJRU5ErkJggg==) no-repeat left 1px}body .helpText.requirementsHelpText{margin-top:17px}body .typography table{margin:9px 0 27px;border-collapse:collapse;width:100%}body .typography table thead td,body .typography table thead th{font-weight:700;vertical-align:bottom;padding:12px}body .typography table td,body .typography table th{padding:8px 12px;text-align:left}body .typography table td{vertical-align:top;border-top:0;background-color:#fff}body .typography table tbody tr:nth-child(odd) td,body .typography table tbody tr:nth-child(odd) th{background-color:#fcfcfc}body .typography table tbody tr:hover td,body .typography table tbody tr:hover th{background-color:#f6f6f6}body .typography table tfoot{font-style:italic;color:#888}body .typography input,body .typography select,body .typography textarea{width:420px;margin-bottom:9px;color:#707070;border:1px solid #ddd;display:inline-block;height:18px;padding:4px 6px;line-height:18px;font-size:13px;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px}body .typography input,body .typography textarea{-webkit-transition:border .2s linear,-webkit-box-shadow .2s linear;transition:border .2s linear,box-shadow .2s linear;box-shadow:inset 0 1px 3px rgba(0,0,0,.1)}body .typography input:focus,body .typography textarea:focus{outline:0;border-color:rgba(82,168,236,.8);box-shadow:inset 0 1px 3px rgba(0,0,0,.1),0 0 4px rgba(82,168,236,.6)}body .typography input[type=checkbox]:focus,body .typography input[type=file]:focus,body .typography select:focus{box-shadow:none;outline:1px dotted #666}body .typography select{height:26px}body .typography option{line-height:27px;font-size:12px;padding:2px 6px;color:#666}body .typography label{width:auto;float:none;padding-top:0;margin:0 0 5px;text-align:left;display:block}body .typography .fields{float:left}body .typography input.action{text-align:center;font-weight:700;margin:9px 0 27px;padding:6px 8px;width:200px;width:auto;color:#222;border:1px solid #aaa;text-shadow:0 1px 0 #eee;font-size:13px;float:none;height:auto;background:#fbfbfb;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(100%,#bbb));background:-webkit-linear-gradient(top,#fbfbfb,#bbb);background:-webkit-gradient(linear,left top,left bottom,from(#fbfbfb),to(#bbb));background:linear-gradient(180deg,#fbfbfb 0,#bbb);-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px;box-shadow:0 1px 0 0 #fff;background-color:#ddd}.lt-ie9 body .typography input.action{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb',endColorstr='#bbb',GradientType=0)}body .typography input.action:hover{box-shadow:0 1px 2px 0 #ccc;background:#fbfbfb;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(100%,#ccc));background:-webkit-linear-gradient(top,#fbfbfb,#ccc);background:-webkit-gradient(linear,left top,left bottom,from(#fbfbfb),to(#ccc));background:linear-gradient(180deg,#fbfbfb 0,#ccc)}.lt-ie9 body .typography input.action:hover{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb',endColorstr='#ccc',GradientType=0)}body .typography input.action:active,body .typography input.action:focus{box-shadow:0 1px 0 0 #fff;background:#fbfbfb;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(100%,#bbb));background:-webkit-linear-gradient(top,#fbfbfb,#bbb);background:-webkit-gradient(linear,left top,left bottom,from(#fbfbfb),to(#bbb));background:linear-gradient(180deg,#fbfbfb 0,#bbb)}.lt-ie9 body .typography input.action:active,.lt-ie9 body .typography input.action:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb',endColorstr='#bbb',GradientType=0)}body .typography input.action:focus,body .typography input.action:hover{cursor:pointer}body .typography input[type=checkbox],body .typography input[type=radio]{border:medium none;height:auto;line-height:normal;padding:0;width:auto;margin-right:6px;float:left;margin-top:3px}body .typography #install_button{font-size:20px;color:#fff;border-color:#78a127 #78a127 #59781d;text-shadow:0 1px 1px #4d7326;padding:8px 14px;background-color:green;background:#80bf40;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#80bf40),color-stop(100%,#59862d));background:-webkit-linear-gradient(top,#80bf40,#59862d);background:-webkit-gradient(linear,left top,left bottom,from(#80bf40),to(#59862d));background:linear-gradient(180deg,#80bf40 0,#59862d);box-shadow:0 1px 0 0 #fff}.lt-ie9 body .typography #install_button{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80BF40',endColorstr='#59862D',GradientType=0)}body .typography #install_button:hover{box-shadow:0 1px 3px 0 #bbb}body .typography #install_button:active,body .typography #install_button:focus{box-shadow:0 1px 0 0 #fff;background:#80bf40;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#80bf40),color-stop(100%,#59862d));background:-webkit-linear-gradient(top,#80bf40,#59862d);background:-webkit-gradient(linear,left top,left bottom,from(#80bf40),to(#59862d));background:linear-gradient(180deg,#80bf40 0,#59862d)}.lt-ie9 body .typography #install_button:active,.lt-ie9 body .typography #install_button:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80BF40',endColorstr='#59862D',GradientType=0)}body .typography #install_button[disabled=disabled]{border:1px solid #aaa;border-color:#bbb #bbb #aaa;color:#999;text-shadow:0 1px 0 #eee;background:#fbfbfb;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fbfbfb),color-stop(100%,#bbb));background:-webkit-linear-gradient(top,#fbfbfb,#bbb);background:-webkit-gradient(linear,left top,left bottom,from(#fbfbfb),to(#bbb));background:linear-gradient(180deg,#fbfbfb 0,#bbb)}.lt-ie9 body .typography #install_button[disabled=disabled]{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbfbfb',endColorstr='#bbb',GradientType=0)}body .typography #install_button[disabled=disabled]:hover{box-shadow:0 1px 0 0 #fff}body #Container{margin-bottom:40px}body #Container h3.sectionHeading{padding-top:27px;border-top:1px solid #b1c0c5;clear:both}body #Container #Header{margin-bottom:30px;height:200px}body #Container #Header div.left{width:698px;margin-top:47px}body #Container #Navigation{display:none}body h5.requirement{padding:12px 18px;font-size:14px;border:1px solid #798c93;border-top:1px solid #8d9da3;margin:0;color:#fff;position:relative;text-shadow:0 -1px 0 #71858c;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px;box-shadow:0 1px 0 0 #fff;background-color:#eee;background:#b1c0c5;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#b1c0c5),color-stop(100%,#7f9198));background:-webkit-linear-gradient(top,#b1c0c5,#7f9198);background:-webkit-gradient(linear,left top,left bottom,from(#b1c0c5),to(#7f9198));background:linear-gradient(180deg,#b1c0c5 0,#7f9198)}.lt-ie9 body h5.requirement{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#B1C0C5',endColorstr='#7F9198',GradientType=0)}body h5.requirement span{font-weight:400;font-size:12px;padding:3px 6px;margin-left:5px;text-shadow:none;background-color:#fafbfb;-moz-border-radius-topleft:2px;-moz-border-radius-topright:2px;-moz-border-radius-bottomright:2px;-moz-border-radius-bottomleft:2px;border-radius:2px 2px 2px 2px;box-shadow:0 0 2px 0 #7f9198}body h5.requirement.good span{color:#359318}body h5.requirement.warning span{color:#e07127}body h5.requirement.error span{color:#c61414}body h5.requirement a{font-size:11px;right:9px;position:absolute;line-height:19px;margin:0 0 0 30px;color:#fff;text-decoration:none;font-weight:400;padding-right:21px;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAACgCAYAAADTnDZxAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjE2MEZDREI1QTBDMTFFMUFCQkY5OUZGQzMwMDhDMDkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjE2MEZDREE1QTBDMTFFMUFCQkY5OUZGQzMwMDhDMDkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MkE5NTUzNTkwQURDRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MkE5NTUzNTkwQURDRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuunCocAAAOvSURBVHja7Jn7S1NRHMB3H05tm5tpMzNrEpUlIpiQ5SPFLFJ/sElFURFR9lBh0OMPCIIogjJ7iBioZZilrIc/1A/9YPRTSFkGRuUDrdQeezQ33e69fY+cxd1292CVSJ3Bl3PPPefzveeec+F8OKMEQZCF+6Nlv/GThPfWnFgcFgzgSijyQklAe4FaKDLRNUVR2VCPDQmGjgoA8t11mMgIhmHWwX15QBh1QCACxI0cx6lpms72B1OipUqGiJTo8wPiczB4DqzzrMCsaKm2QKGR6DPSfOlcd8AnGyr3vWMZhhM3qpSKyVMnDYNBh52ZnjaoL93c/2tIkEhfsqlfl5w0Gso7O8uKC9+uzcwYRpXiDbnvi/LWD8Al7/el0Tp7habN+DALSoVEm0f4+0gUELZgs/0/fmEEJjCBCfzPwbBjlofrYQYoOkNJ4LFjAFAAxRPsYVZoy4e9+UVQGEAdAL1QV7kbwcP6QKdyIYEpkIdpALwnBrGHpYGHNYcy7AqIOIk+yAwekV3S18PQemZI9DHCUpUH87B60Ce7l4eNgIc1h+JhN8DDakUeZgcPuwAe9iBUlVpUd72lbU/1caG1434t1OMCqZTUzXTwsCtQ6sL1MB3+soiHEZjABCYwgf/E/lw9EB5YlyLa3PEo3MGLIqgZMPiQQY1LB4QJH2e5Ar0zApG8LYPIsRibTvM2y0a4TsXHPWwg2A0WmO/Un3G8fKY33ao7y9ttpXBvVaAECF4CkW2523Bs6k3PUnTT9XEo1nTzYhUkKMSJVXiEPvBCU2ttpaPveZK4YSZB0/nDvNUE8ypTSi0rbb59tYSb+KRl4hIsTPxCqziEaQdjbq/fCf0ipJ7MqrcfaYDyMYQWzzR6AtIFpFVfIIbxrHNSS4WOrL5DyL2GhhI4cZJJf7AJx+x+28SGCExgAhOYwAT+awYYjTd55ByUlxnwWOKmsRkI3maAXCQB259clAABVogJ7CY+Nshau1rLBJcrh1YoEyk2QiWjaFYmCJzAuWyC3TYuTE+9itm6vxF7iec7R67OGrN0NhaDb8X7aIM8yqEsrujGo/FRCFquWzGg2W24zMzXevwzRkXNc6orDrREr8nvwU/lpZZqlF2Q+FSzq6bJnWAG3HbIKF+e3gXVIfy+vJRKfYV4DaCg3nF03Nx+7aCySN8hT0lFJ469EGN48nyGTVV9mLmH9DAWz3wMHuY4TiwJik0fmd43vDQsXlMnXhoh6Bkg7ugiBkhgAhOYwHMa/inAAI8u0fa7CiXFAAAAAElFTkSuQmCC) no-repeat 100% 0}body h5.requirement a:hover{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAACgCAYAAADTnDZxAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjE2MEZDREI1QTBDMTFFMUFCQkY5OUZGQzMwMDhDMDkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjE2MEZDREE1QTBDMTFFMUFCQkY5OUZGQzMwMDhDMDkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MkE5NTUzNTkwQURDRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MkE5NTUzNTkwQURDRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuunCocAAAOvSURBVHja7Jn7S1NRHMB3H05tm5tpMzNrEpUlIpiQ5SPFLFJ/sElFURFR9lBh0OMPCIIogjJ7iBioZZilrIc/1A/9YPRTSFkGRuUDrdQeezQ33e69fY+cxd1292CVSJ3Bl3PPPefzveeec+F8OKMEQZCF+6Nlv/GThPfWnFgcFgzgSijyQklAe4FaKDLRNUVR2VCPDQmGjgoA8t11mMgIhmHWwX15QBh1QCACxI0cx6lpms72B1OipUqGiJTo8wPiczB4DqzzrMCsaKm2QKGR6DPSfOlcd8AnGyr3vWMZhhM3qpSKyVMnDYNBh52ZnjaoL93c/2tIkEhfsqlfl5w0Gso7O8uKC9+uzcwYRpXiDbnvi/LWD8Al7/el0Tp7habN+DALSoVEm0f4+0gUELZgs/0/fmEEJjCBCfzPwbBjlofrYQYoOkNJ4LFjAFAAxRPsYVZoy4e9+UVQGEAdAL1QV7kbwcP6QKdyIYEpkIdpALwnBrGHpYGHNYcy7AqIOIk+yAwekV3S18PQemZI9DHCUpUH87B60Ce7l4eNgIc1h+JhN8DDakUeZgcPuwAe9iBUlVpUd72lbU/1caG1434t1OMCqZTUzXTwsCtQ6sL1MB3+soiHEZjABCYwgf/E/lw9EB5YlyLa3PEo3MGLIqgZMPiQQY1LB4QJH2e5Ar0zApG8LYPIsRibTvM2y0a4TsXHPWwg2A0WmO/Un3G8fKY33ao7y9ttpXBvVaAECF4CkW2523Bs6k3PUnTT9XEo1nTzYhUkKMSJVXiEPvBCU2ttpaPveZK4YSZB0/nDvNUE8ypTSi0rbb59tYSb+KRl4hIsTPxCqziEaQdjbq/fCf0ipJ7MqrcfaYDyMYQWzzR6AtIFpFVfIIbxrHNSS4WOrL5DyL2GhhI4cZJJf7AJx+x+28SGCExgAhOYwAT+awYYjTd55ByUlxnwWOKmsRkI3maAXCQB259clAABVogJ7CY+Nshau1rLBJcrh1YoEyk2QiWjaFYmCJzAuWyC3TYuTE+9itm6vxF7iec7R67OGrN0NhaDb8X7aIM8yqEsrujGo/FRCFquWzGg2W24zMzXevwzRkXNc6orDrREr8nvwU/lpZZqlF2Q+FSzq6bJnWAG3HbIKF+e3gXVIfy+vJRKfYV4DaCg3nF03Nx+7aCySN8hT0lFJ469EGN48nyGTVV9mLmH9DAWz3wMHuY4TiwJik0fmd43vDQsXlMnXhoh6Bkg7ugiBkhgAhOYwHMa/inAAI8u0fa7CiXFAAAAAElFTkSuQmCC) no-repeat right -40px}body table.testResults{border-top:0;margin-top:-1px;margin-bottom:9px;box-shadow:0 1px 0 0 #fff;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px;overflow:hidden}body table.testResults tr.good{display:none;border:0}body table.testResults tr.good td{color:#359318}body table.testResults tr.warning{border:0}body table.testResults tr.warning td{color:#e07127}body table.testResults tr.error{border:0;color:#c61414}body table.testResults td{border:1px solid #ddd;width:50%}body #database_selection,body #Themes{list-style:none;margin:0;margin-bottom:18px;padding-left:0}body #database_selection li,body #Themes li{clear:left;padding:3px 0}body #database_selection li .dbfields,body #Themes li .dbfields{padding:12px;border:1px solid #ddd;background-color:#fafafa;margin-bottom:9px;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;border-radius:3px 3px 3px 3px;box-shadow:inset 0 0 3px 0 #ddd;box-shadow:0 1px 0 0 #fff}body ul#Themes{float:left;width:445px}body .databaseError{width:422px}body #Footer{margin-top:67px;margin-bottom:18px}body #Footer p{font-size:12px;color:#999}#adminAcc,#devHelp,#localeHelp{padding-top:20px}#devHelp,#devSection{height:18em}#use_environment_field{margin-bottom:25px;background-color:#fafafa;border:1px solid #ddd;border-radius:3px 3px 3px 3px;box-shadow:0 1px 0 0 #fff;margin-bottom:9px;padding:10px 10px 8px}#use_environment_field input{float:left;margin-right:5px}.databaseError ul{margin-bottom:0}.databaseError li,.databaseError ul{margin-left:0;padding-left:0}#Layout p.goodInstall,.goodInstall{color:#359318}.goodInstall{padding:.5em;background-color:#e2fee1;border:1px solid #43cb3e;overflow:hidden;line-height:18px;padding:10px}.goodInstall a{float:right;font-size:18px;padding:0 2px 2px 0;font-weight:700} /*# sourceMappingURL=install.css.map*/ \ No newline at end of file diff --git a/Forms/FormField.php b/Forms/FormField.php index babb07485..91b9344ce 100644 --- a/Forms/FormField.php +++ b/Forms/FormField.php @@ -1453,7 +1453,7 @@ class FormField extends RequestHandler { 'title' => $this->Title(), 'source' => null, 'extraClass' => $this->extraClass(), - 'description' => $this->getDescription(), + 'description' => $this->obj('Description')->getSchemaValue(), 'rightTitle' => $this->RightTitle(), 'leftTitle' => $this->LeftTitle(), 'readOnly' => $this->isReadonly(), diff --git a/ORM/FieldType/DBField.php b/ORM/FieldType/DBField.php index 91f956ca5..bdcce554e 100644 --- a/ORM/FieldType/DBField.php +++ b/ORM/FieldType/DBField.php @@ -483,4 +483,13 @@ DBG; $this->arrayValue = $value; return $this; } + + /** + * Get formfield schema value + * + * @return string|array Encoded string for use in formschema response + */ + public function getSchemaValue() { + return $this->RAW(); + } } diff --git a/ORM/FieldType/DBHTMLText.php b/ORM/FieldType/DBHTMLText.php index 1449c3ef7..ac83f1e71 100644 --- a/ORM/FieldType/DBHTMLText.php +++ b/ORM/FieldType/DBHTMLText.php @@ -217,4 +217,14 @@ class DBHTMLText extends DBText { return trim(Convert::xml2raw($text)); } + public function getSchemaValue() + { + // Form schema format as HTML + $value = $this->RAW(); + if($value) { + return [ 'html' => $this->RAW() ]; + } + return null; + } + } diff --git a/ORM/FieldType/DBHTMLVarchar.php b/ORM/FieldType/DBHTMLVarchar.php index 585c962e1..3fb68b9e7 100644 --- a/ORM/FieldType/DBHTMLVarchar.php +++ b/ORM/FieldType/DBHTMLVarchar.php @@ -122,4 +122,13 @@ class DBHTMLVarchar extends DBVarchar { return new TextField($this->name, $title); } + public function getSchemaValue() + { + // Form schema format as HTML + $value = $this->RAW(); + if($value) { + return [ 'html' => $this->RAW() ]; + } + return null; + } } diff --git a/admin/client/dist/js/bundle-framework.js b/admin/client/dist/js/bundle-framework.js index 8f17f221b..80ad3d3bd 100644 --- a/admin/client/dist/js/bundle-framework.js +++ b/admin/client/dist/js/bundle-framework.js @@ -1,11 +1,11 @@ -!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function a(){h["default"].add("config",g["default"]),h["default"].add("form",w["default"]),h["default"].add("schemas",T["default"]),h["default"].add("records",P["default"]),h["default"].add("campaign",j["default"]),h["default"].add("breadcrumbs",A["default"]),h["default"].add("routing",te.routerReducer),m["default"].register("TextField",I["default"]),m["default"].register("HiddenField",N["default"]),m["default"].register("GridField",U["default"]),m["default"].register("SingleSelectField",M["default"]),m["default"].register("PopoverField",G["default"]),m["default"].register("HeaderField",Q["default"]),m["default"].register("LiteralField",K["default"]),m["default"].register("HtmlReadonlyField",W["default"]),m["default"].register("CompositeField",J["default"]),m["default"].register("Tabs",z["default"]),m["default"].register("TabItem",ee["default"]),m["default"].register("FormAction",B["default"]);var e={},t=(0,s.combineReducers)(h["default"].getAll()),r=[c["default"]],n=p["default"].get("environment"),o=p["default"].get("debugging"),a=s.applyMiddleware.apply(void 0,r),i=window.devToolsExtension;"dev"===n&&o&&"function"==typeof i&&(a=(0,s.compose)(s.applyMiddleware.apply(void 0,r),i()));var l=a(s.createStore),f=l(t,e);f.dispatch(v.setConfig(p["default"].getAll())),window.ss=window.ss||{},window.ss.store=f;var d=new u["default"](f);d.start(window.location.pathname)}var i=r(2),u=o(i),s=r(30),l=r(31),c=o(l),f=r(24),p=o(f),d=r(32),h=o(d),y=r(33),m=o(y),b=r(34),v=n(b),_=r(36),g=o(_),E=r(38),w=o(E),O=r(40),T=o(O),C=r(42),P=o(C),S=r(44),j=o(S),R=r(46),A=o(R),k=r(48),I=o(k),x=r(50),M=o(x),D=r(52),N=o(D),L=r(53),U=o(L),F=r(54),B=o(F),H=r(55),G=o(H),q=r(57),Q=o(q),V=r(58),K=o(V),Y=r(59),W=o(Y),$=r(60),J=o($),X=r(61),z=o(X),Z=r(62),ee=o(Z),te=r(29),re=r(63),ne=o(re);window.onload=a},function(e,t){e.exports=jQuery},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r=0&&0===window.sessionStorage.length)return;throw r}}function i(e){var t=void 0;try{t=window.sessionStorage.getItem(o(e))}catch(r){if(r.name===f)return null}if(t)try{return JSON.parse(t)}catch(r){}return null}t.__esModule=!0,t.saveState=a,t.readState=i;var u=r(11),s=n(u),l="@@History/",c=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],f="SecurityError"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(e){return s.canUseDOM?void 0:u["default"](!1),r.listen(e)}var r=f["default"](a({getUserConfirmation:l.getUserConfirmation},e,{go:l.go}));return a({},r,{listen:t})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&"number"!=typeof e[0]))}function a(e,t,r){var a,c;if(n(e)||n(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return!!s(t)&&(e=i.call(e),t=i.call(t),l(e,t,r));if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(a=0;a=0;a--)if(f[a]!=p[a])return!1;for(a=f.length-1;a>=0;a--)if(c=f[a],!l(e[c],t[c],r))return!1;return typeof e==typeof t}var i=Array.prototype.slice,u=r(18),s=r(19),l=e.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?r.strict?e===t:e==t:a(e,t,r))}},function(e,t){function r(e){var t=[];for(var r in e)t.push(r);return t}t=e.exports="function"==typeof Object.keys?Object.keys:r,t.shim=r},function(e,t){function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function n(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?r:n,t.supported=r,t.unsupported=n},function(e,t){"use strict";function r(e,t,r){function o(){return u=!0,s?void(c=[].concat(n.call(arguments))):void r.apply(this,arguments)}function a(){if(!u&&(l=!0,!s)){for(s=!0;!u&&i=e&&l&&(u=!0,r()))}}var i=0,u=!1,s=!1,l=!1,c=void 0;a()}t.__esModule=!0;var n=Array.prototype.slice;t.loopAsync=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?s.POP:arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],n=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=l.parsePath(e)),"object"==typeof t&&(e=a({},e,{state:t}),t=r||s.POP,r=n);var o=e.pathname||"/",i=e.search||"",u=e.hash||"",c=e.state||null;return{pathname:o,search:i,hash:u,state:c,action:t,key:r}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t1){var t=this.props.breadcrumbs[this.props.breadcrumbs.length-2];if(t&&t.href)return e.preventDefault(),void this.props.router.push(t.href)}}},{key:"render",value:function l(){var e=null;switch(this.props.params.view){case"show":e=this.renderItemListView();break;case"edit":e=this.renderDetailEditView();break;case"create":e=this.renderCreateView();break;default:e=this.renderIndexView()}return e}},{key:"renderIndexView",value:function p(){var e=this.props.sectionConfig.form.EditForm.schemaUrl,t={title:j["default"]._t("Campaigns.ADDCAMPAIGN"),icon:"plus",handleClick:this.addCampaign.bind(this)},r={createFn:this.campaignListCreateFn.bind(this),schemaUrl:e};return d["default"].createElement("div",{className:"cms-content__inner no-preview"},d["default"].createElement("div",{className:"cms-content__left cms-campaigns collapse in","aria-expanded":"true"},d["default"].createElement(A["default"],null,d["default"].createElement(w["default"],{multiline:!0,crumbs:this.props.breadcrumbs})),d["default"].createElement("div",{className:"panel-scrollable panel-scrollable--single-toolbar"},d["default"].createElement("div",{className:"toolbar--content"},d["default"].createElement("div",{className:"btn-toolbar"},d["default"].createElement(P["default"],t))),d["default"].createElement("div",{className:"campaign-admin container-fluid"},d["default"].createElement(I["default"],r)))))}},{key:"renderItemListView",value:function h(){var e={sectionConfig:this.props.sectionConfig,campaignId:this.props.params.id,itemListViewEndpoint:this.props.sectionConfig.itemListViewEndpoint,publishApi:this.publishApi,handleBackButtonClick:this.handleBackButtonClick.bind(this)};return d["default"].createElement(M["default"],e)}},{key:"renderDetailEditView",value:function y(){var e=this.props.sectionConfig.form.DetailEditForm.schemaUrl,t={createFn:this.campaignEditCreateFn.bind(this),schemaUrl:e+"/"+this.props.params.id};return d["default"].createElement("div",{className:"cms-content__inner"},d["default"].createElement(A["default"],{showBackButton:!0,handleBackButtonClick:this.handleBackButtonClick},d["default"].createElement(w["default"],{multiline:!0,crumbs:this.props.breadcrumbs})),d["default"].createElement("div",{className:"panel-scrollable panel-scrollable--single-toolbar container-fluid m-t-1"},d["default"].createElement("div",{className:"form--inline"},d["default"].createElement(I["default"],t))))}},{key:"renderCreateView",value:function m(){var e=this.props.sectionConfig.form.DetailEditForm.schemaUrl,t={createFn:this.campaignAddCreateFn.bind(this),schemaUrl:e+"/"+this.props.params.id};return d["default"].createElement("div",{className:"cms-content__inner"},d["default"].createElement(A["default"],{showBackButton:!0,handleBackButtonClick:this.handleBackButtonClick},d["default"].createElement(w["default"],{multiline:!0,crumbs:this.props.breadcrumbs})),d["default"].createElement("div",{className:"panel-scrollable panel-scrollable--single-toolbar container-fluid m-t-1"},d["default"].createElement(I["default"],t)))}},{key:"campaignEditCreateFn",value:function b(e,t){var r=this,n=this.props.sectionConfig.url;if("action_cancel"===t.name){var o=c({},t,{handleClick:function a(e){e.preventDefault(),r.props.router.push(n)}});return d["default"].createElement(e,c({key:t.id},o))}return d["default"].createElement(e,c({key:t.id},t))}},{key:"campaignAddCreateFn",value:function _(e,t){var r=this,n=this.props.sectionConfig.url;if("action_cancel"===t.name){var o=c({},t,{handleClick:function a(e){e.preventDefault(),r.props.router.push(n)}});return d["default"].createElement(e,c({key:t.name},o))}return d["default"].createElement(e,c({key:t.name},t))}},{key:"campaignListCreateFn",value:function g(e,t){var r=this,n=this.props.sectionConfig.url,o="set";if("GridField"===t.component){var a=c({},t,{data:c({},t.data,{handleDrillDown:function i(e,t){r.props.router.push(n+"/"+o+"/"+t.ID+"/show")},handleEditRecord:function u(e,t){r.props.router.push(n+"/"+o+"/"+t+"/edit")}})});return d["default"].createElement(e,c({key:a.name},a))}return d["default"].createElement(e,c({key:t.name},t))}},{key:"addCampaign",value:function E(){var e=this.getActionRoute(0,"create");this.props.router.push(e)}},{key:"getActionRoute",value:function O(e,t){return this.props.sectionConfig.url+"/set/"+e+"/"+t}}]),t}(T["default"]);D.propTypes={breadcrumbsActions:d["default"].PropTypes.object.isRequired,campaignId:d["default"].PropTypes.string,sectionConfig:d["default"].PropTypes.object.isRequired,securityId:d["default"].PropTypes.string.isRequired,view:d["default"].PropTypes.string},t["default"]=(0,m.withRouter)((0,h.connect)(s,l)(D))},function(e,t){e.exports=Backend},function(e,t){e.exports=BreadcrumbsActions},function(e,t){e.exports=Breadcrumb},function(e,t){e.exports=Toolbar},function(e,t){e.exports=FormBuilder},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var r=null,n=t.sectionConfig.treeClass;return e.records&&e.records[n]&&t.campaignId&&(r=e.records[n][parseInt(t.campaignId,10)]),{config:e.config,record:r||{},campaign:e.campaign,treeClass:n,breadcrumbs:e.breadcrumbs}}function l(e){return{breadcrumbsActions:(0,y.bindActionCreators)(v,e),recordActions:(0,y.bindActionCreators)(g,e),campaignActions:(0,y.bindActionCreators)(w,e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=200&&e.status<300))throw r=new Error(e.statusText),r.response=e,r;return t=e}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t-1?t:e}function f(e,t){t=t||{};var r=t.body;if(f.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,r||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=c(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function p(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function d(e){var t=new o,r=(e.getAllResponseHeaders()||"").trim().split("\n");return r.forEach(function(e){var r=e.trim().split(":"),n=r.shift().trim(),o=r.join(":").trim();t.append(n,o)}),t}function h(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof o?t.headers:new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var y={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};o.prototype.append=function(e,n){e=t(e),n=r(n);var o=this.map[e];o||(o=[],this.map[e]=o),o.push(n)},o.prototype["delete"]=function(e){delete this.map[t(e)]},o.prototype.get=function(e){var r=this.map[t(e)];return r?r[0]:null},o.prototype.getAll=function(e){return this.map[t(e)]||[]},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,n){this.map[t(e)]=[r(n)]},o.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(r){this.map[r].forEach(function(n){e.call(t,n,r,this)},this)},this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),n(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),n(e)},y.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this)},l.call(f.prototype),l.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];h.redirect=function(e,t){if(b.indexOf(t)===-1)throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=f,e.Response=h,e.fetch=function(e,t){return new Promise(function(r,n){function o(){return"responseURL"in i?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):void 0}var a;a=f.prototype.isPrototypeOf(e)&&!t?e:new f(e,t);var i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:d(i),url:o()},t="response"in i?i.response:i.responseText;r(new h(t,e))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.open(a.method,a.url,!0),"include"===a.credentials&&(i.withCredentials=!0),"responseType"in i&&y.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"==typeof a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(e,t,r){var n;(function(t,o){/*! +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function a(){h["default"].add("config",g["default"]),h["default"].add("form",w["default"]),h["default"].add("schemas",T["default"]),h["default"].add("records",P["default"]),h["default"].add("campaign",j["default"]),h["default"].add("breadcrumbs",k["default"]),h["default"].add("routing",te.routerReducer),m["default"].register("TextField",I["default"]),m["default"].register("HiddenField",N["default"]),m["default"].register("GridField",U["default"]),m["default"].register("SingleSelectField",M["default"]),m["default"].register("PopoverField",G["default"]),m["default"].register("HeaderField",Q["default"]),m["default"].register("LiteralField",K["default"]),m["default"].register("HtmlReadonlyField",W["default"]),m["default"].register("CompositeField",$["default"]),m["default"].register("Tabs",z["default"]),m["default"].register("TabItem",ee["default"]),m["default"].register("FormAction",B["default"]);var e={},t=(0,s.combineReducers)(h["default"].getAll()),n=[c["default"]],r=p["default"].get("environment"),o=p["default"].get("debugging"),a=s.applyMiddleware.apply(void 0,n),i=window.devToolsExtension;"dev"===r&&o&&"function"==typeof i&&(a=(0,s.compose)(s.applyMiddleware.apply(void 0,n),i()));var l=a(s.createStore),f=l(t,e);f.dispatch(v.setConfig(p["default"].getAll())),window.ss=window.ss||{},window.ss.store=f;var d=new u["default"](f);d.start(window.location.pathname)}var i=n(2),u=o(i),s=n(30),l=n(31),c=o(l),f=n(24),p=o(f),d=n(32),h=o(d),y=n(33),m=o(y),b=n(34),v=r(b),_=n(36),g=o(_),E=n(38),w=o(E),O=n(40),T=o(O),C=n(42),P=o(C),S=n(44),j=o(S),R=n(46),k=o(R),A=n(48),I=o(A),x=n(50),M=o(x),D=n(52),N=o(D),L=n(53),U=o(L),F=n(54),B=o(F),H=n(55),G=o(H),q=n(57),Q=o(q),V=n(58),K=o(V),Y=n(59),W=o(Y),J=n(60),$=o(J),X=n(61),z=o(X),Z=n(62),ee=o(Z),te=n(29),ne=n(63),re=o(ne);window.onload=a},function(e,t){e.exports=jQuery},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n=0&&0===window.sessionStorage.length)return;throw n}}function i(e){var t=void 0;try{t=window.sessionStorage.getItem(o(e))}catch(n){if(n.name===f)return null}if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=a,t.readState=i;var u=n(11),s=r(u),l="@@History/",c=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],f="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(e){return s.canUseDOM?void 0:u["default"](!1),n.listen(e)}var n=f["default"](a({getUserConfirmation:l.getUserConfirmation},e,{go:l.go}));return a({},n,{listen:t})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&"number"!=typeof e[0]))}function a(e,t,n){var a,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return!!s(t)&&(e=i.call(e),t=i.call(t),l(e,t,n));if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(a=0;a=0;a--)if(f[a]!=p[a])return!1;for(a=f.length-1;a>=0;a--)if(c=f[a],!l(e[c],t[c],n))return!1;return typeof e==typeof t}var i=Array.prototype.slice,u=n(18),s=n(19),l=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:a(e,t,n))}},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?n:r,t.supported=n,t.unsupported=r},function(e,t){"use strict";function n(e,t,n){function o(){return u=!0,s?void(c=[].concat(r.call(arguments))):void n.apply(this,arguments)}function a(){if(!u&&(l=!0,!s)){for(s=!0;!u&&i=e&&l&&(u=!0,n()))}}var i=0,u=!1,s=!1,l=!1,c=void 0;a()}t.__esModule=!0;var r=Array.prototype.slice;t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?s.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=l.parsePath(e)),"object"==typeof t&&(e=a({},e,{state:t}),t=n||s.POP,n=r);var o=e.pathname||"/",i=e.search||"",u=e.hash||"",c=e.state||null;return{pathname:o,search:i,hash:u,state:c,action:t,key:n}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t1){var t=this.props.breadcrumbs[this.props.breadcrumbs.length-2];if(t&&t.href)return e.preventDefault(),void this.props.router.push(t.href)}}},{key:"render",value:function l(){var e=null;switch(this.props.params.view){case"show":e=this.renderItemListView();break;case"edit":e=this.renderDetailEditView();break;case"create":e=this.renderCreateView();break;default:e=this.renderIndexView()}return e}},{key:"renderIndexView",value:function p(){var e=this.props.sectionConfig.form.EditForm.schemaUrl,t={title:j["default"]._t("Campaigns.ADDCAMPAIGN"),icon:"plus",handleClick:this.addCampaign.bind(this)},n={createFn:this.campaignListCreateFn.bind(this),schemaUrl:e};return d["default"].createElement("div",{className:"cms-content__inner no-preview"},d["default"].createElement("div",{className:"cms-content__left cms-campaigns collapse in","aria-expanded":"true"},d["default"].createElement(k["default"],null,d["default"].createElement(w["default"],{multiline:!0,crumbs:this.props.breadcrumbs})),d["default"].createElement("div",{className:"panel-scrollable panel-scrollable--single-toolbar"},d["default"].createElement("div",{className:"toolbar--content"},d["default"].createElement("div",{className:"btn-toolbar"},d["default"].createElement(P["default"],t))),d["default"].createElement("div",{className:"campaign-admin container-fluid"},d["default"].createElement(I["default"],n)))))}},{key:"renderItemListView",value:function h(){var e={sectionConfig:this.props.sectionConfig,campaignId:this.props.params.id,itemListViewEndpoint:this.props.sectionConfig.itemListViewEndpoint,publishApi:this.publishApi,handleBackButtonClick:this.handleBackButtonClick.bind(this)};return d["default"].createElement(M["default"],e)}},{key:"renderDetailEditView",value:function y(){var e=this.props.sectionConfig.form.DetailEditForm.schemaUrl,t={createFn:this.campaignEditCreateFn.bind(this),schemaUrl:e+"/"+this.props.params.id};return d["default"].createElement("div",{className:"cms-content__inner"},d["default"].createElement(k["default"],{showBackButton:!0,handleBackButtonClick:this.handleBackButtonClick},d["default"].createElement(w["default"],{multiline:!0,crumbs:this.props.breadcrumbs})),d["default"].createElement("div",{className:"panel-scrollable panel-scrollable--single-toolbar container-fluid m-t-1"},d["default"].createElement("div",{className:"form--inline"},d["default"].createElement(I["default"],t))))}},{key:"renderCreateView",value:function m(){var e=this.props.sectionConfig.form.DetailEditForm.schemaUrl,t={createFn:this.campaignAddCreateFn.bind(this),schemaUrl:e+"/"+this.props.params.id};return d["default"].createElement("div",{className:"cms-content__inner"},d["default"].createElement(k["default"],{showBackButton:!0,handleBackButtonClick:this.handleBackButtonClick},d["default"].createElement(w["default"],{multiline:!0,crumbs:this.props.breadcrumbs})),d["default"].createElement("div",{className:"panel-scrollable panel-scrollable--single-toolbar container-fluid m-t-1"},d["default"].createElement(I["default"],t)))}},{key:"campaignEditCreateFn",value:function b(e,t){var n=this,r=this.props.sectionConfig.url;if("action_cancel"===t.name){var o=c({},t,{handleClick:function a(e){e.preventDefault(),n.props.router.push(r)}});return d["default"].createElement(e,c({key:t.id},o))}return d["default"].createElement(e,c({key:t.id},t))}},{key:"campaignAddCreateFn",value:function _(e,t){var n=this,r=this.props.sectionConfig.url;if("action_cancel"===t.name){var o=c({},t,{handleClick:function a(e){e.preventDefault(),n.props.router.push(r)}});return d["default"].createElement(e,c({key:t.name},o))}return d["default"].createElement(e,c({key:t.name},t))}},{key:"campaignListCreateFn",value:function g(e,t){var n=this,r=this.props.sectionConfig.url,o="set";if("GridField"===t.component){var a=c({},t,{data:c({},t.data,{handleDrillDown:function i(e,t){n.props.router.push(r+"/"+o+"/"+t.ID+"/show")},handleEditRecord:function u(e,t){n.props.router.push(r+"/"+o+"/"+t+"/edit")}})});return d["default"].createElement(e,c({key:a.name},a))}return d["default"].createElement(e,c({key:t.name},t))}},{key:"addCampaign",value:function E(){var e=this.getActionRoute(0,"create");this.props.router.push(e)}},{key:"getActionRoute",value:function O(e,t){return this.props.sectionConfig.url+"/set/"+e+"/"+t}}]),t}(T["default"]);D.propTypes={breadcrumbsActions:d["default"].PropTypes.object.isRequired,campaignId:d["default"].PropTypes.string,sectionConfig:d["default"].PropTypes.object.isRequired,securityId:d["default"].PropTypes.string.isRequired,view:d["default"].PropTypes.string},t["default"]=(0,m.withRouter)((0,h.connect)(s,l)(D))},function(e,t){e.exports=Backend},function(e,t){e.exports=BreadcrumbsActions},function(e,t){e.exports=Breadcrumb},function(e,t){e.exports=Toolbar},function(e,t){e.exports=FormBuilder},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=null,r=t.sectionConfig.treeClass;return e.records&&e.records[r]&&t.campaignId&&(n=e.records[r][parseInt(t.campaignId,10)]),{config:e.config,record:n||{},campaign:e.campaign,treeClass:r,breadcrumbs:e.breadcrumbs}}function l(e){return{breadcrumbsActions:(0,y.bindActionCreators)(v,e),recordActions:(0,y.bindActionCreators)(g,e),campaignActions:(0,y.bindActionCreators)(w,e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=200&&e.status<300))throw n=new Error(e.statusText),n.response=e,n;return t=e}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t-1?t:e}function c(e,t){t=t||{};var n=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new r(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new r(t.headers)),this.method=l(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function f(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function p(e){var t=new r,n=e.getAllResponseHeaders().trim().split("\n");return n.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();t.append(r,o)}),t}function d(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof r?t.headers:new r(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){r.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];o||(o=[],this.map[e]=o),o.push(r)},r.prototype["delete"]=function(e){delete this.map[t(e)]},r.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},r.prototype.getAll=function(e){return this.map[t(e)]||[]},r.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},r.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},r.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)};var h={blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},s.call(c.prototype),s.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var m=[301,302,303,307,308];d.redirect=function(e,t){if(m.indexOf(t)===-1)throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},e.Headers=r,e.Request=c,e.Response=d,e.fetch=function(e,t){return new Promise(function(n,r){function o(){return"responseURL"in i?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):void 0}var a;a=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var i=new XMLHttpRequest;i.onload=function(){var e=1223===i.status?204:i.status;if(e<100||e>599)return void r(new TypeError("Network request failed"));var t={status:e,statusText:i.statusText,headers:p(i),url:o()},a="response"in i?i.response:i.responseText;n(new d(a,t))},i.onerror=function(){r(new TypeError("Network request failed"))},i.open(a.method,a.url,!0),"include"===a.credentials&&(i.withCredentials=!0),"responseType"in i&&h.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"==typeof a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(e,t,n){var r;(function(t,o){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version 3.3.1 */ -!function(t,r){e.exports=r()}(this,function(){"use strict";function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function a(e){return"function"==typeof e}function i(e){J=e}function u(e){X=e}function s(){return function(){return t.nextTick(d)}}function l(){return function(){$(d)}}function c(){var e=0,t=new ee(d),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}function f(){var e=new MessageChannel;return e.port1.onmessage=d,function(){return e.port2.postMessage(0)}}function p(){var e=setTimeout;return function(){return e(d,1)}}function d(){for(var e=0;e1)for(var r=1;r=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?n+=t.charAt(o):a<128?n+=r[a]:a<2048?n+=r[192|a>>6]+r[128|63&a]:a<55296||a>=57344?n+=r[224|a>>12]+r[128|a>>6&63]+r[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(o)),n+=r[240|a>>18]+r[128|a>>12&63]+r[128|a>>6&63]+r[128|63&a])}return n},t.compact=function(e,r){if("object"!=typeof e||null===e)return e;var n=r||[],o=n.indexOf(e);if(o!==-1)return n[o];if(n.push(e),Array.isArray(e)){for(var a=[],i=0;i=0&&r.parseArrays&&i<=r.arrayLimit?(o=[],o[i]=c(e,t,r)):o[a]=c(e,t,r)}return o},s=function f(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,a=/^([^\[\]]*)/,i=/(\[[^\[\]]*\])/g,s=a.exec(n),l=[];if(s[1]){if(!r.plainObjects&&o.call(Object.prototype,s[1])&&!r.allowPrototypes)return;l.push(s[1])}for(var c=0;null!==(s=i.exec(n))&&c1)for(var n=1;n=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=t.charAt(o):a<128?r+=n[a]:a<2048?r+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?r+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(o)),r+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return r},t.compact=function(e,n){if("object"!=typeof e||null===e)return e;var r=n||[],o=r.indexOf(e);if(o!==-1)return r[o];if(r.push(e),Array.isArray(e)){for(var a=[],i=0;i=0&&n.parseArrays&&i<=n.arrayLimit?(o=[],o[i]=c(e,t,n)):o[a]=c(e,t,n)}return o},s=function f(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,a=/^([^\[\]]*)/,i=/(\[[^\[\]]*\])/g,s=a.exec(r),l=[];if(s[1]){if(!n.plainObjects&&o.call(Object.prototype,s[1])&&!n.allowPrototypes)return;l.push(s[1])}for(var c=0;null!==(s=i.exec(r))&&c=0&&0===window.sessionStorage.length)return;throw n}}function a(t){var e=void 0;try{e=window.sessionStorage.getItem(i(t))}catch(n){if(n.name===d)return null}if(e)try{return JSON.parse(e)}catch(n){}return null}e.__esModule=!0,e.saveState=o,e.readState=a;var s=n(11),l=r(s),u="@@History/",c=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],d="SecurityError"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){function e(t){return l.canUseDOM?void 0:s["default"](!1),n.listen(t)}var n=d["default"](o({getUserConfirmation:u.getUserConfirmation},t,{go:u.go}));return o({},n,{listen:e})}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e0&&"number"!=typeof t[0]))}function o(t,e,n){var o,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(l(t))return!!l(e)&&(t=a.call(t),e=a.call(e),u(t,e,n));if(i(t)){if(!i(e))return!1;if(t.length!==e.length)return!1;for(o=0;o=0;o--)if(d[o]!=f[o])return!1;for(o=d.length-1;o>=0;o--)if(c=d[o],!u(t[c],e[c],n))return!1;return typeof t==typeof e}var a=Array.prototype.slice,s=n(18),l=n(19),u=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:o(t,e,n))}},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=i?n:r,e.supported=n,e.unsupported=r},function(t,e){"use strict";function n(t,e,n){function i(){return s=!0,l?void(c=[].concat(r.call(arguments))):void n.apply(this,arguments)}function o(){if(!s&&(u=!0,!l)){for(l=!0;!s&&a=t&&u&&(s=!0,n()))}}var a=0,s=!1,l=!1,u=!1,c=void 0;o()}e.__esModule=!0;var r=Array.prototype.slice;e.loopAsync=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(){var t=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],e=arguments.length<=1||void 0===arguments[1]?l.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof t&&(t=u.parsePath(t)),"object"==typeof e&&(t=o({},t,{state:e}),e=n||l.POP,n=r);var i=t.pathname||"/",a=t.search||"",s=t.hash||"",c=t.state||null;return{pathname:i,search:a,hash:s,state:c,action:e,key:n}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e=200&&t.status<300))throw n=new Error(t.statusText),n.response=t,n;return e=t}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e-1?e:t}function d(t,e){e=e||{};var n=e.body;if(d.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=c(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function f(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}}),e}function h(t){var e=new i,n=(t.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(t){var n=t.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim();e.append(r,i)}),e}function p(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof i?e.headers:new i(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var m={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};i.prototype.append=function(t,r){t=e(t),r=n(r);var i=this.map[t];i||(i=[],this.map[t]=i),i.push(r)},i.prototype["delete"]=function(t){delete this.map[e(t)]},i.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},i.prototype.getAll=function(t){return this.map[e(t)]||[]},i.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},i.prototype.set=function(t,r){this.map[e(t)]=[n(r)]},i.prototype.forEach=function(t,e){ -Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){t.call(e,r,n,this)},this)},this)},i.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),r(t)},i.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),r(t)},i.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),r(t)},m.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this)},u.call(d.prototype),u.call(p.prototype),p.prototype.clone=function(){return new p(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},p.error=function(){var t=new p(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];p.redirect=function(t,e){if(v.indexOf(e)===-1)throw new RangeError("Invalid status code");return new p(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=d,t.Response=p,t.fetch=function(t,e){return new Promise(function(n,r){function i(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=d.prototype.isPrototypeOf(t)&&!e?t:new d(t,e);var a=new XMLHttpRequest;a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:h(a),url:i()},e="response"in a?a.response:a.responseText;n(new p(e,t))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&m.blob&&(a.responseType="blob"),o.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(t,e,n){var r;(function(e,i){/*! +!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";n(121),n(123),n(153),n(155),n(288),n(298),n(313),n(315),n(363),n(369),n(372),n(374),n(628),n(636),n(639),n(642),n(645),n(646),n(942),n(943),n(944),n(94),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954),n(955),n(118),n(94),n(93),n(956),n(957),n(958),n(959),n(960),n(113),n(961),n(962),n(93),n(963),n(964),n(965),n(966),n(968),n(969),n(971),n(973),n(975),n(979),n(981),n(989),n(990),n(991),n(992),n(993),n(994),n(995),n(996),n(998),n(1e3),n(1002),n(1003),n(1005),n(1007),n(1008)},function(t,e){t.exports=jQuery},,function(t,e){t.exports=React},function(t,e){t.exports=ReactDom},function(t,e){t.exports=ReactRedux},function(t,e){t.exports=ReactRouter},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(){function t(t){try{t=t||window.history.state||{}}catch(e){t={}}var n=d.getWindowPath(),i=t,r=i.key,a=void 0;r?a=f.readState(r):(a=null,r=b.createKey(),v&&window.history.replaceState(o({},t,{key:r}),null));var s=u.parsePath(n);return b.createLocation(o({},s,{state:a}),void 0,r)}function e(e){function n(e){void 0!==e.state&&i(t(e.state))}var i=e.transitionTo;return d.addEventListener(window,"popstate",n),function(){d.removeEventListener(window,"popstate",n)}}function n(t){var e=t.basename,n=t.pathname,i=t.search,r=t.hash,o=t.state,a=t.action,s=t.key;if(a!==l.POP){f.saveState(s,o);var u=(e||"")+n+i+r,c={key:s};if(a===l.PUSH){if(y)return window.location.href=u,!1;window.history.pushState(c,null,u)}else{if(y)return window.location.replace(u),!1;window.history.replaceState(c,null,u)}}}function i(t){1===++_&&(x=e(b));var n=b.listenBefore(t);return function(){n(),0===--_&&x()}}function r(t){1===++_&&(x=e(b));var n=b.listen(t);return function(){n(),0===--_&&x()}}function a(t){1===++_&&(x=e(b)),b.registerTransitionHook(t)}function h(t){b.unregisterTransitionHook(t),0===--_&&x()}var m=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c.canUseDOM?void 0:s["default"](!1);var g=m.forceRefresh,v=d.supportsHistory(),y=!v||g,b=p["default"](o({},m,{getCurrentLocation:t,finishTransition:n,saveState:f.saveState})),_=0,x=void 0;return o({},b,{listenBefore:i,listen:r,registerTransitionHook:a,unregisterTransitionHook:h})}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e=0&&0===window.sessionStorage.length)return;throw n}}function a(t){var e=void 0;try{e=window.sessionStorage.getItem(r(t))}catch(n){if(n.name===d)return null}if(e)try{return JSON.parse(e)}catch(n){}return null}e.__esModule=!0,e.saveState=o,e.readState=a;var s=n(11),l=i(s),u="@@History/",c=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],d="SecurityError"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){function e(t){return l.canUseDOM?void 0:s["default"](!1),n.listen(t)}var n=d["default"](o({getUserConfirmation:u.getUserConfirmation},t,{go:u.go}));return o({},n,{listen:e})}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e0&&"number"!=typeof t[0]))}function o(t,e,n){var o,c;if(i(t)||i(e))return!1;if(t.prototype!==e.prototype)return!1;if(l(t))return!!l(e)&&(t=a.call(t),e=a.call(e),u(t,e,n));if(r(t)){if(!r(e))return!1;if(t.length!==e.length)return!1;for(o=0;o=0;o--)if(d[o]!=f[o])return!1;for(o=d.length-1;o>=0;o--)if(c=d[o],!u(t[c],e[c],n))return!1;return typeof t==typeof e}var a=Array.prototype.slice,s=n(18),l=n(19),u=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:o(t,e,n))}},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=r?n:i,e.supported=n,e.unsupported=i},function(t,e){"use strict";function n(t,e,n){function r(){return s=!0,l?void(c=[].concat(i.call(arguments))):void n.apply(this,arguments)}function o(){if(!s&&(u=!0,!l)){for(l=!0;!s&&a=t&&u&&(s=!0,n()))}}var a=0,s=!1,l=!1,u=!1,c=void 0;o()}e.__esModule=!0;var i=Array.prototype.slice;e.loopAsync=n},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(){var t=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],e=arguments.length<=1||void 0===arguments[1]?l.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],i=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof t&&(t=u.parsePath(t)),"object"==typeof e&&(t=o({},t,{state:e}),e=n||l.POP,n=i);var r=t.pathname||"/",a=t.search||"",s=t.hash||"",c=t.state||null;return{pathname:r,search:a,hash:s,state:c,action:e,key:n}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e=200&&t.status<300))throw n=new Error(t.statusText),n.response=t,n;return e=t}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e-1?e:t}function c(t,e){e=e||{};var n=e.body;if(c.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=u(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}}),e}function f(t){var e=new i,n=t.getAllResponseHeaders().trim().split("\n");return n.forEach(function(t){var n=t.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();e.append(i,r)}),e}function h(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof i?e.headers:new i(e.headers), +this.url=e.url||"",this._initBody(t)}if(!t.fetch){i.prototype.append=function(t,i){t=e(t),i=n(i);var r=this.map[t];r||(r=[],this.map[t]=r),r.push(i)},i.prototype["delete"]=function(t){delete this.map[e(t)]},i.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},i.prototype.getAll=function(t){return this.map[e(t)]||[]},i.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},i.prototype.set=function(t,i){this.map[e(t)]=[n(i)]},i.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){t.call(e,i,n,this)},this)},this)};var p={blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t},m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},l.call(c.prototype),l.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},h.error=function(){var t=new h(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];h.redirect=function(t,e){if(g.indexOf(e)===-1)throw new RangeError("Invalid status code");return new h(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=c,t.Response=h,t.fetch=function(t,e){return new Promise(function(n,i){function r(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(t)&&!e?t:new c(t,e);var a=new XMLHttpRequest;a.onload=function(){var t=1223===a.status?204:a.status;if(t<100||t>599)return void i(new TypeError("Network request failed"));var e={status:t,statusText:a.statusText,headers:f(a),url:r()},o="response"in a?a.response:a.responseText;n(new h(o,e))},a.onerror=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&p.blob&&(a.responseType="blob"),o.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(t,e,n){var i;(function(e,r){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version 3.3.1 */ -!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function o(t){return"function"==typeof t}function a(t){Y=t}function s(t){G=t}function l(){return function(){return e.nextTick(h)}}function u(){return function(){X(h)}}function c(){var t=0,e=new tt(h),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function d(){var t=new MessageChannel;return t.port1.onmessage=h,function(){return t.port2.postMessage(0)}}function f(){var t=setTimeout;return function(){return t(h,1)}}function h(){for(var t=0;t1)for(var n=1;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=e.charAt(i):o<128?r+=n[o]:o<2048?r+=n[192|o>>6]+n[128|63&o]:o<55296||o>=57344?r+=n[224|o>>12]+n[128|o>>6&63]+n[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(i)),r+=n[240|o>>18]+n[128|o>>12&63]+n[128|o>>6&63]+n[128|63&o])}return r},e.compact=function(t,n){if("object"!=typeof t||null===t)return t;var r=n||[],i=r.indexOf(t);if(i!==-1)return r[i];if(r.push(t),Array.isArray(t)){for(var o=[],a=0;a=0&&n.parseArrays&&a<=n.arrayLimit?(i=[],i[a]=c(t,e,n)):i[o]=c(t,e,n)}return i},l=function d(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^\.\[]+)/g,"[$1]"):t,o=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,l=o.exec(r),u=[];if(l[1]){if(!n.plainObjects&&i.call(Object.prototype,l[1])&&!n.allowPrototypes)return;u.push(l[1])}for(var c=0;null!==(l=a.exec(r))&&c"),this.options.alternate.text&&this.buttonElement.append(""+this.options.alternate.text+""),this._refreshAlternate()},refresh:function l(){i["default"].ui.button.prototype.refresh.call(this),this._refreshAlternate()},destroy:function u(){this.element.find(".ui-button-text-alternate").remove(),this.element.find(".ui-button-icon-alternate").remove(),i["default"].ui.button.prototype.destroy.call(this)}}),i["default"].widget("ssui.ssdialog",i["default"].ui.dialog,{options:{iframeUrl:"",reloadOnOpen:!0,dialogExtraClass:"",modal:!0,bgiframe:!0,autoOpen:!1,autoPosition:!0,minWidth:500,maxWidth:800,minHeight:300,maxHeight:700,widthRatio:.8,heightRatio:.8,resizable:!1},_create:function c(){i["default"].ui.dialog.prototype._create.call(this);var t=this,e=(0,i["default"])('');e.bind("load",function(n){"about:blank"!=(0,i["default"])(this).attr("src")&&(e.addClass("loaded").show(),t._resizeIframe(),t.uiDialog.removeClass("loading"))}).hide(),this.options.dialogExtraClass&&this.uiDialog.addClass(this.options.dialogExtraClass),this.element.append(e),this.options.iframeUrl&&this.element.css("overflow","hidden")},open:function d(){i["default"].ui.dialog.prototype.open.call(this);var t=this,e=this.element.children("iframe");!this.options.iframeUrl||e.hasClass("loaded")&&!this.options.reloadOnOpen||(e.hide(),e.attr("src",this.options.iframeUrl),this.uiDialog.addClass("loading")),(0,i["default"])(window).bind("resize.ssdialog",function(){t._resizeIframe()})},close:function f(){i["default"].ui.dialog.prototype.close.call(this),this.uiDialog.unbind("resize.ssdialog"),(0,i["default"])(window).unbind("resize.ssdialog")},_resizeIframe:function h(){var e={},n,r,o=this.element.children("iframe");this.options.widthRatio&&(n=(0,i["default"])(window).width()*this.options.widthRatio,this.options.minWidth&&nthis.options.maxWidth?e.width=this.options.maxWidth:e.width=n),this.options.heightRatio&&(r=(0,i["default"])(window).height()*this.options.heightRatio,this.options.minHeight&&rthis.options.maxHeight?e.height=this.options.maxHeight:e.height=r),t.isEmptyObject(e)||(this._setOptions(e),o.attr("width",e.width-parseFloat(this.element.css("paddingLeft"))-parseFloat(this.element.css("paddingRight"))),o.attr("height",e.height-parseFloat(this.element.css("paddingTop"))-parseFloat(this.element.css("paddingBottom"))),this.options.autoPosition&&this._setOption("position",this.options.position))}}),i["default"].widget("ssui.titlebar",{_create:function p(){this.originalTitle=this.element.attr("title");var t=this,e=this.options,n=e.title||this.originalTitle||" ",r=i["default"].ui.dialog.getTitleId(this.element);this.element.parent().addClass("ui-dialog");var o=this.element.addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix");if(e.closeButton)var a=(0,i["default"])('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){a.addClass("ui-state-hover")},function(){a.removeClass("ui-state-hover")}).focus(function(){a.addClass("ui-state-focus")}).blur(function(){a.removeClass("ui-state-focus")}).mousedown(function(t){t.stopPropagation()}).appendTo(o),s=(this.uiDialogTitlebarCloseText=(0,i["default"])("")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(a);var l=(0,i["default"])("").addClass("ui-dialog-title").attr("id",r).html(n).prependTo(o);o.find("*").add(o).disableSelection()},destroy:function m(){this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.originalTitle&&this.element.attr("title",this.originalTitle)}}),i["default"].extend(i["default"].ssui.titlebar,{version:"0.0.1",options:{title:"",closeButton:!1,closeText:"close"},uuid:0,getTitleId:function g(t){return"ui-dialog-title-"+(t.attr("id")||++this.uuid)}})}).call(e,n(1))},function(module,exports,__webpack_require__){(function(jQuery){/*! jQuery UI - v1.9.2 - 2012-11-23 +!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function o(t){return"function"==typeof t}function a(t){Y=t}function s(t){G=t}function l(){return function(){return e.nextTick(h)}}function u(){return function(){X(h)}}function c(){var t=0,e=new tt(h),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function d(){var t=new MessageChannel;return t.port1.onmessage=h,function(){return t.port2.postMessage(0)}}function f(){var t=setTimeout;return function(){return t(h,1)}}function h(){for(var t=0;t1)for(var n=1;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?i+=e.charAt(r):o<128?i+=n[o]:o<2048?i+=n[192|o>>6]+n[128|63&o]:o<55296||o>=57344?i+=n[224|o>>12]+n[128|o>>6&63]+n[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(r)),i+=n[240|o>>18]+n[128|o>>12&63]+n[128|o>>6&63]+n[128|63&o])}return i},e.compact=function(t,n){if("object"!=typeof t||null===t)return t;var i=n||[],r=i.indexOf(t);if(r!==-1)return i[r];if(i.push(t),Array.isArray(t)){for(var o=[],a=0;a=0&&n.parseArrays&&a<=n.arrayLimit?(r=[],r[a]=c(t,e,n)):r[o]=c(t,e,n)}return r},l=function d(t,e,n){if(t){var i=n.allowDots?t.replace(/\.([^\.\[]+)/g,"[$1]"):t,o=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,l=o.exec(i),u=[];if(l[1]){if(!n.plainObjects&&r.call(Object.prototype,l[1])&&!n.allowPrototypes)return;u.push(l[1])}for(var c=0;null!==(l=a.exec(i))&&c"),this.options.alternate.text&&this.buttonElement.append(""+this.options.alternate.text+""),this._refreshAlternate()},refresh:function l(){r["default"].ui.button.prototype.refresh.call(this),this._refreshAlternate()},destroy:function u(){this.element.find(".ui-button-text-alternate").remove(),this.element.find(".ui-button-icon-alternate").remove(),r["default"].ui.button.prototype.destroy.call(this)}}),r["default"].widget("ssui.ssdialog",r["default"].ui.dialog,{options:{iframeUrl:"",reloadOnOpen:!0,dialogExtraClass:"",modal:!0,bgiframe:!0,autoOpen:!1,autoPosition:!0,minWidth:500,maxWidth:800,minHeight:300,maxHeight:700,widthRatio:.8,heightRatio:.8,resizable:!1},_create:function c(){r["default"].ui.dialog.prototype._create.call(this);var t=this,e=(0,r["default"])('');e.bind("load",function(n){"about:blank"!=(0,r["default"])(this).attr("src")&&(e.addClass("loaded").show(),t._resizeIframe(),t.uiDialog.removeClass("loading"))}).hide(),this.options.dialogExtraClass&&this.uiDialog.addClass(this.options.dialogExtraClass),this.element.append(e),this.options.iframeUrl&&this.element.css("overflow","hidden")},open:function d(){r["default"].ui.dialog.prototype.open.call(this);var t=this,e=this.element.children("iframe");!this.options.iframeUrl||e.hasClass("loaded")&&!this.options.reloadOnOpen||(e.hide(),e.attr("src",this.options.iframeUrl),this.uiDialog.addClass("loading")),(0,r["default"])(window).bind("resize.ssdialog",function(){t._resizeIframe()})},close:function f(){r["default"].ui.dialog.prototype.close.call(this),this.uiDialog.unbind("resize.ssdialog"),(0,r["default"])(window).unbind("resize.ssdialog")},_resizeIframe:function h(){var e={},n,i,o=this.element.children("iframe");this.options.widthRatio&&(n=(0,r["default"])(window).width()*this.options.widthRatio,this.options.minWidth&&nthis.options.maxWidth?e.width=this.options.maxWidth:e.width=n),this.options.heightRatio&&(i=(0,r["default"])(window).height()*this.options.heightRatio,this.options.minHeight&&ithis.options.maxHeight?e.height=this.options.maxHeight:e.height=i),t.isEmptyObject(e)||(this._setOptions(e),o.attr("width",e.width-parseFloat(this.element.css("paddingLeft"))-parseFloat(this.element.css("paddingRight"))),o.attr("height",e.height-parseFloat(this.element.css("paddingTop"))-parseFloat(this.element.css("paddingBottom"))),this.options.autoPosition&&this._setOption("position",this.options.position))}}),r["default"].widget("ssui.titlebar",{_create:function p(){this.originalTitle=this.element.attr("title");var t=this,e=this.options,n=e.title||this.originalTitle||" ",i=r["default"].ui.dialog.getTitleId(this.element);this.element.parent().addClass("ui-dialog");var o=this.element.addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix");if(e.closeButton)var a=(0,r["default"])('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){a.addClass("ui-state-hover")},function(){a.removeClass("ui-state-hover")}).focus(function(){a.addClass("ui-state-focus")}).blur(function(){a.removeClass("ui-state-focus")}).mousedown(function(t){t.stopPropagation()}).appendTo(o),s=(this.uiDialogTitlebarCloseText=(0,r["default"])("")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(a);var l=(0,r["default"])("").addClass("ui-dialog-title").attr("id",i).html(n).prependTo(o);o.find("*").add(o).disableSelection()},destroy:function m(){this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.originalTitle&&this.element.attr("title",this.originalTitle)}}),r["default"].extend(r["default"].ssui.titlebar,{version:"0.0.1",options:{title:"",closeButton:!1,closeText:"close"},uuid:0,getTitleId:function g(t){return"ui-dialog-title-"+(t.attr("id")||++this.uuid)}})}).call(e,n(1))},function(module,exports,__webpack_require__){(function(jQuery){/*! jQuery UI - v1.9.2 - 2012-11-23 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.slider.js, jquery.ui.sortable.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js * Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */ @@ -15,10 +15,10 @@ Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(fun * https://github.com/jquery/jquery-ui/commit/c241313f1d31b18751a81c1321662512d8086cbc * plus a fix to ui.selectable widgetEventPrefix being incorrect */ -!function(t,e){function n(e,n){var i,o,a,s=e.nodeName.toLowerCase();return"area"===s?(i=e.parentNode,o=i.name,!(!e.href||!o||"map"!==i.nodeName.toLowerCase())&&(a=t("img[usemap=#"+o+"]")[0],!!a&&r(a))):(/input|select|textarea|button|object/.test(s)?!e.disabled:"a"===s?e.href||n:n)&&r(e)}function r(e){return t.expr.filters.visible(e)&&!t(e).parents().andSelf().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var i=0,o=/^ui-id-\d+$/;t.ui=t.ui||{},t.ui.version||(t.extend(t.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({_focus:t.fn.focus,focus:function(e,n){return"number"==typeof e?this.each(function(){var r=this;setTimeout(function(){t(r).focus(),n&&n.call(r)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(n){if(n!==e)return this.css("zIndex",n);if(this.length)for(var r=t(this[0]),i,o;r.length&&r[0]!==document;){if(i=r.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(o=parseInt(r.css("zIndex"),10),!isNaN(o)&&0!==o))return o;r=r.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++i)})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,r){return!!t.data(e,r[3])},focusable:function(e){return n(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var r=t.attr(e,"tabindex"),i=isNaN(r);return(i||r>=0)&&n(e,!i)}}),t(function(){var e=document.body,n=e.appendChild(n=document.createElement("div"));n.offsetHeight,t.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===n.offsetHeight,t.support.selectstart="onselectstart"in n,e.removeChild(n).style.display="none"}),t("").outerWidth(1).jquery||t.each(["Width","Height"],function(n,r){function i(e,n,r,i){return t.each(o,function(){n-=parseFloat(t.css(e,"padding"+this))||0,r&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),i&&(n-=parseFloat(t.css(e,"margin"+this))||0)}),n}var o="Width"===r?["Left","Right"]:["Top","Bottom"],a=r.toLowerCase(),s={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+r]=function(n){return n===e?s["inner"+r].call(this):this.each(function(){t(this).css(a,i(this,n)+"px")})},t.fn["outer"+r]=function(e,n){return"number"!=typeof e?s["outer"+r].call(this,e):this.each(function(){t(this).css(a,i(this,e,!0,n)+"px")})}}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),function(){var e=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];t.ui.ie=!!e.length,t.ui.ie6=6===parseFloat(e[1],10)}(),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,n,r){var i,o=t.ui[e].prototype;for(i in r)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([n,r[i]])},call:function(t,e,n){var r,i=t.plugins[e];if(i&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(r=0;r0||(e[r]=1,i=e[r]>0,e[r]=0,i)},isOverAxis:function(t,e,n){return t>e&&t",options:{disabled:!1,create:null},_createWidget:function(e,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),r!==this&&(t.data(r,this.widgetName,this),t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(n,r){var i=n,o,a,s;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof n)if(i={},o=n.split("."),n=o.shift(),o.length){for(a=i[n]=t.widget.extend({},this.options[n]),s=0;s=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(t){return this.mouseDelayMet},_mouseStart:function(t){},_mouseDrag:function(t){},_mouseStop:function(t){},_mouseCapture:function(t){return!0}})}(jQuery),function(t,e){function n(t,e,n){return[parseInt(t[0],10)*(f.test(t[0])?e/100:1),parseInt(t[1],10)*(f.test(t[1])?n/100:1)]}function r(e,n){return parseInt(t.css(e,n),10)||0}t.ui=t.ui||{};var i,o=Math.max,a=Math.abs,s=Math.round,l=/left|center|right/,u=/top|center|bottom/,c=/[\+\-]\d+%?/,d=/^\w+/,f=/%$/,h=t.fn.position;t.position={scrollbarWidth:function(){if(i!==e)return i;var n,r,o=t("
"),a=o.children()[0];return t("body").append(o),n=a.offsetWidth,o.css("overflow","scroll"),r=a.offsetWidth,n===r&&(r=o[0].clientWidth),o.remove(),i=n-r},getScrollInfo:function(e){var n=e.isWindow?"":e.element.css("overflow-x"),r=e.isWindow?"":e.element.css("overflow-y"),i="scroll"===n||"auto"===n&&e.width0?"right":"center",vertical:s<0?"top":i>0?"bottom":"middle"};fo(a(i),a(s))?l.important="horizontal":l.important="vertical",e.using.call(this,t,l)}),c.offset(t.extend(j,{using:u}))})},t.ui.position={fit:{left:function(t,e){var n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,i=n.width,a=t.left-e.collisionPosition.marginLeft,s=r-a,l=a+e.collisionWidth-i-r,u;e.collisionWidth>i?s>0&&l<=0?(u=t.left+s+e.collisionWidth-i-r,t.left+=s-u):l>0&&s<=0?t.left=r:s>l?t.left=r+i-e.collisionWidth:t.left=r:s>0?t.left+=s:l>0?t.left-=l:t.left=o(t.left-a,t.left)},top:function(t,e){var n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,i=e.within.height,a=t.top-e.collisionPosition.marginTop,s=r-a,l=a+e.collisionHeight-i-r,u;e.collisionHeight>i?s>0&&l<=0?(u=t.top+s+e.collisionHeight-i-r,t.top+=s-u):l>0&&s<=0?t.top=r:s>l?t.top=r+i-e.collisionHeight:t.top=r:s>0?t.top+=s:l>0?t.top-=l:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var n=e.within,r=n.offset.left+n.scrollLeft,i=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,s=t.left-e.collisionPosition.marginLeft,l=s-o,u=s+e.collisionWidth-i-o,c="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,d="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0],h,p;l<0?(h=t.left+c+d+f+e.collisionWidth-i-r,(h<0||h0&&(p=t.left-e.collisionPosition.marginLeft+c+d+f-o,(p>0||a(p)l&&(m<0||m0&&(p=t.top-e.collisionPosition.marginTop+d+f+h-o,t.top+d+f+h>u&&(p>0||a(p)10&&i<11,e.innerHTML="",n.removeChild(e)}(),t.uiBackCompat!==!1&&!function(t){var n=t.fn.position;t.fn.position=function(r){if(!r||!r.offset)return n.call(this,r);var i=r.offset.split(" "),o=r.at.split(" ");return 1===i.length&&(i[1]=i[0]),/^\d/.test(i[0])&&(i[0]="+"+i[0]),/^\d/.test(i[1])&&(i[1]="+"+i[1]),1===o.length&&(/left|center|right/.test(o[0])?o[1]="center":(o[1]=o[0],o[0]="center")),n.call(this,t.extend(r,{at:o[0]+i[0]+" "+o[1]+i[1],offset:e}))}}(jQuery)}(jQuery),function(t,e){var n=0,r={},i={};r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="hide",i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.9.2",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.accordionId="ui-accordion-"+(this.element.attr("id")||++n),r=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset"),this.headers=this.element.find(r.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this._hoverable(this.headers),this._focusable(this.headers),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),r.collapsible||r.active!==!1&&null!=r.active||(r.active=0),r.active<0&&(r.active+=this.headers.length),this.active=this._findActive(r.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top"),this.active.next().addClass("ui-accordion-content-active").show(),this._createIcons(),this.refresh(),this.element.attr("role","tablist"),this.headers.attr("role","tab").each(function(n){var r=t(this),i=r.attr("id"),o=r.next(),a=o.attr("id");i||(i=e+"-header-"+n,r.attr("id",i)),a||(a=e+"-panel-"+n,o.attr("id",a)),r.attr("aria-controls",a),o.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._on(this.headers,{keydown:"_keydown"}),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._setupEvents(r.event)},_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,r=this.headers.length,i=this.headers.index(e.target),o=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:o=this.headers[(i+1)%r];break;case n.LEFT:case n.UP:o=this.headers[(i-1+r)%r];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:o=this.headers[0];break;case n.END:o=this.headers[r-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e,n,r=this.options.heightStyle,i=this.element.parent();"fill"===r?(t.support.minHeight||(n=i.css("overflow"),i.css("overflow","hidden")),e=i.height(),this.element.siblings(":visible").each(function(){var n=t(this),r=n.css("position");"absolute"!==r&&"fixed"!==r&&(e-=n.outerHeight(!0))}),n&&i.css("overflow",n),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===r&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var n={};e&&(t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._on(this.headers,n))},_eventHandler:function(e){var n=this.options,r=this.active,i=t(e.currentTarget),o=i[0]===r[0],a=o&&n.collapsible,s=a?t():i.next(),l=r.next(),u={oldHeader:r,oldPanel:l,newHeader:a?t():i,newPanel:s};e.preventDefault(),o&&!n.collapsible||this._trigger("beforeActivate",e,u)===!1||(n.active=!a&&this.headers.index(i),this.active=o?t():i,this._toggle(u),r.removeClass("ui-accordion-header-active ui-state-active"),n.icons&&r.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header),o||(i.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),n.icons&&i.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader),i.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,r=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=r,this.options.animate?this._animate(n,r,e):(r.hide(),n.show(),this._toggleComplete(e)),r.attr({"aria-expanded":"false","aria-hidden":"true"}),r.prev().attr("aria-selected","false"),n.length&&r.length?r.prev().attr("tabIndex",-1):n.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),n.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,n){var o,a,s,l=this,u=0,c=t.length&&(!e.length||t.index()",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,n,r;this.isMultiLine=this._isMultiLine(),this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(i){if(this.element.prop("readOnly"))return e=!0,r=!0,void(n=!0);e=!1,r=!1,n=!1;var o=t.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",i);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",i);break;case o.UP:e=!0,this._keyEvent("previous",i);break;case o.DOWN:e=!0,this._keyEvent("next",i);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(e=!0,i.preventDefault(),this.menu.select(i));break;case o.TAB:this.menu.active&&this.menu.select(i);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(i),i.preventDefault());break;default:n=!0,this._searchTimeout(i)}},keypress:function(r){if(e)return e=!1,void r.preventDefault();if(!n){var i=t.ui.keyCode;switch(r.keyCode){case i.PAGE_UP:this._move("previousPage",r);break;case i.PAGE_DOWN:this._move("nextPage",r);break;case i.UP:this._keyEvent("previous",r);break;case i.DOWN:this._keyEvent("next",r)}}},input:function(t){return r?(r=!1,void t.preventDefault()):void this._searchTimeout(t); -},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("
    ").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:t(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var n=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(r){r.target===e.element[0]||r.target===n||t.contains(n,r.target)||e.close()})})},menufocus:function(e,n){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var r=n.item.data("ui-autocomplete-item")||n.item.data("item.autocomplete");!1!==this._trigger("focus",e,{item:r})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(r.value):this.liveRegion.text(r.value)},menuselect:function(t,e){var n=e.item.data("ui-autocomplete-item")||e.item.data("item.autocomplete"),r=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=r,this._delay(function(){this.previous=r,this.selectedItem=n})),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=t("",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element),t.fn.bgiframe&&this.menu.element.bgiframe(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this.document.find(e||"body")[0]),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){return!!this.element.is("textarea")||!this.element.is("input")&&this.element.prop("isContentEditable")},_initSource:function(){var e,n,r=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,r){r(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,i){r.xhr&&r.xhr.abort(),r.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){i(t)},error:function(){i([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(t("").text(n.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var r=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(t){return r.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(jQuery),function(t,e){var n,r,i,o,a="ui-button ui-widget ui-state-default ui-corner-all",s="ui-state-hover ui-state-active ",l="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",u=function(){var e=t(this).find(":ui-button");setTimeout(function(){e.button("refresh")},1)},c=function(e){var n=e.name,r=e.form,i=t([]);return n&&(i=r?t(r).find("[name='"+n+"']"):t("[name='"+n+"']",e.ownerDocument).filter(function(){return!this.form})),i};t.widget("ui.button",{version:"1.9.2",defaultElement:"').addClass(this._triggerClass).html(""==a?o:$("").attr({src:a,alt:o,title:o}))),t[r?"before":"after"](e.trigger),e.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==t[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=t[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(t[0])):$.datepicker._showDatepicker(t[0]),!1})}},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e=new Date(2009,11,20),n=this._get(t,"dateFormat");if(n.match(/[DM]/)){var r=function(t){for(var e=0,n=0,r=0;re&&(e=t[r].length,n=r);return n};e.setMonth(r(this._get(t,n.match(/MM/)?"monthNames":"monthNamesShort"))),e.setDate(r(this._get(t,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}t.input.attr("size",this._formatDate(t,e).length)}},_inlineDatepicker:function(t,e){var n=$(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(t,n,r){e.settings[n]=r}).bind("getData.datepicker",function(t,n){return this._get(e,n)}),$.data(t,PROP_NAME,e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,n,r,i){var o=this._dialogInst;if(!o){this.uuid+=1;var a="dp"+this.uuid;this._dialogInput=$(''),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),o=this._dialogInst=this._newInst(this._dialogInput,!1),o.settings={},$.data(this._dialogInput[0],PROP_NAME,o)}if(extendRemove(o.settings,r||{}),e=e&&e.constructor==Date?this._formatDate(o,e):e,this._dialogInput.val(e),this._pos=i?i.length?i:[i.pageX,i.pageY]:null,!this._pos){var s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[s/2-100+u,l/2-150+c]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,o),this},_destroyDatepicker:function(t){var e=$(t),n=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var r=t.nodeName.toLowerCase();$.removeData(t,PROP_NAME),"input"==r?(n.append.remove(),n.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!=r&&"span"!=r||e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(t){var e=$(t),n=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var r=t.nodeName.toLowerCase();if("input"==r)t.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==r||"span"==r){var i=e.children("."+this._inlineClass);i.children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e})}},_disableDatepicker:function(t){var e=$(t),n=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var r=t.nodeName.toLowerCase();if("input"==r)t.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==r||"span"==r){var i=e.children("."+this._inlineClass);i.children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e}),this._disabledInputs[this._disabledInputs.length]=t}},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e-1}},_doKeyUp:function(t){var e=$.datepicker._getInst(t.target);if(e.input.val()!=e.lastVal)try{var n=$.datepicker.parseDate($.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,$.datepicker._getFormatConfig(e));n&&($.datepicker._setDateFromField(e),$.datepicker._updateAlternate(e),$.datepicker._updateDatepicker(e))}catch(r){$.datepicker.log(r)}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!=t.nodeName.toLowerCase()&&(t=$("input",t.parentNode)[0]),!$.datepicker._isDisabledDatepicker(t)&&$.datepicker._lastInput!=t){var e=$.datepicker._getInst(t);$.datepicker._curInst&&$.datepicker._curInst!=e&&($.datepicker._curInst.dpDiv.stop(!0,!0),e&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var n=$.datepicker._get(e,"beforeShow"),r=n?n.apply(t,[t,e]):{};if(r!==!1){extendRemove(e.settings,r),e.lastVal=null,$.datepicker._lastInput=t,$.datepicker._setDateFromField(e),$.datepicker._inDialog&&(t.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(t),$.datepicker._pos[1]+=t.offsetHeight);var i=!1;$(t).parents().each(function(){return i|="fixed"==$(this).css("position"),!i});var o={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,e.dpDiv.empty(),e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(e),o=$.datepicker._checkOffset(e,o,i),e.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":i?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),!e.inline){var a=$.datepicker._get(e,"showAnim"),s=$.datepicker._get(e,"duration"),l=function(){var t=e.dpDiv.find("iframe.ui-datepicker-cover");if(t.length){var n=$.datepicker._getBorders(e.dpDiv);t.css({left:-n[0],top:-n[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})}};e.dpDiv.zIndex($(t).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&($.effects.effect[a]||$.effects[a])?e.dpDiv.show(a,$.datepicker._get(e,"showOptions"),s,l):e.dpDiv[a||"show"](a?s:null,l),a&&s||l(),e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus(),$.datepicker._curInst=e}}}},_updateDatepicker:function(t){this.maxRows=4;var e=$.datepicker._getBorders(t.dpDiv);instActive=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n=t.dpDiv.find("iframe.ui-datepicker-cover");n.length&&n.css({left:-e[0],top:-e[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()}),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var r=this._getNumberOfMonths(t),i=r[1],o=17;if(t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),i>1&&t.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",o*i+"em"),t.dpDiv[(1!=r[0]||1!=r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t==$.datepicker._curInst&&$.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!=document.activeElement&&t.input.focus(),t.yearshtml){var a=t.yearshtml;setTimeout(function(){a===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),a=t.yearshtml=null},0)}},_getBorders:function(t){var e=function(t){return{thin:1,medium:2,thick:3}[t]||t};return[parseFloat(e(t.css("border-left-width"))),parseFloat(e(t.css("border-top-width")))]},_checkOffset:function(t,e,n){var r=t.dpDiv.outerWidth(),i=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,s=document.documentElement.clientWidth+(n?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:$(document).scrollTop());return e.left-=this._get(t,"isRTL")?r-o:0,e.left-=n&&e.left==t.input.offset().left?$(document).scrollLeft():0,e.top-=n&&e.top==t.input.offset().top+a?$(document).scrollTop():0,e.left-=Math.min(e.left,e.left+r>s&&s>r?Math.abs(e.left+r-s):0),e.top-=Math.min(e.top,e.top+i>l&&l>i?Math.abs(i+a):0),e},_findPos:function(t){for(var e=this._getInst(t),n=this._get(e,"isRTL");t&&("hidden"==t.type||1!=t.nodeType||$.expr.filters.hidden(t));)t=t[n?"previousSibling":"nextSibling"];var r=$(t).offset();return[r.left,r.top]},_hideDatepicker:function(t){var e=this._curInst;if(e&&(!t||e==$.data(t,PROP_NAME))&&this._datepickerShowing){var n=this._get(e,"showAnim"),r=this._get(e,"duration"),i=function(){$.datepicker._tidyDialog(e)};$.effects&&($.effects.effect[n]||$.effects[n])?e.dpDiv.hide(n,$.datepicker._get(e,"showOptions"),r,i):e.dpDiv["slideDown"==n?"slideUp":"fadeIn"==n?"fadeOut":"hide"](n?r:null,i),n||i(),this._datepickerShowing=!1;var o=this._get(e,"onClose");o&&o.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if($.datepicker._curInst){var e=$(t.target),n=$.datepicker._getInst(e[0]);(e[0].id==$.datepicker._mainDivId||0!=e.parents("#"+$.datepicker._mainDivId).length||e.hasClass($.datepicker.markerClassName)||e.closest("."+$.datepicker._triggerClass).length||!$.datepicker._datepickerShowing||$.datepicker._inDialog&&$.blockUI)&&(!e.hasClass($.datepicker.markerClassName)||$.datepicker._curInst==n)||$.datepicker._hideDatepicker()}},_adjustDate:function(t,e,n){var r=$(t),i=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(i,e+("M"==n?this._get(i,"showCurrentAtPos"):0),n),this._updateDatepicker(i))},_gotoToday:function(t){var e=$(t),n=this._getInst(e[0]);if(this._get(n,"gotoCurrent")&&n.currentDay)n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear;else{var r=new Date;n.selectedDay=r.getDate(),n.drawMonth=n.selectedMonth=r.getMonth(),n.drawYear=n.selectedYear=r.getFullYear()}this._notifyChange(n),this._adjustDate(e)},_selectMonthYear:function(t,e,n){var r=$(t),i=this._getInst(r[0]);i["selected"+("M"==n?"Month":"Year")]=i["draw"+("M"==n?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10), -this._notifyChange(i),this._adjustDate(r)},_selectDay:function(t,e,n,r){var i=$(t);if(!$(r).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(i[0])){var o=this._getInst(i[0]);o.selectedDay=o.currentDay=$("a",r).html(),o.selectedMonth=o.currentMonth=e,o.selectedYear=o.currentYear=n,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear))}},_clearDate:function(t){var e=$(t),n=this._getInst(e[0]);this._selectDate(e,"")},_selectDate:function(t,e){var n=$(t),r=this._getInst(n[0]);e=null!=e?e:this._formatDate(r),r.input&&r.input.val(e),this._updateAlternate(r);var i=this._get(r,"onSelect");i?i.apply(r.input?r.input[0]:null,[e,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var e=this._get(t,"altField");if(e){var n=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),i=this.formatDate(n,r,this._getFormatConfig(t));$(e).each(function(){$(this).val(i)})}},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());e.setDate(e.getDate()+4-(e.getDay()||7));var n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e)/864e5)/7)+1},parseDate:function(t,e,n){if(null==t||null==e)throw"Invalid arguments";if(e="object"==typeof e?e.toString():e+"",""==e)return null;var r=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff;r="string"!=typeof r?r:(new Date).getFullYear()%100+parseInt(r,10);for(var i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,o=(n?n.dayNames:null)||this._defaults.dayNames,a=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,l=-1,u=-1,c=-1,d=-1,f=!1,h=function(e){var n=y+1-1)for(u=1,c=d;;){var x=this._getDaysInMonth(l,u-1);if(c<=x)break;u++,c-=x}var b=this._daylightSavingAdjust(new Date(l,u-1,c));if(b.getFullYear()!=l||b.getMonth()+1!=u||b.getDate()!=c)throw"Invalid date";return b},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,n){if(!e)return"";var r=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,i=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,a=(n?n.monthNames:null)||this._defaults.monthNames,s=function(e){var n=f+112?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var r=!e,i=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),i==t.selectedMonth&&o==t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(r?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""==t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(n,-e,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(n,+e,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(n)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(n,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate()));var n=this._get(t,"isRTL"),r=this._get(t,"showButtonPanel"),i=this._get(t,"hideIfNoPrevNext"),o=this._get(t,"navigationAsDateFormat"),a=this._getNumberOfMonths(t),s=this._get(t,"showCurrentAtPos"),l=this._get(t,"stepMonths"),u=1!=a[0]||1!=a[1],c=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),d=this._getMinMaxDate(t,"min"),f=this._getMinMaxDate(t,"max"),h=t.drawMonth-s,p=t.drawYear;if(h<0&&(h+=12,p--),f){var m=this._daylightSavingAdjust(new Date(f.getFullYear(),f.getMonth()-a[0]*a[1]+1,f.getDate()));for(m=d&&mm;)h--,h<0&&(h=11,p--)}t.drawMonth=h,t.drawYear=p;var g=this._get(t,"prevText");g=o?this.formatDate(g,this._daylightSavingAdjust(new Date(p,h-l,1)),this._getFormatConfig(t)):g;var v=this._canAdjustMonth(t,-1,p,h)?''+g+"":i?"":''+g+"",y=this._get(t,"nextText");y=o?this.formatDate(y,this._daylightSavingAdjust(new Date(p,h+l,1)),this._getFormatConfig(t)):y;var b=this._canAdjustMonth(t,1,p,h)?''+y+"":i?"":''+y+"",_=this._get(t,"currentText"),x=this._get(t,"gotoCurrent")&&t.currentDay?c:e;_=o?this.formatDate(_,x,this._getFormatConfig(t)):_;var w=t.inline?"":'",C=r?'
    '+(n?w:"")+(this._isInRange(t,x)?'":"")+(n?"":w)+"
    ":"",k=parseInt(this._get(t,"firstDay"),10);k=isNaN(k)?0:k;for(var T=this._get(t,"showWeek"),j=this._get(t,"dayNames"),E=this._get(t,"dayNamesShort"),S=this._get(t,"dayNamesMin"),P=this._get(t,"monthNames"),O=this._get(t,"monthNamesShort"),N=this._get(t,"beforeShowDay"),D=this._get(t,"showOtherMonths"),M=this._get(t,"selectOtherMonths"),A=this._get(t,"calculateWeek")||this.iso8601Week,I=this._getDefaultDate(t),R="",F=0;F1)switch(H){case 0:B+=" ui-datepicker-group-first",U=" ui-corner-"+(n?"right":"left");break;case a[1]-1:B+=" ui-datepicker-group-last",U=" ui-corner-"+(n?"left":"right");break;default:B+=" ui-datepicker-group-middle",U=""}B+='">'}B+='
    '+(/all|left/.test(U)&&0==F?n?b:v:"")+(/all|right/.test(U)&&0==F?n?v:b:"")+this._generateMonthYearHeader(t,h,p,d,f,F>0||H>0,P,O)+'
    ';for(var z=T?'":"",W=0;W<7;W++){var q=(W+k)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+S[q]+""}B+=z+"";var V=this._getDaysInMonth(p,h);p==t.selectedYear&&h==t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,V));var K=(this._getFirstDayOfMonth(p,h)-k+7)%7,X=Math.ceil((K+V)/7),Y=u&&this.maxRows>X?this.maxRows:X;this.maxRows=Y;for(var G=this._daylightSavingAdjust(new Date(p,h,1-K)),J=0;J";for(var Z=T?'":"",W=0;W<7;W++){var tt=N?N.apply(t.input?t.input[0]:null,[G]):[!0,""],et=G.getMonth()!=h,nt=et&&!M||!tt[0]||d&&Gf;Z+='",G.setDate(G.getDate()+1),G=this._daylightSavingAdjust(G)}B+=Z+""}h++,h>11&&(h=0,p++),B+="
    '+this._get(t,"weekHeader")+"
    '+this._get(t,"calculateWeek")(G)+""+(et&&!D?" ":nt?''+G.getDate()+"":''+G.getDate()+"")+"
    "+(u?""+(a[0]>0&&H==a[1]-1?'
    ':""):""),L+=B}R+=L}return R+=C+($.ui.ie6&&!t.inline?'':""),t._keyEvent=!1,R},_generateMonthYearHeader:function(t,e,n,r,i,o,a,s){var l=this._get(t,"changeMonth"),u=this._get(t,"changeYear"),c=this._get(t,"showMonthAfterYear"),d='
    ',f="";if(o||!l)f+=''+a[e]+"";else{var h=r&&r.getFullYear()==n,p=i&&i.getFullYear()==n;f+='"}if(c||(d+=f+(!o&&l&&u?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!u)d+=''+n+"";else{var g=this._get(t,"yearRange").split(":"),v=(new Date).getFullYear(),y=function(t){var e=t.match(/c[+-].*/)?n+parseInt(t.substring(1),10):t.match(/[+-].*/)?v+parseInt(t,10):parseInt(t,10);return isNaN(e)?v:e},b=y(g[0]),_=Math.max(b,y(g[1]||""));for(b=r?Math.max(b,r.getFullYear()):b,_=i?Math.min(_,i.getFullYear()):_,t.yearshtml+='",d+=t.yearshtml,t.yearshtml=null}return d+=this._get(t,"yearSuffix"),c&&(d+=(!o&&l&&u?"":" ")+f),d+="
    "},_adjustInstDate:function(t,e,n){var r=t.drawYear+("Y"==n?e:0),i=t.drawMonth+("M"==n?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(r,i))+("D"==n?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(r,i,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!=n&&"Y"!=n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),i=n&&er?r:i},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,r){var i=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(n,r+(e<0?e:i[0]*i[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var n=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max");return(!n||e.getTime()>=n.getTime())&&(!r||e.getTime()<=r.getTime())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,r){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var i=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(r,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),i,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var e=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!=t&&"getDate"!=t&&"widget"!=t?"option"==t&&2==arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)}):$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.2",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(t,e){var n="ui-dialog ui-widget ui-widget-content ui-corner-all ",r={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},i={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.9.2",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;n<0&&t(this).css("top",e.top-n)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.options.title=this.options.title||this.originalTitle;var e=this,r=this.options,i=r.title||" ",o,a,s,l,u;o=(this.uiDialog=t("
    ")).addClass(n+r.dialogClass).css({display:"none",outline:0,zIndex:r.zIndex}).attr("tabIndex",-1).keydown(function(n){r.closeOnEscape&&!n.isDefaultPrevented()&&n.keyCode&&n.keyCode===t.ui.keyCode.ESCAPE&&(e.close(n),n.preventDefault())}).mousedown(function(t){e.moveToTop(!1,t)}).appendTo("body"),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(o),a=(this.uiDialogTitlebar=t("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").bind("mousedown",function(){o.focus()}).prependTo(o),s=t("").addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").click(function(t){t.preventDefault(),e.close(t)}).appendTo(a),(this.uiDialogTitlebarCloseText=t("")).addClass("ui-icon ui-icon-closethick").text(r.closeText).appendTo(s),l=t("").uniqueId().addClass("ui-dialog-title").html(i).prependTo(a),u=(this.uiDialogButtonPane=t("
    ")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uiButtonSet=t("
    ")).addClass("ui-dialog-buttonset").appendTo(u),o.attr({role:"dialog","aria-labelledby":l.attr("id")}),a.find("*").add(a).disableSelection(),this._hoverable(s),this._focusable(s),r.draggable&&t.fn.draggable&&this._makeDraggable(),r.resizable&&t.fn.resizable&&this._makeResizable(),this._createButtons(r.buttons),this._isOpen=!1,t.fn.bgiframe&&o.bgiframe(),this._on(o,{keydown:function(e){if(r.modal&&e.keyCode===t.ui.keyCode.TAB){var n=t(":tabbable",o),i=n.filter(":first"),a=n.filter(":last");return e.target!==a[0]||e.shiftKey?e.target===i[0]&&e.shiftKey?(a.focus(1),!1):void 0:(i.focus(1),!1)}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var t,e=this.oldPosition;this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(e){var n=this,r,i;if(this._isOpen&&!1!==this._trigger("beforeClose",e))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",e)}):(this.uiDialog.hide(),this._trigger("close",e)),t.ui.dialog.overlay.resize(),this.options.modal&&(r=0,t(".ui-dialog").each(function(){this!==n.uiDialog[0]&&(i=t(this).css("z-index"),isNaN(i)||(r=Math.max(r,i)))}),t.ui.dialog.maxZ=r),this},isOpen:function(){return this._isOpen},moveToTop:function(e,n){var r=this.options,i;return r.modal&&!e||!r.stack&&!r.modal?this._trigger("focus",n):(r.zIndex>t.ui.dialog.maxZ&&(t.ui.dialog.maxZ=r.zIndex),this.overlay&&(t.ui.dialog.maxZ+=1,t.ui.dialog.overlay.maxZ=t.ui.dialog.maxZ,this.overlay.$el.css("z-index",t.ui.dialog.overlay.maxZ)),i={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},t.ui.dialog.maxZ+=1,this.uiDialog.css("z-index",t.ui.dialog.maxZ),this.element.attr(i),this._trigger("focus",n),this)},open:function(){if(!this._isOpen){var e,n=this.options,r=this.uiDialog;return this._size(),this._position(n.position),r.show(n.show),this.overlay=n.modal?new t.ui.dialog.overlay(this):null,this.moveToTop(!0),e=this.element.find(":tabbable"),e.length||(e=this.uiDialogButtonPane.find(":tabbable"),e.length||(e=r)),e.eq(0).focus(),this._isOpen=!0,this._trigger("open"),this}},_createButtons:function(e){var n=this,r=!1;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),"object"==typeof e&&null!==e&&t.each(e,function(){return!(r=!0)}),r?(t.each(e,function(e,r){var i,o;r=t.isFunction(r)?{click:r,text:e}:r,r=t.extend({type:"button"},r),o=r.click,r.click=function(){o.apply(n.element[0],arguments)},i=t("",r).appendTo(n.uiButtonSet),t.fn.button&&i.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var n=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,i){t(this).addClass("ui-dialog-dragging"),n._trigger("dragStart",r,e(i))},drag:function(t,r){n._trigger("drag",t,e(r))},stop:function(i,o){r.position=[o.position.left-n.document.scrollLeft(),o.position.top-n.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),n._trigger("dragStop",i,e(o)),t.ui.dialog.overlay.resize()}})},_makeResizable:function(n){function r(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}n=n===e?this.options.resizable:n;var i=this,o=this.options,a=this.uiDialog.css("position"),s="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:s,start:function(e,n){t(this).addClass("ui-dialog-resizing"),i._trigger("resizeStart",e,r(n))},resize:function(t,e){i._trigger("resize",t,r(e))},stop:function(e,n){t(this).removeClass("ui-dialog-resizing"),o.height=t(this).height(),o.width=t(this).width(),i._trigger("resizeStop",e,r(n)),t.ui.dialog.overlay.resize()}}).css("position",a).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(e){var n=[],r=[0,0],i;e?(("string"==typeof e||"object"==typeof e&&"0"in e)&&(n=e.split?e.split(" "):[e[0],e[1]],1===n.length&&(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&&(r[t]=n[t],n[t]=e)}),e={my:n[0]+(r[0]<0?r[0]:"+"+r[0])+" "+n[1]+(r[1]<0?r[1]:"+"+r[1]),at:n.join(" ")}),e=t.extend({},t.ui.dialog.prototype.options.position,e)):e=t.ui.dialog.prototype.options.position,i=this.uiDialog.is(":visible"),i||this.uiDialog.show(),this.uiDialog.position(e),i||this.uiDialog.hide()},_setOptions:function(e){var n=this,o={},a=!1;t.each(e,function(t,e){n._setOption(t,e),t in r&&(a=!0),t in i&&(o[t]=e)}),a&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,r){var i,o,a=this.uiDialog;switch(e){case"buttons":this._createButtons(r);break;case"closeText":this.uiDialogTitlebarCloseText.text(""+r);break;case"dialogClass":a.removeClass(this.options.dialogClass).addClass(n+r);break;case"disabled":r?a.addClass("ui-dialog-disabled"):a.removeClass("ui-dialog-disabled");break;case"draggable":i=a.is(":data(draggable)"),i&&!r&&a.draggable("destroy"),!i&&r&&this._makeDraggable();break;case"position":this._position(r);break;case"resizable":o=a.is(":data(resizable)"),o&&!r&&a.resizable("destroy"),o&&"string"==typeof r&&a.resizable("option","handles",r),o||r===!1||this._makeResizable(r);break;case"title":t(".ui-dialog-title",this.uiDialogTitlebar).html(""+(r||" "))}this._super(e,r)},_size:function(){var e,n,r,i=this.options,o=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),i.minWidth>i.width&&(i.width=i.minWidth),e=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),n=Math.max(0,i.minHeight-e),"auto"===i.height?t.support.minHeight?this.element.css({minHeight:n,height:"auto"}):(this.uiDialog.show(),r=this.element.css("height","auto").height(),o||this.uiDialog.hide(),this.element.height(Math.max(r,n))):this.element.height(Math.max(i.height-e,0)),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),t.extend(t.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(t){var e=t.attr("id");return e||(this.uuid+=1,e=this.uuid),"ui-dialog-title-"+e},overlay:function(e){this.$el=t.ui.dialog.overlay.create(e)}}),t.extend(t.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:t.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(t){return t+".dialog-overlay"}).join(" "),create:function(e){0===this.instances.length&&(setTimeout(function(){t.ui.dialog.overlay.instances.length&&t(document).bind(t.ui.dialog.overlay.events,function(e){if(t(e.target).zIndex()").addClass("ui-widget-overlay");return t(document).bind("keydown.dialog-overlay",function(r){var i=t.ui.dialog.overlay.instances;0!==i.length&&i[i.length-1]===n&&e.options.closeOnEscape&&!r.isDefaultPrevented()&&r.keyCode&&r.keyCode===t.ui.keyCode.ESCAPE&&(e.close(r),r.preventDefault())}),n.appendTo(document.body).css({width:this.width(),height:this.height()}),t.fn.bgiframe&&n.bgiframe(),this.instances.push(n),n},destroy:function(e){var n=t.inArray(e,this.instances),r=0;n!==-1&&this.oldInstances.push(this.instances.splice(n,1)[0]),0===this.instances.length&&t([document,window]).unbind(".dialog-overlay"),e.height(0).width(0).remove(),t.each(this.instances,function(){r=Math.max(r,this.css("z-index"))}),this.maxZ=r},height:function(){var e,n;return t.ui.ie?(e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),n=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),e
    ').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,n){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!n){var r=this._uiHash();if(this._trigger("drag",e,r)===!1)return this._mouseUp({}),!1;this.position=r.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"), -t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=!1;t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1);for(var r=this.element[0],i=!1;r&&(r=r.parentNode);)r==document&&(i=!0);if(!i&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!n||"valid"==this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){var o=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){o._trigger("stop",e)!==!1&&o._clear()})}else this._trigger("stop",e)!==!1&&this._clear();return!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var n=!this.options.handle||!t(this.options.handle,this.element).length;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(n=!0)}),n},_createHelper:function(e){var n=this.options,r=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e])):"clone"==n.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"==n.appendTo?this.element[0].parentNode:n.appendTo),r[0]==this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),"document"!=e.containment&&"window"!=e.containment||(this.containment=["document"==e.containment?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:t(window).scrollLeft())+t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:t(window).scrollTop())+(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var n=t(e.containment),r=n[0];if(!r)return;var i=n.offset(),o="hidden"!=t(r).css("overflow");this.containment=[(parseInt(t(r).css("borderLeftWidth"),10)||0)+(parseInt(t(r).css("paddingLeft"),10)||0),(parseInt(t(r).css("borderTopWidth"),10)||0)+(parseInt(t(r).css("paddingTop"),10)||0),(o?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(t(r).css("borderLeftWidth"),10)||0)-(parseInt(t(r).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(o?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(t(r).css("borderTopWidth"),10)||0)-(parseInt(t(r).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=n}},_convertPositionTo:function(e,n){n||(n=this.position);var r="absolute"==e?1:-1,i=this.options,o="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(o[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())*r}},_generatePosition:function(e){var n=this.options,r="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(r[0].tagName),o=e.pageX,a=e.pageY;if(this.originalPosition){var s;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();s=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else s=this.containment;e.pageX-this.offset.click.lefts[2]&&(o=s[2]+this.offset.click.left),e.pageY-this.offset.click.top>s[3]&&(a=s[3]+this.offset.click.top)}if(n.grid){var u=n.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY;a=s&&(u-this.offset.click.tops[3])?u-this.offset.click.tops[2])?c-this.offset.click.left=0;c--){var d=r.snapElements[c].left,f=d+r.snapElements[c].width,h=r.snapElements[c].top,p=h+r.snapElements[c].height;if(d-o=c&&a<=d||s>=c&&s<=d||ad)&&(i>=l&&i<=u||o>=l&&o<=u||iu);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,n){var r=t.ui.ddmanager.droppables[e.options.scope]||[],i=n?n.type:null,o=(e.currentItem||e.element).find(":data(droppable)").andSelf();t:for(var a=0;a=0)&&n(e,!r)}}),t(function(){var e=document.body,n=e.appendChild(n=document.createElement("div"));n.offsetHeight,t.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===n.offsetHeight,t.support.selectstart="onselectstart"in n,e.removeChild(n).style.display="none"}),t("").outerWidth(1).jquery||t.each(["Width","Height"],function(n,i){function r(e,n,i,r){return t.each(o,function(){n-=parseFloat(t.css(e,"padding"+this))||0,i&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),r&&(n-=parseFloat(t.css(e,"margin"+this))||0)}),n}var o="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),s={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(n){return n===e?s["inner"+i].call(this):this.each(function(){t(this).css(a,r(this,n)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?s["outer"+i].call(this,e):this.each(function(){t(this).css(a,r(this,e,!0,n)+"px")})}}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),function(){var e=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];t.ui.ie=!!e.length,t.ui.ie6=6===parseFloat(e[1],10)}(),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,n,i){var r,o=t.ui[e].prototype;for(r in i)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([n,i[r]])},call:function(t,e,n){var i,r=t.plugins[e];if(r&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(i=0;i0||(e[i]=1,r=e[i]>0,e[i]=0,r)},isOverAxis:function(t,e,n){return t>e&&t",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetName,this),t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(n,i){var r=n,o,a,s;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof n)if(r={},o=n.split("."),n=o.shift(),o.length){for(a=r[n]=t.widget.extend({},this.options[n]),s=0;s=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(t){return this.mouseDelayMet},_mouseStart:function(t){},_mouseDrag:function(t){},_mouseStop:function(t){},_mouseCapture:function(t){return!0}})}(jQuery),function(t,e){function n(t,e,n){return[parseInt(t[0],10)*(f.test(t[0])?e/100:1),parseInt(t[1],10)*(f.test(t[1])?n/100:1)]}function i(e,n){return parseInt(t.css(e,n),10)||0}t.ui=t.ui||{};var r,o=Math.max,a=Math.abs,s=Math.round,l=/left|center|right/,u=/top|center|bottom/,c=/[\+\-]\d+%?/,d=/^\w+/,f=/%$/,h=t.fn.position;t.position={scrollbarWidth:function(){if(r!==e)return r;var n,i,o=t("
    "),a=o.children()[0];return t("body").append(o),n=a.offsetWidth,o.css("overflow","scroll"),i=a.offsetWidth,n===i&&(i=o[0].clientWidth),o.remove(),r=n-i},getScrollInfo:function(e){var n=e.isWindow?"":e.element.css("overflow-x"),i=e.isWindow?"":e.element.css("overflow-y"),r="scroll"===n||"auto"===n&&e.width0?"right":"center",vertical:s<0?"top":r>0?"bottom":"middle"};fo(a(r),a(s))?l.important="horizontal":l.important="vertical",e.using.call(this,t,l)}),c.offset(t.extend(j,{using:u}))})},t.ui.position={fit:{left:function(t,e){var n=e.within,i=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,a=t.left-e.collisionPosition.marginLeft,s=i-a,l=a+e.collisionWidth-r-i,u;e.collisionWidth>r?s>0&&l<=0?(u=t.left+s+e.collisionWidth-r-i,t.left+=s-u):l>0&&s<=0?t.left=i:s>l?t.left=i+r-e.collisionWidth:t.left=i:s>0?t.left+=s:l>0?t.left-=l:t.left=o(t.left-a,t.left)},top:function(t,e){var n=e.within,i=n.isWindow?n.scrollTop:n.offset.top,r=e.within.height,a=t.top-e.collisionPosition.marginTop,s=i-a,l=a+e.collisionHeight-r-i,u;e.collisionHeight>r?s>0&&l<=0?(u=t.top+s+e.collisionHeight-r-i,t.top+=s-u):l>0&&s<=0?t.top=i:s>l?t.top=i+r-e.collisionHeight:t.top=i:s>0?t.top+=s:l>0?t.top-=l:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var n=e.within,i=n.offset.left+n.scrollLeft,r=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,s=t.left-e.collisionPosition.marginLeft,l=s-o,u=s+e.collisionWidth-r-o,c="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,d="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0],h,p;l<0?(h=t.left+c+d+f+e.collisionWidth-r-i,(h<0||h0&&(p=t.left-e.collisionPosition.marginLeft+c+d+f-o,(p>0||a(p)l&&(m<0||m0&&(p=t.top-e.collisionPosition.marginTop+d+f+h-o,t.top+d+f+h>u&&(p>0||a(p)10&&r<11,e.innerHTML="",n.removeChild(e)}(),t.uiBackCompat!==!1&&!function(t){var n=t.fn.position;t.fn.position=function(i){if(!i||!i.offset)return n.call(this,i);var r=i.offset.split(" "),o=i.at.split(" ");return 1===r.length&&(r[1]=r[0]),/^\d/.test(r[0])&&(r[0]="+"+r[0]),/^\d/.test(r[1])&&(r[1]="+"+r[1]),1===o.length&&(/left|center|right/.test(o[0])?o[1]="center":(o[1]=o[0],o[0]="center")),n.call(this,t.extend(i,{at:o[0]+r[0]+" "+o[1]+r[1],offset:e}))}}(jQuery)}(jQuery),function(t,e){var n=0,i={},r={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.9.2",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.accordionId="ui-accordion-"+(this.element.attr("id")||++n),i=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset"),this.headers=this.element.find(i.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this._hoverable(this.headers),this._focusable(this.headers),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),i.collapsible||i.active!==!1&&null!=i.active||(i.active=0),i.active<0&&(i.active+=this.headers.length),this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top"),this.active.next().addClass("ui-accordion-content-active").show(),this._createIcons(),this.refresh(),this.element.attr("role","tablist"),this.headers.attr("role","tab").each(function(n){var i=t(this),r=i.attr("id"),o=i.next(),a=o.attr("id");r||(r=e+"-header-"+n,i.attr("id",r)),a||(a=e+"-panel-"+n,o.attr("id",a)),i.attr("aria-controls",a),o.attr("aria-labelledby",r)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._on(this.headers,{keydown:"_keydown"}),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._setupEvents(i.event)},_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,i=this.headers.length,r=this.headers.index(e.target),o=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:o=this.headers[(r+1)%i];break;case n.LEFT:case n.UP:o=this.headers[(r-1+i)%i];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:o=this.headers[0];break;case n.END:o=this.headers[i-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e,n,i=this.options.heightStyle,r=this.element.parent();"fill"===i?(t.support.minHeight||(n=r.css("overflow"),r.css("overflow","hidden")),e=r.height(),this.element.siblings(":visible").each(function(){var n=t(this),i=n.css("position");"absolute"!==i&&"fixed"!==i&&(e-=n.outerHeight(!0))}),n&&r.css("overflow",n),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===i&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var n={};e&&(t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._on(this.headers,n))},_eventHandler:function(e){var n=this.options,i=this.active,r=t(e.currentTarget),o=r[0]===i[0],a=o&&n.collapsible,s=a?t():r.next(),l=i.next(),u={oldHeader:i,oldPanel:l,newHeader:a?t():r,newPanel:s};e.preventDefault(),o&&!n.collapsible||this._trigger("beforeActivate",e,u)===!1||(n.active=!a&&this.headers.index(r),this.active=o?t():r,this._toggle(u),i.removeClass("ui-accordion-header-active ui-state-active"),n.icons&&i.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header),o||(r.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),n.icons&&r.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader),r.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=i,this.options.animate?this._animate(n,i,e):(i.hide(),n.show(),this._toggleComplete(e)),i.attr({"aria-expanded":"false","aria-hidden":"true"}),i.prev().attr("aria-selected","false"),n.length&&i.length?i.prev().attr("tabIndex",-1):n.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),n.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,n){var o,a,s,l=this,u=0,c=t.length&&(!e.length||t.index()",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,n,i;this.isMultiLine=this._isMultiLine(),this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,i=!0,void(n=!0);e=!1,i=!1,n=!1;var o=t.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",r);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case o.UP:e=!0,this._keyEvent("previous",r);break;case o.DOWN:e=!0,this._keyEvent("next",r);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case o.TAB:this.menu.active&&this.menu.select(r);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(r),r.preventDefault());break;default:n=!0,this._searchTimeout(r)}},keypress:function(i){if(e)return e=!1,void i.preventDefault();if(!n){var r=t.ui.keyCode;switch(i.keyCode){case r.PAGE_UP:this._move("previousPage",i);break;case r.PAGE_DOWN:this._move("nextPage",i);break;case r.UP:this._keyEvent("previous",i);break;case r.DOWN:this._keyEvent("next",i)}}},input:function(t){return i?(i=!1,void t.preventDefault()):void this._searchTimeout(t); +},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("
    "+(a[0]>0&&H==a[1]-1?'
    ':""):""),L+=B}R+=L}return R+=C+($.ui.ie6&&!t.inline?'':""),t._keyEvent=!1,R},_generateMonthYearHeader:function(t,e,n,i,r,o,a,s){var l=this._get(t,"changeMonth"),u=this._get(t,"changeYear"),c=this._get(t,"showMonthAfterYear"),d='
    ',f="";if(o||!l)f+=''+a[e]+"";else{var h=i&&i.getFullYear()==n,p=r&&r.getFullYear()==n;f+='"}if(c||(d+=f+(!o&&l&&u?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!u)d+=''+n+"";else{var g=this._get(t,"yearRange").split(":"),v=(new Date).getFullYear(),y=function(t){var e=t.match(/c[+-].*/)?n+parseInt(t.substring(1),10):t.match(/[+-].*/)?v+parseInt(t,10):parseInt(t,10);return isNaN(e)?v:e},b=y(g[0]),_=Math.max(b,y(g[1]||""));for(b=i?Math.max(b,i.getFullYear()):b,_=r?Math.min(_,r.getFullYear()):_,t.yearshtml+='",d+=t.yearshtml,t.yearshtml=null}return d+=this._get(t,"yearSuffix"),c&&(d+=(!o&&l&&u?"":" ")+f),d+="
    "},_adjustInstDate:function(t,e,n){var i=t.drawYear+("Y"==n?e:0),r=t.drawMonth+("M"==n?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(i,r))+("D"==n?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,r,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!=n&&"Y"!=n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),i=this._getMinMaxDate(t,"max"),r=n&&ei?i:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,i){var r=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(n,i+(e<0?e:r[0]*r[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var n=this._getMinMaxDate(t,"min"),i=this._getMinMaxDate(t,"max");return(!n||e.getTime()>=n.getTime())&&(!i||e.getTime()<=i.getTime())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,i){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var e=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!=t&&"getDate"!=t&&"widget"!=t?"option"==t&&2==arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)}):$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.2",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(t,e){var n="ui-dialog ui-widget ui-widget-content ui-corner-all ",i={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},r={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.9.2",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;n<0&&t(this).css("top",e.top-n)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.options.title=this.options.title||this.originalTitle;var e=this,i=this.options,r=i.title||" ",o,a,s,l,u;o=(this.uiDialog=t("
    ")).addClass(n+i.dialogClass).css({display:"none",outline:0,zIndex:i.zIndex}).attr("tabIndex",-1).keydown(function(n){i.closeOnEscape&&!n.isDefaultPrevented()&&n.keyCode&&n.keyCode===t.ui.keyCode.ESCAPE&&(e.close(n),n.preventDefault())}).mousedown(function(t){e.moveToTop(!1,t)}).appendTo("body"),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(o),a=(this.uiDialogTitlebar=t("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").bind("mousedown",function(){o.focus()}).prependTo(o),s=t("").addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").click(function(t){t.preventDefault(),e.close(t)}).appendTo(a),(this.uiDialogTitlebarCloseText=t("")).addClass("ui-icon ui-icon-closethick").text(i.closeText).appendTo(s),l=t("").uniqueId().addClass("ui-dialog-title").html(r).prependTo(a),u=(this.uiDialogButtonPane=t("
    ")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uiButtonSet=t("
    ")).addClass("ui-dialog-buttonset").appendTo(u),o.attr({role:"dialog","aria-labelledby":l.attr("id")}),a.find("*").add(a).disableSelection(),this._hoverable(s),this._focusable(s),i.draggable&&t.fn.draggable&&this._makeDraggable(),i.resizable&&t.fn.resizable&&this._makeResizable(),this._createButtons(i.buttons),this._isOpen=!1,t.fn.bgiframe&&o.bgiframe(),this._on(o,{keydown:function(e){if(i.modal&&e.keyCode===t.ui.keyCode.TAB){var n=t(":tabbable",o),r=n.filter(":first"),a=n.filter(":last");return e.target!==a[0]||e.shiftKey?e.target===r[0]&&e.shiftKey?(a.focus(1),!1):void 0:(r.focus(1),!1)}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var t,e=this.oldPosition;this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(e){var n=this,i,r;if(this._isOpen&&!1!==this._trigger("beforeClose",e))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",e)}):(this.uiDialog.hide(),this._trigger("close",e)),t.ui.dialog.overlay.resize(),this.options.modal&&(i=0,t(".ui-dialog").each(function(){this!==n.uiDialog[0]&&(r=t(this).css("z-index"),isNaN(r)||(i=Math.max(i,r)))}),t.ui.dialog.maxZ=i),this},isOpen:function(){return this._isOpen},moveToTop:function(e,n){var i=this.options,r;return i.modal&&!e||!i.stack&&!i.modal?this._trigger("focus",n):(i.zIndex>t.ui.dialog.maxZ&&(t.ui.dialog.maxZ=i.zIndex),this.overlay&&(t.ui.dialog.maxZ+=1,t.ui.dialog.overlay.maxZ=t.ui.dialog.maxZ,this.overlay.$el.css("z-index",t.ui.dialog.overlay.maxZ)),r={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},t.ui.dialog.maxZ+=1,this.uiDialog.css("z-index",t.ui.dialog.maxZ),this.element.attr(r),this._trigger("focus",n),this)},open:function(){if(!this._isOpen){var e,n=this.options,i=this.uiDialog;return this._size(),this._position(n.position),i.show(n.show),this.overlay=n.modal?new t.ui.dialog.overlay(this):null,this.moveToTop(!0),e=this.element.find(":tabbable"),e.length||(e=this.uiDialogButtonPane.find(":tabbable"),e.length||(e=i)),e.eq(0).focus(),this._isOpen=!0,this._trigger("open"),this}},_createButtons:function(e){var n=this,i=!1;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),"object"==typeof e&&null!==e&&t.each(e,function(){return!(i=!0)}),i?(t.each(e,function(e,i){var r,o;i=t.isFunction(i)?{click:i,text:e}:i,i=t.extend({type:"button"},i),o=i.click,i.click=function(){o.apply(n.element[0],arguments)},r=t("",i).appendTo(n.uiButtonSet),t.fn.button&&r.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var n=this,i=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,r){t(this).addClass("ui-dialog-dragging"),n._trigger("dragStart",i,e(r))},drag:function(t,i){n._trigger("drag",t,e(i))},stop:function(r,o){i.position=[o.position.left-n.document.scrollLeft(),o.position.top-n.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),n._trigger("dragStop",r,e(o)),t.ui.dialog.overlay.resize()}})},_makeResizable:function(n){function i(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}n=n===e?this.options.resizable:n;var r=this,o=this.options,a=this.uiDialog.css("position"),s="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:s,start:function(e,n){t(this).addClass("ui-dialog-resizing"),r._trigger("resizeStart",e,i(n))},resize:function(t,e){r._trigger("resize",t,i(e))},stop:function(e,n){t(this).removeClass("ui-dialog-resizing"),o.height=t(this).height(),o.width=t(this).width(),r._trigger("resizeStop",e,i(n)),t.ui.dialog.overlay.resize()}}).css("position",a).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(e){var n=[],i=[0,0],r;e?(("string"==typeof e||"object"==typeof e&&"0"in e)&&(n=e.split?e.split(" "):[e[0],e[1]],1===n.length&&(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&&(i[t]=n[t],n[t]=e)}),e={my:n[0]+(i[0]<0?i[0]:"+"+i[0])+" "+n[1]+(i[1]<0?i[1]:"+"+i[1]),at:n.join(" ")}),e=t.extend({},t.ui.dialog.prototype.options.position,e)):e=t.ui.dialog.prototype.options.position,r=this.uiDialog.is(":visible"),r||this.uiDialog.show(),this.uiDialog.position(e),r||this.uiDialog.hide()},_setOptions:function(e){var n=this,o={},a=!1;t.each(e,function(t,e){n._setOption(t,e),t in i&&(a=!0),t in r&&(o[t]=e)}),a&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,i){var r,o,a=this.uiDialog;switch(e){case"buttons":this._createButtons(i);break;case"closeText":this.uiDialogTitlebarCloseText.text(""+i);break;case"dialogClass":a.removeClass(this.options.dialogClass).addClass(n+i);break;case"disabled":i?a.addClass("ui-dialog-disabled"):a.removeClass("ui-dialog-disabled");break;case"draggable":r=a.is(":data(draggable)"),r&&!i&&a.draggable("destroy"),!r&&i&&this._makeDraggable();break;case"position":this._position(i);break;case"resizable":o=a.is(":data(resizable)"),o&&!i&&a.resizable("destroy"),o&&"string"==typeof i&&a.resizable("option","handles",i),o||i===!1||this._makeResizable(i);break;case"title":t(".ui-dialog-title",this.uiDialogTitlebar).html(""+(i||" "))}this._super(e,i)},_size:function(){var e,n,i,r=this.options,o=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),r.minWidth>r.width&&(r.width=r.minWidth),e=this.uiDialog.css({height:"auto",width:r.width}).outerHeight(),n=Math.max(0,r.minHeight-e),"auto"===r.height?t.support.minHeight?this.element.css({minHeight:n,height:"auto"}):(this.uiDialog.show(),i=this.element.css("height","auto").height(),o||this.uiDialog.hide(),this.element.height(Math.max(i,n))):this.element.height(Math.max(r.height-e,0)),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),t.extend(t.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(t){var e=t.attr("id");return e||(this.uuid+=1,e=this.uuid),"ui-dialog-title-"+e},overlay:function(e){this.$el=t.ui.dialog.overlay.create(e)}}),t.extend(t.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:t.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(t){return t+".dialog-overlay"}).join(" "),create:function(e){0===this.instances.length&&(setTimeout(function(){t.ui.dialog.overlay.instances.length&&t(document).bind(t.ui.dialog.overlay.events,function(e){if(t(e.target).zIndex()").addClass("ui-widget-overlay");return t(document).bind("keydown.dialog-overlay",function(i){var r=t.ui.dialog.overlay.instances;0!==r.length&&r[r.length-1]===n&&e.options.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===t.ui.keyCode.ESCAPE&&(e.close(i),i.preventDefault())}),n.appendTo(document.body).css({width:this.width(),height:this.height()}),t.fn.bgiframe&&n.bgiframe(),this.instances.push(n),n},destroy:function(e){var n=t.inArray(e,this.instances),i=0;n!==-1&&this.oldInstances.push(this.instances.splice(n,1)[0]),0===this.instances.length&&t([document,window]).unbind(".dialog-overlay"),e.height(0).width(0).remove(),t.each(this.instances,function(){i=Math.max(i,this.css("z-index"))}),this.maxZ=i},height:function(){var e,n;return t.ui.ie?(e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),n=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),e
    ').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,n){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(this._trigger("drag",e,i)===!1)return this._mouseUp({}),!1;this.position=i.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"), +t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=!1;t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1);for(var i=this.element[0],r=!1;i&&(i=i.parentNode);)i==document&&(r=!0);if(!r&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!n||"valid"==this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){var o=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){o._trigger("stop",e)!==!1&&o._clear()})}else this._trigger("stop",e)!==!1&&this._clear();return!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var n=!this.options.handle||!t(this.options.handle,this.element).length;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(n=!0)}),n},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e])):"clone"==n.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"==n.appendTo?this.element[0].parentNode:n.appendTo),i[0]==this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),"document"!=e.containment&&"window"!=e.containment||(this.containment=["document"==e.containment?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:t(window).scrollLeft())+t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:t(window).scrollTop())+(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var n=t(e.containment),i=n[0];if(!i)return;var r=n.offset(),o="hidden"!=t(i).css("overflow");this.containment=[(parseInt(t(i).css("borderLeftWidth"),10)||0)+(parseInt(t(i).css("paddingLeft"),10)||0),(parseInt(t(i).css("borderTopWidth"),10)||0)+(parseInt(t(i).css("paddingTop"),10)||0),(o?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t(i).css("borderLeftWidth"),10)||0)-(parseInt(t(i).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(o?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t(i).css("borderTopWidth"),10)||0)-(parseInt(t(i).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=n}},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"==e?1:-1,r=this.options,o="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(o[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())*i}},_generatePosition:function(e){var n=this.options,i="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(i[0].tagName),o=e.pageX,a=e.pageY;if(this.originalPosition){var s;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();s=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else s=this.containment;e.pageX-this.offset.click.lefts[2]&&(o=s[2]+this.offset.click.left),e.pageY-this.offset.click.top>s[3]&&(a=s[3]+this.offset.click.top)}if(n.grid){var u=n.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY;a=s&&(u-this.offset.click.tops[3])?u-this.offset.click.tops[2])?c-this.offset.click.left=0;c--){var d=i.snapElements[c].left,f=d+i.snapElements[c].width,h=i.snapElements[c].top,p=h+i.snapElements[c].height;if(d-o=c&&a<=d||s>=c&&s<=d||ad)&&(r>=l&&r<=u||o>=l&&o<=u||ru);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,n){var i=t.ui.ddmanager.droppables[e.options.scope]||[],r=n?n.type:null,o=(e.currentItem||e.element).find(":data(droppable)").andSelf();t:for(var a=0;at?0:r.max")[0],p,m=e.each;h.style.cssText="background-color:rgba(1,1,1,.5)",f.rgba=h.style.backgroundColor.indexOf("rgba")>-1,m(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=e.extend(u.prototype,{parse:function(o,a,s,l){if(o===n)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=e(o).css(a),a=n);var d=this,f=e.type(o),h=this._rgba=[];return a!==n&&(o=[o,a,s,l],f="array"),"string"===f?this.parse(i(o)||p._default):"array"===f?(m(c.rgba.props,function(t,e){h[e.idx]=r(o[e.idx],e)}),this):"object"===f?(o instanceof u?m(c,function(t,e){o[e.cache]&&(d[e.cache]=o[e.cache].slice())}):m(c,function(e,n){var i=n.cache;m(n.props,function(t,e){if(!d[i]&&n.to){if("alpha"===t||null==o[t])return;d[i]=n.to(d._rgba)}d[i][e.idx]=r(o[t],e,!0)}),d[i]&&t.inArray(null,d[i].slice(0,3))<0&&(d[i][3]=1,n.from&&(d._rgba=n.from(d[i])))}),this):void 0},is:function(t){var e=u(t),n=!0,r=this;return m(c,function(t,i){var o,a=e[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],m(i.props,function(t,e){if(null!=a[e.idx])return n=a[e.idx]===o[e.idx]})),n}),n},_space:function(){var t=[],e=this;return m(c,function(n,r){e[r.cache]&&t.push(n)}),t.pop()},transition:function(t,e){var n=u(t),i=n._space(),o=c[i],a=0===this.alpha()?u("transparent"):this,s=a[o.cache]||o.to(a._rgba),l=s.slice();return n=n[o.cache],m(o.props,function(t,i){var o=i.idx,a=s[o],u=n[o],c=d[i.type]||{};null!==u&&(null===a?l[o]=u:(c.mod&&(u-a>c.mod/2?a+=c.mod:a-u>c.mod/2&&(a-=c.mod)),l[o]=r((u-a)*e+a,i)))}),this[i](l)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=u(t)._rgba;return u(e.map(n,function(t,e){return(1-r)*i[e]+r*t}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=t[3],o=Math.max(e,n,r),a=Math.min(e,n,r),s=o-a,l=o+a,u=.5*l,c,d;return c=a===o?0:e===o?60*(n-r)/s+360:n===o?60*(r-e)/s+120:60*(e-n)/s+240,d=0===u||1===u?u:u<=.5?s/l:s/(2-l),[Math.round(c)%360,d,u,null==i?1:i]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],r=t[2],i=t[3],a=r<=.5?r*(1+n):r+n-r*n,s=2*r-a;return[Math.round(255*o(s,a,e+1/3)),Math.round(255*o(s,a,e)),Math.round(255*o(s,a,e-1/3)),i]},m(c,function(t,i){var o=i.props,a=i.cache,l=i.to,c=i.from;u.fn[t]=function(t){if(l&&!this[a]&&(this[a]=l(this._rgba)),t===n)return this[a].slice();var i,s=e.type(t),d="array"===s||"object"===s?t:arguments,f=this[a].slice();return m(o,function(t,e){var n=d["object"===s?t:e.idx];null==n&&(n=f[e.idx]),f[e.idx]=r(n,e)}),c?(i=u(c(f)),i[a]=f,i):u(f)},m(o,function(n,r){u.fn[n]||(u.fn[n]=function(i){var o=e.type(i),a="alpha"===n?this._hsla?"hsla":"rgba":t,l=this[a](),u=l[r.idx],c;return"undefined"===o?u:("function"===o&&(i=i.call(this,u),o=e.type(i)),null==i&&r.empty?this:("string"===o&&(c=s.exec(i),c&&(i=u+parseFloat(c[2])*("+"===c[1]?1:-1))),l[r.idx]=i,this[a](l)))})})}),m(a,function(t,n){e.cssHooks[n]={set:function(t,r){var o,a,s="";if("string"!==e.type(r)||(o=i(r))){if(r=u(o||r),!f.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&a&&a.style;)try{s=e.css(a,"backgroundColor"),a=a.parentNode}catch(l){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(c){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=u(t.elem,n),t.end=u(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}),e.cssHooks.borderColor={expand:function(t){var e={};return m(["Top","Right","Bottom","Left"],function(n,r){e["border"+r+"Color"]=t}),e}},p=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function n(){var e=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,n={},r,i;if(e&&e.length&&e[0]&&e[e[0]])for(i=e.length;i--;)r=e[i],"string"==typeof e[r]&&(n[t.camelCase(r)]=e[r]);else for(r in e)"string"==typeof e[r]&&(n[r]=e[r]);return n}function r(e,n){var r={},i,a;for(i in n)a=n[i],e[i]!==a&&(o[i]||!t.fx.step[i]&&isNaN(parseFloat(a))||(r[i]=a));return r}var i=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,n){t.fx.step[n]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,n,t.end),t.setAttr=!0)}}),t.effects.animateClass=function(e,o,a,s){var l=t.speed(o,a,s);return this.queue(function(){var o=t(this),a=o.attr("class")||"",s,u=l.children?o.find("*").andSelf():o;u=u.map(function(){var e=t(this);return{el:e,start:n.call(this)}}),s=function(){t.each(i,function(t,n){e[n]&&o[n+"Class"](e[n])})},s(),u=u.map(function(){return this.end=n.call(this.el[0]),this.diff=r(this.start,this.end),this}),o.attr("class",a),u=u.map(function(){var e=this,n=t.Deferred(),r=jQuery.extend({},l,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,r),n.promise()}),t.when.apply(t,u.get()).done(function(){s(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({_addClass:t.fn.addClass,addClass:function(e,n,r,i){return n?t.effects.animateClass.call(this,{add:e},n,r,i):this._addClass(e)},_removeClass:t.fn.removeClass,removeClass:function(e,n,r,i){return n?t.effects.animateClass.call(this,{remove:e},n,r,i):this._removeClass(e)},_toggleClass:t.fn.toggleClass,toggleClass:function(n,r,i,o,a){return"boolean"==typeof r||r===e?i?t.effects.animateClass.call(this,r?{add:n}:{remove:n},i,o,a):this._toggleClass(n,r):t.effects.animateClass.call(this,{toggle:n},r,i,o)},switchClass:function(e,n,r,i,o){return t.effects.animateClass.call(this,{add:n,remove:e},r,i,o)}})}(),function(){function i(e,n,r,i){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(i=n,r=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(i=r,r=n,n={}),t.isFunction(r)&&(i=r,r=null),n&&t.extend(e,n),r=r||n.duration,e.duration=t.fx.off?0:"number"==typeof r?r:r in t.fx.speeds?t.fx.speeds[r]:t.fx.speeds._default,e.complete=i||n.complete,e}function o(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]&&(!n||!t.effects[e])}t.extend(t.effects,{version:"1.9.2",save:function(t,e){for(var n=0;n
    ").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(r),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),r=e.parent(),"static"===e.css("position")?(r.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,r){n[r]=e.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(i),r.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).focus()),e},setTransition:function(e,n,r,i){return i=i||{},t.each(n,function(t,n){var o=e.cssUnit(n);o[0]>0&&(i[n]=o[0]*r+o[1])}),i}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(o)&&o.call(i[0]),t.isFunction(e)&&e()}var i=t(this),o=r.complete,a=r.mode;(i.is(":hidden")?"hide"===a:"show"===a)?n():s.call(i[0],r,n)}var r=i.apply(this,arguments),o=r.mode,a=r.queue,s=t.effects.effect[r.effect],l=!s&&n&&t.effects[r.effect];return t.fx.off||!s&&!l?o?this[o](r.duration,r.complete):this.each(function(){r.complete&&r.complete.call(this)}):s?a===!1?this.each(e):this.queue(a||"fx",e):l.call(this,{options:r,duration:r.duration,callback:r.complete,mode:r.mode})},_show:t.fn.show,show:function(t){if(o(t))return this._show.apply(this,arguments);var e=i.apply(this,arguments);return e.mode="show",this.effect.call(this,e)},_hide:t.fn.hide,hide:function(t){if(o(t))return this._hide.apply(this,arguments);var e=i.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)},__toggle:t.fn.toggle,toggle:function(e){if(o(e)||"boolean"==typeof e||t.isFunction(e))return this.__toggle.apply(this,arguments);var n=i.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)},cssUnit:function(e){var n=this.css(e),r=[];return t.each(["em","px","%","pt"],function(t,e){n.indexOf(e)>0&&(r=[parseFloat(n),e])}),r}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,n){e[n]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?n(2*t)/2:1-n(t*-2+2)/2}})}()}(jQuery),function(t,e){var n=/up|down|vertical/,r=/up|left|vertical|horizontal/;t.effects.effect.blind=function(e,i){var o=t(this),a=["position","top","bottom","left","right","height","width"],s=t.effects.setMode(o,e.mode||"hide"),l=e.direction||"up",u=n.test(l),c=u?"height":"width",d=u?"top":"left",f=r.test(l),h={},p="show"===s,m,g,v;o.parent().is(".ui-effects-wrapper")?t.effects.save(o.parent(),a):t.effects.save(o,a),o.show(),m=t.effects.createWrapper(o).css({overflow:"hidden"}),g=m[c](),v=parseFloat(m.css(d))||0,h[c]=p?g:0,f||(o.css(u?"bottom":"right",0).css(u?"top":"left","auto").css({position:"absolute"}),h[d]=p?v:g+v),p&&(m.css(c,0),f||m.css(d,v+g)),m.animate(h,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===s&&o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()}})}}(jQuery),function(t,e){t.effects.effect.bounce=function(e,n){var r=t(this),i=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(r,e.mode||"effect"),a="hide"===o,s="show"===o,l=e.direction||"up",u=e.distance,c=e.times||5,d=2*c+(s||a?1:0),f=e.duration/d,h=e.easing,p="up"===l||"down"===l?"top":"left",m="up"===l||"left"===l,g,v,y,b=r.queue(),_=b.length;for((s||a)&&i.push("opacity"),t.effects.save(r,i),r.show(),t.effects.createWrapper(r),u||(u=r["top"===p?"outerHeight":"outerWidth"]()/3),s&&(y={opacity:1},y[p]=0,r.css("opacity",0).css(p,m?2*-u:2*u).animate(y,f,h)),a&&(u/=Math.pow(2,c-1)),y={},y[p]=0,g=0;g1&&b.splice.apply(b,[1,0].concat(b.splice(_,d+1))),r.dequeue()}}(jQuery),function(t,e){t.effects.effect.clip=function(e,n){var r=t(this),i=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(r,e.mode||"hide"),a="show"===o,s=e.direction||"vertical",l="vertical"===s,u=l?"height":"width",c=l?"top":"left",d={},f,h,p;t.effects.save(r,i),r.show(),f=t.effects.createWrapper(r).css({overflow:"hidden"}),h="IMG"===r[0].tagName?f:r,p=h[u](),a&&(h.css(u,0),h.css(c,p/2)),d[u]=a?p:0,d[c]=a?0:p/2,h.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){a||r.hide(),t.effects.restore(r,i),t.effects.removeWrapper(r),n()}})}}(jQuery),function(t,e){t.effects.effect.drop=function(e,n){var r=t(this),i=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(r,e.mode||"hide"),a="show"===o,s=e.direction||"left",l="up"===s||"down"===s?"top":"left",u="up"===s||"left"===s?"pos":"neg",c={opacity:a?1:0},d;t.effects.save(r,i),r.show(),t.effects.createWrapper(r),d=e.distance||r["top"===l?"outerHeight":"outerWidth"](!0)/2,a&&r.css("opacity",0).css(l,"pos"===u?-d:d),c[l]=(a?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+d,r.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&r.hide(),t.effects.restore(r,i),t.effects.removeWrapper(r),n()}})}}(jQuery),function(t,e){t.effects.effect.explode=function(e,n){function r(){h.push(this),h.length===o*a&&i()}function i(){s.css({visibility:"visible"}),t(h).remove(),u||s.hide(),n()}var o=e.pieces?Math.round(Math.sqrt(e.pieces)):3,a=o,s=t(this),l=t.effects.setMode(s,e.mode||"hide"),u="show"===l,c=s.show().css("visibility","hidden").offset(),d=Math.ceil(s.outerWidth()/a),f=Math.ceil(s.outerHeight()/o),h=[],p,m,g,v,y,b;for(p=0;p
    ").css({position:"absolute",visibility:"visible",left:-m*d,top:-p*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:d,height:f,left:g+(u?y*d:0),top:v+(u?b*f:0),opacity:u?0:1}).animate({left:g+(u?0:y*d),top:v+(u?0:b*f),opacity:u?1:0},e.duration||500,e.easing,r)}}(jQuery),function(t,e){t.effects.effect.fade=function(e,n){var r=t(this),i=t.effects.setMode(r,e.mode||"toggle");r.animate({opacity:i},{queue:!1,duration:e.duration,easing:e.easing,complete:n})}}(jQuery),function(t,e){t.effects.effect.fold=function(e,n){var r=t(this),i=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(r,e.mode||"hide"),a="show"===o,s="hide"===o,l=e.size||15,u=/([0-9]+)%/.exec(l),c=!!e.horizFirst,d=a!==c,f=d?["width","height"]:["height","width"],h=e.duration/2,p,m,g={},v={};t.effects.save(r,i),r.show(),p=t.effects.createWrapper(r).css({overflow:"hidden"}),m=d?[p.width(),p.height()]:[p.height(),p.width()],u&&(l=parseInt(u[1],10)/100*m[s?0:1]),a&&p.css(c?{height:0,width:l}:{height:l,width:0}),g[f[0]]=a?m[0]:l,v[f[1]]=a?m[1]:0,p.animate(g,h,e.easing).animate(v,h,e.easing,function(){s&&r.hide(),t.effects.restore(r,i),t.effects.removeWrapper(r),n()})}}(jQuery),function(t,e){t.effects.effect.highlight=function(e,n){var r=t(this),i=["backgroundImage","backgroundColor","opacity"],o=t.effects.setMode(r,e.mode||"show"),a={backgroundColor:r.css("backgroundColor")};"hide"===o&&(a.opacity=0),t.effects.save(r,i),r.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&r.hide(),t.effects.restore(r,i),n()}})}}(jQuery),function(t,e){t.effects.effect.pulsate=function(e,n){var r=t(this),i=t.effects.setMode(r,e.mode||"show"),o="show"===i,a="hide"===i,s=o||"hide"===i,l=2*(e.times||5)+(s?1:0),u=e.duration/l,c=0,d=r.queue(),f=d.length,h;for(!o&&r.is(":visible")||(r.css("opacity",0).show(),c=1),h=1;h1&&d.splice.apply(d,[1,0].concat(d.splice(f,l+1))),r.dequeue()}}(jQuery),function(t,e){t.effects.effect.puff=function(e,n){var r=t(this),i=t.effects.setMode(r,e.mode||"hide"),o="hide"===i,a=parseInt(e.percent,10)||150,s=a/100,l={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:i,complete:n,percent:o?a:100,from:o?l:{height:l.height*s,width:l.width*s,outerHeight:l.outerHeight*s,outerWidth:l.outerWidth*s}}),r.effect(e)},t.effects.effect.scale=function(e,n){var r=t(this),i=t.extend(!0,{},e),o=t.effects.setMode(r,e.mode||"effect"),a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===o?0:100),s=e.direction||"both",l=e.origin,u={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},c={y:"horizontal"!==s?a/100:1,x:"vertical"!==s?a/100:1};i.effect="size",i.queue=!1,i.complete=n,"effect"!==o&&(i.origin=l||["middle","center"],i.restore=!0),i.from=e.from||("show"===o?{height:0,width:0,outerHeight:0,outerWidth:0}:u),i.to={height:u.height*c.y,width:u.width*c.x,outerHeight:u.outerHeight*c.y,outerWidth:u.outerWidth*c.x},i.fade&&("show"===o&&(i.from.opacity=0,i.to.opacity=1),"hide"===o&&(i.from.opacity=1,i.to.opacity=0)),r.effect(i)},t.effects.effect.size=function(e,n){var r,i,o,a=t(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],u=["width","height","overflow"],c=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],f=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=t.effects.setMode(a,e.mode||"effect"),p=e.restore||"effect"!==h,m=e.scale||"both",g=e.origin||["middle","center"],v=a.css("position"),y=p?s:l,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===h&&a.show(),r={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===e.mode&&"show"===h?(a.from=e.to||b,a.to=e.from||r):(a.from=e.from||("show"===h?b:r),a.to=e.to||("hide"===h?b:r)),o={from:{y:a.from.height/r.height,x:a.from.width/r.width},to:{y:a.to.height/r.height,x:a.to.width/r.width}},"box"!==m&&"both"!==m||(o.from.y!==o.to.y&&(y=y.concat(d),a.from=t.effects.setTransition(a,d,o.from.y,a.from),a.to=t.effects.setTransition(a,d,o.to.y,a.to)),o.from.x!==o.to.x&&(y=y.concat(f),a.from=t.effects.setTransition(a,f,o.from.x,a.from),a.to=t.effects.setTransition(a,f,o.to.x,a.to))),"content"!==m&&"both"!==m||o.from.y!==o.to.y&&(y=y.concat(c).concat(u),a.from=t.effects.setTransition(a,c,o.from.y,a.from),a.to=t.effects.setTransition(a,c,o.to.y,a.to)),t.effects.save(a,y),a.show(),t.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),g&&(i=t.effects.getBaseline(g,r),a.from.top=(r.outerHeight-a.outerHeight())*i.y,a.from.left=(r.outerWidth-a.outerWidth())*i.x,a.to.top=(r.outerHeight-a.to.outerHeight)*i.y,a.to.left=(r.outerWidth-a.to.outerWidth)*i.x),a.css(a.from),"content"!==m&&"both"!==m||(d=d.concat(["marginTop","marginBottom"]).concat(c),f=f.concat(["marginLeft","marginRight"]),u=s.concat(d).concat(f),a.find("*[width]").each(function(){var n=t(this),r={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};p&&t.effects.save(n,u),n.from={height:r.height*o.from.y,width:r.width*o.from.x,outerHeight:r.outerHeight*o.from.y,outerWidth:r.outerWidth*o.from.x},n.to={height:r.height*o.to.y,width:r.width*o.to.x,outerHeight:r.height*o.to.y,outerWidth:r.width*o.to.x},o.from.y!==o.to.y&&(n.from=t.effects.setTransition(n,d,o.from.y,n.from),n.to=t.effects.setTransition(n,d,o.to.y,n.to)),o.from.x!==o.to.x&&(n.from=t.effects.setTransition(n,f,o.from.x,n.from),n.to=t.effects.setTransition(n,f,o.to.x,n.to)),n.css(n.from),n.animate(n.to,e.duration,e.easing,function(){p&&t.effects.restore(n,u)})})),a.animate(a.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===h&&a.hide(),t.effects.restore(a,y),p||("static"===v?a.css({position:"relative",top:a.to.top,left:a.to.left}):t.each(["top","left"],function(t,e){a.css(e,function(e,n){var r=parseInt(n,10),i=t?a.to.left:a.to.top;return"auto"===n?i+"px":r+i+"px"})})),t.effects.removeWrapper(a),n()}})}}(jQuery),function(t,e){t.effects.effect.shake=function(e,n){var r=t(this),i=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(r,e.mode||"effect"),a=e.direction||"left",s=e.distance||20,l=e.times||3,u=2*l+1,c=Math.round(e.duration/u),d="up"===a||"down"===a?"top":"left",f="up"===a||"left"===a,h={},p={},m={},g,v=r.queue(),y=v.length;for(t.effects.save(r,i),r.show(),t.effects.createWrapper(r),h[d]=(f?"-=":"+=")+s,p[d]=(f?"+=":"-=")+2*s,m[d]=(f?"-=":"+=")+2*s,r.animate(h,c,e.easing),g=1;g1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),r.dequeue()}}(jQuery),function(t,e){t.effects.effect.slide=function(e,n){var r=t(this),i=["position","top","bottom","left","right","width","height"],o=t.effects.setMode(r,e.mode||"show"),a="show"===o,s=e.direction||"left",l="up"===s||"down"===s?"top":"left",u="up"===s||"left"===s,c,d={};t.effects.save(r,i),r.show(),c=e.distance||r["top"===l?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(r).css({overflow:"hidden"}),a&&r.css(l,u?isNaN(c)?"-"+c:-c:c),d[l]=(a?u?"+=":"-=":u?"-=":"+=")+c,r.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&r.hide(),t.effects.restore(r,i),t.effects.removeWrapper(r),n()}})}}(jQuery),function(t,e){t.effects.effect.transfer=function(e,n){var r=t(this),i=t(e.to),o="fixed"===i.css("position"),a=t("body"),s=o?a.scrollTop():0,l=o?a.scrollLeft():0,u=i.offset(),c={top:u.top-s,left:u.left-l,height:i.innerHeight(),width:i.innerWidth()},d=r.offset(),f=t('
    ').appendTo(document.body).addClass(e.className).css({top:d.top-s,left:d.left-l,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){f.remove(),n()})}}(jQuery),function(t,e){var n=!1;t.widget("ui.menu",{version:"1.9.2",defaultElement:"
      ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var r=t(e.target).closest(".ui-menu-item");!n&&r.not(".ui-state-disabled").length&&(n=!0,this.select(e),r.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var n=t(e.currentTarget);n.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),n=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var r,i,o,a,s,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,i=this.previousFilter||"",o=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),o===i?a=!0:o=i+o,s=new RegExp("^"+n(o),"i"),r=this.activeMenu.children(".ui-menu-item").filter(function(){return s.test(t(this).children("a").text())}),r=a&&r.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):r,r.length||(o=String.fromCharCode(e.keyCode),s=new RegExp("^"+n(o),"i"),r=this.activeMenu.children(".ui-menu-item").filter(function(){return s.test(t(this).children("a").text())})),r.length?(this.focus(e,r),r.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n=this.options.icons.submenu,r=this.element.find(this.options.menus);r.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),r=e.prev("a"),i=t("").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);r.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",r.attr("id"))}),e=r.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-—–\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(t,e){var n,r;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),r=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=e.children(".ui-menu"),n.length&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,r,i,o,a,s;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,i=e.offset().top-this.activeMenu.offset().top-n-r,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=e.height(),i<0?this.activeMenu.scrollTop(o+i):i+s>a&&this.activeMenu.scrollTop(o+i-a+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var r=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(e),this.activeMenu=r},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e); -}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var r;this.active&&(r="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),r&&r.length&&this.active||(r=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(n,r)},nextPage:function(e){var n,r,i;return this.active?void(this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-r-i<0}),this.focus(e,n)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var n,r,i;return this.active?void(this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-r+i>0}),this.focus(e,n)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()
    ").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return t===e?this._value():(this._setOption("value",t),this)},_setOption:function(t,e){"value"===t&&(this.options.value=e,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),this._super(t,e)},_value:function(){var t=this.options.value;return"number"!=typeof t&&(t=0),Math.min(this.options.max,Math.max(this.min,t))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var t=this.value(),e=this._percentage();this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),this.valueDiv.toggle(t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.attr("aria-valuenow",t)}})}(jQuery),function(t,e){t.widget("ui.resizable",t.ui.mouse,{version:"1.9.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var e=this,n=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t('
    ').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=n.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var r=this.handles.split(",");this.handles={};for(var i=0;i
    ');s.css({zIndex:n.zIndex}),"se"==o&&s.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[o]=".ui-resizable-"+o,this.element.append(s)}}this._renderAxis=function(e){e=e||this.element;for(var n in this.handles){if(this.handles[n].constructor==String&&(this.handles[n]=t(this.handles[n],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var r=t(this.handles[n],this.element),i=0;i=/sw|ne|nw|se|n|s/.test(n)?r.outerHeight():r.outerWidth();var o=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");e.css(o,i),this._proportionallyResize()}t(this.handles[n]).length}},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!e.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=t&&t[1]?t[1]:"se"}}),n.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){n.disabled||(t(this).removeClass("ui-resizable-autohide"),e._handles.show())}).mouseleave(function(){n.disabled||e.resizing||(t(this).addClass("ui-resizable-autohide"),e._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var n=this.element;this.originalElement.css({position:n.css("position"),width:n.outerWidth(),height:n.outerHeight(),top:n.css("top"),left:n.css("left")}).insertAfter(n),n.remove()}return this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(e){var n=!1;for(var r in this.handles)t(this.handles[r])[0]==e.target&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var r=this.options,i=this.element.position(),o=this.element;this.resizing=!0,this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()},(o.is(".ui-draggable")||/absolute/.test(o.css("position")))&&o.css({position:"absolute",top:i.top,left:i.left}),this._renderProxy();var a=n(this.helper.css("left")),s=n(this.helper.css("top"));r.containment&&(a+=t(r.containment).scrollLeft()||0,s+=t(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:a,top:s},this.size=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.originalPosition={left:a,top:s},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=t(".ui-resizable-"+this.axis).css("cursor");return t("body").css("cursor","auto"==l?this.axis+"-resize":l),o.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(t){var e=this.helper,n=this.options,r={},i=this,o=this.originalMousePosition,a=this.axis,s=t.pageX-o.left||0,l=t.pageY-o.top||0,u=this._change[a];if(!u)return!1;var c=u.apply(this,[t,s,l]);return this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(c=this._updateRatio(c,t)),c=this._respectSize(c,t),this._propagate("resize",t),e.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(c),this._trigger("resize",t,this.ui()),!1},_mouseStop:function(e){this.resizing=!1;var n=this.options,r=this;if(this._helper){var i=this._proportionallyResizeElements,o=i.length&&/textarea/i.test(i[0].nodeName),a=o&&t.ui.hasScroll(i[0],"left")?0:r.sizeDiff.height,s=o?0:r.sizeDiff.width,l={width:r.helper.width()-s,height:r.helper.height()-a},u=parseInt(r.element.css("left"),10)+(r.position.left-r.originalPosition.left)||null,c=parseInt(r.element.css("top"),10)+(r.position.top-r.originalPosition.top)||null;n.animate||this.element.css(t.extend(l,{top:c,left:u})),r.helper.height(r.size.height),r.helper.width(r.size.width),this._helper&&!n.animate&&this._proportionallyResize()}return t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e=this.options,n,i,o,a,s;s={minWidth:r(e.minWidth)?e.minWidth:0,maxWidth:r(e.maxWidth)?e.maxWidth:1/0,minHeight:r(e.minHeight)?e.minHeight:0,maxHeight:r(e.maxHeight)?e.maxHeight:1/0},(this._aspectRatio||t)&&(n=s.minHeight*this.aspectRatio,o=s.minWidth/this.aspectRatio,i=s.maxHeight*this.aspectRatio,a=s.maxWidth/this.aspectRatio,n>s.minWidth&&(s.minWidth=n),o>s.minHeight&&(s.minHeight=o),it.width,c=r(t.height)&&i.minHeight&&i.minHeight>t.height;u&&(t.width=i.minWidth),c&&(t.height=i.minHeight),s&&(t.width=i.maxWidth),l&&(t.height=i.maxHeight);var d=this.originalPosition.left+this.originalSize.width,f=this.position.top+this.size.height,h=/sw|nw|w/.test(a),p=/nw|ne|n/.test(a);u&&h&&(t.left=d-i.minWidth),s&&h&&(t.left=d-i.maxWidth),c&&p&&(t.top=f-i.minHeight),l&&p&&(t.top=f-i.maxHeight);var m=!t.width&&!t.height;return m&&!t.left&&t.top?t.top=null:m&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){var e=this.options;if(this._proportionallyResizeElements.length)for(var n=this.helper||this.element,r=0;r
    ');var r=t.ui.ie6?1:0,i=t.ui.ie6?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+i,height:this.element.outerHeight()+i,position:"absolute",left:this.elementOffset.left-r+"px",top:this.elementOffset.top-r+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(t,e,n){return{width:this.originalSize.width+e}},w:function(t,e,n){var r=this.options,i=this.originalSize,o=this.originalPosition;return{left:o.left+e,width:i.width-e}},n:function(t,e,n){var r=this.options,i=this.originalSize,o=this.originalPosition;return{top:o.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,r){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,r]))},sw:function(e,n,r){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,r]))},ne:function(e,n,r){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,r]))},nw:function(e,n,r){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,r]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!=e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","alsoResize",{start:function(e,n){var r=t(this).data("resizable"),i=r.options,o=function(e){t(e).each(function(){var e=t(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?o(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],o(i.alsoResize)):t.each(i.alsoResize,function(t){o(t)})},resize:function(e,n){var r=t(this).data("resizable"),i=r.options,o=r.originalSize,a=r.originalPosition,s={height:r.size.height-o.height||0,width:r.size.width-o.width||0,top:r.position.top-a.top||0,left:r.position.left-a.left||0},l=function(e,r){t(e).each(function(){var e=t(this),i=t(this).data("resizable-alsoresize"),o={},a=r&&r.length?r:e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var n=(i[e]||0)+(s[e]||0);n&&n>=0&&(o[e]=n||null)}),e.css(o)})};"object"!=typeof i.alsoResize||i.alsoResize.nodeType?l(i.alsoResize):t.each(i.alsoResize,function(t,e){l(t,e)})},stop:function(e,n){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","animate",{stop:function(e,n){var r=t(this).data("resizable"),i=r.options,o=r._proportionallyResizeElements,a=o.length&&/textarea/i.test(o[0].nodeName),s=a&&t.ui.hasScroll(o[0],"left")?0:r.sizeDiff.height,l=a?0:r.sizeDiff.width,u={width:r.size.width-l,height:r.size.height-s},c=parseInt(r.element.css("left"),10)+(r.position.left-r.originalPosition.left)||null,d=parseInt(r.element.css("top"),10)+(r.position.top-r.originalPosition.top)||null;r.element.animate(t.extend(u,d&&c?{top:d,left:c}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var n={width:parseInt(r.element.css("width"),10),height:parseInt(r.element.css("height"),10),top:parseInt(r.element.css("top"),10),left:parseInt(r.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:n.width,height:n.height}),r._updateCache(n),r._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(e,r){var i=t(this).data("resizable"),o=i.options,a=i.element,s=o.containment,l=s instanceof t?s.get(0):/parent/.test(s)?a.parent().get(0):s;if(l)if(i.containerElement=t(l),/document/.test(s)||s==document)i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0},i.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight};else{var u=t(l),c=[];t(["Top","Right","Left","Bottom"]).each(function(t,e){c[t]=n(u.css("padding"+e))}),i.containerOffset=u.offset(),i.containerPosition=u.position(),i.containerSize={height:u.innerHeight()-c[3],width:u.innerWidth()-c[1]};var d=i.containerOffset,f=i.containerSize.height,h=i.containerSize.width,p=t.ui.hasScroll(l,"left")?l.scrollWidth:h,m=t.ui.hasScroll(l)?l.scrollHeight:f;i.parentData={element:l,left:d.left,top:d.top,width:p,height:m}}},resize:function(e,n){var r=t(this).data("resizable"),i=r.options,o=r.containerSize,a=r.containerOffset,s=r.size,l=r.position,u=r._aspectRatio||e.shiftKey,c={top:0,left:0},d=r.containerElement;d[0]!=document&&/static/.test(d.css("position"))&&(c=a),l.left<(r._helper?a.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-a.left:r.position.left-c.left),u&&(r.size.height=r.size.width/r.aspectRatio),r.position.left=i.helper?a.left:0),l.top<(r._helper?a.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-a.top:r.position.top),u&&(r.size.width=r.size.height*r.aspectRatio),r.position.top=r._helper?a.top:0),r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top;var f=Math.abs((r._helper?r.offset.left-c.left:r.offset.left-c.left)+r.sizeDiff.width),h=Math.abs((r._helper?r.offset.top-c.top:r.offset.top-a.top)+r.sizeDiff.height),p=r.containerElement.get(0)==r.element.parent().get(0),m=/relative|absolute/.test(r.containerElement.css("position"));p&&m&&(f-=r.parentData.left),f+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-f,u&&(r.size.height=r.size.width/r.aspectRatio)),h+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-h,u&&(r.size.width=r.size.height*r.aspectRatio))},stop:function(e,n){var r=t(this).data("resizable"),i=r.options,o=r.position,a=r.containerOffset,s=r.containerPosition,l=r.containerElement,u=t(r.helper),c=u.offset(),d=u.outerWidth()-r.sizeDiff.width,f=u.outerHeight()-r.sizeDiff.height;r._helper&&!i.animate&&/relative/.test(l.css("position"))&&t(this).css({left:c.left-s.left-a.left,width:d,height:f}),r._helper&&!i.animate&&/static/.test(l.css("position"))&&t(this).css({left:c.left-s.left-a.left,width:d,height:f})}}),t.ui.plugin.add("resizable","ghost",{start:function(e,n){var r=t(this).data("resizable"),i=r.options,o=r.size;r.ghost=r.originalElement.clone(),r.ghost.css({opacity:.25,display:"block",position:"relative",height:o.height,width:o.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),r.ghost.appendTo(r.helper)},resize:function(e,n){var r=t(this).data("resizable"),i=r.options;r.ghost&&r.ghost.css({position:"relative",height:r.size.height,width:r.size.width})},stop:function(e,n){var r=t(this).data("resizable"),i=r.options;r.ghost&&r.helper&&r.helper.get(0).removeChild(r.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(e,n){var r=t(this).data("resizable"),i=r.options,o=r.size,a=r.originalSize,s=r.originalPosition,l=r.axis,u=i._aspectRatio||e.shiftKey;i.grid="number"==typeof i.grid?[i.grid,i.grid]:i.grid;var c=Math.round((o.width-a.width)/(i.grid[0]||1))*(i.grid[0]||1),d=Math.round((o.height-a.height)/(i.grid[1]||1))*(i.grid[1]||1);/^(se|s|e)$/.test(l)?(r.size.width=a.width+c,r.size.height=a.height+d):/^(ne)$/.test(l)?(r.size.width=a.width+c,r.size.height=a.height+d,r.position.top=s.top-d):/^(sw)$/.test(l)?(r.size.width=a.width+c,r.size.height=a.height+d,r.position.left=s.left-c):(r.size.width=a.width+c,r.size.height=a.height+d,r.position.top=s.top-d,r.position.left=s.left-c)}});var n=function(t){return parseInt(t,10)||0},r=function(t){return!isNaN(parseInt(t,10))}}(jQuery),function(t,e){t.widget("ui.selectable",t.ui.mouse,{version:"1.9.2",widgetEventPrefix:"selectable",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var e=this;this.element.addClass("ui-selectable"),this.dragged=!1;var n;this.refresh=function(){n=t(e.options.filter,e.element[0]),n.addClass("ui-selectee"),n.each(function(){var e=t(this),n=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:n.left,top:n.top,right:n.left+e.outerWidth(),bottom:n.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=n.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
    ")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var n=this;if(this.opos=[e.pageX,e.pageY],!this.options.disabled){var r=this.options;this.selectees=t(r.filter,this.element[0]),this._trigger("start",e),t(r.appendTo).append(this.helper),this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=t.data(this,"selectable-item");r.startselected=!0,e.metaKey||e.ctrlKey||(r.$element.removeClass("ui-selected"),r.selected=!1,r.$element.addClass("ui-unselecting"),r.unselecting=!0,n._trigger("unselecting",e,{unselecting:r.element}))}),t(e.target).parents().andSelf().each(function(){var r=t.data(this,"selectable-item");if(r){var i=!e.metaKey&&!e.ctrlKey||!r.$element.hasClass("ui-selected");return r.$element.removeClass(i?"ui-unselecting":"ui-selected").addClass(i?"ui-selecting":"ui-unselecting"),r.unselecting=!i,r.selecting=i,r.selected=i,i?n._trigger("selecting",e,{selecting:r.element}):n._trigger("unselecting",e,{unselecting:r.element}),!1}})}},_mouseDrag:function(e){var n=this;if(this.dragged=!0,!this.options.disabled){var r=this.options,i=this.opos[0],o=this.opos[1],a=e.pageX,s=e.pageY;if(i>a){var l=a;a=i,i=l}if(o>s){var l=s;s=o,o=l}return this.helper.css({left:i,top:o,width:a-i,height:s-o}),this.selectees.each(function(){var l=t.data(this,"selectable-item");if(l&&l.element!=n.element[0]){var u=!1;"touch"==r.tolerance?u=!(l.left>a||l.rights||l.bottomi&&l.righto&&l.bottom").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===i.range||"max"===i.range?" ui-slider-range-"+i.range:""))),r=i.values&&i.values.length||1,e=o.length;en&&(i=n,o=t(this),a=e)}),d.range===!0&&this.values(1)===d.min&&(a+=1,o=t(this.handles[a])),s=this._start(e,a),s!==!1&&(this._mouseSliding=!0,this._handleIndex=a,o.addClass("ui-state-active").focus(),l=o.offset(),u=!t(e.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-o.width()/2,top:e.pageY-l.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,r,i,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),r=n/e,r>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_start:function(t,e){var n={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("start",t,n)},_slide:function(t,e,n){var r,i,o;this.options.values&&this.options.values.length?(r=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&n>r||1===e&&n1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,n,r,i,o,a=this.options.range,s=this.options,l=this,u=!this._animateOff&&s.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(r){n=(l.values(r)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[u?"animate":"css"](c,s.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===r&&l.range.stop(1,1)[u?"animate":"css"]({left:n+"%"},s.animate),1===r&&l.range[u?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===r&&l.range.stop(1,1)[u?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&l.range[u?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n}):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[u?"animate":"css"](c,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:s.animate}),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:s.animate}))}})}(jQuery),function(t,e){t.widget("ui.sortable",t.ui.mouse,{version:"1.9.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display"))),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,n){"disabled"===e?(this.options[e]=n,this.widget().toggleClass("ui-sortable-disabled",!!n)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,n){var r=this;if(this.reverting)return!1;if(this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(e);var i=null,o=t(e.target).parents().each(function(){if(t.data(this,r.widgetName+"-item")==r)return i=t(this),!1});if(t.data(e.target,r.widgetName+"-item")==r&&(i=t(e.target)),!i)return!1;if(this.options.handle&&!n){var a=!1;if(t(this.options.handle,i).find("*").andSelf().each(function(){this==e.target&&(a=!0)}),!a)return!1}return this.currentItem=i,this._removeCurrentsFromItems(),!0},_mouseStart:function(e,n,r){var i=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),i.containment&&this._setContainment(),i.cursor&&(t("body").css("cursor")&&(this._storedCursor=t("body").css("cursor")),t("body").css("cursor",i.cursor)),i.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",i.opacity)),i.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",i.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(var o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var n=this.options,r=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--){var o=this.items[i],a=o.item[0],s=this._intersectsWithPointer(o);if(s&&o.instance===this.currentContainer&&!(a==this.currentItem[0]||this.placeholder[1==s?"next":"prev"]()[0]==a||t.contains(this.placeholder[0],a)||"semi-dynamic"==this.options.type&&t.contains(this.element[0],a))){if(this.direction=1==s?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(o))break;this._rearrange(e,o),this._trigger("change",e,this._uiHash());break}}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var r=this,i=this.placeholder.offset();this.reverting=!0,t(this.helper).animate({left:i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){r._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);n&&r.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!r.length&&e.key&&r.push(e.key+"="),r.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},n.each(function(){r.push(t(e.item||this).attr(e.attribute||"id")||"")}),r},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,o=t.left,a=o+t.width,s=t.top,l=s+t.height,u=this.offset.click.top,c=this.offset.click.left,d=r+u>s&&r+uo&&e+ct[this.floating?"width":"height"]?d:o0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var n=[],r=[],i=this._connectWith();if(i&&e)for(var o=i.length-1;o>=0;o--)for(var a=t(i[o]),s=a.length-1;s>=0;s--){var l=t.data(a[s],this.widgetName);l&&l!=this&&!l.options.disabled&&r.push([t.isFunction(l.options.items)?l.options.items.call(l.element):t(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}r.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var o=r.length-1;o>=0;o--)r[o][0].each(function(){n.push(this)});return t(n)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var n=0;n=0;o--)for(var a=t(i[o]),s=a.length-1;s>=0;s--){var l=t.data(a[s],this.widgetName);l&&l!=this&&!l.options.disabled&&(r.push([t.isFunction(l.options.items)?l.options.items.call(l.element[0],e,{item:this.currentItem}):t(l.options.items,l.element),l]),this.containers.push(l))}for(var o=r.length-1;o>=0;o--)for(var u=r[o][1],c=r[o][0],s=0,d=c.length;s=0;n--){var r=this.items[n];if(r.instance==this.currentContainer||!this.currentContainer||r.item[0]==this.currentItem[0]){var i=this.options.toleranceElement?t(this.options.toleranceElement,r.item):r.item;e||(r.width=i.outerWidth(),r.height=i.outerHeight());var o=i.offset();r.left=o.left,r.top=o.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var n=this.containers.length-1;n>=0;n--){var o=this.containers[n].element.offset();this.containers[n].containerCache.left=o.left,this.containers[n].containerCache.top=o.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight()}return this},_createPlaceholder:function(e){e=e||this;var n=e.options;if(!n.placeholder||n.placeholder.constructor==String){var r=n.placeholder;n.placeholder={element:function(){var n=t(document.createElement(e.currentItem[0].nodeName)).addClass(r||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return r||(n.style.visibility="hidden"),n},update:function(t,i){r&&!n.forcePlaceholderSize||(i.height()||i.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),i.width()||i.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}}e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){for(var n=null,r=null,i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(n&&t.contains(this.containers[i].element[0],n.element[0]))continue;n=this.containers[i],r=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(n)if(1===this.containers.length)this.containers[r]._trigger("over",e,this._uiHash(this)),this.containers[r].containerCache.over=1;else{for(var o=1e4,a=null,s=this.containers[r].floating?"left":"top",l=this.containers[r].floating?"width":"height",u=this.positionAbs[s]+this.offset.click[s],c=this.items.length-1;c>=0;c--)if(t.contains(this.containers[r].element[0],this.items[c].item[0])&&this.items[c].item[0]!=this.currentItem[0]){var d=this.items[c].item.offset()[s],f=!1;Math.abs(d-u)>Math.abs(d+this.items[c][l]-u)&&(f=!0,d+=this.items[c][l]),Math.abs(d-u)this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid)){var s=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1];a=this.containment&&(s-this.offset.click.topthis.containment[3])?s-this.offset.click.topthis.containment[2])?l-this.offset.click.left=0;i--)n||r.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedCursor&&t("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!n){this._trigger("beforeStop",e,this._uiHash());for(var i=0;i",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},n=this.element;return t.each(["min","max","step"],function(t,r){var i=n.attr(r);void 0!==i&&i.length&&(e[r]=i)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function n(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=r,this._delay(function(){this.previous=r}))}var r;r=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return this._start(e)!==!1&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var n=this.options,r=t.ui.keyCode;switch(e.keyCode){case r.UP:return this._repeat(null,1,e),!0;case r.DOWN:return this._repeat(null,-1,e),!0;case r.PAGE_UP:return this._repeat(null,n.page,e),!0;case r.PAGE_DOWN:return this._repeat(null,-n.page,e),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""},_start:function(t){return!(!this.spinning&&this._trigger("start",t)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,n)},t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:n})===!1||(this._value(n),this.counter++)},_increment:function(e){var n=this.options.incremental;return n?t.isFunction(n)?n(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return n===-1?0:e.length-n-1},_adjustValue:function(t){var e,n,r=this.options;return e=null!==r.min?r.min:0,n=t-e,n=Math.round(n/r.step)*r.step,t=e+n,t=parseFloat(t.toFixed(this._precision())),null!==r.max&&t>r.max?r.max:null!==r.min&&t1&&t.href.replace(o,"")===location.href.replace(o,"").replace(/\s/g,"%20")}var i=0,o=/#.*$/;t.widget("ui.tabs",{version:"1.9.2",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,n=this.options,r=n.active,i=location.hash.substring(1);this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){ -t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),null===r&&(i&&this.tabs.each(function(e,n){if(t(n).attr("aria-controls")===i)return r=e,!1}),null===r&&(r=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==r&&r!==-1||(r=!!this.tabs.length&&0)),r!==!1&&(r=this.tabs.index(this.tabs.eq(r)),r===-1&&(r=!n.collapsible&&0)),n.active=r,!n.collapsible&&n.active===!1&&this.anchors.length&&(n.active=0),t.isArray(n.disabled)&&(n.disabled=t.unique(n.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(this.options.active):this.active=t(),this._refresh(),this.active.length&&this.load(n.active)},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var n=t(this.document[0].activeElement).closest("li"),r=this.tabs.index(n),i=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:r++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:i=!1,r--;break;case t.ui.keyCode.END:r=this.anchors.length-1;break;case t.ui.keyCode.HOME:r=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(r);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(r!==this.options.active&&r);default:return}e.preventDefault(),clearTimeout(this.activating),r=this._focusNextTab(r,i),e.ctrlKey||(n.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",r)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,n){function r(){return e>i&&(e=0),e<0&&(e=i),e}for(var i=this.tabs.length-1;t.inArray(r(),this.options.disabled)!==-1;)e=n?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+n()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,n=this.tablist.children(":has(a[href])");e.disabled=t.map(n.filter(".ui-state-disabled"),function(t){return n.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(n,i){var o,a,s,l=t(i).uniqueId().attr("id"),u=t(i).closest("li"),c=u.attr("aria-controls");r(i)?(o=i.hash,a=e.element.find(e._sanitizeSelector(o))):(s=e._tabId(u),o="#"+s,a=e.element.find(o),a.length||(a=e._createPanel(s),a.insertAfter(e.panels[n-1]||e.tablist)),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&u.data("ui-tabs-aria-controls",c),u.attr({"aria-controls":o.substring(1),"aria-labelledby":l}),a.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("
    ").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var n=0,r;r=this.tabs[n];n++)e===!0||t.inArray(n,e)!==-1?t(r).addClass("ui-state-disabled").attr("aria-disabled","true"):t(r).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var n={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,r,i=this.element.parent();"fill"===e?(t.support.minHeight||(r=i.css("overflow"),i.css("overflow","hidden")),n=i.height(),this.element.siblings(":visible").each(function(){var e=t(this),r=e.css("position");"absolute"!==r&&"fixed"!==r&&(n-=e.outerHeight(!0))}),r&&i.css("overflow",r),this.element.children().not(this.panels).each(function(){n-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,n-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.panels.each(function(){n=Math.max(n,t(this).height("").height())}).height(n))},_eventHandler:function(e){var n=this.options,r=this.active,i=t(e.currentTarget),o=i.closest("li"),a=o[0]===r[0],s=a&&n.collapsible,l=s?t():this._getPanelForTab(o),u=r.length?this._getPanelForTab(r):t(),c={oldTab:r,oldPanel:u,newTab:s?t():o,newPanel:l};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!n.collapsible||this._trigger("beforeActivate",e,c)===!1||(n.active=!s&&this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,n){function r(){o.running=!1,o._trigger("activate",e,n)}function i(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,r):(a.show(),r())}var o=this,a=n.newPanel,s=n.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),i()}):(n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),i()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),n.oldTab.attr("aria-selected","false"),a.length&&s.length?n.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr({"aria-expanded":"true","aria-hidden":"false"}),n.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var n,r=this._findActive(e);r[0]!==this.active[0]&&(r.length||(r=this.active),n=r.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),n=e.data("ui-tabs-aria-controls");n?e.attr("aria-controls",n):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(n){var r=this.options.disabled;r!==!1&&(n===e?r=!1:(n=this._getIndex(n),r=t.isArray(r)?t.map(r,function(t){return t!==n?t:null}):t.map(this.tabs,function(t,e){return e!==n?e:null})),this._setupDisabled(r))},disable:function(n){var r=this.options.disabled;if(r!==!0){if(n===e)r=!0;else{if(n=this._getIndex(n),t.inArray(n,r)!==-1)return;r=t.isArray(r)?t.merge([n],r).sort():[n]}this._setupDisabled(r)}},load:function(e,n){e=this._getIndex(e);var i=this,o=this.tabs.eq(e),a=o.find(".ui-tabs-anchor"),s=this._getPanelForTab(o),l={tab:o,panel:s};r(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,n,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(o.addClass("ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){s.html(t),i._trigger("load",n,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&i.panels.stop(!1,!0),o.removeClass("ui-tabs-loading"),s.removeAttr("aria-busy"),t===i.xhr&&delete i.xhr},1)})))},_ajaxSettings:function(e,n,r){var i=this;return{url:e.attr("href"),beforeSend:function(e,o){return i._trigger("beforeLoad",n,t.extend({jqXHR:e,ajaxSettings:o},r))}}},_getPanelForTab:function(e){var n=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),t.uiBackCompat!==!1&&(t.ui.tabs.prototype._ui=function(t,e){return{tab:t,panel:e,index:this.anchors.index(t)}},t.widget("ui.tabs",t.ui.tabs,{url:function(t,e){this.anchors.eq(t).attr("href",e)}}),t.widget("ui.tabs",t.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var e=this;this._on({tabsbeforeload:function(n,r){return t.data(r.tab[0],"cache.tabs")?void n.preventDefault():void r.jqXHR.success(function(){e.options.cache&&t.data(r.tab[0],"cache.tabs",!0)})}})},_ajaxSettings:function(e,n,r){var i=this.options.ajaxOptions;return t.extend({},i,{error:function(t,e){try{i.error(t,e,r.tab.closest("li").index(),r.tab[0])}catch(n){}}},this._superApply(arguments))},_setOption:function(t,e){"cache"===t&&e===!1&&this.anchors.removeData("cache.tabs"),this._super(t,e)},_destroy:function(){this.anchors.removeData("cache.tabs"),this._super()},url:function(t){this.anchors.eq(t).removeData("cache.tabs"),this._superApply(arguments)}}),t.widget("ui.tabs",t.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),t.widget("ui.tabs",t.ui.tabs,{options:{spinner:"Loading…"},_create:function(){this._super(),this._on({tabsbeforeload:function(t,e){if(t.target===this.element[0]&&this.options.spinner){var n=e.tab.find("span"),r=n.html();n.html(this.options.spinner),e.jqXHR.complete(function(){n.html(r)})}}})}}),t.widget("ui.tabs",t.ui.tabs,{options:{enable:null,disable:null},enable:function(e){var n=this.options,r;(e&&n.disabled===!0||t.isArray(n.disabled)&&t.inArray(e,n.disabled)!==-1)&&(r=!0),this._superApply(arguments),r&&this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]))},disable:function(e){var n=this.options,r;(e&&n.disabled===!1||t.isArray(n.disabled)&&t.inArray(e,n.disabled)===-1)&&(r=!0),this._superApply(arguments),r&&this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}}),t.widget("ui.tabs",t.ui.tabs,{options:{add:null,remove:null,tabTemplate:"
  • #{label}
  • "},add:function(n,r,i){i===e&&(i=this.anchors.length);var o,a,s=this.options,l=t(s.tabTemplate.replace(/#\{href\}/g,n).replace(/#\{label\}/g,r)),u=n.indexOf("#")?this._tabId(l):n.replace("#","");return l.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),l.attr("aria-controls",u),o=i>=this.tabs.length,a=this.element.find("#"+u),a.length||(a=this._createPanel(u),o?i>0?a.insertAfter(this.panels.eq(-1)):a.appendTo(this.element):a.insertBefore(this.panels[i])),a.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide(),o?l.appendTo(this.tablist):l.insertBefore(this.tabs[i]),s.disabled=t.map(s.disabled,function(t){return t>=i?++t:t}),this.refresh(),1===this.tabs.length&&s.active===!1&&this.option("active",0),this._trigger("add",null,this._ui(this.anchors[i],this.panels[i])),this},remove:function(e){e=this._getIndex(e);var n=this.options,r=this.tabs.eq(e).remove(),i=this._getPanelForTab(r).remove();return r.hasClass("ui-tabs-active")&&this.anchors.length>2&&this._activate(e+(e+1=e?--t:t}),this.refresh(),this._trigger("remove",null,this._ui(r.find("a")[0],i[0])),this}}),t.widget("ui.tabs",t.ui.tabs,{length:function(){return this.anchors.length}}),t.widget("ui.tabs",t.ui.tabs,{options:{idPrefix:"ui-tabs-"},_tabId:function(e){var r=e.is("li")?e.find("a[href]"):e;return r=r[0],t(r).closest("li").attr("aria-controls")||r.title&&r.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF\-]/g,"")||this.options.idPrefix+n()}}),t.widget("ui.tabs",t.ui.tabs,{options:{panelTemplate:"
    "},_createPanel:function(e){return t(this.options.panelTemplate).attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),t.widget("ui.tabs",t.ui.tabs,{_create:function(){var t=this.options;null===t.active&&t.selected!==e&&(t.active=t.selected!==-1&&t.selected),this._super(),t.selected=t.active,t.selected===!1&&(t.selected=-1)},_setOption:function(t,e){if("selected"!==t)return this._super(t,e);var n=this.options;this._super("active",e!==-1&&e),n.selected=n.active,n.selected===!1&&(n.selected=-1)},_eventHandler:function(){this._superApply(arguments),this.options.selected=this.options.active,this.options.selected===!1&&(this.options.selected=-1)}}),t.widget("ui.tabs",t.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),this.options.active!==!1&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(t,e,n){var r,i,o=this._superApply(arguments);return!!o&&("beforeActivate"===t?(r=n.newTab.length?n.newTab:n.oldTab,i=n.newPanel.length?n.newPanel:n.oldPanel,o=this._super("select",e,{tab:r.find(".ui-tabs-anchor")[0],panel:i[0],index:r.closest("li").index()})):"activate"===t&&n.newTab.length&&(o=this._super("show",e,{tab:n.newTab.find(".ui-tabs-anchor")[0],panel:n.newPanel[0],index:n.newTab.closest("li").index()})),o)}}),t.widget("ui.tabs",t.ui.tabs,{select:function(t){if(t=this._getIndex(t),t===-1){if(!this.options.collapsible||this.options.selected===-1)return;t=this.options.selected}this.anchors.eq(t).trigger(this.options.event+this.eventNamespace)}}),function(){var e=0;t.widget("ui.tabs",t.ui.tabs,{options:{cookie:null},_create:function(){var t=this.options,e;null==t.active&&t.cookie&&(e=parseInt(this._cookie(),10),e===-1&&(e=!1),t.active=e),this._super()},_cookie:function(n){var r=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++e)];return arguments.length&&(r.push(n===!1?-1:n),r.push(this.options.cookie)),t.cookie.apply(null,r)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),t.widget("ui.tabs",t.ui.tabs,{_trigger:function(e,n,r){var i=t.extend({},r);return"load"===e&&(i.panel=i.panel[0],i.tab=i.tab.find(".ui-tabs-anchor")[0]),this._super(e,n,i)}}),t.widget("ui.tabs",t.ui.tabs,{options:{fx:null},_getFx:function(){var e,n,r=this.options.fx;return r&&(t.isArray(r)?(e=r[0],n=r[1]):e=n=r),r?{show:n,hide:e}:null},_toggle:function(t,e){function n(){i.running=!1,i._trigger("activate",t,e)}function r(){e.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&s.show?o.animate(s.show,s.show.duration,function(){n()}):(o.show(),n())}var i=this,o=e.newPanel,a=e.oldPanel,s=this._getFx();return s?(i.running=!0,void(a.length&&s.hide?a.animate(s.hide,s.hide.duration,function(){e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r()}):(e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),r()))):this._super(t,e)}}))}(jQuery),function(t){function e(e,n){var r=(e.attr("aria-describedby")||"").split(/\s+/);r.push(n),e.data("ui-tooltip-id",n).attr("aria-describedby",t.trim(r.join(" ")))}function n(e){var n=e.data("ui-tooltip-id"),r=(e.attr("aria-describedby")||"").split(/\s+/),i=t.inArray(n,r);i!==-1&&r.splice(i,1),e.removeData("ui-tooltip-id"),r=t.trim(r.join(" ")),r?e.attr("aria-describedby",r):e.removeAttr("aria-describedby")}var r=0;t.widget("ui.tooltip",{version:"1.9.2",options:{content:function(){return t(this).attr("title")},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,n){var r=this;return"disabled"===e?(this[n?"_disable":"_enable"](),void(this.options[e]=n)):(this._super(e,n),void("content"===e&&t.each(this.tooltips,function(t,e){r._updateContent(e)})))},_disable:function(){var e=this;t.each(this.tooltips,function(n,r){var i=t.Event("blur");i.target=i.currentTarget=r[0],e.close(i,!0)}),this.element.find(this.options.items).andSelf().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var n=this,r=t(e?e.target:this.element).closest(this.options.items);r.length&&!r.data("ui-tooltip-id")&&(r.attr("title")&&r.data("ui-tooltip-title",r.attr("title")),r.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&r.parents().each(function(){var e=t(this),r;e.data("ui-tooltip-open")&&(r=t.Event("blur"),r.target=r.currentTarget=this,n.close(r,!0)),e.attr("title")&&(e.uniqueId(),n.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._updateContent(r,e))},_updateContent:function(t,e){var n,r=this.options.content,i=this,o=e?e.type:null;return"string"==typeof r?this._open(e,t,r):(n=r.call(t[0],function(n){t.data("ui-tooltip-open")&&i._delay(function(){e&&(e.type=o),this._open(e,t,n)})}),void(n&&this._open(e,t,n)))},_open:function(n,r,i){function o(t){u.of=t,a.is(":hidden")||a.position(u)}var a,s,l,u=t.extend({},this.options.position);if(i){if(a=this._find(r),a.length)return void a.find(".ui-tooltip-content").html(i);r.is("[title]")&&(n&&"mouseover"===n.type?r.attr("title",""):r.removeAttr("title")),a=this._tooltip(r),e(r,a.attr("id")),a.find(".ui-tooltip-content").html(i),this.options.track&&n&&/^mouse/.test(n.type)?(this._on(this.document,{mousemove:o}),o(n)):a.position(t.extend({of:r},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.show&&this.options.show.delay&&(l=setInterval(function(){a.is(":visible")&&(o(u.of),clearInterval(l))},t.fx.interval)),this._trigger("open",n,{tooltip:a}),s={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=r[0],this.close(n,!0)}},remove:function(){this._removeTooltip(a)}},n&&"mouseover"!==n.type||(s.mouseleave="close"),n&&"focusin"!==n.type||(s.focusout="close"),this._on(!0,r,s)}},close:function(e){var r=this,i=t(e?e.currentTarget:this.element),o=this._find(i);this.closing||(i.data("ui-tooltip-title")&&i.attr("title",i.data("ui-tooltip-title")),n(i),o.stop(!0),this._hide(o,this.options.hide,function(){r._removeTooltip(t(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,n){t(n.element).attr("title",n.title),delete r.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:o}),this.closing=!1)},_tooltip:function(e){var n="ui-tooltip-"+r++,i=t("
    ").attr({id:n,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("
    ").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),t.fn.bgiframe&&i.bgiframe(),this.tooltips[n]=e,i},_find:function(e){var n=e.data("ui-tooltip-id");return n?t("#"+n):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(n,r){var i=t.Event("blur");i.target=i.currentTarget=r[0],e.close(i,!0),t("#"+n).remove(),r.data("ui-tooltip-title")&&(r.attr("title",r.data("ui-tooltip-title")),r.removeData("ui-tooltip-title"))})}})}(jQuery)}).call(exports,__webpack_require__(1))},,,,,,,,,,,,,,,,,,,function(t,e,n){(function(t){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}var r=n(1),i=e(r),o=n(51),a=e(o);window.tmpl=n(114),n(115),n(116),i["default"].widget("blueimpUIX.fileupload",i["default"].blueimpUI.fileupload,{_initTemplates:function s(){this.options.templateContainer=document.createElement(this._files.prop("nodeName")),this.options.uploadTemplate=window.tmpl(this.options.uploadTemplateName),this.options.downloadTemplate=window.tmpl(this.options.downloadTemplateName)},_enableFileInputButton:function l(){i["default"].blueimpUI.fileupload.prototype._enableFileInputButton.call(this),this.element.find(".ss-uploadfield-addfile").show()},_disableFileInputButton:function u(){i["default"].blueimpUI.fileupload.prototype._disableFileInputButton.call(this),this.element.find(".ss-uploadfield-addfile").hide()},_onAdd:function c(t,e){var n=i["default"].blueimpUI.fileupload.prototype._onAdd.call(this,t,e),r=this._files.find(".ss-uploadfield-item").slice(e.files.length*-1).first(),o="+="+(r.position().top-parseInt(r.css("marginTop"),10)||0-parseInt(r.css("borderTopWidth"),10)||0);r.offsetParent().animate({scrollTop:o},1e3);for(var s=0,l=0;l0&&(s=this._formatFileSize(s),(0,i["default"])(".fileOverview .uploadStatus .details .fileSize").text(s)),1==e.files.length&&null!==e.files[0].error?((0,i["default"])(".fileOverview .uploadStatus .state").text(a["default"]._t("AssetUploadField.UploadField.UPLOADFAIL","Sorry your upload failed")),(0,i["default"])(".fileOverview .uploadStatus").addClass("bad").removeClass("good").removeClass("notice")):((0,i["default"])(".fileOverview .uploadStatus .state").text(a["default"]._t("AssetUploadField.UPLOADINPROGRESS","Please wait… upload in progress")),(0,i["default"])(".ss-uploadfield-item-edit-all").hide(),(0,i["default"])(".fileOverview .uploadStatus").addClass("notice").removeClass("good").removeClass("bad")),n},_onDone:function d(t,e,n,r){this.options.changeDetection&&this.element.closest("form").trigger("dirty"),i["default"].blueimpUI.fileupload.prototype._onDone.call(this,t,e,n,r)},_onSend:function f(t,e){var n=this,r=this.options;return r.overwriteWarning&&r.replaceFile?void i["default"].get(r.urlFileExists,{filename:e.files[0].name},function(o,a,s){return o.exists?(e.context.find(".ss-uploadfield-item-status").text(r.errorMessages.overwriteWarning).addClass("ui-state-warning-text"),e.context.find(".ss-uploadfield-item-progress").hide(),e.context.find(".ss-uploadfield-item-overwrite").show(),e.context.find(".ss-uploadfield-item-overwrite-warning").on("click",function(t){return e.context.find(".ss-uploadfield-item-progress").show(),e.context.find(".ss-uploadfield-item-overwrite").hide(),e.context.find(".ss-uploadfield-item-status").removeClass("ui-state-warning-text"),i["default"].blueimpUI.fileupload.prototype._onSend.call(n,t,e),t.preventDefault(),!1}),void 0):i["default"].blueimpUI.fileupload.prototype._onSend.call(n,t,e)}):i["default"].blueimpUI.fileupload.prototype._onSend.call(n,t,e)},_onAlways:function h(t,e,n,r){i["default"].blueimpUI.fileupload.prototype._onAlways.call(this,t,e,n,r),"string"==typeof n?((0,i["default"])(".fileOverview .uploadStatus .state").text(a["default"]._t("AssetUploadField.UploadField.UPLOADFAIL","Sorry your upload failed")),(0,i["default"])(".fileOverview .uploadStatus").addClass("bad").removeClass("good").removeClass("notice")):200===n.status&&((0,i["default"])(".fileOverview .uploadStatus .state").text(a["default"]._t("AssetUploadField.FILEUPLOADCOMPLETED","File upload completed!")),(0,i["default"])(".ss-uploadfield-item-edit-all").show(),(0,i["default"])(".fileOverview .uploadStatus").addClass("good").removeClass("notice").removeClass("bad"))},_create:function p(){i["default"].blueimpUI.fileupload.prototype._create.call(this),this._adjustMaxNumberOfFiles(0)},attach:function m(t){this.options.changeDetection&&this.element.closest("form").trigger("dirty");var e=this,n=t.files,r=t.replaceFileID,o=!0,a=null;r&&(a=(0,i["default"])(".ss-uploadfield-item[data-fileid='"+r+"']"),0===a.length?a=null:e._adjustMaxNumberOfFiles(1)),i["default"].each(n,function(t,n){e._adjustMaxNumberOfFiles(-1),o=e._validate([n])&&o}),t.isAdjusted=!0,t.files.valid=t.isValidated=o,t.context=this._renderDownload(n),a?a.replaceWith(t.context):t.context.appendTo(this._files),t.context.data("data",t),this._reflow=this._transition&&t.context[0].offsetWidth,t.context.addClass("in")}}),i["default"].entwine("ss",function(e){e("div.ss-upload").entwine({Config:null,onmatch:function n(){if(!this.is(".readonly,.disabled")){var t=this.find(".ss-uploadfield-fromcomputer-fileinput"),n=e(".ss-uploadfield-dropzone"),r=t.data("config");n.on("dragover",function(t){t.preventDefault()}),n.on("dragenter",function(t){n.addClass("hover active")}),n.on("dragleave",function(t){t.target===n[0]&&n.removeClass("hover active")}),n.on("drop",function(t){if(n.removeClass("hover active"),t.target!==n[0])return!1}),this.setConfig(r),this.fileupload(e.extend(!0,{formData:function i(t){var n=e(t).find(":input[name=ID]").val(),r=[{name:"SecurityID",value:e(t).find(":input[name=SecurityID]").val()}];return n&&r.push({name:"ID",value:n}),r},errorMessages:{1:a["default"]._t("UploadField.PHP_MAXFILESIZE"),2:a["default"]._t("UploadField.HTML_MAXFILESIZE"),3:a["default"]._t("UploadField.ONLYPARTIALUPLOADED"),4:a["default"]._t("UploadField.NOFILEUPLOADED"),5:a["default"]._t("UploadField.NOTMPFOLDER"),6:a["default"]._t("UploadField.WRITEFAILED"),7:a["default"]._t("UploadField.STOPEDBYEXTENSION"),maxFileSize:a["default"]._t("UploadField.TOOLARGESHORT"),minFileSize:a["default"]._t("UploadField.TOOSMALL"),acceptFileTypes:a["default"]._t("UploadField.INVALIDEXTENSIONSHORT"),maxNumberOfFiles:a["default"]._t("UploadField.MAXNUMBEROFFILESSHORT"),uploadedBytes:a["default"]._t("UploadField.UPLOADEDBYTES"),emptyResult:a["default"]._t("UploadField.EMPTYRESULT")},send:function o(t,n){n.context&&n.dataType&&"iframe"===n.dataType.substr(0,6)&&(n.total=1,n.loaded=1,e(this).data("fileupload").options.progress(t,n))},progress:function s(t,e){if(e.context){var n=parseInt(e.loaded/e.total*100,10)+"%";e.context.find(".ss-uploadfield-item-status").html(1==e.total?a["default"]._t("UploadField.LOADING"):n),e.context.find(".ss-uploadfield-item-progressbarvalue").css("width",n)}}},r,{fileInput:t,dropZone:n,form:t.closest("form"),previewAsCanvas:!1,acceptFileTypes:new RegExp(r.acceptFileTypes,"i")})),this.data("fileupload")._isXHRUpload({multipart:!0})&&e(".ss-uploadfield-item-uploador").hide().show(),this._super()}},onunmatch:function r(){e(".ss-uploadfield-dropzone").off("dragover dragenter dragleave drop"),this._super()},openSelectDialog:function i(n){var r=this,i=this.getConfig(),o="ss-uploadfield-dialog-"+this.attr("id"),a=t("#"+o);a.length||(a=t('
    '));var s=i.urlSelectDialog,l=null;n&&n.attr("data-fileid")>0&&(l=n.attr("data-fileid")),a.ssdialog({iframeUrl:s,height:550}),a.find("iframe").bind("load",function(t){var n=e(this).contents(),i=n.find(".grid-field");n.find("table.grid-field").css("margin-top",0),n.find("input[name=action_doAttach]").unbind("click.openSelectDialog").bind("click.openSelectDialog",function(){var t=e.map(i.find(".ss-gridfield-item.ui-selected"),function(t){return e(t).data("id")});return t&&t.length&&r.attachFiles(t,l),a.ssdialog("close"),!1})}),a.ssdialog("open")},attachFiles:function o(t,n){var r=this,i=this.getConfig(),o=e('
    '),a=n?this.find(".ss-uploadfield-item[data-fileid='"+n+"']"):this.find(".ss-uploadfield-addfile");a.children().hide(),a.append(o),e.ajax({type:"POST",url:i.urlAttach,data:{ids:t},complete:function s(t,e){a.children().show(),o.remove()},success:function l(t,i,o){t&&!e.isEmptyObject(t)&&r.fileupload("attach",{files:t,options:r.fileupload("option"),replaceFileID:n})}})}}),e("div.ss-upload *").entwine({getUploadField:function s(){return this.parents("div.ss-upload:first")}}),e("div.ss-upload .ss-uploadfield-files .ss-uploadfield-item").entwine({onadd:function l(){this._super(),this.closest(".ss-upload").find(".ss-uploadfield-addfile").addClass("borderTop")},onremove:function u(){e(".ss-uploadfield-files:not(:has(.ss-uploadfield-item))").closest(".ss-upload").find(".ss-uploadfield-addfile").removeClass("borderTop"),this._super()}}),e("div.ss-upload .ss-uploadfield-startall").entwine({onclick:function c(t){return this.closest(".ss-upload").find(".ss-uploadfield-item-start button").click(),t.preventDefault(),!1}}),e("div.ss-upload .ss-uploadfield-item-cancelfailed").entwine({onclick:function d(t){return this.closest(".ss-uploadfield-item").remove(),t.preventDefault(),!1}}),e("div.ss-upload .ss-uploadfield-item-remove:not(.ui-state-disabled), .ss-uploadfield-item-delete:not(.ui-state-disabled)").entwine({onclick:function f(t){var e=this.closest("div.ss-upload"),n=e.getConfig("changeDetection"),r=e.data("fileupload"),i=this.closest(".ss-uploadfield-item"),o="";return this.is(".ss-uploadfield-item-delete")?confirm(a["default"]._t("UploadField.ConfirmDelete"))&&(n.changeDetection&&this.closest("form").trigger("dirty"),r&&r._trigger("destroy",t,{context:i,url:this.data("href"),type:"get",dataType:r.options.dataType})):(n.changeDetection&&this.closest("form").trigger("dirty"),r&&r._trigger("destroy",t,{context:i})),t.preventDefault(),!1}}),e("div.ss-upload .ss-uploadfield-item-edit-all").entwine({onclick:function h(t){return e(this).hasClass("opened")?(e(".ss-uploadfield-item .ss-uploadfield-item-edit .toggle-details-icon.opened").each(function(t){ -e(this).closest(".ss-uploadfield-item-edit").click()}),e(this).removeClass("opened").find(".toggle-details-icon").removeClass("opened")):(e(".ss-uploadfield-item .ss-uploadfield-item-edit .toggle-details-icon").each(function(t){e(this).hasClass("opened")||e(this).closest(".ss-uploadfield-item-edit").click()}),e(this).addClass("opened").find(".toggle-details-icon").addClass("opened")),t.preventDefault(),!1}}),e("div.ss-upload:not(.disabled):not(.readonly) .ss-uploadfield-item-edit").entwine({onclick:function p(t){var e=this,n=e.closest(".ss-uploadfield-item").find(".ss-uploadfield-item-editform"),r=n.prev(".ss-uploadfield-item-info"),i=n.find("iframe");if(i.parent().hasClass("loading"))return t.preventDefault(),!1;if("about:blank"==i.attr("src")){var o=this.siblings();i.attr("src",i.data("src")),i.parent().addClass("loading"),o.addClass("ui-state-disabled"),o.attr("disabled","disabled"),i.on("load",function(){i.parent().removeClass("loading"),i.data("src")&&(e._prepareIframe(i,n,r),i.data("src",""))})}else e._prepareIframe(i,n,r);return t.preventDefault(),!1},_prepareIframe:function m(t,e,n){var r;t.contents().ready(function(){var n=t.get(0).contentWindow.jQuery;n(n.find(":input")).bind("change",function(t){e.removeClass("edited"),e.addClass("edited")})}),e.hasClass("loading")||(r=this.hasClass("ss-uploadfield-item-edit")?this.siblings():this.find("ss-uploadfield-item-edit").siblings(),e.parent(".ss-uploadfield-item").removeClass("ui-state-warning"),e.toggleEditForm(),n.find(".toggle-details-icon").hasClass("opened")?(r.addClass("ui-state-disabled"),r.attr("disabled","disabled")):(r.removeClass("ui-state-disabled"),r.removeAttr("disabled")))}}),e("div.ss-upload .ss-uploadfield-item-editform").entwine({fitHeight:function g(){var t=this.find("iframe"),n=t.contents().find("body"),r=n.find("form").outerHeight(!0),i=r+(t.outerHeight(!0)-t.height()),o=i+(this.outerHeight(!0)-this.height());e.browser.msie||"8.0"==e.browser.version.slice(0,3)||n.find("body").css({height:r}),t.height(i),this.animate({height:o},500)},toggleEditForm:function v(){var t=this.prev(".ss-uploadfield-item-info"),n=t.find(".ss-uploadfield-item-status"),r=this.find("iframe").contents(),i=r.find("#Form_EditForm_error"),o="";0===this.height()?(o=a["default"]._t("UploadField.Editing","Editing ..."),this.fitHeight(),this.addClass("opened"),t.find(".toggle-details-icon").addClass("opened"),n.removeClass("ui-state-success-text").removeClass("ui-state-warning-text"),r.find("#Form_EditForm_action_doEdit").click(function(){t.find("label .name").text(r.find("#Name input").val())}),e("div.ss-upload .ss-uploadfield-files .ss-uploadfield-item-actions .toggle-details-icon:not(.opened)").index()<0&&e("div.ss-upload .ss-uploadfield-item-edit-all").addClass("opened").find(".toggle-details-icon").addClass("opened")):(this.animate({height:0},500),this.removeClass("opened"),t.find(".toggle-details-icon").removeClass("opened"),e("div.ss-upload .ss-uploadfield-item-edit-all").removeClass("opened").find(".toggle-details-icon").removeClass("opened"),this.hasClass("edited")?i.hasClass("good")?(o=a["default"]._t("UploadField.CHANGESSAVED","Changes Saved"),this.removeClass("edited").parent(".ss-uploadfield-item").removeClass("ui-state-warning"),n.addClass("ui-state-success-text")):(o=a["default"]._t("UploadField.UNSAVEDCHANGES","Unsaved Changes"),this.parent(".ss-uploadfield-item").addClass("ui-state-warning"),n.addClass("ui-state-warning-text")):(o=a["default"]._t("UploadField.NOCHANGES","No Changes"),n.addClass("ui-state-success-text")),i.removeClass("good").hide()),n.attr("title",o).text(o)}}),e("div.ss-upload .ss-uploadfield-fromfiles").entwine({onclick:function y(t){return this.getUploadField().openSelectDialog(this.closest(".ss-uploadfield-item")),t.preventDefault(),!1}})})}).call(e,n(1))},function(t,e,n){var r;!function(i){"use strict";var o=function(t,e){var n=/[^\-\w]/.test(t)?new Function(o.arg,("var _s=''"+o.helper+";_s+='"+t.replace(o.regexp,o.func)+"';return _s;").split("_s+='';").join("")):o.cache[t]=o.cache[t]||o(o.load(t));return n.tmpl=n.tmpl||o,e?n(e):n};o.cache={},o.load=function(t){return document.getElementById(t).innerHTML},o.regexp=/(\s+)|('|\\)(?![^%]*%\})|(?:\{%(=|#)(.+?)%\})|(\{%)|(%\})/g,o.func=function(t,e,n,r,i,o,a,s,l){return e?s&&s+t.length!==l.length?" ":"":n?"\\"+t:r?"="===r?"'+_e("+i+")+'":"'+("+i+"||'')+'":o?"';":a?"_s+='":void 0},o.encReg=/[<>&"\x00]/g,o.encMap={"<":"<",">":">","&":"&",'"':""","\0":""},o.encode=function(t){return String(t||"").replace(o.encReg,function(t){return o.encMap[t]})},o.arg="o",o.helper=",_t=arguments.callee.tmpl,_e=_t.encode,print=function(s,e){_s+=e&&(s||'')||_e(s);},include=function(s,d){_s+=_t(s,d);}",r=function(){return o}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)},function(t,e){"use strict";window.tmpl.cache["ss-uploadfield-uploadtemplate"]=window.tmpl('{% for (var i=0, files=o.files, l=files.length, file=files[0]; i
    {% if (!file.error) { %}
    {% if (!o.options.autoUpload) { %}
    {% } %}{% } %}
    {% } %}")},function(t,e){"use strict";tmpl.cache["ss-uploadfield-downloadtemplate"]=tmpl('{% for (var i=0, files=o.files, l=files.length, file=files[0]; i{% if (file.thumbnail_url) { %}
    {% } %}
    {% if (!file.error && file.id) { %}{% } %}{% if (!file.error && file.filename) { %}{% } %}{% if (file.error) { %}
    {% } else { %}
    {% print(file.buttons, true); %}
    {% } %}
    {% if (!file.error) { %}
    {% } %}{% } %}')},,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(1),o=r(i);n(94),o["default"].fn.extend({ssDatepicker:function a(t){return(0,o["default"])(this).each(function(){if(!((0,o["default"])(this).prop("disabled")||(0,o["default"])(this).prop("readonly")||(0,o["default"])(this).data("datepicker"))){(0,o["default"])(this).siblings("button").addClass("ui-icon ui-icon-calendar");var e=(0,o["default"])(this).closest(".field.date"),n=o["default"].extend(t||{},(0,o["default"])(this).data(),(0,o["default"])(this).data("jqueryuiconfig"),{});n.showcalendar&&(n.locale&&o["default"].datepicker.regional[n.locale]&&(n=o["default"].extend(n,o["default"].datepicker.regional[n.locale],{})),n.min&&(n.minDate=o["default"].datepicker.parseDate("yy-mm-dd",n.min)),n.max&&(n.maxDate=o["default"].datepicker.parseDate("yy-mm-dd",n.max)),n.dateFormat=n.jquerydateformat,(0,o["default"])(this).datepicker(n))}})}}),(0,o["default"])(document).on("click",".field.date input.text,input.text.date",function(){(0,o["default"])(this).ssDatepicker(),(0,o["default"])(this).data("datepicker")&&(0,o["default"])(this).datepicker("show")})},,,function(t,e,n){(function(e){t.exports=e.DeepFreezeStrict=n(122)}).call(e,function(){return this}())},function(t,e){t.exports=function n(t){Object.freeze(t);var e="function"==typeof t,r=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!r.call(t,i)||e&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||n(t[i])}),t}},function(t,e,n){(function(e){t.exports=e.React=n(124)}).call(e,function(){return this}())},function(t,e,n){"use strict";t.exports=n(125)},function(t,e,n){"use strict";var r=n(126),i=n(127),o=n(139),a=n(142),s=n(143),l=n(148),u=n(131),c=n(149),d=n(151),f=n(152),h=n(133),p=u.createElement,m=u.createFactory,g=u.cloneElement,v,y=r,b,_={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:f},Component:o,PureComponent:a,createElement:p,cloneElement:g,isValidElement:u.isValidElement,PropTypes:c,createClass:s.createClass,createFactory:m,createMixin:function(t){return t},DOM:l,version:d,__spread:y};t.exports=_},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}var i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,a=n(t),s,l=1;l1){for(var m=Array(p),v=0;v1){for(var b=Array(y),_=0;_>",S={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:l,element:u(),instanceOf:c,node:p(),objectOf:f,oneOf:d,oneOfType:h,shape:m};i.prototype=Error.prototype,t.exports=S},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e){"use strict";t.exports="15.3.1"},function(t,e,n){"use strict";function r(t){return o.isValidElement(t)?void 0:i("143"),t}var i=n(129),o=n(131),a=n(130);t.exports=r},function(t,e,n){(function(e){t.exports=e.Tether=n(154)}).call(e,function(){return this}())},function(t,e,n){var r,i;/*! tether 1.3.7 */ -!function(o,a){r=a,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i))}(this,function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){var e=t.getBoundingClientRect(),n={};for(var r in e)n[r]=e[r];if(t.ownerDocument!==document){var o=t.ownerDocument.defaultView.frameElement;if(o){var a=i(o);n.top+=a.top,n.bottom+=a.top,n.left+=a.left,n.right+=a.left}}return n}function o(t){var e=getComputedStyle(t)||{},n=e.position,r=[];if("fixed"===n)return[t];for(var i=t;(i=i.parentNode)&&i&&1===i.nodeType;){var o=void 0;try{o=getComputedStyle(i)}catch(a){}if("undefined"==typeof o||null===o)return r.push(i),r;var s=o,l=s.overflow,u=s.overflowX,c=s.overflowY;/(auto|scroll)/.test(l+c+u)&&("absolute"!==n||["relative","absolute","fixed"].indexOf(o.position)>=0)&&r.push(i)}return r.push(t.ownerDocument.body),t.ownerDocument!==document&&r.push(t.ownerDocument.defaultView),r}function a(){T&&document.body.removeChild(T),T=null}function s(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,r=i(t),o=S();return r.top-=o.top,r.left-=o.left,"undefined"==typeof r.width&&(r.width=document.body.scrollWidth-r.left-r.right),"undefined"==typeof r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=e.body.clientWidth-r.width-r.left,r.bottom=e.body.clientHeight-r.height-r.top,r}function l(t){return t.offsetParent||document.documentElement}function u(){if(P)return P;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");c(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;n===r&&(r=e.clientWidth),document.body.removeChild(e);var i=n-r;return P={width:i,height:i}}function c(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function d(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var n=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),r=p(t).replace(n," ");m(t,r)}}function f(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var n=p(t)+(" "+e);m(t,n)}}function h(t,e){if("undefined"!=typeof t.classList)return t.classList.contains(e);var n=p(t);return new RegExp("(^| )"+e+"( |$)","gi").test(n)}function p(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function m(t,e){t.setAttribute("class",e)}function g(t,e,n){n.forEach(function(n){e.indexOf(n)===-1&&h(t,n)&&d(t,n)}),e.forEach(function(e){h(t,e)||f(t,e)})}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+n>=e&&e>=t-n}function b(){return"undefined"!=typeof performance&&"undefined"!=typeof performance.now?performance.now():+new Date}function _(){for(var t={top:0,left:0},e=arguments.length,n=Array(e),r=0;r1?n-1:0),i=1;i16?(e=Math.min(e-16,250),void(n=setTimeout(i,250))):void("undefined"!=typeof t&&b()-t<10||(null!=n&&(clearTimeout(n),n=null),t=b(),H(),e=b()-t))};"undefined"!=typeof window&&"undefined"!=typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,r)})}();var Q={center:"center",left:"right",right:"left"},U={middle:"middle",top:"bottom",bottom:"top"},B={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},z=function et(t,e){var n=t.left,r=t.top;return"auto"===n&&(n=Q[e.left]),"auto"===r&&(r=U[e.top]),{left:n,top:r}},W=function nt(t){var e=t.left,n=t.top;return"undefined"!=typeof B[t.left]&&(e=B[t.left]),"undefined"!=typeof B[t.top]&&(n=B[t.top]),{left:e,top:n}},q=function rt(t){var e=t.split(" "),n=A(e,2),r=n[0],i=n[1];return{top:r,left:i}},$=q,V=function(t){function e(t){var n=this;r(this,e),I(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),L.push(this),this.history=[],this.setOptions(t,!1),k.modules.forEach(function(t){"undefined"!=typeof t.initialize&&t.initialize.call(n)}),this.position()}return v(e,t),C(e,[{key:"getClass",value:function n(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return"undefined"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function i(t){var e=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=c(r,t);var i=this.options,a=i.element,s=i.target,l=i.targetModifier;if(this.element=a,this.target=s,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if("undefined"==typeof e[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),f(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&f(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=$(this.options.targetAttachment),this.attachment=$(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),"undefined"!=typeof this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=o(this.target),this.options.enabled!==!1&&this.enable(n)}},{key:"getTargetBounds",value:function h(){if("undefined"==typeof this.targetModifier)return s(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=s(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.topn.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body,o=0;i&&(o=15);var a=t.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-o,e={width:15,height:.975*a*(a/n.scrollHeight),left:t.left+t.width-parseFloat(r.borderLeftWidth)-15},l=0;a<408&&this.target===document.body&&(l=-11e-5*Math.pow(a,2)-.00727*a+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var u=this.target.scrollTop/(n.scrollHeight-a);return e.top=u*(a-e.height-l)+t.top+parseFloat(r.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function p(){this._cache={}}},{key:"cache",value:function m(t,e){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function b(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.options.addTargetClasses!==!1&&f(this.target,this.getClass("enabled")),f(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function w(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,"undefined"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function T(){var t=this;this.disable(),L.forEach(function(e,n){e===t&&L.splice(n,1)}),0===L.length&&a()}},{key:"updateAttachClasses",value:function j(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var i=this._addAttachClasses;t.top&&i.push(this.getClass("element-attached")+"-"+t.top),t.left&&i.push(this.getClass("element-attached")+"-"+t.left),e.top&&i.push(this.getClass("target-attached")+"-"+e.top),e.left&&i.push(this.getClass("target-attached")+"-"+e.left);var o=[];r.forEach(function(t){o.push(n.getClass("element-attached")+"-"+t),o.push(n.getClass("target-attached")+"-"+t)}),N(function(){"undefined"!=typeof n._addAttachClasses&&(g(n.element,n._addAttachClasses,o),n.options.addTargetClasses!==!1&&g(n.target,n._addAttachClasses,o),delete n._addAttachClasses)})}},{key:"position",value:function E(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=z(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var r=this.cache("element-bounds",function(){return s(t.element)}),i=r.width,o=r.height;if(0===i&&0===o&&"undefined"!=typeof this.lastSize){var a=this.lastSize;i=a.width,o=a.height}else this.lastSize={width:i,height:o};var c=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=c,f=x(W(this.attachment),{width:i,height:o}),h=x(W(n),d),p=x(this.offset,{width:i,height:o}),m=x(this.targetOffset,d);f=_(f,p),h=_(h,m);for(var g=c.left+h.left-f.left,v=c.top+h.top-f.top,y=0;yT.documentElement.clientHeight&&(E=this.cache("scrollbar-size",u),C.viewport.bottom-=E.height),j.innerWidth>T.documentElement.clientWidth&&(E=this.cache("scrollbar-size",u),C.viewport.right-=E.width),["","static"].indexOf(T.body.style.position)!==-1&&["","static"].indexOf(T.body.parentElement.style.position)!==-1||(C.page.bottom=T.body.scrollHeight-v-o,C.page.right=T.body.scrollWidth-g-i),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var e=t.cache("target-offsetparent",function(){return l(t.target)}),n=t.cache("target-offsetparent-bounds",function(){return s(e)}),r=getComputedStyle(e),i=n,o={};if(["Top","Left","Bottom","Right"].forEach(function(t){o[t.toLowerCase()]=parseFloat(r["border"+t+"Width"])}),n.right=T.body.scrollWidth-n.left-i.width+o.right,n.bottom=T.body.scrollHeight-n.top-i.height+o.bottom,C.page.top>=n.top+o.top&&C.page.bottom>=n.bottom&&C.page.left>=n.left+o.left&&C.page.right>=n.right){var a=e.scrollTop,u=e.scrollLeft;C.offset={top:C.page.top-n.top+a-o.top,left:C.page.left-n.left+u-o.left}}}(),this.move(C),this.history.unshift(C),this.history.length>3&&this.history.pop(),e&&D(),!0}}},{key:"move",value:function S(t){var e=this;if("undefined"!=typeof this.element.parentNode){var n={};for(var r in t){n[r]={};for(var i in t[r]){for(var o=!1,a=0;a=0){var p=s.split(" "),g=A(p,2);d=g[0],c=g[1]}else c=d=s;var b=w(e,o);"target"!==d&&"both"!==d||(nb[3]&&"bottom"===v.top&&(n-=f,v.top="top")),"together"===d&&("top"===v.top&&("bottom"===y.top&&nb[3]&&n-(a-f)>=b[1]&&(n-=a-f,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&n+a>b[3]?(n-=f,v.top="top",n-=a,y.top="bottom"):"bottom"===y.top&&nb[3]&&"top"===y.top?(n-=a,y.top="bottom"):nb[2]&&"right"===v.left&&(r-=h,v.left="left")),"together"===c&&(rb[2]&&"right"===v.left?"left"===y.left?(r-=h,v.left="left",r-=l,y.left="right"):"right"===y.left&&(r-=h,v.left="left",r+=l,y.left="left"):"center"===v.left&&(r+l>b[2]&&"left"===y.left?(r-=l,y.left="right"):rb[3]&&"top"===y.top&&(n-=a,y.top="bottom")),"element"!==c&&"both"!==c||(rb[2]&&("left"===y.left?(r-=l,y.left="right"):"center"===y.left&&(r-=l/2,y.left="right"))),"string"==typeof u?u=u.split(",").map(function(t){return t.trim()}):u===!0&&(u=["top","left","right","bottom"]),u=u||[];var _=[],x=[];n=0?(n=b[1],_.push("top")):x.push("top")),n+a>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-a,_.push("bottom")):x.push("bottom")),r=0?(r=b[0],_.push("left")):x.push("left")),r+l>b[2]&&(u.indexOf("right")>=0?(r=b[2]-l,_.push("right")):x.push("right")),_.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),m.push(t),_.forEach(function(e){m.push(t+"-"+e)})}(),x.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),m.push(t),x.forEach(function(e){m.push(t+"-"+e)})}(),(_.indexOf("left")>=0||_.indexOf("right")>=0)&&(y.left=v.left=!1),(_.indexOf("top")>=0||_.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===i.top&&v.left===i.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),N(function(){e.options.addTargetClasses!==!1&&g(e.target,m,p),g(e.element,m,p)}),{top:n,left:r}}});var R=k.Utils,s=R.getBounds,g=R.updateClasses,N=R.defer;k.modules.push({position:function ot(t){var e=this,n=t.top,r=t.left,i=this.cache("element-bounds",function(){return s(e.element)}),o=i.height,a=i.width,l=this.getTargetBounds(),u=n+o,c=r+a,d=[];n<=l.bottom&&u>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==r&&e!==c||d.push(t)}),r<=l.right&&c>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==n&&e!==u||d.push(t)});var f=[],h=[],p=["left","top","right","bottom"];return f.push(this.getClass("abutted")),p.forEach(function(t){f.push(e.getClass("abutted")+"-"+t)}),d.length&&h.push(this.getClass("abutted")),d.forEach(function(t){h.push(e.getClass("abutted")+"-"+t)}),N(function(){e.options.addTargetClasses!==!1&&g(e.target,h,f),g(e.element,h,f)}),!0}});var A=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a=t[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a["return"]&&a["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return k.modules.push({position:function at(t){var e=t.top,n=t.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:e,left:n}));var i=void 0,o=void 0;if("string"==typeof r){r=r.split(" "),r[1]=r[1]||r[0];var a=r,s=A(a,2);i=s[0],o=s[1],i=parseFloat(i,10),o=parseFloat(o,10)}else i=r.top,o=r.left;return e+=i,n+=o,{top:e,left:n}}}}),K})},function(t,e,n){(function(e){t.exports=e.ReactDom=n(156)}).call(e,function(){return this}())},function(t,e,n){"use strict";t.exports=n(157)},function(t,e,n){"use strict";var r=n(158),i=n(161),o=n(280),a=n(181),s=n(178),l=n(151),u=n(285),c=n(286),d=n(287),f=n(133);i.inject();var h={findDOMNode:u,render:o.render,unmountComponentAtNode:o.unmountComponentAtNode,version:l,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:d};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(t){return t._renderedComponent&&(t=c(t)),t?r.getNodeFromInstance(t):null}},Mount:o,Reconciler:a});var p,m,g,v,y,b,_,x,w;t.exports=h},function(t,e,n){"use strict";function r(t){for(var e;e=t._renderedComponent;)t=e;return t}function i(t,e){var n=r(t);n._hostNode=e,e[g]=n}function o(t){var e=t._hostNode;e&&(delete e[g],t._hostNode=null)}function a(t,e){if(!(t._flags&m.hasCachedChildNodes)){var n=t._renderedChildren,o=e.firstChild;t:for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],l=r(s)._domID;if(0!==l){for(;null!==o;o=o.nextSibling)if(1===o.nodeType&&o.getAttribute(p)===String(l)||8===o.nodeType&&o.nodeValue===" react-text: "+l+" "||8===o.nodeType&&o.nodeValue===" react-empty: "+l+" "){i(s,o);continue t}c("32",l)}}t._flags|=m.hasCachedChildNodes}}function s(t){if(t[g])return t[g];for(var e=[];!t[g];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var n,r;t&&(r=t[g]);t=e.pop())n=r,e.length&&a(r,t);return n}function l(t){var e=s(t);return null!=e&&e._hostNode===t?e:null}function u(t){if(void 0===t._hostNode?c("33"):void 0,t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent?void 0:c("34"),t=t._hostParent;for(;e.length;t=e.pop())a(t,t._hostNode);return t._hostNode}var c=n(129),d=n(159),f=n(160),h=n(130),p=d.ID_ATTRIBUTE_NAME,m=f,g="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:s,getInstanceFromNode:l,getNodeFromInstance:u,precacheChildNodes:a,precacheNode:i,uncacheNode:o};t.exports=v},function(t,e,n){"use strict";function r(t,e){return(t&e)===e}var i=n(129),o=n(130),a={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(t){var e=a,n=t.Properties||{},o=t.DOMAttributeNamespaces||{},s=t.DOMAttributeNames||{},u=t.DOMPropertyNames||{},c=t.DOMMutationMethods||{};t.isCustomAttribute&&l._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var d in n){l.properties.hasOwnProperty(d)?i("48",d):void 0;var f=d.toLowerCase(),h=n[d],p={attributeName:f,attributeNamespace:null,propertyName:d,mutationMethod:null,mustUseProperty:r(h,e.MUST_USE_PROPERTY),hasBooleanValue:r(h,e.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,e.HAS_OVERLOADED_BOOLEAN_VALUE)};if(p.hasBooleanValue+p.hasNumericValue+p.hasOverloadedBooleanValue<=1?void 0:i("50",d),s.hasOwnProperty(d)){var m=s[d];p.attributeName=m}o.hasOwnProperty(d)&&(p.attributeNamespace=o[d]),u.hasOwnProperty(d)&&(p.propertyName=u[d]),c.hasOwnProperty(d)&&(p.mutationMethod=c[d]),l.properties[d]=p}}},s=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",l={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:s,ATTRIBUTE_NAME_CHAR:s+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e8&&C<=11),j=32,E=String.fromCharCode(j),S=h.topLevelTypes,P={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})}, -dependencies:[S.topCompositionEnd,S.topKeyPress,S.topTextInput,S.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[S.topBlur,S.topCompositionEnd,S.topKeyDown,S.topKeyPress,S.topKeyUp,S.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[S.topBlur,S.topCompositionStart,S.topKeyDown,S.topKeyPress,S.topKeyUp,S.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[S.topBlur,S.topCompositionUpdate,S.topKeyDown,S.topKeyPress,S.topKeyUp,S.topMouseDown]}},O=!1,N=null,D={eventTypes:P,extractEvents:function(t,e,n,r){return[u(t,e,n,r),f(t,e,n,r)]}};t.exports=D},function(t,e,n){"use strict";var r=n(145),i=r({bubbled:null,captured:null}),o=r({topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:o,PropagationPhases:i};t.exports=a},function(t,e,n){"use strict";function r(t,e,n){var r=e.dispatchConfig.phasedRegistrationNames[n];return _(t,r)}function i(t,e,n){var i=e?b.bubbled:b.captured,o=r(t,n,i);o&&(n._dispatchListeners=g(n._dispatchListeners,o),n._dispatchInstances=g(n._dispatchInstances,t))}function o(t){t&&t.dispatchConfig.phasedRegistrationNames&&m.traverseTwoPhase(t._targetInst,i,t)}function a(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst,n=e?m.getParentInstance(e):null;m.traverseTwoPhase(n,i,t)}}function s(t,e,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,i=_(t,r);i&&(n._dispatchListeners=g(n._dispatchListeners,i),n._dispatchInstances=g(n._dispatchInstances,t))}}function l(t){t&&t.dispatchConfig.registrationName&&s(t._targetInst,null,t)}function u(t){v(t,o)}function c(t){v(t,a)}function d(t,e,n,r){m.traverseEnterLeave(n,r,s,t,e)}function f(t){v(t,l)}var h=n(163),p=n(165),m=n(167),g=n(169),v=n(170),y=n(133),b=h.PropagationPhases,_=p.getListener,x={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:d};t.exports=x},function(t,e,n){"use strict";var r=n(129),i=n(166),o=n(167),a=n(168),s=n(169),l=n(170),u=n(130),c={},d=null,f=function(t,e){t&&(o.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},h=function(t){return f(t,!0)},p=function(t){return f(t,!1)},m=function(t){return"."+t._rootNodeID},g={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(t,e,n){"function"!=typeof n?r("94",e,typeof n):void 0;var o=m(t),a=c[e]||(c[e]={});a[o]=n;var s=i.registrationNameModules[e];s&&s.didPutListener&&s.didPutListener(t,e,n)},getListener:function(t,e){var n=c[e],r=m(t);return n&&n[r]},deleteListener:function(t,e){var n=i.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var r=c[e];if(r){var o=m(t);delete r[o]}},deleteAllListeners:function(t){var e=m(t);for(var n in c)if(c.hasOwnProperty(n)&&c[n][e]){var r=i.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(t,n),delete c[n][e]}},extractEvents:function(t,e,n,r){for(var o,a=i.plugins,l=0;l-1?void 0:a("96",t),!c.plugins[n]){e.extractEvents?void 0:a("97",t),c.plugins[n]=e;var r=e.eventTypes;for(var o in r)i(r[o],e,o)?void 0:a("98",o,t)}}}function i(t,e,n){c.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,c.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];o(s,e,n)}return!0}return!!t.registrationName&&(o(t.registrationName,e,n),!0)}function o(t,e,n){c.registrationNameModules[t]?a("100",t):void 0,c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[n].dependencies;var r}var a=n(129),s=n(130),l=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){l?a("101"):void 0,l=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];u.hasOwnProperty(n)&&u[n]===i||(u[n]?a("102",n):void 0,u[n]=i,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;for(var n in e.phasedRegistrationNames)if(e.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[e.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){l=null;for(var t in u)u.hasOwnProperty(t)&&delete u[t];c.plugins.length=0;var e=c.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=c.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i];var o,a}};t.exports=c},function(t,e,n){"use strict";function r(t){return t===_.topMouseUp||t===_.topTouchEnd||t===_.topTouchCancel}function i(t){return t===_.topMouseMove||t===_.topTouchMove}function o(t){return t===_.topMouseDown||t===_.topTouchStart}function a(t,e,n,r){var i=t.type||"unknown-event";t.currentTarget=w.getNodeFromInstance(r),e?p.invokeGuardedCallbackWithCatch(i,n,t):p.invokeGuardedCallback(i,n,t),t.currentTarget=null}function s(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var i=0;i1?1-r:void 0;return this._fallbackText=i.slice(t,s),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=n(171),o=null;t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(175),o={data:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n;var i=this.constructor.Interface;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];a?this[o]=a(n):"target"===o?this.target=r:this[o]=n[o]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return l?this.isDefaultPrevented=s.thatReturnsTrue:this.isDefaultPrevented=s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse,this}function i(t,e){function n(t){var e=o?"setting the method":"setting the property";return i(e,"This is effectively a no-op"),t}function r(){var t=o?"accessing the method":"accessing the property",n=o?"This is a no-op function":"This is set to null";return i(t,n),e}function i(t,e){var n=!1}var o="function"==typeof e;return{configurable:!0,set:n,get:r}}var o=n(126),a=n(128),s=n(134),l=n(133),u=!1,c="function"==typeof Proxy,d=["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"],f={type:null,target:null,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1,this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;for(var n=0;n8));var R=!1;x.canUseDOM&&(R=j("input")&&(!("documentMode"in document)||document.documentMode>11));var F={get:function(){return A.get.call(this)},set:function(t){M=""+t,A.set.call(this,t)}},L={eventTypes:O,extractEvents:function(t,e,n,i){var o=e?w.getNodeFromInstance(e):window,a,s;if(r(o)?I?a=l:s=u:E(o)?R?a=h:(a=m,s=p):g(o)&&(a=v),a){var c=a(t,e);if(c){var d=k.getPooled(O.change,c,n,i);return d.type="change",_.accumulateTwoPhaseDispatches(d),d}}s&&s(t,o,e)}};t.exports=L},function(t,e,n){"use strict";function r(){S.ReactReconcileTransaction&&w?void 0:c("123")}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function o(t,e,n,i,o,a){r(),w.batchedUpdates(t,e,n,i,o,a)}function a(t,e){return t._mountOrder-e._mountOrder}function s(t){var e=t.dirtyComponentsLength;e!==y.length?c("124",e,y.length):void 0,y.sort(a),b++;for(var n=0;nt?0:i.max")[0],p,m=e.each;h.style.cssText="background-color:rgba(1,1,1,.5)",f.rgba=h.style.backgroundColor.indexOf("rgba")>-1,m(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=e.extend(u.prototype,{parse:function(o,a,s,l){if(o===n)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=e(o).css(a),a=n);var d=this,f=e.type(o),h=this._rgba=[];return a!==n&&(o=[o,a,s,l],f="array"),"string"===f?this.parse(r(o)||p._default):"array"===f?(m(c.rgba.props,function(t,e){h[e.idx]=i(o[e.idx],e)}),this):"object"===f?(o instanceof u?m(c,function(t,e){o[e.cache]&&(d[e.cache]=o[e.cache].slice())}):m(c,function(e,n){var r=n.cache;m(n.props,function(t,e){if(!d[r]&&n.to){if("alpha"===t||null==o[t])return;d[r]=n.to(d._rgba)}d[r][e.idx]=i(o[t],e,!0)}),d[r]&&t.inArray(null,d[r].slice(0,3))<0&&(d[r][3]=1,n.from&&(d._rgba=n.from(d[r])))}),this):void 0},is:function(t){var e=u(t),n=!0,i=this;return m(c,function(t,r){var o,a=e[r.cache];return a&&(o=i[r.cache]||r.to&&r.to(i._rgba)||[],m(r.props,function(t,e){if(null!=a[e.idx])return n=a[e.idx]===o[e.idx]})),n}),n},_space:function(){var t=[],e=this;return m(c,function(n,i){e[i.cache]&&t.push(n)}),t.pop()},transition:function(t,e){var n=u(t),r=n._space(),o=c[r],a=0===this.alpha()?u("transparent"):this,s=a[o.cache]||o.to(a._rgba),l=s.slice();return n=n[o.cache],m(o.props,function(t,r){var o=r.idx,a=s[o],u=n[o],c=d[r.type]||{};null!==u&&(null===a?l[o]=u:(c.mod&&(u-a>c.mod/2?a+=c.mod:a-u>c.mod/2&&(a-=c.mod)),l[o]=i((u-a)*e+a,r)))}),this[r](l)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),i=n.pop(),r=u(t)._rgba;return u(e.map(n,function(t,e){return(1-i)*r[e]+i*t}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),i=n.pop();return t&&n.push(~~(255*i)),"#"+e.map(n,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,n=t[1]/255,i=t[2]/255,r=t[3],o=Math.max(e,n,i),a=Math.min(e,n,i),s=o-a,l=o+a,u=.5*l,c,d;return c=a===o?0:e===o?60*(n-i)/s+360:n===o?60*(i-e)/s+120:60*(e-n)/s+240,d=0===u||1===u?u:u<=.5?s/l:s/(2-l),[Math.round(c)%360,d,u,null==r?1:r]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],i=t[2],r=t[3],a=i<=.5?i*(1+n):i+n-i*n,s=2*i-a;return[Math.round(255*o(s,a,e+1/3)),Math.round(255*o(s,a,e)),Math.round(255*o(s,a,e-1/3)),r]},m(c,function(t,r){var o=r.props,a=r.cache,l=r.to,c=r.from;u.fn[t]=function(t){if(l&&!this[a]&&(this[a]=l(this._rgba)),t===n)return this[a].slice();var r,s=e.type(t),d="array"===s||"object"===s?t:arguments,f=this[a].slice();return m(o,function(t,e){var n=d["object"===s?t:e.idx];null==n&&(n=f[e.idx]),f[e.idx]=i(n,e)}),c?(r=u(c(f)),r[a]=f,r):u(f)},m(o,function(n,i){u.fn[n]||(u.fn[n]=function(r){var o=e.type(r),a="alpha"===n?this._hsla?"hsla":"rgba":t,l=this[a](),u=l[i.idx],c;return"undefined"===o?u:("function"===o&&(r=r.call(this,u),o=e.type(r)),null==r&&i.empty?this:("string"===o&&(c=s.exec(r),c&&(r=u+parseFloat(c[2])*("+"===c[1]?1:-1))),l[i.idx]=r,this[a](l)))})})}),m(a,function(t,n){e.cssHooks[n]={set:function(t,i){var o,a,s="";if("string"!==e.type(i)||(o=r(i))){if(i=u(o||i),!f.rgba&&1!==i._rgba[3]){for(a="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&a&&a.style;)try{s=e.css(a,"backgroundColor"),a=a.parentNode}catch(l){}i=i.blend(s&&"transparent"!==s?s:"_default")}i=i.toRgbaString()}try{t.style[n]=i}catch(c){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=u(t.elem,n),t.end=u(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}),e.cssHooks.borderColor={expand:function(t){var e={};return m(["Top","Right","Bottom","Left"],function(n,i){e["border"+i+"Color"]=t}),e}},p=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function n(){var e=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,n={},i,r;if(e&&e.length&&e[0]&&e[e[0]])for(r=e.length;r--;)i=e[r],"string"==typeof e[i]&&(n[t.camelCase(i)]=e[i]);else for(i in e)"string"==typeof e[i]&&(n[i]=e[i]);return n}function i(e,n){var i={},r,a;for(r in n)a=n[r],e[r]!==a&&(o[r]||!t.fx.step[r]&&isNaN(parseFloat(a))||(i[r]=a));return i}var r=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,n){t.fx.step[n]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,n,t.end),t.setAttr=!0)}}),t.effects.animateClass=function(e,o,a,s){var l=t.speed(o,a,s);return this.queue(function(){var o=t(this),a=o.attr("class")||"",s,u=l.children?o.find("*").andSelf():o;u=u.map(function(){var e=t(this);return{el:e,start:n.call(this)}}),s=function(){t.each(r,function(t,n){e[n]&&o[n+"Class"](e[n])})},s(),u=u.map(function(){return this.end=n.call(this.el[0]),this.diff=i(this.start,this.end),this}),o.attr("class",a),u=u.map(function(){var e=this,n=t.Deferred(),i=jQuery.extend({},l,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,i),n.promise()}),t.when.apply(t,u.get()).done(function(){s(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({_addClass:t.fn.addClass,addClass:function(e,n,i,r){return n?t.effects.animateClass.call(this,{add:e},n,i,r):this._addClass(e)},_removeClass:t.fn.removeClass,removeClass:function(e,n,i,r){return n?t.effects.animateClass.call(this,{remove:e},n,i,r):this._removeClass(e)},_toggleClass:t.fn.toggleClass,toggleClass:function(n,i,r,o,a){return"boolean"==typeof i||i===e?r?t.effects.animateClass.call(this,i?{add:n}:{remove:n},r,o,a):this._toggleClass(n,i):t.effects.animateClass.call(this,{toggle:n},i,r,o)},switchClass:function(e,n,i,r,o){return t.effects.animateClass.call(this,{add:n,remove:e},i,r,o)}})}(),function(){function r(e,n,i,r){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(r=n,i=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(r=i,i=n,n={}),t.isFunction(i)&&(r=i,i=null),n&&t.extend(e,n),i=i||n.duration,e.duration=t.fx.off?0:"number"==typeof i?i:i in t.fx.speeds?t.fx.speeds[i]:t.fx.speeds._default,e.complete=r||n.complete,e}function o(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]&&(!n||!t.effects[e])}t.extend(t.effects,{version:"1.9.2",save:function(t,e){for(var n=0;n
    ").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(i),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),i=e.parent(),"static"===e.css("position")?(i.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,i){n[i]=e.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),i.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).focus()),e},setTransition:function(e,n,i,r){return r=r||{},t.each(n,function(t,n){var o=e.cssUnit(n);o[0]>0&&(r[n]=o[0]*i+o[1])}),r}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(o)&&o.call(r[0]),t.isFunction(e)&&e()}var r=t(this),o=i.complete,a=i.mode;(r.is(":hidden")?"hide"===a:"show"===a)?n():s.call(r[0],i,n)}var i=r.apply(this,arguments),o=i.mode,a=i.queue,s=t.effects.effect[i.effect],l=!s&&n&&t.effects[i.effect];return t.fx.off||!s&&!l?o?this[o](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):s?a===!1?this.each(e):this.queue(a||"fx",e):l.call(this,{options:i,duration:i.duration,callback:i.complete,mode:i.mode})},_show:t.fn.show,show:function(t){if(o(t))return this._show.apply(this,arguments);var e=r.apply(this,arguments);return e.mode="show",this.effect.call(this,e)},_hide:t.fn.hide,hide:function(t){if(o(t))return this._hide.apply(this,arguments);var e=r.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)},__toggle:t.fn.toggle,toggle:function(e){if(o(e)||"boolean"==typeof e||t.isFunction(e))return this.__toggle.apply(this,arguments);var n=r.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)},cssUnit:function(e){var n=this.css(e),i=[];return t.each(["em","px","%","pt"],function(t,e){n.indexOf(e)>0&&(i=[parseFloat(n),e])}),i}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,n){e[n]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?n(2*t)/2:1-n(t*-2+2)/2}})}()}(jQuery),function(t,e){var n=/up|down|vertical/,i=/up|left|vertical|horizontal/;t.effects.effect.blind=function(e,r){var o=t(this),a=["position","top","bottom","left","right","height","width"],s=t.effects.setMode(o,e.mode||"hide"),l=e.direction||"up",u=n.test(l),c=u?"height":"width",d=u?"top":"left",f=i.test(l),h={},p="show"===s,m,g,v;o.parent().is(".ui-effects-wrapper")?t.effects.save(o.parent(),a):t.effects.save(o,a),o.show(),m=t.effects.createWrapper(o).css({overflow:"hidden"}),g=m[c](),v=parseFloat(m.css(d))||0,h[c]=p?g:0,f||(o.css(u?"bottom":"right",0).css(u?"top":"left","auto").css({position:"absolute"}),h[d]=p?v:g+v),p&&(m.css(c,0),f||m.css(d,v+g)),m.animate(h,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===s&&o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),r()}})}}(jQuery),function(t,e){t.effects.effect.bounce=function(e,n){var i=t(this),r=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(i,e.mode||"effect"),a="hide"===o,s="show"===o,l=e.direction||"up",u=e.distance,c=e.times||5,d=2*c+(s||a?1:0),f=e.duration/d,h=e.easing,p="up"===l||"down"===l?"top":"left",m="up"===l||"left"===l,g,v,y,b=i.queue(),_=b.length;for((s||a)&&r.push("opacity"),t.effects.save(i,r),i.show(),t.effects.createWrapper(i),u||(u=i["top"===p?"outerHeight":"outerWidth"]()/3),s&&(y={opacity:1},y[p]=0,i.css("opacity",0).css(p,m?2*-u:2*u).animate(y,f,h)),a&&(u/=Math.pow(2,c-1)),y={},y[p]=0,g=0;g1&&b.splice.apply(b,[1,0].concat(b.splice(_,d+1))),i.dequeue()}}(jQuery),function(t,e){t.effects.effect.clip=function(e,n){var i=t(this),r=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(i,e.mode||"hide"),a="show"===o,s=e.direction||"vertical",l="vertical"===s,u=l?"height":"width",c=l?"top":"left",d={},f,h,p;t.effects.save(i,r),i.show(),f=t.effects.createWrapper(i).css({overflow:"hidden"}),h="IMG"===i[0].tagName?f:i,p=h[u](),a&&(h.css(u,0),h.css(c,p/2)),d[u]=a?p:0,d[c]=a?0:p/2,h.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){a||i.hide(),t.effects.restore(i,r),t.effects.removeWrapper(i),n()}})}}(jQuery),function(t,e){t.effects.effect.drop=function(e,n){var i=t(this),r=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(i,e.mode||"hide"),a="show"===o,s=e.direction||"left",l="up"===s||"down"===s?"top":"left",u="up"===s||"left"===s?"pos":"neg",c={opacity:a?1:0},d;t.effects.save(i,r),i.show(),t.effects.createWrapper(i),d=e.distance||i["top"===l?"outerHeight":"outerWidth"](!0)/2,a&&i.css("opacity",0).css(l,"pos"===u?-d:d),c[l]=(a?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+d,i.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&i.hide(),t.effects.restore(i,r),t.effects.removeWrapper(i),n()}})}}(jQuery),function(t,e){t.effects.effect.explode=function(e,n){function i(){h.push(this),h.length===o*a&&r()}function r(){s.css({visibility:"visible"}),t(h).remove(),u||s.hide(),n()}var o=e.pieces?Math.round(Math.sqrt(e.pieces)):3,a=o,s=t(this),l=t.effects.setMode(s,e.mode||"hide"),u="show"===l,c=s.show().css("visibility","hidden").offset(),d=Math.ceil(s.outerWidth()/a),f=Math.ceil(s.outerHeight()/o),h=[],p,m,g,v,y,b;for(p=0;p
    ").css({position:"absolute",visibility:"visible",left:-m*d,top:-p*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:d,height:f,left:g+(u?y*d:0),top:v+(u?b*f:0),opacity:u?0:1}).animate({left:g+(u?0:y*d),top:v+(u?0:b*f),opacity:u?1:0},e.duration||500,e.easing,i)}}(jQuery),function(t,e){t.effects.effect.fade=function(e,n){var i=t(this),r=t.effects.setMode(i,e.mode||"toggle");i.animate({opacity:r},{queue:!1,duration:e.duration,easing:e.easing,complete:n})}}(jQuery),function(t,e){t.effects.effect.fold=function(e,n){var i=t(this),r=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(i,e.mode||"hide"),a="show"===o,s="hide"===o,l=e.size||15,u=/([0-9]+)%/.exec(l),c=!!e.horizFirst,d=a!==c,f=d?["width","height"]:["height","width"],h=e.duration/2,p,m,g={},v={};t.effects.save(i,r),i.show(),p=t.effects.createWrapper(i).css({overflow:"hidden"}),m=d?[p.width(),p.height()]:[p.height(),p.width()],u&&(l=parseInt(u[1],10)/100*m[s?0:1]),a&&p.css(c?{height:0,width:l}:{height:l,width:0}),g[f[0]]=a?m[0]:l,v[f[1]]=a?m[1]:0,p.animate(g,h,e.easing).animate(v,h,e.easing,function(){s&&i.hide(),t.effects.restore(i,r),t.effects.removeWrapper(i),n()})}}(jQuery),function(t,e){t.effects.effect.highlight=function(e,n){var i=t(this),r=["backgroundImage","backgroundColor","opacity"],o=t.effects.setMode(i,e.mode||"show"),a={backgroundColor:i.css("backgroundColor")};"hide"===o&&(a.opacity=0),t.effects.save(i,r),i.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&i.hide(),t.effects.restore(i,r),n()}})}}(jQuery),function(t,e){t.effects.effect.pulsate=function(e,n){var i=t(this),r=t.effects.setMode(i,e.mode||"show"),o="show"===r,a="hide"===r,s=o||"hide"===r,l=2*(e.times||5)+(s?1:0),u=e.duration/l,c=0,d=i.queue(),f=d.length,h;for(!o&&i.is(":visible")||(i.css("opacity",0).show(),c=1),h=1;h1&&d.splice.apply(d,[1,0].concat(d.splice(f,l+1))),i.dequeue()}}(jQuery),function(t,e){t.effects.effect.puff=function(e,n){var i=t(this),r=t.effects.setMode(i,e.mode||"hide"),o="hide"===r,a=parseInt(e.percent,10)||150,s=a/100,l={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:r,complete:n,percent:o?a:100,from:o?l:{height:l.height*s,width:l.width*s,outerHeight:l.outerHeight*s,outerWidth:l.outerWidth*s}}),i.effect(e)},t.effects.effect.scale=function(e,n){var i=t(this),r=t.extend(!0,{},e),o=t.effects.setMode(i,e.mode||"effect"),a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===o?0:100),s=e.direction||"both",l=e.origin,u={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()},c={y:"horizontal"!==s?a/100:1,x:"vertical"!==s?a/100:1};r.effect="size",r.queue=!1,r.complete=n,"effect"!==o&&(r.origin=l||["middle","center"],r.restore=!0),r.from=e.from||("show"===o?{height:0,width:0,outerHeight:0,outerWidth:0}:u),r.to={height:u.height*c.y,width:u.width*c.x,outerHeight:u.outerHeight*c.y,outerWidth:u.outerWidth*c.x},r.fade&&("show"===o&&(r.from.opacity=0,r.to.opacity=1),"hide"===o&&(r.from.opacity=1,r.to.opacity=0)),i.effect(r)},t.effects.effect.size=function(e,n){var i,r,o,a=t(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],u=["width","height","overflow"],c=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],f=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=t.effects.setMode(a,e.mode||"effect"),p=e.restore||"effect"!==h,m=e.scale||"both",g=e.origin||["middle","center"],v=a.css("position"),y=p?s:l,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===h&&a.show(),i={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===e.mode&&"show"===h?(a.from=e.to||b,a.to=e.from||i):(a.from=e.from||("show"===h?b:i),a.to=e.to||("hide"===h?b:i)),o={from:{y:a.from.height/i.height,x:a.from.width/i.width},to:{y:a.to.height/i.height,x:a.to.width/i.width}},"box"!==m&&"both"!==m||(o.from.y!==o.to.y&&(y=y.concat(d),a.from=t.effects.setTransition(a,d,o.from.y,a.from),a.to=t.effects.setTransition(a,d,o.to.y,a.to)),o.from.x!==o.to.x&&(y=y.concat(f),a.from=t.effects.setTransition(a,f,o.from.x,a.from),a.to=t.effects.setTransition(a,f,o.to.x,a.to))),"content"!==m&&"both"!==m||o.from.y!==o.to.y&&(y=y.concat(c).concat(u),a.from=t.effects.setTransition(a,c,o.from.y,a.from),a.to=t.effects.setTransition(a,c,o.to.y,a.to)),t.effects.save(a,y),a.show(),t.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),g&&(r=t.effects.getBaseline(g,i),a.from.top=(i.outerHeight-a.outerHeight())*r.y,a.from.left=(i.outerWidth-a.outerWidth())*r.x,a.to.top=(i.outerHeight-a.to.outerHeight)*r.y,a.to.left=(i.outerWidth-a.to.outerWidth)*r.x),a.css(a.from),"content"!==m&&"both"!==m||(d=d.concat(["marginTop","marginBottom"]).concat(c),f=f.concat(["marginLeft","marginRight"]),u=s.concat(d).concat(f),a.find("*[width]").each(function(){var n=t(this),i={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};p&&t.effects.save(n,u),n.from={height:i.height*o.from.y,width:i.width*o.from.x,outerHeight:i.outerHeight*o.from.y,outerWidth:i.outerWidth*o.from.x},n.to={height:i.height*o.to.y,width:i.width*o.to.x,outerHeight:i.height*o.to.y,outerWidth:i.width*o.to.x},o.from.y!==o.to.y&&(n.from=t.effects.setTransition(n,d,o.from.y,n.from),n.to=t.effects.setTransition(n,d,o.to.y,n.to)),o.from.x!==o.to.x&&(n.from=t.effects.setTransition(n,f,o.from.x,n.from),n.to=t.effects.setTransition(n,f,o.to.x,n.to)),n.css(n.from),n.animate(n.to,e.duration,e.easing,function(){p&&t.effects.restore(n,u)})})),a.animate(a.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===h&&a.hide(),t.effects.restore(a,y),p||("static"===v?a.css({position:"relative",top:a.to.top,left:a.to.left}):t.each(["top","left"],function(t,e){a.css(e,function(e,n){var i=parseInt(n,10),r=t?a.to.left:a.to.top;return"auto"===n?r+"px":i+r+"px"})})),t.effects.removeWrapper(a),n()}})}}(jQuery),function(t,e){t.effects.effect.shake=function(e,n){var i=t(this),r=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(i,e.mode||"effect"),a=e.direction||"left",s=e.distance||20,l=e.times||3,u=2*l+1,c=Math.round(e.duration/u),d="up"===a||"down"===a?"top":"left",f="up"===a||"left"===a,h={},p={},m={},g,v=i.queue(),y=v.length;for(t.effects.save(i,r),i.show(),t.effects.createWrapper(i),h[d]=(f?"-=":"+=")+s,p[d]=(f?"+=":"-=")+2*s,m[d]=(f?"-=":"+=")+2*s,i.animate(h,c,e.easing),g=1;g1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),i.dequeue()}}(jQuery),function(t,e){t.effects.effect.slide=function(e,n){var i=t(this),r=["position","top","bottom","left","right","width","height"],o=t.effects.setMode(i,e.mode||"show"),a="show"===o,s=e.direction||"left",l="up"===s||"down"===s?"top":"left",u="up"===s||"left"===s,c,d={};t.effects.save(i,r),i.show(),c=e.distance||i["top"===l?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(i).css({overflow:"hidden"}),a&&i.css(l,u?isNaN(c)?"-"+c:-c:c),d[l]=(a?u?"+=":"-=":u?"-=":"+=")+c,i.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&i.hide(),t.effects.restore(i,r),t.effects.removeWrapper(i),n()}})}}(jQuery),function(t,e){t.effects.effect.transfer=function(e,n){var i=t(this),r=t(e.to),o="fixed"===r.css("position"),a=t("body"),s=o?a.scrollTop():0,l=o?a.scrollLeft():0,u=r.offset(),c={top:u.top-s,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},d=i.offset(),f=t('
    ').appendTo(document.body).addClass(e.className).css({top:d.top-s,left:d.left-l,height:i.innerHeight(),width:i.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){f.remove(),n()})}}(jQuery),function(t,e){var n=!1;t.widget("ui.menu",{version:"1.9.2",defaultElement:"
      ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!n&&i.not(".ui-state-disabled").length&&(n=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var n=t(e.currentTarget);n.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),n=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i,r,o,a,s,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||"",o=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),o===r?a=!0:o=r+o,s=new RegExp("^"+n(o),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return s.test(t(this).children("a").text())}),i=a&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i,i.length||(o=String.fromCharCode(e.keyCode),s=new RegExp("^"+n(o),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return s.test(t(this).children("a").text())})),i.length?(this.focus(e,i),i.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n=this.options.icons.submenu,i=this.element.find(this.options.menus);i.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev("a"),r=t("").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",i.attr("id"))}),e=i.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-—–\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(t,e){var n,i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=e.children(".ui-menu"),n.length&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,i,r,o,a,s;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-n-i,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=e.height(),r<0?this.activeMenu.scrollTop(o+r):r+s>a&&this.activeMenu.scrollTop(o+r-a+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(e),this.activeMenu=i},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e); +}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var i;this.active&&(i="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(n,i)},nextPage:function(e){var n,i,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i-r<0}),this.focus(e,n)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var n,i,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i+r>0}),this.focus(e,n)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()
    ").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return t===e?this._value():(this._setOption("value",t),this)},_setOption:function(t,e){"value"===t&&(this.options.value=e,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),this._super(t,e)},_value:function(){var t=this.options.value;return"number"!=typeof t&&(t=0),Math.min(this.options.max,Math.max(this.min,t))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var t=this.value(),e=this._percentage();this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),this.valueDiv.toggle(t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.attr("aria-valuenow",t)}})}(jQuery),function(t,e){t.widget("ui.resizable",t.ui.mouse,{version:"1.9.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var e=this,n=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t('
    ').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=n.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var i=this.handles.split(",");this.handles={};for(var r=0;r
    ');s.css({zIndex:n.zIndex}),"se"==o&&s.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[o]=".ui-resizable-"+o,this.element.append(s)}}this._renderAxis=function(e){e=e||this.element;for(var n in this.handles){if(this.handles[n].constructor==String&&(this.handles[n]=t(this.handles[n],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var i=t(this.handles[n],this.element),r=0;r=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth();var o=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");e.css(o,r),this._proportionallyResize()}t(this.handles[n]).length}},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!e.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=t&&t[1]?t[1]:"se"}}),n.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){n.disabled||(t(this).removeClass("ui-resizable-autohide"),e._handles.show())}).mouseleave(function(){n.disabled||e.resizing||(t(this).addClass("ui-resizable-autohide"),e._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var n=this.element;this.originalElement.css({position:n.css("position"),width:n.outerWidth(),height:n.outerHeight(),top:n.css("top"),left:n.css("left")}).insertAfter(n),n.remove()}return this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(e){var n=!1;for(var i in this.handles)t(this.handles[i])[0]==e.target&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i=this.options,r=this.element.position(),o=this.element;this.resizing=!0,this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()},(o.is(".ui-draggable")||/absolute/.test(o.css("position")))&&o.css({position:"absolute",top:r.top,left:r.left}),this._renderProxy();var a=n(this.helper.css("left")),s=n(this.helper.css("top"));i.containment&&(a+=t(i.containment).scrollLeft()||0,s+=t(i.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:a,top:s},this.size=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.originalPosition={left:a,top:s},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof i.aspectRatio?i.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=t(".ui-resizable-"+this.axis).css("cursor");return t("body").css("cursor","auto"==l?this.axis+"-resize":l),o.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(t){var e=this.helper,n=this.options,i={},r=this,o=this.originalMousePosition,a=this.axis,s=t.pageX-o.left||0,l=t.pageY-o.top||0,u=this._change[a];if(!u)return!1;var c=u.apply(this,[t,s,l]);return this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(c=this._updateRatio(c,t)),c=this._respectSize(c,t),this._propagate("resize",t),e.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(c),this._trigger("resize",t,this.ui()),!1},_mouseStop:function(e){this.resizing=!1;var n=this.options,i=this;if(this._helper){var r=this._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),a=o&&t.ui.hasScroll(r[0],"left")?0:i.sizeDiff.height,s=o?0:i.sizeDiff.width,l={width:i.helper.width()-s,height:i.helper.height()-a},u=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;n.animate||this.element.css(t.extend(l,{top:c,left:u})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!n.animate&&this._proportionallyResize()}return t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e=this.options,n,r,o,a,s;s={minWidth:i(e.minWidth)?e.minWidth:0,maxWidth:i(e.maxWidth)?e.maxWidth:1/0,minHeight:i(e.minHeight)?e.minHeight:0,maxHeight:i(e.maxHeight)?e.maxHeight:1/0},(this._aspectRatio||t)&&(n=s.minHeight*this.aspectRatio,o=s.minWidth/this.aspectRatio,r=s.maxHeight*this.aspectRatio,a=s.maxWidth/this.aspectRatio,n>s.minWidth&&(s.minWidth=n),o>s.minHeight&&(s.minHeight=o),rt.width,c=i(t.height)&&r.minHeight&&r.minHeight>t.height;u&&(t.width=r.minWidth),c&&(t.height=r.minHeight),s&&(t.width=r.maxWidth),l&&(t.height=r.maxHeight);var d=this.originalPosition.left+this.originalSize.width,f=this.position.top+this.size.height,h=/sw|nw|w/.test(a),p=/nw|ne|n/.test(a);u&&h&&(t.left=d-r.minWidth),s&&h&&(t.left=d-r.maxWidth),c&&p&&(t.top=f-r.minHeight),l&&p&&(t.top=f-r.maxHeight);var m=!t.width&&!t.height;return m&&!t.left&&t.top?t.top=null:m&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){var e=this.options;if(this._proportionallyResizeElements.length)for(var n=this.helper||this.element,i=0;i
    ');var i=t.ui.ie6?1:0,r=t.ui.ie6?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+r,height:this.element.outerHeight()+r,position:"absolute",left:this.elementOffset.left-i+"px",top:this.elementOffset.top-i+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(t,e,n){return{width:this.originalSize.width+e}},w:function(t,e,n){var i=this.options,r=this.originalSize,o=this.originalPosition;return{left:o.left+e,width:r.width-e}},n:function(t,e,n){var i=this.options,r=this.originalSize,o=this.originalPosition;return{top:o.top+n,height:r.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},sw:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,i]))},ne:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},nw:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,i]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!=e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","alsoResize",{start:function(e,n){var i=t(this).data("resizable"),r=i.options,o=function(e){t(e).each(function(){var e=t(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof r.alsoResize||r.alsoResize.parentNode?o(r.alsoResize):r.alsoResize.length?(r.alsoResize=r.alsoResize[0],o(r.alsoResize)):t.each(r.alsoResize,function(t){o(t)})},resize:function(e,n){var i=t(this).data("resizable"),r=i.options,o=i.originalSize,a=i.originalPosition,s={height:i.size.height-o.height||0,width:i.size.width-o.width||0,top:i.position.top-a.top||0,left:i.position.left-a.left||0},l=function(e,i){t(e).each(function(){var e=t(this),r=t(this).data("resizable-alsoresize"),o={},a=i&&i.length?i:e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var n=(r[e]||0)+(s[e]||0);n&&n>=0&&(o[e]=n||null)}),e.css(o)})};"object"!=typeof r.alsoResize||r.alsoResize.nodeType?l(r.alsoResize):t.each(r.alsoResize,function(t,e){l(t,e)})},stop:function(e,n){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","animate",{stop:function(e,n){var i=t(this).data("resizable"),r=i.options,o=i._proportionallyResizeElements,a=o.length&&/textarea/i.test(o[0].nodeName),s=a&&t.ui.hasScroll(o[0],"left")?0:i.sizeDiff.height,l=a?0:i.sizeDiff.width,u={width:i.size.width-l,height:i.size.height-s},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,d=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(u,d&&c?{top:d,left:c}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(e,i){var r=t(this).data("resizable"),o=r.options,a=r.element,s=o.containment,l=s instanceof t?s.get(0):/parent/.test(s)?a.parent().get(0):s;if(l)if(r.containerElement=t(l),/document/.test(s)||s==document)r.containerOffset={left:0,top:0},r.containerPosition={left:0,top:0},r.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight};else{var u=t(l),c=[];t(["Top","Right","Left","Bottom"]).each(function(t,e){c[t]=n(u.css("padding"+e))}),r.containerOffset=u.offset(),r.containerPosition=u.position(),r.containerSize={height:u.innerHeight()-c[3],width:u.innerWidth()-c[1]};var d=r.containerOffset,f=r.containerSize.height,h=r.containerSize.width,p=t.ui.hasScroll(l,"left")?l.scrollWidth:h,m=t.ui.hasScroll(l)?l.scrollHeight:f;r.parentData={element:l,left:d.left,top:d.top,width:p,height:m}}},resize:function(e,n){var i=t(this).data("resizable"),r=i.options,o=i.containerSize,a=i.containerOffset,s=i.size,l=i.position,u=i._aspectRatio||e.shiftKey,c={top:0,left:0},d=i.containerElement;d[0]!=document&&/static/.test(d.css("position"))&&(c=a),l.left<(i._helper?a.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-a.left:i.position.left-c.left),u&&(i.size.height=i.size.width/i.aspectRatio),i.position.left=r.helper?a.left:0),l.top<(i._helper?a.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-a.top:i.position.top),u&&(i.size.width=i.size.height*i.aspectRatio),i.position.top=i._helper?a.top:0),i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top;var f=Math.abs((i._helper?i.offset.left-c.left:i.offset.left-c.left)+i.sizeDiff.width),h=Math.abs((i._helper?i.offset.top-c.top:i.offset.top-a.top)+i.sizeDiff.height),p=i.containerElement.get(0)==i.element.parent().get(0),m=/relative|absolute/.test(i.containerElement.css("position"));p&&m&&(f-=i.parentData.left),f+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-f,u&&(i.size.height=i.size.width/i.aspectRatio)),h+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-h,u&&(i.size.width=i.size.height*i.aspectRatio))},stop:function(e,n){var i=t(this).data("resizable"),r=i.options,o=i.position,a=i.containerOffset,s=i.containerPosition,l=i.containerElement,u=t(i.helper),c=u.offset(),d=u.outerWidth()-i.sizeDiff.width,f=u.outerHeight()-i.sizeDiff.height;i._helper&&!r.animate&&/relative/.test(l.css("position"))&&t(this).css({left:c.left-s.left-a.left,width:d,height:f}),i._helper&&!r.animate&&/static/.test(l.css("position"))&&t(this).css({left:c.left-s.left-a.left,width:d,height:f})}}),t.ui.plugin.add("resizable","ghost",{start:function(e,n){var i=t(this).data("resizable"),r=i.options,o=i.size;i.ghost=i.originalElement.clone(),i.ghost.css({opacity:.25,display:"block",position:"relative",height:o.height,width:o.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof r.ghost?r.ghost:""),i.ghost.appendTo(i.helper)},resize:function(e,n){var i=t(this).data("resizable"),r=i.options;i.ghost&&i.ghost.css({position:"relative",height:i.size.height,width:i.size.width})},stop:function(e,n){var i=t(this).data("resizable"),r=i.options;i.ghost&&i.helper&&i.helper.get(0).removeChild(i.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(e,n){var i=t(this).data("resizable"),r=i.options,o=i.size,a=i.originalSize,s=i.originalPosition,l=i.axis,u=r._aspectRatio||e.shiftKey;r.grid="number"==typeof r.grid?[r.grid,r.grid]:r.grid;var c=Math.round((o.width-a.width)/(r.grid[0]||1))*(r.grid[0]||1),d=Math.round((o.height-a.height)/(r.grid[1]||1))*(r.grid[1]||1);/^(se|s|e)$/.test(l)?(i.size.width=a.width+c,i.size.height=a.height+d):/^(ne)$/.test(l)?(i.size.width=a.width+c,i.size.height=a.height+d,i.position.top=s.top-d):/^(sw)$/.test(l)?(i.size.width=a.width+c,i.size.height=a.height+d,i.position.left=s.left-c):(i.size.width=a.width+c,i.size.height=a.height+d,i.position.top=s.top-d,i.position.left=s.left-c)}});var n=function(t){return parseInt(t,10)||0},i=function(t){return!isNaN(parseInt(t,10))}}(jQuery),function(t,e){t.widget("ui.selectable",t.ui.mouse,{version:"1.9.2",widgetEventPrefix:"selectable",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var e=this;this.element.addClass("ui-selectable"),this.dragged=!1;var n;this.refresh=function(){n=t(e.options.filter,e.element[0]),n.addClass("ui-selectee"),n.each(function(){var e=t(this),n=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:n.left,top:n.top,right:n.left+e.outerWidth(),bottom:n.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=n.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
    ")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var n=this;if(this.opos=[e.pageX,e.pageY],!this.options.disabled){var i=this.options;this.selectees=t(i.filter,this.element[0]),this._trigger("start",e),t(i.appendTo).append(this.helper),this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var i=t.data(this,"selectable-item");i.startselected=!0,e.metaKey||e.ctrlKey||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element}))}),t(e.target).parents().andSelf().each(function(){var i=t.data(this,"selectable-item");if(i){var r=!e.metaKey&&!e.ctrlKey||!i.$element.hasClass("ui-selected");return i.$element.removeClass(r?"ui-unselecting":"ui-selected").addClass(r?"ui-selecting":"ui-unselecting"),i.unselecting=!r,i.selecting=r,i.selected=r,r?n._trigger("selecting",e,{selecting:i.element}):n._trigger("unselecting",e,{unselecting:i.element}),!1}})}},_mouseDrag:function(e){var n=this;if(this.dragged=!0,!this.options.disabled){var i=this.options,r=this.opos[0],o=this.opos[1],a=e.pageX,s=e.pageY;if(r>a){var l=a;a=r,r=l}if(o>s){var l=s;s=o,o=l}return this.helper.css({left:r,top:o,width:a-r,height:s-o}),this.selectees.each(function(){var l=t.data(this,"selectable-item");if(l&&l.element!=n.element[0]){var u=!1;"touch"==i.tolerance?u=!(l.left>a||l.rights||l.bottomr&&l.righto&&l.bottom").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===r.range||"max"===r.range?" ui-slider-range-"+r.range:""))),i=r.values&&r.values.length||1,e=o.length;en&&(r=n,o=t(this),a=e)}),d.range===!0&&this.values(1)===d.min&&(a+=1,o=t(this.handles[a])),s=this._start(e,a),s!==!1&&(this._mouseSliding=!0,this._handleIndex=a,o.addClass("ui-state-active").focus(),l=o.offset(),u=!t(e.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-o.width()/2,top:e.pageY-l.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,i,r,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),i=n/e,i>1&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),r=this._valueMax()-this._valueMin(),o=this._valueMin()+i*r,this._trimAlignValue(o)},_start:function(t,e){var n={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("start",t,n)},_slide:function(t,e,n){var i,r,o;this.options.values&&this.options.values.length?(i=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&n>i||1===e&&n1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(i=this.options.values,r=arguments[0],o=0;o=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,i=t-n;return 2*Math.abs(n)>=e&&(i+=n>0?e:-e),parseFloat(i.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,n,i,r,o,a=this.options.range,s=this.options,l=this,u=!this._animateOff&&s.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[u?"animate":"css"](c,s.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[u?"animate":"css"]({left:n+"%"},s.animate),1===i&&l.range[u?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===i&&l.range.stop(1,1)[u?"animate":"css"]({bottom:n+"%"},s.animate),1===i&&l.range[u?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n}):(i=this.value(),r=this._valueMin(),o=this._valueMax(),n=o!==r?(i-r)/(o-r)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[u?"animate":"css"](c,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:s.animate}),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:s.animate}))}})}(jQuery),function(t,e){t.widget("ui.sortable",t.ui.mouse,{version:"1.9.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display"))),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,n){"disabled"===e?(this.options[e]=n,this.widget().toggleClass("ui-sortable-disabled",!!n)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,n){var i=this;if(this.reverting)return!1;if(this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(e);var r=null,o=t(e.target).parents().each(function(){if(t.data(this,i.widgetName+"-item")==i)return r=t(this),!1});if(t.data(e.target,i.widgetName+"-item")==i&&(r=t(e.target)),!r)return!1;if(this.options.handle&&!n){var a=!1;if(t(this.options.handle,r).find("*").andSelf().each(function(){this==e.target&&(a=!0)}),!a)return!1}return this.currentItem=r,this._removeCurrentsFromItems(),!0},_mouseStart:function(e,n,i){var r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&(t("body").css("cursor")&&(this._storedCursor=t("body").css("cursor")),t("body").css("cursor",r.cursor)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(var o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var n=this.options,i=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;r--){var o=this.items[r],a=o.item[0],s=this._intersectsWithPointer(o);if(s&&o.instance===this.currentContainer&&!(a==this.currentItem[0]||this.placeholder[1==s?"next":"prev"]()[0]==a||t.contains(this.placeholder[0],a)||"semi-dynamic"==this.options.type&&t.contains(this.element[0],a))){if(this.direction=1==s?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(o))break;this._rearrange(e,o),this._trigger("change",e,this._uiHash());break}}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,r=this.placeholder.offset();this.reverting=!0,t(this.helper).animate({left:r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);n&&i.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},n.each(function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,o=t.left,a=o+t.width,s=t.top,l=s+t.height,u=this.offset.click.top,c=this.offset.click.left,d=i+u>s&&i+uo&&e+ct[this.floating?"width":"height"]?d:o0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var n=[],i=[],r=this._connectWith();if(r&&e)for(var o=r.length-1;o>=0;o--)for(var a=t(r[o]),s=a.length-1;s>=0;s--){var l=t.data(a[s],this.widgetName);l&&l!=this&&!l.options.disabled&&i.push([t.isFunction(l.options.items)?l.options.items.call(l.element):t(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}i.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var o=i.length-1;o>=0;o--)i[o][0].each(function(){n.push(this)});return t(n)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var n=0;n=0;o--)for(var a=t(r[o]),s=a.length-1;s>=0;s--){var l=t.data(a[s],this.widgetName);l&&l!=this&&!l.options.disabled&&(i.push([t.isFunction(l.options.items)?l.options.items.call(l.element[0],e,{item:this.currentItem}):t(l.options.items,l.element),l]),this.containers.push(l))}for(var o=i.length-1;o>=0;o--)for(var u=i[o][1],c=i[o][0],s=0,d=c.length;s=0;n--){var i=this.items[n];if(i.instance==this.currentContainer||!this.currentContainer||i.item[0]==this.currentItem[0]){var r=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item;e||(i.width=r.outerWidth(),i.height=r.outerHeight());var o=r.offset();i.left=o.left,i.top=o.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var n=this.containers.length-1;n>=0;n--){var o=this.containers[n].element.offset();this.containers[n].containerCache.left=o.left,this.containers[n].containerCache.top=o.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight()}return this},_createPlaceholder:function(e){e=e||this;var n=e.options;if(!n.placeholder||n.placeholder.constructor==String){var i=n.placeholder;n.placeholder={element:function(){var n=t(document.createElement(e.currentItem[0].nodeName)).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return i||(n.style.visibility="hidden"),n},update:function(t,r){i&&!n.forcePlaceholderSize||(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}}e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){for(var n=null,i=null,r=this.containers.length-1;r>=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(n&&t.contains(this.containers[r].element[0],n.element[0]))continue;n=this.containers[r],i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(n)if(1===this.containers.length)this.containers[i]._trigger("over",e,this._uiHash(this)),this.containers[i].containerCache.over=1;else{for(var o=1e4,a=null,s=this.containers[i].floating?"left":"top",l=this.containers[i].floating?"width":"height",u=this.positionAbs[s]+this.offset.click[s],c=this.items.length-1;c>=0;c--)if(t.contains(this.containers[i].element[0],this.items[c].item[0])&&this.items[c].item[0]!=this.currentItem[0]){var d=this.items[c].item.offset()[s],f=!1;Math.abs(d-u)>Math.abs(d+this.items[c][l]-u)&&(f=!0,d+=this.items[c][l]),Math.abs(d-u)this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid)){var s=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1];a=this.containment&&(s-this.offset.click.topthis.containment[3])?s-this.offset.click.topthis.containment[2])?l-this.offset.click.left=0;r--)n||i.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[r])),this.containers[r].containerCache.over&&(i.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[r])),this.containers[r].containerCache.over=0);if(this._storedCursor&&t("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!n){this._trigger("beforeStop",e,this._uiHash());for(var r=0;r",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},n=this.element;return t.each(["min","max","step"],function(t,i){var r=n.attr(i);void 0!==r&&r.length&&(e[i]=r)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function n(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return this._start(e)!==!1&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var n=this.options,i=t.ui.keyCode;switch(e.keyCode){case i.UP:return this._repeat(null,1,e),!0;case i.DOWN:return this._repeat(null,-1,e),!0;case i.PAGE_UP:return this._repeat(null,n.page,e),!0;case i.PAGE_DOWN:return this._repeat(null,-n.page,e),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""},_start:function(t){return!(!this.spinning&&this._trigger("start",t)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,n)},t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:n})===!1||(this._value(n),this.counter++)},_increment:function(e){var n=this.options.incremental;return n?t.isFunction(n)?n(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return n===-1?0:e.length-n-1},_adjustValue:function(t){var e,n,i=this.options;return e=null!==i.min?i.min:0,n=t-e,n=Math.round(n/i.step)*i.step,t=e+n,t=parseFloat(t.toFixed(this._precision())),null!==i.max&&t>i.max?i.max:null!==i.min&&t1&&t.href.replace(o,"")===location.href.replace(o,"").replace(/\s/g,"%20")}var r=0,o=/#.*$/;t.widget("ui.tabs",{version:"1.9.2",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,n=this.options,i=n.active,r=location.hash.substring(1);this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){ +t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),null===i&&(r&&this.tabs.each(function(e,n){if(t(n).attr("aria-controls")===r)return i=e,!1}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==i&&i!==-1||(i=!!this.tabs.length&&0)),i!==!1&&(i=this.tabs.index(this.tabs.eq(i)),i===-1&&(i=!n.collapsible&&0)),n.active=i,!n.collapsible&&n.active===!1&&this.anchors.length&&(n.active=0),t.isArray(n.disabled)&&(n.disabled=t.unique(n.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(this.options.active):this.active=t(),this._refresh(),this.active.length&&this.load(n.active)},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var n=t(this.document[0].activeElement).closest("li"),i=this.tabs.index(n),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:i++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,i--;break;case t.ui.keyCode.END:i=this.anchors.length-1;break;case t.ui.keyCode.HOME:i=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}e.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,r),e.ctrlKey||(n.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,n){function i(){return e>r&&(e=0),e<0&&(e=r),e}for(var r=this.tabs.length-1;t.inArray(i(),this.options.disabled)!==-1;)e=n?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+n()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,n=this.tablist.children(":has(a[href])");e.disabled=t.map(n.filter(".ui-state-disabled"),function(t){return n.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(n,r){var o,a,s,l=t(r).uniqueId().attr("id"),u=t(r).closest("li"),c=u.attr("aria-controls");i(r)?(o=r.hash,a=e.element.find(e._sanitizeSelector(o))):(s=e._tabId(u),o="#"+s,a=e.element.find(o),a.length||(a=e._createPanel(s),a.insertAfter(e.panels[n-1]||e.tablist)),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&u.data("ui-tabs-aria-controls",c),u.attr({"aria-controls":o.substring(1),"aria-labelledby":l}),a.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("
    ").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var n=0,i;i=this.tabs[n];n++)e===!0||t.inArray(n,e)!==-1?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var n={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,i,r=this.element.parent();"fill"===e?(t.support.minHeight||(i=r.css("overflow"),r.css("overflow","hidden")),n=r.height(),this.element.siblings(":visible").each(function(){var e=t(this),i=e.css("position");"absolute"!==i&&"fixed"!==i&&(n-=e.outerHeight(!0))}),i&&r.css("overflow",i),this.element.children().not(this.panels).each(function(){n-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,n-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.panels.each(function(){n=Math.max(n,t(this).height("").height())}).height(n))},_eventHandler:function(e){var n=this.options,i=this.active,r=t(e.currentTarget),o=r.closest("li"),a=o[0]===i[0],s=a&&n.collapsible,l=s?t():this._getPanelForTab(o),u=i.length?this._getPanelForTab(i):t(),c={oldTab:i,oldPanel:u,newTab:s?t():o,newPanel:l};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!n.collapsible||this._trigger("beforeActivate",e,c)===!1||(n.active=!s&&this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,n){function i(){o.running=!1,o._trigger("activate",e,n)}function r(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,i):(a.show(),i())}var o=this,a=n.newPanel,s=n.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r()}):(n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),r()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),n.oldTab.attr("aria-selected","false"),a.length&&s.length?n.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr({"aria-expanded":"true","aria-hidden":"false"}),n.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var n,i=this._findActive(e);i[0]!==this.active[0]&&(i.length||(i=this.active),n=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),n=e.data("ui-tabs-aria-controls");n?e.attr("aria-controls",n):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(n){var i=this.options.disabled;i!==!1&&(n===e?i=!1:(n=this._getIndex(n),i=t.isArray(i)?t.map(i,function(t){return t!==n?t:null}):t.map(this.tabs,function(t,e){return e!==n?e:null})),this._setupDisabled(i))},disable:function(n){var i=this.options.disabled;if(i!==!0){if(n===e)i=!0;else{if(n=this._getIndex(n),t.inArray(n,i)!==-1)return;i=t.isArray(i)?t.merge([n],i).sort():[n]}this._setupDisabled(i)}},load:function(e,n){e=this._getIndex(e);var r=this,o=this.tabs.eq(e),a=o.find(".ui-tabs-anchor"),s=this._getPanelForTab(o),l={tab:o,panel:s};i(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,n,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(o.addClass("ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){s.html(t),r._trigger("load",n,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&r.panels.stop(!1,!0),o.removeClass("ui-tabs-loading"),s.removeAttr("aria-busy"),t===r.xhr&&delete r.xhr},1)})))},_ajaxSettings:function(e,n,i){var r=this;return{url:e.attr("href"),beforeSend:function(e,o){return r._trigger("beforeLoad",n,t.extend({jqXHR:e,ajaxSettings:o},i))}}},_getPanelForTab:function(e){var n=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),t.uiBackCompat!==!1&&(t.ui.tabs.prototype._ui=function(t,e){return{tab:t,panel:e,index:this.anchors.index(t)}},t.widget("ui.tabs",t.ui.tabs,{url:function(t,e){this.anchors.eq(t).attr("href",e)}}),t.widget("ui.tabs",t.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var e=this;this._on({tabsbeforeload:function(n,i){return t.data(i.tab[0],"cache.tabs")?void n.preventDefault():void i.jqXHR.success(function(){e.options.cache&&t.data(i.tab[0],"cache.tabs",!0)})}})},_ajaxSettings:function(e,n,i){var r=this.options.ajaxOptions;return t.extend({},r,{error:function(t,e){try{r.error(t,e,i.tab.closest("li").index(),i.tab[0])}catch(n){}}},this._superApply(arguments))},_setOption:function(t,e){"cache"===t&&e===!1&&this.anchors.removeData("cache.tabs"),this._super(t,e)},_destroy:function(){this.anchors.removeData("cache.tabs"),this._super()},url:function(t){this.anchors.eq(t).removeData("cache.tabs"),this._superApply(arguments)}}),t.widget("ui.tabs",t.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),t.widget("ui.tabs",t.ui.tabs,{options:{spinner:"Loading…"},_create:function(){this._super(),this._on({tabsbeforeload:function(t,e){if(t.target===this.element[0]&&this.options.spinner){var n=e.tab.find("span"),i=n.html();n.html(this.options.spinner),e.jqXHR.complete(function(){n.html(i)})}}})}}),t.widget("ui.tabs",t.ui.tabs,{options:{enable:null,disable:null},enable:function(e){var n=this.options,i;(e&&n.disabled===!0||t.isArray(n.disabled)&&t.inArray(e,n.disabled)!==-1)&&(i=!0),this._superApply(arguments),i&&this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]))},disable:function(e){var n=this.options,i;(e&&n.disabled===!1||t.isArray(n.disabled)&&t.inArray(e,n.disabled)===-1)&&(i=!0),this._superApply(arguments),i&&this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}}),t.widget("ui.tabs",t.ui.tabs,{options:{add:null,remove:null,tabTemplate:"
  • #{label}
  • "},add:function(n,i,r){r===e&&(r=this.anchors.length);var o,a,s=this.options,l=t(s.tabTemplate.replace(/#\{href\}/g,n).replace(/#\{label\}/g,i)),u=n.indexOf("#")?this._tabId(l):n.replace("#","");return l.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),l.attr("aria-controls",u),o=r>=this.tabs.length,a=this.element.find("#"+u),a.length||(a=this._createPanel(u),o?r>0?a.insertAfter(this.panels.eq(-1)):a.appendTo(this.element):a.insertBefore(this.panels[r])),a.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide(),o?l.appendTo(this.tablist):l.insertBefore(this.tabs[r]),s.disabled=t.map(s.disabled,function(t){return t>=r?++t:t}),this.refresh(),1===this.tabs.length&&s.active===!1&&this.option("active",0),this._trigger("add",null,this._ui(this.anchors[r],this.panels[r])),this},remove:function(e){e=this._getIndex(e);var n=this.options,i=this.tabs.eq(e).remove(),r=this._getPanelForTab(i).remove();return i.hasClass("ui-tabs-active")&&this.anchors.length>2&&this._activate(e+(e+1=e?--t:t}),this.refresh(),this._trigger("remove",null,this._ui(i.find("a")[0],r[0])),this}}),t.widget("ui.tabs",t.ui.tabs,{length:function(){return this.anchors.length}}),t.widget("ui.tabs",t.ui.tabs,{options:{idPrefix:"ui-tabs-"},_tabId:function(e){var i=e.is("li")?e.find("a[href]"):e;return i=i[0],t(i).closest("li").attr("aria-controls")||i.title&&i.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF\-]/g,"")||this.options.idPrefix+n()}}),t.widget("ui.tabs",t.ui.tabs,{options:{panelTemplate:"
    "},_createPanel:function(e){return t(this.options.panelTemplate).attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),t.widget("ui.tabs",t.ui.tabs,{_create:function(){var t=this.options;null===t.active&&t.selected!==e&&(t.active=t.selected!==-1&&t.selected),this._super(),t.selected=t.active,t.selected===!1&&(t.selected=-1)},_setOption:function(t,e){if("selected"!==t)return this._super(t,e);var n=this.options;this._super("active",e!==-1&&e),n.selected=n.active,n.selected===!1&&(n.selected=-1)},_eventHandler:function(){this._superApply(arguments),this.options.selected=this.options.active,this.options.selected===!1&&(this.options.selected=-1)}}),t.widget("ui.tabs",t.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),this.options.active!==!1&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(t,e,n){var i,r,o=this._superApply(arguments);return!!o&&("beforeActivate"===t?(i=n.newTab.length?n.newTab:n.oldTab,r=n.newPanel.length?n.newPanel:n.oldPanel,o=this._super("select",e,{tab:i.find(".ui-tabs-anchor")[0],panel:r[0],index:i.closest("li").index()})):"activate"===t&&n.newTab.length&&(o=this._super("show",e,{tab:n.newTab.find(".ui-tabs-anchor")[0],panel:n.newPanel[0],index:n.newTab.closest("li").index()})),o)}}),t.widget("ui.tabs",t.ui.tabs,{select:function(t){if(t=this._getIndex(t),t===-1){if(!this.options.collapsible||this.options.selected===-1)return;t=this.options.selected}this.anchors.eq(t).trigger(this.options.event+this.eventNamespace)}}),function(){var e=0;t.widget("ui.tabs",t.ui.tabs,{options:{cookie:null},_create:function(){var t=this.options,e;null==t.active&&t.cookie&&(e=parseInt(this._cookie(),10),e===-1&&(e=!1),t.active=e),this._super()},_cookie:function(n){var i=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++e)];return arguments.length&&(i.push(n===!1?-1:n),i.push(this.options.cookie)),t.cookie.apply(null,i)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),t.widget("ui.tabs",t.ui.tabs,{_trigger:function(e,n,i){var r=t.extend({},i);return"load"===e&&(r.panel=r.panel[0],r.tab=r.tab.find(".ui-tabs-anchor")[0]),this._super(e,n,r)}}),t.widget("ui.tabs",t.ui.tabs,{options:{fx:null},_getFx:function(){var e,n,i=this.options.fx;return i&&(t.isArray(i)?(e=i[0],n=i[1]):e=n=i),i?{show:n,hide:e}:null},_toggle:function(t,e){function n(){r.running=!1,r._trigger("activate",t,e)}function i(){e.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&s.show?o.animate(s.show,s.show.duration,function(){n()}):(o.show(),n())}var r=this,o=e.newPanel,a=e.oldPanel,s=this._getFx();return s?(r.running=!0,void(a.length&&s.hide?a.animate(s.hide,s.hide.duration,function(){e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),i()}):(e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),i()))):this._super(t,e)}}))}(jQuery),function(t){function e(e,n){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(n),e.data("ui-tooltip-id",n).attr("aria-describedby",t.trim(i.join(" ")))}function n(e){var n=e.data("ui-tooltip-id"),i=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(n,i);r!==-1&&i.splice(r,1),e.removeData("ui-tooltip-id"),i=t.trim(i.join(" ")),i?e.attr("aria-describedby",i):e.removeAttr("aria-describedby")}var i=0;t.widget("ui.tooltip",{version:"1.9.2",options:{content:function(){return t(this).attr("title")},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,n){var i=this;return"disabled"===e?(this[n?"_disable":"_enable"](),void(this.options[e]=n)):(this._super(e,n),void("content"===e&&t.each(this.tooltips,function(t,e){i._updateContent(e)})))},_disable:function(){var e=this;t.each(this.tooltips,function(n,i){var r=t.Event("blur");r.target=r.currentTarget=i[0],e.close(r,!0)}),this.element.find(this.options.items).andSelf().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var n=this,i=t(e?e.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&i.parents().each(function(){var e=t(this),i;e.data("ui-tooltip-open")&&(i=t.Event("blur"),i.target=i.currentTarget=this,n.close(i,!0)),e.attr("title")&&(e.uniqueId(),n.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._updateContent(i,e))},_updateContent:function(t,e){var n,i=this.options.content,r=this,o=e?e.type:null;return"string"==typeof i?this._open(e,t,i):(n=i.call(t[0],function(n){t.data("ui-tooltip-open")&&r._delay(function(){e&&(e.type=o),this._open(e,t,n)})}),void(n&&this._open(e,t,n)))},_open:function(n,i,r){function o(t){u.of=t,a.is(":hidden")||a.position(u)}var a,s,l,u=t.extend({},this.options.position);if(r){if(a=this._find(i),a.length)return void a.find(".ui-tooltip-content").html(r);i.is("[title]")&&(n&&"mouseover"===n.type?i.attr("title",""):i.removeAttr("title")),a=this._tooltip(i),e(i,a.attr("id")),a.find(".ui-tooltip-content").html(r),this.options.track&&n&&/^mouse/.test(n.type)?(this._on(this.document,{mousemove:o}),o(n)):a.position(t.extend({of:i},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.show&&this.options.show.delay&&(l=setInterval(function(){a.is(":visible")&&(o(u.of),clearInterval(l))},t.fx.interval)),this._trigger("open",n,{tooltip:a}),s={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}},remove:function(){this._removeTooltip(a)}},n&&"mouseover"!==n.type||(s.mouseleave="close"),n&&"focusin"!==n.type||(s.focusout="close"),this._on(!0,i,s)}},close:function(e){var i=this,r=t(e?e.currentTarget:this.element),o=this._find(r);this.closing||(r.data("ui-tooltip-title")&&r.attr("title",r.data("ui-tooltip-title")),n(r),o.stop(!0),this._hide(o,this.options.hide,function(){i._removeTooltip(t(this))}),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&&this._off(r,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,n){t(n.element).attr("title",n.title),delete i.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:o}),this.closing=!1)},_tooltip:function(e){var n="ui-tooltip-"+i++,r=t("
    ").attr({id:n,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("
    ").addClass("ui-tooltip-content").appendTo(r),r.appendTo(this.document[0].body),t.fn.bgiframe&&r.bgiframe(),this.tooltips[n]=e,r},_find:function(e){var n=e.data("ui-tooltip-id");return n?t("#"+n):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(n,i){var r=t.Event("blur");r.target=r.currentTarget=i[0],e.close(r,!0),t("#"+n).remove(),i.data("ui-tooltip-title")&&(i.attr("title",i.data("ui-tooltip-title")),i.removeData("ui-tooltip-title"))})}})}(jQuery)}).call(exports,__webpack_require__(1))},,,,,,,,,,,,,,,,,,,function(t,e,n){(function(t){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}var i=n(1),r=e(i),o=n(51),a=e(o);window.tmpl=n(114),n(115),n(116),r["default"].widget("blueimpUIX.fileupload",r["default"].blueimpUI.fileupload,{_initTemplates:function s(){this.options.templateContainer=document.createElement(this._files.prop("nodeName")),this.options.uploadTemplate=window.tmpl(this.options.uploadTemplateName),this.options.downloadTemplate=window.tmpl(this.options.downloadTemplateName)},_enableFileInputButton:function l(){r["default"].blueimpUI.fileupload.prototype._enableFileInputButton.call(this),this.element.find(".ss-uploadfield-addfile").show()},_disableFileInputButton:function u(){r["default"].blueimpUI.fileupload.prototype._disableFileInputButton.call(this),this.element.find(".ss-uploadfield-addfile").hide()},_onAdd:function c(t,e){var n=r["default"].blueimpUI.fileupload.prototype._onAdd.call(this,t,e),i=this._files.find(".ss-uploadfield-item").slice(e.files.length*-1).first(),o="+="+(i.position().top-parseInt(i.css("marginTop"),10)||0-parseInt(i.css("borderTopWidth"),10)||0);i.offsetParent().animate({scrollTop:o},1e3);for(var s=0,l=0;l0&&(s=this._formatFileSize(s),(0,r["default"])(".fileOverview .uploadStatus .details .fileSize").text(s)),1==e.files.length&&null!==e.files[0].error?((0,r["default"])(".fileOverview .uploadStatus .state").text(a["default"]._t("AssetUploadField.UploadField.UPLOADFAIL","Sorry your upload failed")),(0,r["default"])(".fileOverview .uploadStatus").addClass("bad").removeClass("good").removeClass("notice")):((0,r["default"])(".fileOverview .uploadStatus .state").text(a["default"]._t("AssetUploadField.UPLOADINPROGRESS","Please wait… upload in progress")),(0,r["default"])(".ss-uploadfield-item-edit-all").hide(),(0,r["default"])(".fileOverview .uploadStatus").addClass("notice").removeClass("good").removeClass("bad")),n},_onDone:function d(t,e,n,i){this.options.changeDetection&&this.element.closest("form").trigger("dirty"),r["default"].blueimpUI.fileupload.prototype._onDone.call(this,t,e,n,i)},_onSend:function f(t,e){var n=this,i=this.options;return i.overwriteWarning&&i.replaceFile?void r["default"].get(i.urlFileExists,{filename:e.files[0].name},function(o,a,s){return o.exists?(e.context.find(".ss-uploadfield-item-status").text(i.errorMessages.overwriteWarning).addClass("ui-state-warning-text"),e.context.find(".ss-uploadfield-item-progress").hide(),e.context.find(".ss-uploadfield-item-overwrite").show(),e.context.find(".ss-uploadfield-item-overwrite-warning").on("click",function(t){return e.context.find(".ss-uploadfield-item-progress").show(),e.context.find(".ss-uploadfield-item-overwrite").hide(),e.context.find(".ss-uploadfield-item-status").removeClass("ui-state-warning-text"),r["default"].blueimpUI.fileupload.prototype._onSend.call(n,t,e),t.preventDefault(),!1}),void 0):r["default"].blueimpUI.fileupload.prototype._onSend.call(n,t,e)}):r["default"].blueimpUI.fileupload.prototype._onSend.call(n,t,e)},_onAlways:function h(t,e,n,i){r["default"].blueimpUI.fileupload.prototype._onAlways.call(this,t,e,n,i),"string"==typeof n?((0,r["default"])(".fileOverview .uploadStatus .state").text(a["default"]._t("AssetUploadField.UploadField.UPLOADFAIL","Sorry your upload failed")),(0,r["default"])(".fileOverview .uploadStatus").addClass("bad").removeClass("good").removeClass("notice")):200===n.status&&((0,r["default"])(".fileOverview .uploadStatus .state").text(a["default"]._t("AssetUploadField.FILEUPLOADCOMPLETED","File upload completed!")),(0,r["default"])(".ss-uploadfield-item-edit-all").show(),(0,r["default"])(".fileOverview .uploadStatus").addClass("good").removeClass("notice").removeClass("bad"))},_create:function p(){r["default"].blueimpUI.fileupload.prototype._create.call(this),this._adjustMaxNumberOfFiles(0)},attach:function m(t){this.options.changeDetection&&this.element.closest("form").trigger("dirty");var e=this,n=t.files,i=t.replaceFileID,o=!0,a=null;i&&(a=(0,r["default"])(".ss-uploadfield-item[data-fileid='"+i+"']"),0===a.length?a=null:e._adjustMaxNumberOfFiles(1)),r["default"].each(n,function(t,n){e._adjustMaxNumberOfFiles(-1),o=e._validate([n])&&o}),t.isAdjusted=!0,t.files.valid=t.isValidated=o,t.context=this._renderDownload(n),a?a.replaceWith(t.context):t.context.appendTo(this._files),t.context.data("data",t),this._reflow=this._transition&&t.context[0].offsetWidth,t.context.addClass("in")}}),r["default"].entwine("ss",function(e){e("div.ss-upload").entwine({Config:null,onmatch:function n(){if(!this.is(".readonly,.disabled")){var t=this.find(".ss-uploadfield-fromcomputer-fileinput"),n=e(".ss-uploadfield-dropzone"),i=t.data("config");n.on("dragover",function(t){t.preventDefault()}),n.on("dragenter",function(t){n.addClass("hover active")}),n.on("dragleave",function(t){t.target===n[0]&&n.removeClass("hover active")}),n.on("drop",function(t){if(n.removeClass("hover active"),t.target!==n[0])return!1}),this.setConfig(i),this.fileupload(e.extend(!0,{formData:function r(t){var n=e(t).find(":input[name=ID]").val(),i=[{name:"SecurityID",value:e(t).find(":input[name=SecurityID]").val()}];return n&&i.push({name:"ID",value:n}),i},errorMessages:{1:a["default"]._t("UploadField.PHP_MAXFILESIZE"),2:a["default"]._t("UploadField.HTML_MAXFILESIZE"),3:a["default"]._t("UploadField.ONLYPARTIALUPLOADED"),4:a["default"]._t("UploadField.NOFILEUPLOADED"),5:a["default"]._t("UploadField.NOTMPFOLDER"),6:a["default"]._t("UploadField.WRITEFAILED"),7:a["default"]._t("UploadField.STOPEDBYEXTENSION"),maxFileSize:a["default"]._t("UploadField.TOOLARGESHORT"),minFileSize:a["default"]._t("UploadField.TOOSMALL"),acceptFileTypes:a["default"]._t("UploadField.INVALIDEXTENSIONSHORT"),maxNumberOfFiles:a["default"]._t("UploadField.MAXNUMBEROFFILESSHORT"),uploadedBytes:a["default"]._t("UploadField.UPLOADEDBYTES"),emptyResult:a["default"]._t("UploadField.EMPTYRESULT")},send:function o(t,n){n.context&&n.dataType&&"iframe"===n.dataType.substr(0,6)&&(n.total=1,n.loaded=1,e(this).data("fileupload").options.progress(t,n))},progress:function s(t,e){if(e.context){var n=parseInt(e.loaded/e.total*100,10)+"%";e.context.find(".ss-uploadfield-item-status").html(1==e.total?a["default"]._t("UploadField.LOADING"):n),e.context.find(".ss-uploadfield-item-progressbarvalue").css("width",n)}}},i,{fileInput:t,dropZone:n,form:t.closest("form"),previewAsCanvas:!1,acceptFileTypes:new RegExp(i.acceptFileTypes,"i")})),this.data("fileupload")._isXHRUpload({multipart:!0})&&e(".ss-uploadfield-item-uploador").hide().show(),this._super()}},onunmatch:function i(){e(".ss-uploadfield-dropzone").off("dragover dragenter dragleave drop"),this._super()},openSelectDialog:function r(n){var i=this,r=this.getConfig(),o="ss-uploadfield-dialog-"+this.attr("id"),a=t("#"+o);a.length||(a=t('
    '));var s=r.urlSelectDialog,l=null;n&&n.attr("data-fileid")>0&&(l=n.attr("data-fileid")),a.ssdialog({iframeUrl:s,height:550}),a.find("iframe").bind("load",function(t){var n=e(this).contents(),r=n.find(".grid-field");n.find("table.grid-field").css("margin-top",0),n.find("input[name=action_doAttach]").unbind("click.openSelectDialog").bind("click.openSelectDialog",function(){var t=e.map(r.find(".ss-gridfield-item.ui-selected"),function(t){return e(t).data("id")});return t&&t.length&&i.attachFiles(t,l),a.ssdialog("close"),!1})}),a.ssdialog("open")},attachFiles:function o(t,n){var i=this,r=this.getConfig(),o=e('
    '),a=n?this.find(".ss-uploadfield-item[data-fileid='"+n+"']"):this.find(".ss-uploadfield-addfile");a.children().hide(),a.append(o),e.ajax({type:"POST",url:r.urlAttach,data:{ids:t},complete:function s(t,e){a.children().show(),o.remove()},success:function l(t,r,o){t&&!e.isEmptyObject(t)&&i.fileupload("attach",{files:t,options:i.fileupload("option"),replaceFileID:n})}})}}),e("div.ss-upload *").entwine({getUploadField:function s(){return this.parents("div.ss-upload:first")}}),e("div.ss-upload .ss-uploadfield-files .ss-uploadfield-item").entwine({onadd:function l(){this._super(),this.closest(".ss-upload").find(".ss-uploadfield-addfile").addClass("borderTop")},onremove:function u(){e(".ss-uploadfield-files:not(:has(.ss-uploadfield-item))").closest(".ss-upload").find(".ss-uploadfield-addfile").removeClass("borderTop"),this._super()}}),e("div.ss-upload .ss-uploadfield-startall").entwine({onclick:function c(t){return this.closest(".ss-upload").find(".ss-uploadfield-item-start button").click(),t.preventDefault(),!1}}),e("div.ss-upload .ss-uploadfield-item-cancelfailed").entwine({onclick:function d(t){return this.closest(".ss-uploadfield-item").remove(),t.preventDefault(),!1}}),e("div.ss-upload .ss-uploadfield-item-remove:not(.ui-state-disabled), .ss-uploadfield-item-delete:not(.ui-state-disabled)").entwine({onclick:function f(t){var e=this.closest("div.ss-upload"),n=e.getConfig("changeDetection"),i=e.data("fileupload"),r=this.closest(".ss-uploadfield-item"),o="";return this.is(".ss-uploadfield-item-delete")?confirm(a["default"]._t("UploadField.ConfirmDelete"))&&(n.changeDetection&&this.closest("form").trigger("dirty"),i&&i._trigger("destroy",t,{context:r,url:this.data("href"),type:"get",dataType:i.options.dataType})):(n.changeDetection&&this.closest("form").trigger("dirty"),i&&i._trigger("destroy",t,{context:r})),t.preventDefault(),!1}}),e("div.ss-upload .ss-uploadfield-item-edit-all").entwine({onclick:function h(t){return e(this).hasClass("opened")?(e(".ss-uploadfield-item .ss-uploadfield-item-edit .toggle-details-icon.opened").each(function(t){ +e(this).closest(".ss-uploadfield-item-edit").click()}),e(this).removeClass("opened").find(".toggle-details-icon").removeClass("opened")):(e(".ss-uploadfield-item .ss-uploadfield-item-edit .toggle-details-icon").each(function(t){e(this).hasClass("opened")||e(this).closest(".ss-uploadfield-item-edit").click()}),e(this).addClass("opened").find(".toggle-details-icon").addClass("opened")),t.preventDefault(),!1}}),e("div.ss-upload:not(.disabled):not(.readonly) .ss-uploadfield-item-edit").entwine({onclick:function p(t){var e=this,n=e.closest(".ss-uploadfield-item").find(".ss-uploadfield-item-editform"),i=n.prev(".ss-uploadfield-item-info"),r=n.find("iframe");if(r.parent().hasClass("loading"))return t.preventDefault(),!1;if("about:blank"==r.attr("src")){var o=this.siblings();r.attr("src",r.data("src")),r.parent().addClass("loading"),o.addClass("ui-state-disabled"),o.attr("disabled","disabled"),r.on("load",function(){r.parent().removeClass("loading"),r.data("src")&&(e._prepareIframe(r,n,i),r.data("src",""))})}else e._prepareIframe(r,n,i);return t.preventDefault(),!1},_prepareIframe:function m(t,e,n){var i;t.contents().ready(function(){var n=t.get(0).contentWindow.jQuery;n(n.find(":input")).bind("change",function(t){e.removeClass("edited"),e.addClass("edited")})}),e.hasClass("loading")||(i=this.hasClass("ss-uploadfield-item-edit")?this.siblings():this.find("ss-uploadfield-item-edit").siblings(),e.parent(".ss-uploadfield-item").removeClass("ui-state-warning"),e.toggleEditForm(),n.find(".toggle-details-icon").hasClass("opened")?(i.addClass("ui-state-disabled"),i.attr("disabled","disabled")):(i.removeClass("ui-state-disabled"),i.removeAttr("disabled")))}}),e("div.ss-upload .ss-uploadfield-item-editform").entwine({fitHeight:function g(){var t=this.find("iframe"),n=t.contents().find("body"),i=n.find("form").outerHeight(!0),r=i+(t.outerHeight(!0)-t.height()),o=r+(this.outerHeight(!0)-this.height());e.browser.msie||"8.0"==e.browser.version.slice(0,3)||n.find("body").css({height:i}),t.height(r),this.animate({height:o},500)},toggleEditForm:function v(){var t=this.prev(".ss-uploadfield-item-info"),n=t.find(".ss-uploadfield-item-status"),i=this.find("iframe").contents(),r=i.find("#Form_EditForm_error"),o="";0===this.height()?(o=a["default"]._t("UploadField.Editing","Editing ..."),this.fitHeight(),this.addClass("opened"),t.find(".toggle-details-icon").addClass("opened"),n.removeClass("ui-state-success-text").removeClass("ui-state-warning-text"),i.find("#Form_EditForm_action_doEdit").click(function(){t.find("label .name").text(i.find("#Name input").val())}),e("div.ss-upload .ss-uploadfield-files .ss-uploadfield-item-actions .toggle-details-icon:not(.opened)").index()<0&&e("div.ss-upload .ss-uploadfield-item-edit-all").addClass("opened").find(".toggle-details-icon").addClass("opened")):(this.animate({height:0},500),this.removeClass("opened"),t.find(".toggle-details-icon").removeClass("opened"),e("div.ss-upload .ss-uploadfield-item-edit-all").removeClass("opened").find(".toggle-details-icon").removeClass("opened"),this.hasClass("edited")?r.hasClass("good")?(o=a["default"]._t("UploadField.CHANGESSAVED","Changes Saved"),this.removeClass("edited").parent(".ss-uploadfield-item").removeClass("ui-state-warning"),n.addClass("ui-state-success-text")):(o=a["default"]._t("UploadField.UNSAVEDCHANGES","Unsaved Changes"),this.parent(".ss-uploadfield-item").addClass("ui-state-warning"),n.addClass("ui-state-warning-text")):(o=a["default"]._t("UploadField.NOCHANGES","No Changes"),n.addClass("ui-state-success-text")),r.removeClass("good").hide()),n.attr("title",o).text(o)}}),e("div.ss-upload .ss-uploadfield-fromfiles").entwine({onclick:function y(t){return this.getUploadField().openSelectDialog(this.closest(".ss-uploadfield-item")),t.preventDefault(),!1}})})}).call(e,n(1))},function(t,e,n){var i;!function(r){"use strict";var o=function(t,e){var n=/[^\-\w]/.test(t)?new Function(o.arg,("var _s=''"+o.helper+";_s+='"+t.replace(o.regexp,o.func)+"';return _s;").split("_s+='';").join("")):o.cache[t]=o.cache[t]||o(o.load(t));return n.tmpl=n.tmpl||o,e?n(e):n};o.cache={},o.load=function(t){return document.getElementById(t).innerHTML},o.regexp=/(\s+)|('|\\)(?![^%]*%\})|(?:\{%(=|#)(.+?)%\})|(\{%)|(%\})/g,o.func=function(t,e,n,i,r,o,a,s,l){return e?s&&s+t.length!==l.length?" ":"":n?"\\"+t:i?"="===i?"'+_e("+r+")+'":"'+("+r+"||'')+'":o?"';":a?"_s+='":void 0},o.encReg=/[<>&"\x00]/g,o.encMap={"<":"<",">":">","&":"&",'"':""","\0":""},o.encode=function(t){return String(t||"").replace(o.encReg,function(t){return o.encMap[t]})},o.arg="o",o.helper=",_t=arguments.callee.tmpl,_e=_t.encode,print=function(s,e){_s+=e&&(s||'')||_e(s);},include=function(s,d){_s+=_t(s,d);}",i=function(){return o}.call(e,n,e,t),!(void 0!==i&&(t.exports=i))}(this)},function(t,e){"use strict";window.tmpl.cache["ss-uploadfield-uploadtemplate"]=window.tmpl('{% for (var i=0, files=o.files, l=files.length, file=files[0]; i
    {% if (!file.error) { %}
    {% if (!o.options.autoUpload) { %}
    {% } %}{% } %}
    {% } %}")},function(t,e){"use strict";tmpl.cache["ss-uploadfield-downloadtemplate"]=tmpl('{% for (var i=0, files=o.files, l=files.length, file=files[0]; i{% if (file.thumbnail_url) { %}
    {% } %}
    {% if (!file.error && file.id) { %}{% } %}{% if (!file.error && file.filename) { %}{% } %}{% if (file.error) { %}
    {% } else { %}
    {% print(file.buttons, true); %}
    {% } %}
    {% if (!file.error) { %}
    {% } %}{% } %}')},,function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}var r=n(1),o=i(r);n(94),o["default"].fn.extend({ssDatepicker:function a(t){return(0,o["default"])(this).each(function(){if(!((0,o["default"])(this).prop("disabled")||(0,o["default"])(this).prop("readonly")||(0,o["default"])(this).data("datepicker"))){(0,o["default"])(this).siblings("button").addClass("ui-icon ui-icon-calendar");var e=(0,o["default"])(this).closest(".field.date"),n=o["default"].extend(t||{},(0,o["default"])(this).data(),(0,o["default"])(this).data("jqueryuiconfig"),{});n.showcalendar&&(n.locale&&o["default"].datepicker.regional[n.locale]&&(n=o["default"].extend(n,o["default"].datepicker.regional[n.locale],{})),n.min&&(n.minDate=o["default"].datepicker.parseDate("yy-mm-dd",n.min)),n.max&&(n.maxDate=o["default"].datepicker.parseDate("yy-mm-dd",n.max)),n.dateFormat=n.jquerydateformat,(0,o["default"])(this).datepicker(n))}})}}),(0,o["default"])(document).on("click",".field.date input.text,input.text.date",function(){(0,o["default"])(this).ssDatepicker(),(0,o["default"])(this).data("datepicker")&&(0,o["default"])(this).datepicker("show")})},,,function(t,e,n){(function(e){t.exports=e.DeepFreezeStrict=n(122)}).call(e,function(){return this}())},function(t,e){t.exports=function n(t){Object.freeze(t);var e="function"==typeof t,i=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(r){!i.call(t,r)||e&&("caller"===r||"callee"===r||"arguments"===r)||null===t[r]||"object"!=typeof t[r]&&"function"!=typeof t[r]||Object.isFrozen(t[r])||n(t[r])}),t}},function(t,e,n){(function(e){t.exports=e.React=n(124)}).call(e,function(){return this}())},function(t,e,n){"use strict";t.exports=n(125)},function(t,e,n){"use strict";var i=n(126),r=n(127),o=n(139),a=n(142),s=n(143),l=n(148),u=n(131),c=n(149),d=n(151),f=n(152),h=n(133),p=u.createElement,m=u.createFactory,g=u.cloneElement,v,y=i,b,_={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:o,PureComponent:a,createElement:p,cloneElement:g,isValidElement:u.isValidElement,PropTypes:c,createClass:s.createClass,createFactory:m,createMixin:function(t){return t},DOM:l,version:d,__spread:y};t.exports=_},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function i(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}var r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=i()?Object.assign:function(t,e){for(var i,a=n(t),s,l=1;l1){for(var m=Array(p),v=0;v1){for(var b=Array(y),_=0;_>",S={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:l,element:u(),instanceOf:c,node:p(),objectOf:f,oneOf:d,oneOfType:h,shape:m};r.prototype=Error.prototype,t.exports=S},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e){"use strict";t.exports="15.3.1"},function(t,e,n){"use strict";function i(t){return o.isValidElement(t)?void 0:r("143"),t}var r=n(129),o=n(131),a=n(130);t.exports=i},function(t,e,n){(function(e){t.exports=e.Tether=n(154)}).call(e,function(){return this}())},function(t,e,n){var i,r;/*! tether 1.3.7 */ +!function(o,a){i=a,r="function"==typeof i?i.call(e,n,e,t):i,!(void 0!==r&&(t.exports=r))}(this,function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.getBoundingClientRect(),n={};for(var i in e)n[i]=e[i];if(t.ownerDocument!==document){var o=t.ownerDocument.defaultView.frameElement;if(o){var a=r(o);n.top+=a.top,n.bottom+=a.top,n.left+=a.left,n.right+=a.left}}return n}function o(t){var e=getComputedStyle(t)||{},n=e.position,i=[];if("fixed"===n)return[t];for(var r=t;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(a){}if("undefined"==typeof o||null===o)return i.push(r),i;var s=o,l=s.overflow,u=s.overflowX,c=s.overflowY;/(auto|scroll)/.test(l+c+u)&&("absolute"!==n||["relative","absolute","fixed"].indexOf(o.position)>=0)&&i.push(r)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function a(){T&&document.body.removeChild(T),T=null}function s(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,i=r(t),o=S();return i.top-=o.top,i.left-=o.left,"undefined"==typeof i.width&&(i.width=document.body.scrollWidth-i.left-i.right),"undefined"==typeof i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-n.clientTop,i.left=i.left-n.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function l(t){return t.offsetParent||document.documentElement}function u(){if(P)return P;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");c(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;n===i&&(i=e.clientWidth),document.body.removeChild(e);var r=n-i;return P={width:r,height:r}}function c(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function d(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var n=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=p(t).replace(n," ");m(t,i)}}function f(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var n=p(t)+(" "+e);m(t,n)}}function h(t,e){if("undefined"!=typeof t.classList)return t.classList.contains(e);var n=p(t);return new RegExp("(^| )"+e+"( |$)","gi").test(n)}function p(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function m(t,e){t.setAttribute("class",e)}function g(t,e,n){n.forEach(function(n){e.indexOf(n)===-1&&h(t,n)&&d(t,n)}),e.forEach(function(e){h(t,e)||f(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+n>=e&&e>=t-n}function b(){return"undefined"!=typeof performance&&"undefined"!=typeof performance.now?performance.now():+new Date}function _(){for(var t={top:0,left:0},e=arguments.length,n=Array(e),i=0;i1?n-1:0),r=1;r16?(e=Math.min(e-16,250),void(n=setTimeout(r,250))):void("undefined"!=typeof t&&b()-t<10||(null!=n&&(clearTimeout(n),n=null),t=b(),H(),e=b()-t))};"undefined"!=typeof window&&"undefined"!=typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var Q={center:"center",left:"right",right:"left"},U={middle:"middle",top:"bottom",bottom:"top"},B={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},z=function et(t,e){var n=t.left,i=t.top;return"auto"===n&&(n=Q[e.left]),"auto"===i&&(i=U[e.top]),{left:n,top:i}},W=function nt(t){var e=t.left,n=t.top;return"undefined"!=typeof B[t.left]&&(e=B[t.left]),"undefined"!=typeof B[t.top]&&(n=B[t.top]),{left:e,top:n}},q=function it(t){var e=t.split(" "),n=A(e,2),i=n[0],r=n[1];return{top:i,left:r}},$=q,V=function(t){function e(t){var n=this;i(this,e),I(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),L.push(this),this.history=[],this.setOptions(t,!1),k.modules.forEach(function(t){"undefined"!=typeof t.initialize&&t.initialize.call(n)}),this.position()}return v(e,t),C(e,[{key:"getClass",value:function n(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return"undefined"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function r(t){var e=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=c(i,t);var r=this.options,a=r.element,s=r.target,l=r.targetModifier;if(this.element=a,this.target=s,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if("undefined"==typeof e[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),f(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&f(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=$(this.options.targetAttachment),this.attachment=$(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),"undefined"!=typeof this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=o(this.target),this.options.enabled!==!1&&this.enable(n)}},{key:"getTargetBounds",value:function h(){if("undefined"==typeof this.targetModifier)return s(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=s(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.topn.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,o=0;r&&(o=15);var a=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-o,e={width:15,height:.975*a*(a/n.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},l=0;a<408&&this.target===document.body&&(l=-11e-5*Math.pow(a,2)-.00727*a+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var u=this.target.scrollTop/(n.scrollHeight-a);return e.top=u*(a-e.height-l)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function p(){this._cache={}}},{key:"cache",value:function m(t,e){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function b(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.options.addTargetClasses!==!1&&f(this.target,this.getClass("enabled")),f(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function w(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,"undefined"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function T(){var t=this;this.disable(),L.forEach(function(e,n){e===t&&L.splice(n,1)}),0===L.length&&a()}},{key:"updateAttachClasses",value:function j(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var r=this._addAttachClasses;t.top&&r.push(this.getClass("element-attached")+"-"+t.top),t.left&&r.push(this.getClass("element-attached")+"-"+t.left),e.top&&r.push(this.getClass("target-attached")+"-"+e.top),e.left&&r.push(this.getClass("target-attached")+"-"+e.left);var o=[];i.forEach(function(t){o.push(n.getClass("element-attached")+"-"+t),o.push(n.getClass("target-attached")+"-"+t)}),N(function(){"undefined"!=typeof n._addAttachClasses&&(g(n.element,n._addAttachClasses,o),n.options.addTargetClasses!==!1&&g(n.target,n._addAttachClasses,o),delete n._addAttachClasses)})}},{key:"position",value:function E(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=z(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",function(){return s(t.element)}),r=i.width,o=i.height;if(0===r&&0===o&&"undefined"!=typeof this.lastSize){var a=this.lastSize;r=a.width,o=a.height}else this.lastSize={width:r,height:o};var c=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=c,f=x(W(this.attachment),{width:r,height:o}),h=x(W(n),d),p=x(this.offset,{width:r,height:o}),m=x(this.targetOffset,d);f=_(f,p),h=_(h,m);for(var g=c.left+h.left-f.left,v=c.top+h.top-f.top,y=0;yT.documentElement.clientHeight&&(E=this.cache("scrollbar-size",u),C.viewport.bottom-=E.height),j.innerWidth>T.documentElement.clientWidth&&(E=this.cache("scrollbar-size",u),C.viewport.right-=E.width),["","static"].indexOf(T.body.style.position)!==-1&&["","static"].indexOf(T.body.parentElement.style.position)!==-1||(C.page.bottom=T.body.scrollHeight-v-o,C.page.right=T.body.scrollWidth-g-r),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var e=t.cache("target-offsetparent",function(){return l(t.target)}),n=t.cache("target-offsetparent-bounds",function(){return s(e)}),i=getComputedStyle(e),r=n,o={};if(["Top","Left","Bottom","Right"].forEach(function(t){o[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),n.right=T.body.scrollWidth-n.left-r.width+o.right,n.bottom=T.body.scrollHeight-n.top-r.height+o.bottom,C.page.top>=n.top+o.top&&C.page.bottom>=n.bottom&&C.page.left>=n.left+o.left&&C.page.right>=n.right){var a=e.scrollTop,u=e.scrollLeft;C.offset={top:C.page.top-n.top+a-o.top,left:C.page.left-n.left+u-o.left}}}(),this.move(C),this.history.unshift(C),this.history.length>3&&this.history.pop(),e&&D(),!0}}},{key:"move",value:function S(t){var e=this;if("undefined"!=typeof this.element.parentNode){var n={};for(var i in t){n[i]={};for(var r in t[i]){for(var o=!1,a=0;a=0){var p=s.split(" "),g=A(p,2);d=g[0],c=g[1]}else c=d=s;var b=w(e,o);"target"!==d&&"both"!==d||(nb[3]&&"bottom"===v.top&&(n-=f,v.top="top")),"together"===d&&("top"===v.top&&("bottom"===y.top&&nb[3]&&n-(a-f)>=b[1]&&(n-=a-f,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&n+a>b[3]?(n-=f,v.top="top",n-=a,y.top="bottom"):"bottom"===y.top&&nb[3]&&"top"===y.top?(n-=a,y.top="bottom"):nb[2]&&"right"===v.left&&(i-=h,v.left="left")),"together"===c&&(ib[2]&&"right"===v.left?"left"===y.left?(i-=h,v.left="left",i-=l,y.left="right"):"right"===y.left&&(i-=h,v.left="left",i+=l,y.left="left"):"center"===v.left&&(i+l>b[2]&&"left"===y.left?(i-=l,y.left="right"):ib[3]&&"top"===y.top&&(n-=a,y.top="bottom")),"element"!==c&&"both"!==c||(ib[2]&&("left"===y.left?(i-=l,y.left="right"):"center"===y.left&&(i-=l/2,y.left="right"))),"string"==typeof u?u=u.split(",").map(function(t){return t.trim()}):u===!0&&(u=["top","left","right","bottom"]),u=u||[];var _=[],x=[];n=0?(n=b[1],_.push("top")):x.push("top")),n+a>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-a,_.push("bottom")):x.push("bottom")),i=0?(i=b[0],_.push("left")):x.push("left")),i+l>b[2]&&(u.indexOf("right")>=0?(i=b[2]-l,_.push("right")):x.push("right")),_.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),m.push(t),_.forEach(function(e){m.push(t+"-"+e)})}(),x.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),m.push(t),x.forEach(function(e){m.push(t+"-"+e)})}(),(_.indexOf("left")>=0||_.indexOf("right")>=0)&&(y.left=v.left=!1),(_.indexOf("top")>=0||_.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===r.top&&v.left===r.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),N(function(){e.options.addTargetClasses!==!1&&g(e.target,m,p),g(e.element,m,p)}),{top:n,left:i}}});var R=k.Utils,s=R.getBounds,g=R.updateClasses,N=R.defer;k.modules.push({position:function ot(t){var e=this,n=t.top,i=t.left,r=this.cache("element-bounds",function(){return s(e.element)}),o=r.height,a=r.width,l=this.getTargetBounds(),u=n+o,c=i+a,d=[];n<=l.bottom&&u>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==i&&e!==c||d.push(t)}),i<=l.right&&c>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==n&&e!==u||d.push(t)});var f=[],h=[],p=["left","top","right","bottom"];return f.push(this.getClass("abutted")),p.forEach(function(t){f.push(e.getClass("abutted")+"-"+t)}),d.length&&h.push(this.getClass("abutted")),d.forEach(function(t){h.push(e.getClass("abutted")+"-"+t)}),N(function(){e.options.addTargetClasses!==!1&&g(e.target,h,f),g(e.element,h,f)}),!0}});var A=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a=t[Symbol.iterator](),s;!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return k.modules.push({position:function at(t){var e=t.top,n=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:n}));var r=void 0,o=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var a=i,s=A(a,2);r=s[0],o=s[1],r=parseFloat(r,10),o=parseFloat(o,10)}else r=i.top,o=i.left;return e+=r,n+=o,{top:e,left:n}}}}),K})},function(t,e,n){(function(e){t.exports=e.ReactDom=n(156)}).call(e,function(){return this}())},function(t,e,n){"use strict";t.exports=n(157)},function(t,e,n){"use strict";var i=n(158),r=n(161),o=n(280),a=n(181),s=n(178),l=n(151),u=n(285),c=n(286),d=n(287),f=n(133);r.inject();var h={findDOMNode:u,render:o.render,unmountComponentAtNode:o.unmountComponentAtNode,version:l,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:d};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:i.getClosestInstanceFromNode,getNodeFromInstance:function(t){return t._renderedComponent&&(t=c(t)),t?i.getNodeFromInstance(t):null}},Mount:o,Reconciler:a});var p,m,g,v,y,b,_,x,w;t.exports=h},function(t,e,n){"use strict";function i(t){for(var e;e=t._renderedComponent;)t=e;return t}function r(t,e){var n=i(t);n._hostNode=e,e[g]=n}function o(t){var e=t._hostNode;e&&(delete e[g],t._hostNode=null)}function a(t,e){if(!(t._flags&m.hasCachedChildNodes)){var n=t._renderedChildren,o=e.firstChild;t:for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],l=i(s)._domID;if(0!==l){for(;null!==o;o=o.nextSibling)if(1===o.nodeType&&o.getAttribute(p)===String(l)||8===o.nodeType&&o.nodeValue===" react-text: "+l+" "||8===o.nodeType&&o.nodeValue===" react-empty: "+l+" "){r(s,o);continue t}c("32",l)}}t._flags|=m.hasCachedChildNodes}}function s(t){if(t[g])return t[g];for(var e=[];!t[g];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var n,i;t&&(i=t[g]);t=e.pop())n=i,e.length&&a(i,t);return n}function l(t){var e=s(t);return null!=e&&e._hostNode===t?e:null}function u(t){if(void 0===t._hostNode?c("33"):void 0,t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent?void 0:c("34"),t=t._hostParent;for(;e.length;t=e.pop())a(t,t._hostNode);return t._hostNode}var c=n(129),d=n(159),f=n(160),h=n(130),p=d.ID_ATTRIBUTE_NAME,m=f,g="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:s,getInstanceFromNode:l,getNodeFromInstance:u,precacheChildNodes:a,precacheNode:r,uncacheNode:o};t.exports=v},function(t,e,n){"use strict";function i(t,e){return(t&e)===e}var r=n(129),o=n(130),a={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(t){var e=a,n=t.Properties||{},o=t.DOMAttributeNamespaces||{},s=t.DOMAttributeNames||{},u=t.DOMPropertyNames||{},c=t.DOMMutationMethods||{};t.isCustomAttribute&&l._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var d in n){l.properties.hasOwnProperty(d)?r("48",d):void 0;var f=d.toLowerCase(),h=n[d],p={attributeName:f,attributeNamespace:null,propertyName:d,mutationMethod:null,mustUseProperty:i(h,e.MUST_USE_PROPERTY),hasBooleanValue:i(h,e.HAS_BOOLEAN_VALUE),hasNumericValue:i(h,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:i(h,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:i(h,e.HAS_OVERLOADED_BOOLEAN_VALUE)};if(p.hasBooleanValue+p.hasNumericValue+p.hasOverloadedBooleanValue<=1?void 0:r("50",d),s.hasOwnProperty(d)){var m=s[d];p.attributeName=m}o.hasOwnProperty(d)&&(p.attributeNamespace=o[d]),u.hasOwnProperty(d)&&(p.propertyName=u[d]),c.hasOwnProperty(d)&&(p.mutationMethod=c[d]),l.properties[d]=p}}},s=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",l={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:s,ATTRIBUTE_NAME_CHAR:s+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e8&&C<=11),j=32,E=String.fromCharCode(j),S=h.topLevelTypes,P={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})}, +dependencies:[S.topCompositionEnd,S.topKeyPress,S.topTextInput,S.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[S.topBlur,S.topCompositionEnd,S.topKeyDown,S.topKeyPress,S.topKeyUp,S.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[S.topBlur,S.topCompositionStart,S.topKeyDown,S.topKeyPress,S.topKeyUp,S.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[S.topBlur,S.topCompositionUpdate,S.topKeyDown,S.topKeyPress,S.topKeyUp,S.topMouseDown]}},O=!1,N=null,D={eventTypes:P,extractEvents:function(t,e,n,i){return[u(t,e,n,i),f(t,e,n,i)]}};t.exports=D},function(t,e,n){"use strict";var i=n(145),r=i({bubbled:null,captured:null}),o=i({topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:o,PropagationPhases:r};t.exports=a},function(t,e,n){"use strict";function i(t,e,n){var i=e.dispatchConfig.phasedRegistrationNames[n];return _(t,i)}function r(t,e,n){var r=e?b.bubbled:b.captured,o=i(t,n,r);o&&(n._dispatchListeners=g(n._dispatchListeners,o),n._dispatchInstances=g(n._dispatchInstances,t))}function o(t){t&&t.dispatchConfig.phasedRegistrationNames&&m.traverseTwoPhase(t._targetInst,r,t)}function a(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst,n=e?m.getParentInstance(e):null;m.traverseTwoPhase(n,r,t)}}function s(t,e,n){if(n&&n.dispatchConfig.registrationName){var i=n.dispatchConfig.registrationName,r=_(t,i);r&&(n._dispatchListeners=g(n._dispatchListeners,r),n._dispatchInstances=g(n._dispatchInstances,t))}}function l(t){t&&t.dispatchConfig.registrationName&&s(t._targetInst,null,t)}function u(t){v(t,o)}function c(t){v(t,a)}function d(t,e,n,i){m.traverseEnterLeave(n,i,s,t,e)}function f(t){v(t,l)}var h=n(163),p=n(165),m=n(167),g=n(169),v=n(170),y=n(133),b=h.PropagationPhases,_=p.getListener,x={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:d};t.exports=x},function(t,e,n){"use strict";var i=n(129),r=n(166),o=n(167),a=n(168),s=n(169),l=n(170),u=n(130),c={},d=null,f=function(t,e){t&&(o.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},h=function(t){return f(t,!0)},p=function(t){return f(t,!1)},m=function(t){return"."+t._rootNodeID},g={injection:{injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},putListener:function(t,e,n){"function"!=typeof n?i("94",e,typeof n):void 0;var o=m(t),a=c[e]||(c[e]={});a[o]=n;var s=r.registrationNameModules[e];s&&s.didPutListener&&s.didPutListener(t,e,n)},getListener:function(t,e){var n=c[e],i=m(t);return n&&n[i]},deleteListener:function(t,e){var n=r.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var i=c[e];if(i){var o=m(t);delete i[o]}},deleteAllListeners:function(t){var e=m(t);for(var n in c)if(c.hasOwnProperty(n)&&c[n][e]){var i=r.registrationNameModules[n];i&&i.willDeleteListener&&i.willDeleteListener(t,n),delete c[n][e]}},extractEvents:function(t,e,n,i){for(var o,a=r.plugins,l=0;l-1?void 0:a("96",t),!c.plugins[n]){e.extractEvents?void 0:a("97",t),c.plugins[n]=e;var i=e.eventTypes;for(var o in i)r(i[o],e,o)?void 0:a("98",o,t)}}}function r(t,e,n){c.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,c.eventNameDispatchConfigs[n]=t;var i=t.phasedRegistrationNames;if(i){for(var r in i)if(i.hasOwnProperty(r)){var s=i[r];o(s,e,n)}return!0}return!!t.registrationName&&(o(t.registrationName,e,n),!0)}function o(t,e,n){c.registrationNameModules[t]?a("100",t):void 0,c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[n].dependencies;var i}var a=n(129),s=n(130),l=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){l?a("101"):void 0,l=Array.prototype.slice.call(t),i()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];u.hasOwnProperty(n)&&u[n]===r||(u[n]?a("102",n):void 0,u[n]=r,e=!0)}e&&i()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;for(var n in e.phasedRegistrationNames)if(e.phasedRegistrationNames.hasOwnProperty(n)){var i=c.registrationNameModules[e.phasedRegistrationNames[n]];if(i)return i}return null},_resetEventPlugins:function(){l=null;for(var t in u)u.hasOwnProperty(t)&&delete u[t];c.plugins.length=0;var e=c.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var i=c.registrationNameModules;for(var r in i)i.hasOwnProperty(r)&&delete i[r];var o,a}};t.exports=c},function(t,e,n){"use strict";function i(t){return t===_.topMouseUp||t===_.topTouchEnd||t===_.topTouchCancel}function r(t){return t===_.topMouseMove||t===_.topTouchMove}function o(t){return t===_.topMouseDown||t===_.topTouchStart}function a(t,e,n,i){var r=t.type||"unknown-event";t.currentTarget=w.getNodeFromInstance(i),e?p.invokeGuardedCallbackWithCatch(r,n,t):p.invokeGuardedCallback(r,n,t),t.currentTarget=null}function s(t,e){var n=t._dispatchListeners,i=t._dispatchInstances;if(Array.isArray(n))for(var r=0;r1?1-i:void 0;return this._fallbackText=r.slice(t,s),this._fallbackText}}),o.addPoolingTo(i),t.exports=i},function(t,e,n){"use strict";function i(){return!o&&r.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var r=n(171),o=null;t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){return r.call(this,t,e,n,i)}var r=n(175),o={data:null};r.augmentClass(i,o),t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n;var r=this.constructor.Interface;for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];a?this[o]=a(n):"target"===o?this.target=i:this[o]=n[o]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return l?this.isDefaultPrevented=s.thatReturnsTrue:this.isDefaultPrevented=s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse,this}function r(t,e){function n(t){var e=o?"setting the method":"setting the property";return r(e,"This is effectively a no-op"),t}function i(){var t=o?"accessing the method":"accessing the property",n=o?"This is a no-op function":"This is set to null";return r(t,n),e}function r(t,e){var n=!1}var o="function"==typeof e;return{configurable:!0,set:n,get:i}}var o=n(126),a=n(128),s=n(134),l=n(133),u=!1,c="function"==typeof Proxy,d=["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"],f={type:null,target:null,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1,this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;for(var n=0;n8));var R=!1;x.canUseDOM&&(R=j("input")&&(!("documentMode"in document)||document.documentMode>11));var F={get:function(){return A.get.call(this)},set:function(t){M=""+t,A.set.call(this,t)}},L={eventTypes:O,extractEvents:function(t,e,n,r){var o=e?w.getNodeFromInstance(e):window,a,s;if(i(o)?I?a=l:s=u:E(o)?R?a=h:(a=m,s=p):g(o)&&(a=v),a){var c=a(t,e);if(c){var d=k.getPooled(O.change,c,n,r);return d.type="change",_.accumulateTwoPhaseDispatches(d),d}}s&&s(t,o,e)}};t.exports=L},function(t,e,n){"use strict";function i(){S.ReactReconcileTransaction&&w?void 0:c("123")}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function o(t,e,n,r,o,a){i(),w.batchedUpdates(t,e,n,r,o,a)}function a(t,e){return t._mountOrder-e._mountOrder}function s(t){var e=t.dirtyComponentsLength;e!==y.length?c("124",e,y.length):void 0,y.sort(a),b++;for(var n=0;n]/,s=n(201),l,u=s(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{l=l||document.createElement("div"),l.innerHTML=""+e+"";for(var n=l.firstChild.childNodes,r=0;r]/;t.exports=r},function(t,e,n){"use strict";var r=n(129),i=n(198),o=n(171),a=n(205),s=n(134),l=n(130),u={dangerouslyReplaceNodeWithMarkup:function(t,e){if(o.canUseDOM?void 0:r("56"),e?void 0:r("57"),"HTML"===t.nodeName?r("58"):void 0,"string"==typeof e){var n=a(e,s)[0];t.parentNode.replaceChild(n,t)}else i.replaceChildWithTree(t,e)}};t.exports=u},function(t,e,n){"use strict";function r(t){var e=t.match(c);return e&&e[1].toLowerCase()}function i(t,e){var n=u;u?void 0:l(!1);var i=r(t),o=i&&s(i);if(o){n.innerHTML=o[1]+t+o[2];for(var c=o[0];c--;)n=n.lastChild}else n.innerHTML=t;var d=n.getElementsByTagName("script");d.length&&(e?void 0:l(!1),a(d).forEach(e));for(var f=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return f}var o=n(171),a=n(206),s=n(207),l=n(130),u=o.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=i},function(t,e,n){"use strict";function r(t){var e=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?a(!1):void 0,"number"!=typeof e?a(!1):void 0,0===e||e-1 in t?void 0:a(!1),"function"==typeof t.callee?a(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(n){}for(var r=Array(e),i=0;i":a.innerHTML="<"+t+">",s[t]=!a.firstChild),s[t]?f[t]:null}var i=n(171),o=n(130),a=i.canUseDOM?document.createElement("div"):null,s={},l=[1,'"],u=[1,"","
    "],c=[3,"","
    "],d=[1,'',""],f={"*":[1,"?
    ","
    "],area:[1,"",""],col:[2,"","
    "],legend:[1,"
    ","
    "],param:[1,"",""],tr:[2,"","
    "],optgroup:l,option:l,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(t){f[t]=d,s[t]=!0}),t.exports=r},function(t,e,n){"use strict";var r=n(145),i=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=i},function(t,e,n){"use strict";var r=n(197),i=n(158),o={dangerouslyProcessChildrenUpdates:function(t,e){var n=i.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=o},function(t,e,n){"use strict";function r(t){if(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function i(t){if("object"==typeof t){if(Array.isArray(t))return"["+t.map(i).join(", ")+"]";var e=[];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=/^[a-z$_][\w$_]*$/i.test(n)?n:JSON.stringify(n);e.push(r+": "+i(t[n]))}return"{"+e.join(", ")+"}"}return"string"==typeof t?JSON.stringify(t):"function"==typeof t?"[function object]":String(t)}function o(t,e,n){if(null!=t&&null!=e&&!W(t,e)){var r=n._tag,i=n._currentElement._owner,o;i&&(o=i.getName());var a=o+"|"+r;rt.hasOwnProperty(a)||(rt[a]=!0)}}function a(t,e){e&&(lt[t._tag]&&(null!=e.children||null!=e.dangerouslySetInnerHTML?v("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""):void 0),null!=e.dangerouslySetInnerHTML&&(null!=e.children?v("60"):void 0,"object"==typeof e.dangerouslySetInnerHTML&&tt in e.dangerouslySetInnerHTML?void 0:v("61")),null!=e.style&&"object"!=typeof e.style?v("62",r(t)):void 0)}function s(t,e,n,r){if(!(r instanceof L)){var i=t._hostContainerInfo,o=i._node&&i._node.nodeType===nt,a=o?i._node:i._ownerDocument;Y(e,a),r.getReactMountReady().enqueue(l,{inst:t,registrationName:e,listener:n})}}function l(){var t=this;j.putListener(t.inst,t.registrationName,t.listener)}function u(){var t=this;D.postMountWrapper(t)}function c(){var t=this;I.postMountWrapper(t)}function d(){var t=this;M.postMountWrapper(t)}function f(){var t=this;t._rootNodeID?void 0:v("63");var e=X(t);switch(e?void 0:v("64"),t._tag){case"iframe":case"object":t._wrapperState.listeners=[S.trapBubbledEvent(T.topLevelTypes.topLoad,"load",e)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var n in ot)ot.hasOwnProperty(n)&&t._wrapperState.listeners.push(S.trapBubbledEvent(T.topLevelTypes[n],ot[n],e));break;case"source":t._wrapperState.listeners=[S.trapBubbledEvent(T.topLevelTypes.topError,"error",e)];break;case"img":t._wrapperState.listeners=[S.trapBubbledEvent(T.topLevelTypes.topError,"error",e),S.trapBubbledEvent(T.topLevelTypes.topLoad,"load",e)];break;case"form":t._wrapperState.listeners=[S.trapBubbledEvent(T.topLevelTypes.topReset,"reset",e),S.trapBubbledEvent(T.topLevelTypes.topSubmit,"submit",e)];break;case"input":case"select":case"textarea":t._wrapperState.listeners=[S.trapBubbledEvent(T.topLevelTypes.topInvalid,"invalid",e)]}}function h(){A.postUpdateWrapper(this)}function p(t){dt.call(ct,t)||(ut.test(t)?void 0:v("65",t),ct[t]=!0)}function m(t,e){return t.indexOf("-")>=0||null!=e.is}function g(t){var e=t.type;p(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v=n(129),y=n(126),b=n(211),_=n(213),x=n(198),w=n(199),C=n(159),k=n(221),T=n(163),j=n(165),E=n(166),S=n(223),P=n(226),O=n(160),N=n(158),D=n(228),M=n(230),A=n(231),I=n(232),R=n(184),F=n(233),L=n(247),H=n(134),Q=n(203),U=n(130),B=n(187),z=n(147),W=n(242),q=n(250),$=n(133),V=O,K=j.deleteListener,X=N.getNodeFromInstance,Y=S.listenTo,G=E.registrationNameModules,J={string:!0,number:!0},Z=z({style:null}),tt=z({__html:null}),et={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},nt=11,rt={},it=H,ot={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},at={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},st={listing:!0,pre:!0,textarea:!0},lt=y({menuitem:!0},at),ut=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ct={},dt={}.hasOwnProperty,ft=1;g.displayName="ReactDOMComponent",g.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=ft++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(f,this);break;case"button":i=P.getHostProps(this,i,e);break;case"input":D.mountWrapper(this,i,e),i=D.getHostProps(this,i),t.getReactMountReady().enqueue(f,this);break;case"option":M.mountWrapper(this,i,e),i=M.getHostProps(this,i);break;case"select":A.mountWrapper(this,i,e),i=A.getHostProps(this,i),t.getReactMountReady().enqueue(f,this);break;case"textarea":I.mountWrapper(this,i,e),i=I.getHostProps(this,i),t.getReactMountReady().enqueue(f,this)}a(this,i);var o,s;null!=e?(o=e._namespaceURI,s=e._tag):n._tag&&(o=n._namespaceURI,s=n._tag),(null==o||o===w.svg&&"foreignobject"===s)&&(o=w.html),o===w.html&&("svg"===this._tag?o=w.svg:"math"===this._tag&&(o=w.mathml)),this._namespaceURI=o;var l,h;if(t.useCreateElement){var p=n._ownerDocument,m;if(o===w.html)if("script"===this._tag){var g=p.createElement("div"),v=this._currentElement.type;g.innerHTML="<"+v+">",m=g.removeChild(g.firstChild)}else m=i.is?p.createElement(this._currentElement.type,i.is):p.createElement(this._currentElement.type);else m=p.createElementNS(o,this._currentElement.type);N.precacheNode(this,m),this._flags|=V.hasCachedChildNodes,this._hostParent||k.setAttributeForRoot(m),this._updateDOMProperties(null,i,t);var y=x(m);this._createInitialChildren(t,i,r,y),h=y}else{var _=this._createOpenTagMarkupAndPutListeners(t,i),C=this._createContentMarkup(t,i,r);h=!C&&at[this._tag]?_+"/>":_+">"+C+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(u,this),i.autoFocus&&t.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(c,this),i.autoFocus&&t.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"select":i.autoFocus&&t.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"button":i.autoFocus&&t.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(d,this)}return h},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(null!=i)if(G.hasOwnProperty(r))i&&s(this,r,i,t);else{r===Z&&(i&&(i=this._previousStyleCopy=y({},e.style)),i=_.createMarkupForStyles(i,this));var o=null;null!=this._tag&&m(this._tag,e)?et.hasOwnProperty(r)||(o=k.createMarkupForCustomAttribute(r,i)):o=k.createMarkupForProperty(r,i),o&&(n+=" "+o)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+k.createMarkupForRoot()),n+=" "+k.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(r=i.__html);else{var o=J[typeof e.children]?e.children:null,a=null!=o?null:e.children;if(null!=o)r=Q(o);else if(null!=a){var s=this.mountChildren(a,t,n);r=s.join("")}}return st[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&x.queueHTML(r,i.__html);else{var o=J[typeof e.children]?e.children:null,a=null!=o?null:e.children;if(null!=o)x.queueText(r,o);else if(null!=a)for(var s=this.mountChildren(a,t,n),l=0;l0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function o(t,e){var n=l.get(t);if(!n){var r;return null}return n}var a=n(129),s=n(132),l=n(235),u=n(184),c=n(178),d=n(130),f=n(133),h={isMounted:function(t){var e,n=l.get(t);return!!n&&!!n._renderedComponent},enqueueCallback:function(t,e,n){h.validateCallback(e,n);var i=o(t);return i?(i._pendingCallbacks?i._pendingCallbacks.push(e):i._pendingCallbacks=[e],void r(i)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=o(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e){var n=o(t,"replaceState");n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(t,e){var n=o(t,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t?a("122",e,i(t)):void 0}};t.exports=h},function(t,e,n){"use strict";var r=n(126),i=n(134),o=n(133),a=i,s,l,u,c,d,f,h,p,m,g;t.exports=a},function(t,e,n){"use strict";var r=n(126),i=n(198),o=n(158),a=function(t){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(a.prototype,{mountComponent:function(t,e,n,r){var a=n._idCounter++;this._domID=a,this._hostParent=e,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(t.useCreateElement){var l=n._ownerDocument,u=l.createComment(s);return o.precacheNode(this,u),i(u)}return t.renderToStaticMarkup?"":""},receiveComponent:function(){},getHostNode:function(){return o.getNodeFromInstance(this)},unmountComponent:function(){o.uncacheNode(this)}}),t.exports=a},function(t,e,n){"use strict";function r(t,e){"_hostNode"in t?void 0:l("33"),"_hostNode"in e?void 0:l("33");for(var n=0,r=t;r;r=r._hostParent)n++;for(var i=0,o=e;o;o=o._hostParent)i++;for(;n-i>0;)t=t._hostParent,n--;for(;i-n>0;)e=e._hostParent,i--;for(var a=n;a--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function i(t,e){"_hostNode"in t?void 0:l("35"),"_hostNode"in e?void 0:l("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function o(t){return"_hostNode"in t?void 0:l("36"), -t._hostParent}function a(t,e,n){for(var r=[];t;)r.push(t),t=t._hostParent;var i;for(i=r.length;i-- >0;)e(r[i],!1,n);for(i=0;i0;)n(l[u],!1,o)}var l=n(129),u=n(130);t.exports={isAncestor:i,getLowestCommonAncestor:r,getParentInstance:o,traverseTwoPhase:a,traverseEnterLeave:s}},function(t,e,n){"use strict";var r=n(129),i=n(126),o=n(197),a=n(198),s=n(158),l=n(203),u=n(130),c=n(250),d=function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null};i(d.prototype,{mountComponent:function(t,e,n,r){var i,o=n._idCounter++,u=" react-text: "+o+" ",c=" /react-text ";if(this._domID=o,this._hostParent=e,t.useCreateElement){var d=n._ownerDocument,f=d.createComment(u),h=d.createComment(c),p=a(d.createDocumentFragment());return a.queueChild(p,a(f)),this._stringText&&a.queueChild(p,a(d.createTextNode(this._stringText))),a.queueChild(p,a(h)),s.precacheNode(this,f),this._closingComment=h,p}var m=l(this._stringText);return t.renderToStaticMarkup?m:""+m+""},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();o.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=s.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=d},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var i=n(126),o=n(178),a=n(185),s=n(134),l={initialize:s,close:function(){f.isBatchingUpdates=!1}},u={initialize:s,close:o.flushBatchedUpdates.bind(o)},c=[u,l];i(r.prototype,a.Mixin,{getTransactionWrappers:function(){return c}});var d=new r,f={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,i,o){var a=f.isBatchingUpdates;f.isBatchingUpdates=!0,a?t(e,n,r,i,o):d.perform(t,null,e,n,r,i,o)}};t.exports=f},function(t,e,n){"use strict";function r(t){for(;t._hostParent;)t=t._hostParent;var e=d.getNodeFromInstance(t),n=e.parentNode;return d.getClosestInstanceFromNode(n)}function i(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function o(t){var e=h(t.nativeEvent),n=d.getClosestInstanceFromNode(e),i=n;do t.ancestors.push(i),i=i&&r(i);while(i);for(var o=0;oe.end?(r=e.end,i=e.start):(r=e.start,i=e.end),n.moveToElementText(t),n.moveStart("character",r),n.setEndPoint("EndToStart",n),n.moveEnd("character",i-r),n.select()}function s(t,e){if(window.getSelection){var n=window.getSelection(),r=t[c()].length,i=Math.min(e.start,r),o=void 0===e.end?i:Math.min(e.end,r);if(!n.extend&&i>o){var a=o;o=i,i=a}var s=u(t,i),l=u(t,o);if(s&&l){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),i>o?(n.addRange(d),n.extend(l.node,l.offset)):(d.setEnd(l.node,l.offset),n.addRange(d))}}}var l=n(171),u=n(262),c=n(173),d=l.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:d?i:o,setOffsets:d?a:s};t.exports=f},function(t,e){"use strict";function n(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function r(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function i(t,e){for(var i=n(t),o=0,a=0;i;){if(3===i.nodeType){if(a=o+i.textContent.length,o<=e&&a>=e)return{node:i,offset:e-o};o=a}i=n(r(i))}}t.exports=i},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!i(t)&&(i(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var i=n(264);t.exports=r},function(t,e,n){"use strict";function r(t){return i(t)&&3==t.nodeType}var i=n(265);t.exports=r},function(t,e){"use strict";function n(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(t){return document.body}}t.exports=n},function(t,e){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering","in":0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},i={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(t){i.Properties[t]=0,r[t]&&(i.DOMAttributeNames[t]=r[t])}),t.exports=i},function(t,e,n){"use strict";function r(t){if("selectionStart"in t&&u.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function i(t,e){if(x||null==y||y!==d())return null;var n=r(y);if(!_||!p(_,n)){_=n;var i=c.getPooled(v.select,b,t,e);return i.type="select",i.target=y,a.accumulateTwoPhaseDispatches(i),i}return null}var o=n(163),a=n(164),s=n(171),l=n(158),u=n(260),c=n(175),d=n(266),f=n(188),h=n(147),p=n(242),m=o.topLevelTypes,g=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,v={select:{phasedRegistrationNames:{bubbled:h({onSelect:null}),captured:h({onSelectCapture:null})},dependencies:[m.topBlur,m.topContextMenu,m.topFocus,m.topKeyDown,m.topMouseDown,m.topMouseUp,m.topSelectionChange]}},y=null,b=null,_=null,x=!1,w=!1,C=h({onSelect:null}),k={eventTypes:v,extractEvents:function(t,e,n,r){if(!w)return null;var o=e?l.getNodeFromInstance(e):window;switch(t){case m.topFocus:(f(o)||"true"===o.contentEditable)&&(y=o,b=e,_=null);break;case m.topBlur:y=null,b=null,_=null;break;case m.topMouseDown:x=!0;break;case m.topContextMenu:case m.topMouseUp:return x=!1,i(n,r);case m.topSelectionChange:if(g)break;case m.topKeyDown:case m.topKeyUp:return i(n,r)}return null},didPutListener:function(t,e,n){e===C&&(w=!0)}};t.exports=k},function(t,e,n){"use strict";function r(t){return"."+t._rootNodeID}var i=n(129),o=n(163),a=n(256),s=n(164),l=n(158),u=n(270),c=n(271),d=n(175),f=n(272),h=n(273),p=n(191),m=n(276),g=n(277),v=n(278),y=n(192),b=n(279),_=n(134),x=n(274),w=n(130),C=n(147),k=o.topLevelTypes,T={abort:{phasedRegistrationNames:{bubbled:C({onAbort:!0}),captured:C({onAbortCapture:!0})}},animationEnd:{phasedRegistrationNames:{bubbled:C({onAnimationEnd:!0}),captured:C({onAnimationEndCapture:!0})}},animationIteration:{phasedRegistrationNames:{bubbled:C({onAnimationIteration:!0}),captured:C({onAnimationIterationCapture:!0})}},animationStart:{phasedRegistrationNames:{bubbled:C({onAnimationStart:!0}),captured:C({onAnimationStartCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:C({onBlur:!0}),captured:C({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:C({onCanPlay:!0}),captured:C({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:C({onCanPlayThrough:!0}),captured:C({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:C({onClick:!0}),captured:C({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:C({onContextMenu:!0}),captured:C({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:C({onCopy:!0}),captured:C({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:C({onCut:!0}),captured:C({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:C({onDoubleClick:!0}),captured:C({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:C({onDrag:!0}),captured:C({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:C({onDragEnd:!0}),captured:C({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:C({onDragEnter:!0}),captured:C({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:C({onDragExit:!0}),captured:C({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:C({onDragLeave:!0}),captured:C({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:C({onDragOver:!0}),captured:C({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:C({onDragStart:!0}),captured:C({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:C({onDrop:!0}),captured:C({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:C({onDurationChange:!0}),captured:C({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:C({onEmptied:!0}),captured:C({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:C({onEncrypted:!0}),captured:C({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:C({onEnded:!0}),captured:C({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:C({onError:!0}),captured:C({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:C({onFocus:!0}),captured:C({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:C({onInput:!0}),captured:C({onInputCapture:!0})}},invalid:{phasedRegistrationNames:{bubbled:C({onInvalid:!0}),captured:C({onInvalidCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:C({onKeyDown:!0}),captured:C({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:C({onKeyPress:!0}),captured:C({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:C({onKeyUp:!0}),captured:C({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:C({onLoad:!0}),captured:C({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:C({onLoadedData:!0}),captured:C({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:C({onLoadedMetadata:!0}),captured:C({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:C({onLoadStart:!0}),captured:C({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:C({onMouseDown:!0}),captured:C({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:C({onMouseMove:!0}),captured:C({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:C({onMouseOut:!0}),captured:C({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:C({onMouseOver:!0}),captured:C({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:C({onMouseUp:!0}),captured:C({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:C({onPaste:!0}),captured:C({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:C({onPause:!0}),captured:C({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:C({onPlay:!0}),captured:C({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:C({onPlaying:!0}),captured:C({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:C({onProgress:!0}),captured:C({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:C({onRateChange:!0}),captured:C({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:C({onReset:!0}),captured:C({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:C({onScroll:!0}),captured:C({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:C({onSeeked:!0}),captured:C({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:C({onSeeking:!0}),captured:C({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:C({onStalled:!0}),captured:C({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:C({onSubmit:!0}),captured:C({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:C({onSuspend:!0}),captured:C({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:C({onTimeUpdate:!0}),captured:C({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:C({onTouchCancel:!0}),captured:C({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:C({onTouchEnd:!0}),captured:C({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:C({onTouchMove:!0}),captured:C({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:C({onTouchStart:!0}),captured:C({onTouchStartCapture:!0})}},transitionEnd:{phasedRegistrationNames:{bubbled:C({onTransitionEnd:!0}),captured:C({onTransitionEndCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:C({onVolumeChange:!0}),captured:C({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:C({onWaiting:!0}),captured:C({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:C({onWheel:!0}),captured:C({onWheelCapture:!0})}}},j={topAbort:T.abort,topAnimationEnd:T.animationEnd,topAnimationIteration:T.animationIteration,topAnimationStart:T.animationStart,topBlur:T.blur,topCanPlay:T.canPlay,topCanPlayThrough:T.canPlayThrough,topClick:T.click,topContextMenu:T.contextMenu,topCopy:T.copy,topCut:T.cut,topDoubleClick:T.doubleClick,topDrag:T.drag,topDragEnd:T.dragEnd,topDragEnter:T.dragEnter,topDragExit:T.dragExit,topDragLeave:T.dragLeave,topDragOver:T.dragOver,topDragStart:T.dragStart,topDrop:T.drop,topDurationChange:T.durationChange,topEmptied:T.emptied,topEncrypted:T.encrypted,topEnded:T.ended,topError:T.error,topFocus:T.focus,topInput:T.input,topInvalid:T.invalid,topKeyDown:T.keyDown,topKeyPress:T.keyPress,topKeyUp:T.keyUp,topLoad:T.load,topLoadedData:T.loadedData,topLoadedMetadata:T.loadedMetadata,topLoadStart:T.loadStart,topMouseDown:T.mouseDown,topMouseMove:T.mouseMove,topMouseOut:T.mouseOut,topMouseOver:T.mouseOver,topMouseUp:T.mouseUp,topPaste:T.paste,topPause:T.pause,topPlay:T.play,topPlaying:T.playing,topProgress:T.progress,topRateChange:T.rateChange,topReset:T.reset,topScroll:T.scroll,topSeeked:T.seeked,topSeeking:T.seeking,topStalled:T.stalled,topSubmit:T.submit,topSuspend:T.suspend,topTimeUpdate:T.timeUpdate,topTouchCancel:T.touchCancel,topTouchEnd:T.touchEnd,topTouchMove:T.touchMove,topTouchStart:T.touchStart,topTransitionEnd:T.transitionEnd,topVolumeChange:T.volumeChange,topWaiting:T.waiting,topWheel:T.wheel};for(var E in j)j[E].dependencies=[E];var S=C({onClick:null}),P={},O={eventTypes:T,extractEvents:function(t,e,n,r){var o=j[t];if(!o)return null;var a;switch(t){case k.topAbort:case k.topCanPlay:case k.topCanPlayThrough:case k.topDurationChange:case k.topEmptied:case k.topEncrypted:case k.topEnded:case k.topError:case k.topInput:case k.topInvalid:case k.topLoad:case k.topLoadedData:case k.topLoadedMetadata:case k.topLoadStart:case k.topPause:case k.topPlay:case k.topPlaying:case k.topProgress:case k.topRateChange:case k.topReset:case k.topSeeked:case k.topSeeking:case k.topStalled:case k.topSubmit:case k.topSuspend:case k.topTimeUpdate:case k.topVolumeChange:case k.topWaiting:a=d;break;case k.topKeyPress:if(0===x(n))return null;case k.topKeyDown:case k.topKeyUp:a=h;break;case k.topBlur:case k.topFocus:a=f;break;case k.topClick:if(2===n.button)return null;case k.topContextMenu:case k.topDoubleClick:case k.topMouseDown:case k.topMouseMove:case k.topMouseOut:case k.topMouseOver:case k.topMouseUp:a=p;break;case k.topDrag:case k.topDragEnd:case k.topDragEnter:case k.topDragExit:case k.topDragLeave:case k.topDragOver:case k.topDragStart:case k.topDrop:a=m;break;case k.topTouchCancel:case k.topTouchEnd:case k.topTouchMove:case k.topTouchStart:a=g;break;case k.topAnimationEnd:case k.topAnimationIteration:case k.topAnimationStart:a=u;break;case k.topTransitionEnd:a=v;break;case k.topScroll:a=y;break;case k.topWheel:a=b;break;case k.topCopy:case k.topCut:case k.topPaste:a=c}a?void 0:i("86",t);var l=a.getPooled(o,e,n,r);return s.accumulateTwoPhaseDispatches(l),l},didPutListener:function(t,e,n){if(e===S){var i=r(t),o=l.getNodeFromInstance(t);P[i]||(P[i]=a.listen(o,"click",_))}},willDeleteListener:function(t,e){if(e===S){var n=r(t);P[n].remove(),delete P[n]}}};t.exports=O},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(175),o={animationName:null,elapsedTime:null,pseudoElement:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(175),o={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(192),o={relatedTarget:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(192),o=n(274),a=n(275),s=n(194),l={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(t){return"keypress"===t.type?o(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?o(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};i.augmentClass(r,l),t.exports=r},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e,n){"use strict";function r(t){if(t.key){var e=o[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=i(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var i=n(274),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(191),o={dataTransfer:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(192),o=n(194),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:o};i.augmentClass(r,a),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(175),o={propertyName:null,elapsedTime:null,pseudoElement:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return i.call(this,t,e,n,r)}var i=n(191),o={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e){for(var n=Math.min(t.length,e.length),r=0;r.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":""); -var a=C(W,null,null,null,null,null,e),s;if(t){var l=T.get(t);s=l._processChildContext(l._context)}else s=N;var c=p(n);if(c){var d=c._currentElement,f=d.props;if(I(f,e)){var h=c._renderedComponent.getPublicInstance(),g=r&&function(){r.call(h)};return q._updateRootComponent(c,a,s,n,g),h}q.unmountComponentAtNode(n)}var v=i(n),y=v&&!!o(v),b=u(n),_,x=y&&!c&&!b,w=q._renderNewRootComponent(a,n,x,s)._renderedComponent.getPublicInstance();return r&&r.call(w),w},render:function(t,e,n){return q._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){d(t)?void 0:m("40");var e=p(t);if(!e){var n=u(t),r=1===t.nodeType&&t.hasAttribute(L);return!1}return delete B[e._instance.rootID],O.batchedUpdates(l,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,o,a){if(d(e)?void 0:m("41"),o){var s=i(e);if(E.canReuseMarkup(t,s))return void _.precacheNode(n,s);var l=s.getAttribute(E.CHECKSUM_ATTR_NAME);s.removeAttribute(E.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(E.CHECKSUM_ATTR_NAME,l);var c=t,f,h=r(c,u),p=" (client) "+c.substring(h-20,h+20)+"\n (server) "+u.substring(h-20,h+20);e.nodeType===Q?m("42",p):void 0}if(e.nodeType===Q?m("43"):void 0,a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);g.insertTreeBefore(e,t,null)}else A(e,t),_.precacheNode(n,e.firstChild);var v}};t.exports=q},function(t,e,n){"use strict";function r(t,e){var n={_topLevelWrapper:t,_idCounter:1,_ownerDocument:e?e.nodeType===o?e:e.ownerDocument:null,_node:e,_tag:e?e.nodeName.toLowerCase():null,_namespaceURI:e?e.namespaceURI:null};return n}var i=n(250),o=9;t.exports=r},function(t,e){"use strict";var n={useCreateElement:!0};t.exports=n},function(t,e,n){"use strict";var r=n(284),i=/\/?>/,o=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return o.test(t)?t:t.replace(i," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(t);return i===n}};t.exports=a},function(t,e){"use strict";function n(t){for(var e=1,n=0,i=0,o=t.length,a=o&-4;i0?"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:l.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var i="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:i}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+l.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(t){var e=p["default"](t,function(t){return"function"==typeof t}),n;try{a(e)}catch(r){n=r}var o=f["default"](e,function(){});return function s(t,r){if(void 0===t&&(t=o),n)throw n;var a=!1,s=f["default"](e,function(e,n){var o=t[n],s=e(o,r);if("undefined"==typeof s){var l=i(n,r);throw new Error(l)}return a=a||s!==o,s}),l;return a?s:t}}e.__esModule=!0,e["default"]=s;var l=n(290),u=n(291),c=r(u),d=n(293),f=r(d),h=n(294),p=r(h);t.exports=e["default"]},function(t,e){"use strict";function n(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=e(t[r],r),n},{})}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e){"use strict";function n(t,e){return Object.keys(t).reduce(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{})}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){return function(){return e(t.apply(void 0,arguments))}}function o(t,e){if("function"==typeof t)return i(t,e);if("object"!=typeof t||null===t||void 0===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return s["default"](t,function(t){return i(t,e)})}e.__esModule=!0,e["default"]=o;var a=n(293),s=r(a);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(){for(var t=arguments.length,e=Array(t),n=0;n does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}e.__esModule=!0,e["default"]=void 0;var l=n(3),u=n(301),c=r(u),d=n(302),f=r(d),h=!1,p=function(t){function e(n,r){i(this,e);var a=o(this,t.call(this,n,r));return a.store=n.store,a}return a(e,t),e.prototype.getChildContext=function n(){return{store:this.store}},e.prototype.render=function r(){var t=this.props.children;return l.Children.only(t)},e}(l.Component);e["default"]=p,p.propTypes={store:c["default"].isRequired,children:l.PropTypes.element.isRequired},p.childContextTypes={store:c["default"].isRequired}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(3);e["default"]=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},function(t,e){"use strict";function n(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(e){}}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.displayName||t.name||"Component"}function l(t,e){try{return t.apply(e)}catch(n){return P.value=n,P}}function u(t,e,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],u=Boolean(t),f=t||j,p=void 0;p="function"==typeof e?e:e?(0,v["default"])(e):E;var g=n||S,y=r.pure,_=void 0===y||y,w=r.withRef,k=void 0!==w&&w,N=_&&g!==S,D=O++;return function M(t){function e(t,e){(0,x["default"])(t)||(0,b["default"])(e+"() in "+r+" must return a plain object. "+("Instead received "+t+"."))}function n(t,e,n){var r=g(t,e,n);return r}var r="Connect("+s(t)+")",v=function(e){function s(t,n){i(this,s);var a=o(this,e.call(this,t,n));a.version=D,a.store=t.store||n.store,(0,T["default"])(a.store,'Could not find "store" in either the context or '+('props of "'+r+'". ')+"Either wrap the root component in a , "+('or explicitly pass "store" as a prop to "'+r+'".'));var l=a.store.getState();return a.state={storeState:l},a.clearCache(),a}return a(s,e),s.prototype.shouldComponentUpdate=function h(){return!_||this.haveOwnPropsChanged||this.hasStoreStateChanged},s.prototype.computeStateProps=function g(t,e){if(!this.finalMapStateToProps)return this.configureFinalMapState(t,e);var n=t.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,e):this.finalMapStateToProps(n);return r},s.prototype.configureFinalMapState=function v(t,e){var n=f(t.getState(),e),r="function"==typeof n;return this.finalMapStateToProps=r?n:f,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(t,e):n},s.prototype.computeDispatchProps=function y(t,e){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(t,e);var n=t.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,e):this.finalMapDispatchToProps(n);return r},s.prototype.configureFinalMapDispatch=function b(t,e){var n=p(t.dispatch,e),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:p,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(t,e):n},s.prototype.updateStatePropsIfNeeded=function x(){var t=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,m["default"])(t,this.stateProps))&&(this.stateProps=t,!0)},s.prototype.updateDispatchPropsIfNeeded=function w(){var t=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,m["default"])(t,this.dispatchProps))&&(this.dispatchProps=t,!0)},s.prototype.updateMergedPropsIfNeeded=function C(){var t=n(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&N&&(0,m["default"])(t,this.mergedProps))&&(this.mergedProps=t,!0)},s.prototype.isSubscribed=function j(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function E(){u&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function S(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function O(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function M(t){_&&(0,m["default"])(t,this.props)||(this.haveOwnPropsChanged=!0)},s.prototype.componentWillUnmount=function A(){this.tryUnsubscribe(),this.clearCache()},s.prototype.clearCache=function I(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},s.prototype.handleChange=function R(){if(this.unsubscribe){var t=this.store.getState(),e=this.state.storeState;if(!_||e!==t){if(_&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===P&&(this.statePropsPrecalculationError=P.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:t})}}},s.prototype.getWrappedInstance=function F(){return(0,T["default"])(k,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},s.prototype.render=function L(){var e=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,i=this.statePropsPrecalculationError,o=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,i)throw i;var a=!0,s=!0;_&&o&&(a=n||e&&this.doStatePropsDependOnOwnProps,s=e&&this.doDispatchPropsDependOnOwnProps);var l=!1,u=!1;r?l=!0:a&&(l=this.updateStatePropsIfNeeded()),s&&(u=this.updateDispatchPropsIfNeeded());var f=!0;return f=!!(l||u||e)&&this.updateMergedPropsIfNeeded(),!f&&o?o:(k?this.renderedElement=(0,d.createElement)(t,c({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,d.createElement)(t,this.mergedProps),this.renderedElement)},s}(d.Component);return v.displayName=r,v.WrappedComponent=t,v.contextTypes={store:h["default"]},v.propTypes={store:h["default"]},(0,C["default"])(v,t)}}var c=Object.assign||function(t){for(var e=1;e2?n-2:0),i=2;i should not have a "'+e+'" prop')}e.__esModule=!0,e.routes=e.route=e.components=e.component=e.history=void 0,e.falsy=r;var i=n(3),o=i.PropTypes.func,a=i.PropTypes.object,s=i.PropTypes.arrayOf,l=i.PropTypes.oneOfType,u=i.PropTypes.element,c=i.PropTypes.shape,d=i.PropTypes.string,f=e.history=c({listen:o.isRequired,push:o.isRequired,replace:o.isRequired,go:o.isRequired,goBack:o.isRequired,goForward:o.isRequired}),h=e.component=l([o,d]),p=e.components=l([h,a]),m=e.route=l([a,u]),g=e.routes=l([m,s(m)])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function o(t){for(var e="",n=[],r=[],o=void 0,a=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;o=s.exec(t);)o.index!==a&&(r.push(t.slice(a,o.index)),e+=i(t.slice(a,o.index))),o[1]?(e+="([^/]+)",n.push(o[1])):"**"===o[0]?(e+="(.*)",n.push("splat")):"*"===o[0]?(e+="(.*?)",n.push("splat")):"("===o[0]?e+="(?:":")"===o[0]&&(e+=")?"),r.push(o[0]),a=s.lastIndex;return a!==t.length&&(r.push(t.slice(a,t.length)),e+=i(t.slice(a,t.length))),{pattern:t,regexpSource:e,paramNames:n,tokens:r}}function a(t){return h[t]||(h[t]=o(t)),h[t]}function s(t,e){"/"!==t.charAt(0)&&(t="/"+t);var n=a(t),r=n.regexpSource,i=n.paramNames,o=n.tokens;"/"!==t.charAt(t.length-1)&&(r+="/?"),"*"===o[o.length-1]&&(r+="$");var s=e.match(new RegExp("^"+r,"i"));if(null==s)return null;var l=s[0],u=e.substr(l.length);if(u){if("/"!==l.charAt(l.length-1))return null;u="/"+u}return{remainingPathname:u,paramNames:i,paramValues:s.slice(1).map(function(t){return t&&decodeURIComponent(t)})}}function l(t){return a(t).paramNames}function u(t,e){var n=s(t,e);if(!n)return null;var r=n.paramNames,i=n.paramValues,o={};return r.forEach(function(t,e){o[t]=i[e]}),o}function c(t,e){e=e||{};for(var n=a(t),r=n.tokens,i=0,o="",s=0,l=void 0,u=void 0,c=void 0,d=0,h=r.length;d0?void 0:(0,f["default"])(!1),null!=c&&(o+=encodeURI(c))):"("===l?i+=1:")"===l?i-=1:":"===l.charAt(0)?(u=l.substring(1),c=e[u],null!=c||i>0?void 0:(0,f["default"])(!1),null!=c&&(o+=encodeURIComponent(c))):o+=l;return o.replace(/\/+/g,"/")}e.__esModule=!0,e.compilePattern=a,e.matchPattern=s,e.getParamNames=l,e.getParams=u,e.formatPattern=c;var d=n(324),f=r(d),h=Object.create(null)},function(t,e,n){"use strict";var r=function(t,e,n,r,i,o,a,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;l=new Error(e.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t){return!t||!t.__v2_compatible__}function a(t){return t&&t.getCurrentLocation}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e1?r-1:0),o=1;o=t&&l&&(a=!0,n()))}}var o=0,a=!1,s=!1,l=!1,u=void 0;i()}function r(t,e,n){function r(t,e,r){a||(e?(a=!0,n(e)):(o[t]=r,a=++s===i,a&&n(null,o)))}var i=t.length,o=[];if(0===i)return n(null,o);var a=!1,s=0;t.forEach(function(t,n){e(t,n,function(t,e){r(n,t,e)})})}e.__esModule=!0,e.loopAsync=n,e.mapAsync=r},function(t,e,n){"use strict";function r(t,e){if(t==e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return r(t,e[n])});if("object"===("undefined"==typeof t?"undefined":l(t))){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))if(void 0===t[n]){if(void 0!==e[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(e,n))return!1;if(!r(t[n],e[n]))return!1}return!0}return String(t)===String(e)}function i(t,e){return"/"!==e.charAt(0)&&(e="/"+e),"/"!==t.charAt(t.length-1)&&(t+="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e===t}function o(t,e,n){for(var r=t,i=[],o=[],a=0,s=e.length;a=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t){return 0===t.button}function a(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function s(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function l(t,e){var n=e.query,r=e.hash,i=e.state;return n||r||i?{pathname:t,query:n,hash:r,state:i}:t}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e=0;r--){var i=t[r],o=i.path||"";if(n=o.replace(/\/*$/,"/")+n,0===o.indexOf("/"))break}return"/"+n}},propTypes:{path:f,from:f,to:f.isRequired,query:h,state:h,onEnter:c.falsy,children:c.falsy},render:function v(){(0,s["default"])(!1)}});e["default"]=p,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(3),o=r(i),a=n(320),s=r(a),l=n(324),u=r(l),c=n(317),d=n(322),f=o["default"].PropTypes.func,h=o["default"].createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function p(t,e){e&&(e.indexRoute=(0,c.createRouteFromReactElement)(t))}},propTypes:{path:d.falsy,component:d.component,components:d.components,getComponent:f,getComponents:f},render:function m(){(0,u["default"])(!1)}});e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(3),o=r(i),a=n(324),s=r(a),l=n(317),u=n(322),c=o["default"].PropTypes,d=c.string,f=c.func,h=o["default"].createClass({displayName:"Route",statics:{createRouteFromReactElement:l.createRouteFromReactElement},propTypes:{path:d,component:u.component,components:u.components,getComponent:f,getComponents:f},render:function p(){(0,s["default"])(!1)}});e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(320),o=r(i),a=n(322),s={contextTypes:{history:a.history},componentWillMount:function l(){this.history=this.context.history}};e["default"]=s,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(320),o=r(i),a=n(3),s=r(a),l=n(324),u=r(l),c=s["default"].PropTypes.object,d={contextTypes:{history:c.isRequired,route:c},propTypes:{route:c},componentDidMount:function f(){this.routerWillLeave?void 0:(0,u["default"])(!1);var t=this.props.route||this.context.route;t?void 0:(0,u["default"])(!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(t,this.routerWillLeave)},componentWillUnmount:function h(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(320),o=r(i),a=n(3),s=r(a),l=s["default"].PropTypes.object,u={propTypes:{route:l.isRequired},childContextTypes:{route:l.isRequired},getChildContext:function c(){return{route:this.props.route}},componentWillMount:function d(){}};e["default"]=u,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t){return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=e.routes,r=i(e,["routes"]),o=(0,l["default"])(t)(r),s=(0,c["default"])(o,n);return a({},o,s)}}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){var n=t.history,r=t.routes,o=t.location,l=i(t,["history","routes","location"]);n||o?void 0:(0,u["default"])(!1),n=n?n:(0,d["default"])(l);var c=(0,h["default"])(n,(0,p.createRoutes)(r)),f=void 0;o?o=n.createLocation(o):f=n.listen(function(t){o=t});var g=(0,m.createRouterObject)(n,c);n=(0,m.createRoutingHistory)(n,c),c.match(o,function(t,r,i){e(t,r&&g.createLocation(r,s.REPLACE),i&&a({},i,{history:n,router:g,matchContext:{history:n,transitionManager:c,router:g}})),f&&f()})}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e1?e-1:0),o=1;o=0&&e=0&&g to avoid XSS via location.hash (#9521)\r\n\tquickExpr = /^(?:[^#<]*(<[\\w\\W]+>)[^>]*$|#([\\w\\-]*)$)/,\r\n\r\n\t// Check if a string has a non-whitespace character in it\r\n\trnotwhite = /\\S/,\r\n\r\n\t// Used for trimming whitespace\r\n\ttrimLeft = /^\\s+/,\r\n\ttrimRight = /\\s+$/,\r\n\r\n\t// Match a standalone tag\r\n\trsingleTag = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>)?$/,\r\n\r\n\t// JSON RegExp\r\n\trvalidchars = /^[\\],:{}\\s]*$/,\r\n\trvalidescape = /\\\\(?:["\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,\r\n\trvalidtokens = /"[^"\\\\\\n\\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,\r\n\trvalidbraces = /(?:^|:|,)(?:\\s*\\[)+/g,\r\n\r\n\t// Useragent RegExp\r\n\trwebkit = /(webkit)[ \\/]([\\w.]+)/,\r\n\tropera = /(opera)(?:.*version)?[ \\/]([\\w.]+)/,\r\n\trmsie = /(msie) ([\\w.]+)/,\r\n\trmozilla = /(mozilla)(?:.*? rv:([\\w.]+))?/,\r\n\r\n\t// Matches dashed string for camelizing\r\n\trdashAlpha = /-([a-z]|[0-9])/ig,\r\n\trmsPrefix = /^-ms-/,\r\n\r\n\t// Used by jQuery.camelCase as callback to replace()\r\n\tfcamelCase = function( all, letter ) {\r\n\t\treturn ( letter + "" ).toUpperCase();\r\n\t},\r\n\r\n\t// Keep a UserAgent string for use with jQuery.browser\r\n\tuserAgent = navigator.userAgent,\r\n\r\n\t// For matching the engine and version of the browser\r\n\tbrowserMatch,\r\n\r\n\t// The deferred used on DOM ready\r\n\treadyList,\r\n\r\n\t// The ready event handler\r\n\tDOMContentLoaded,\r\n\r\n\t// Save a reference to some core methods\r\n\ttoString = Object.prototype.toString,\r\n\thasOwn = Object.prototype.hasOwnProperty,\r\n\tpush = Array.prototype.push,\r\n\tslice = Array.prototype.slice,\r\n\ttrim = String.prototype.trim,\r\n\tindexOf = Array.prototype.indexOf,\r\n\r\n\t// [[Class]] -> type pairs\r\n\tclass2type = {};\r\n\r\njQuery.fn = jQuery.prototype = {\r\n\tconstructor: jQuery,\r\n\tinit: function( selector, context, rootjQuery ) {\r\n\t\tvar match, elem, ret, doc;\r\n\r\n\t\t// Handle $(""), $(null), or $(undefined)\r\n\t\tif ( !selector ) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t// Handle $(DOMElement)\r\n\t\tif ( selector.nodeType ) {\r\n\t\t\tthis.context = this[0] = selector;\r\n\t\t\tthis.length = 1;\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t// The body element only exists once, optimize finding it\r\n\t\tif ( selector === "body" && !context && document.body ) {\r\n\t\t\tthis.context = document;\r\n\t\t\tthis[0] = document.body;\r\n\t\t\tthis.selector = selector;\r\n\t\t\tthis.length = 1;\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t// Handle HTML strings\r\n\t\tif ( typeof selector === "string" ) {\r\n\t\t\t// Are we dealing with HTML string or an ID?\r\n\t\t\tif ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {\r\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\r\n\t\t\t\tmatch = [ null, selector, null ];\r\n\r\n\t\t\t} else {\r\n\t\t\t\tmatch = quickExpr.exec( selector );\r\n\t\t\t}\r\n\r\n\t\t\t// Verify a match, and that no context was specified for #id\r\n\t\t\tif ( match && (match[1] || !context) ) {\r\n\r\n\t\t\t\t// HANDLE: $(html) -> $(array)\r\n\t\t\t\tif ( match[1] ) {\r\n\t\t\t\t\tcontext = context instanceof jQuery ? context[0] : context;\r\n\t\t\t\t\tdoc = ( context ? context.ownerDocument || context : document );\r\n\r\n\t\t\t\t\t// If a single string is passed in and it\'s a single tag\r\n\t\t\t\t\t// just do a createElement and skip the rest\r\n\t\t\t\t\tret = rsingleTag.exec( selector );\r\n\r\n\t\t\t\t\tif ( ret ) {\r\n\t\t\t\t\t\tif ( jQuery.isPlainObject( context ) ) {\r\n\t\t\t\t\t\t\tselector = [ document.createElement( ret[1] ) ];\r\n\t\t\t\t\t\t\tjQuery.fn.attr.call( selector, context, true );\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tselector = [ doc.createElement( ret[1] ) ];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tret = jQuery.buildFragment( [ match[1] ], [ doc ] );\r\n\t\t\t\t\t\tselector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn jQuery.merge( this, selector );\r\n\r\n\t\t\t\t// HANDLE: $("#id")\r\n\t\t\t\t} else {\r\n\t\t\t\t\telem = document.getElementById( match[2] );\r\n\r\n\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\r\n\t\t\t\t\t// nodes that are no longer in the document #6963\r\n\t\t\t\t\tif ( elem && elem.parentNode ) {\r\n\t\t\t\t\t\t// Handle the case where IE and Opera return items\r\n\t\t\t\t\t\t// by name instead of ID\r\n\t\t\t\t\t\tif ( elem.id !== match[2] ) {\r\n\t\t\t\t\t\t\treturn rootjQuery.find( selector );\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Otherwise, we inject the element directly into the jQuery object\r\n\t\t\t\t\t\tthis.length = 1;\r\n\t\t\t\t\t\tthis[0] = elem;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.context = document;\r\n\t\t\t\t\tthis.selector = selector;\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t}\r\n\r\n\t\t\t// HANDLE: $(expr, $(...))\r\n\t\t\t} else if ( !context || context.jquery ) {\r\n\t\t\t\treturn ( context || rootjQuery ).find( selector );\r\n\r\n\t\t\t// HANDLE: $(expr, context)\r\n\t\t\t// (which is just equivalent to: $(context).find(expr)\r\n\t\t\t} else {\r\n\t\t\t\treturn this.constructor( context ).find( selector );\r\n\t\t\t}\r\n\r\n\t\t// HANDLE: $(function)\r\n\t\t// Shortcut for document ready\r\n\t\t} else if ( jQuery.isFunction( selector ) ) {\r\n\t\t\treturn rootjQuery.ready( selector );\r\n\t\t}\r\n\r\n\t\tif ( selector.selector !== undefined ) {\r\n\t\t\tthis.selector = selector.selector;\r\n\t\t\tthis.context = selector.context;\r\n\t\t}\r\n\r\n\t\treturn jQuery.makeArray( selector, this );\r\n\t},\r\n\r\n\t// Start with an empty selector\r\n\tselector: "",\r\n\r\n\t// The current version of jQuery being used\r\n\tjquery: "1.7.2",\r\n\r\n\t// The default length of a jQuery object is 0\r\n\tlength: 0,\r\n\r\n\t// The number of elements contained in the matched element set\r\n\tsize: function() {\r\n\t\treturn this.length;\r\n\t},\r\n\r\n\ttoArray: function() {\r\n\t\treturn slice.call( this, 0 );\r\n\t},\r\n\r\n\t// Get the Nth element in the matched element set OR\r\n\t// Get the whole matched element set as a clean array\r\n\tget: function( num ) {\r\n\t\treturn num == null ?\r\n\r\n\t\t\t// Return a \'clean\' array\r\n\t\t\tthis.toArray() :\r\n\r\n\t\t\t// Return just the object\r\n\t\t\t( num < 0 ? this[ this.length + num ] : this[ num ] );\r\n\t},\r\n\r\n\t// Take an array of elements and push it onto the stack\r\n\t// (returning the new matched element set)\r\n\tpushStack: function( elems, name, selector ) {\r\n\t\t// Build a new jQuery matched element set\r\n\t\tvar ret = this.constructor();\r\n\r\n\t\tif ( jQuery.isArray( elems ) ) {\r\n\t\t\tpush.apply( ret, elems );\r\n\r\n\t\t} else {\r\n\t\t\tjQuery.merge( ret, elems );\r\n\t\t}\r\n\r\n\t\t// Add the old object onto the stack (as a reference)\r\n\t\tret.prevObject = this;\r\n\r\n\t\tret.context = this.context;\r\n\r\n\t\tif ( name === "find" ) {\r\n\t\t\tret.selector = this.selector + ( this.selector ? " " : "" ) + selector;\r\n\t\t} else if ( name ) {\r\n\t\t\tret.selector = this.selector + "." + name + "(" + selector + ")";\r\n\t\t}\r\n\r\n\t\t// Return the newly-formed element set\r\n\t\treturn ret;\r\n\t},\r\n\r\n\t// Execute a callback for every element in the matched set.\r\n\t// (You can seed the arguments with an array of args, but this is\r\n\t// only used internally.)\r\n\teach: function( callback, args ) {\r\n\t\treturn jQuery.each( this, callback, args );\r\n\t},\r\n\r\n\tready: function( fn ) {\r\n\t\t// Attach the listeners\r\n\t\tjQuery.bindReady();\r\n\r\n\t\t// Add the callback\r\n\t\treadyList.add( fn );\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\teq: function( i ) {\r\n\t\ti = +i;\r\n\t\treturn i === -1 ?\r\n\t\t\tthis.slice( i ) :\r\n\t\t\tthis.slice( i, i + 1 );\r\n\t},\r\n\r\n\tfirst: function() {\r\n\t\treturn this.eq( 0 );\r\n\t},\r\n\r\n\tlast: function() {\r\n\t\treturn this.eq( -1 );\r\n\t},\r\n\r\n\tslice: function() {\r\n\t\treturn this.pushStack( slice.apply( this, arguments ),\r\n\t\t\t"slice", slice.call(arguments).join(",") );\r\n\t},\r\n\r\n\tmap: function( callback ) {\r\n\t\treturn this.pushStack( jQuery.map(this, function( elem, i ) {\r\n\t\t\treturn callback.call( elem, i, elem );\r\n\t\t}));\r\n\t},\r\n\r\n\tend: function() {\r\n\t\treturn this.prevObject || this.constructor(null);\r\n\t},\r\n\r\n\t// For internal use only.\r\n\t// Behaves like an Array\'s method, not like a jQuery method.\r\n\tpush: push,\r\n\tsort: [].sort,\r\n\tsplice: [].splice\r\n};\r\n\r\n// Give the init function the jQuery prototype for later instantiation\r\njQuery.fn.init.prototype = jQuery.fn;\r\n\r\njQuery.extend = jQuery.fn.extend = function() {\r\n\tvar options, name, src, copy, copyIsArray, clone,\r\n\t\ttarget = arguments[0] || {},\r\n\t\ti = 1,\r\n\t\tlength = arguments.length,\r\n\t\tdeep = false;\r\n\r\n\t// Handle a deep copy situation\r\n\tif ( typeof target === "boolean" ) {\r\n\t\tdeep = target;\r\n\t\ttarget = arguments[1] || {};\r\n\t\t// skip the boolean and the target\r\n\t\ti = 2;\r\n\t}\r\n\r\n\t// Handle case when target is a string or something (possible in deep copy)\r\n\tif ( typeof target !== "object" && !jQuery.isFunction(target) ) {\r\n\t\ttarget = {};\r\n\t}\r\n\r\n\t// extend jQuery itself if only one argument is passed\r\n\tif ( length === i ) {\r\n\t\ttarget = this;\r\n\t\t--i;\r\n\t}\r\n\r\n\tfor ( ; i < length; i++ ) {\r\n\t\t// Only deal with non-null/undefined values\r\n\t\tif ( (options = arguments[ i ]) != null ) {\r\n\t\t\t// Extend the base object\r\n\t\t\tfor ( name in options ) {\r\n\t\t\t\tsrc = target[ name ];\r\n\t\t\t\tcopy = options[ name ];\r\n\r\n\t\t\t\t// Prevent never-ending loop\r\n\t\t\t\tif ( target === copy ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Recurse if we\'re merging plain objects or arrays\r\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {\r\n\t\t\t\t\tif ( copyIsArray ) {\r\n\t\t\t\t\t\tcopyIsArray = false;\r\n\t\t\t\t\t\tclone = src && jQuery.isArray(src) ? src : [];\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tclone = src && jQuery.isPlainObject(src) ? src : {};\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Never move original objects, clone them\r\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\r\n\r\n\t\t\t\t// Don\'t bring in undefined values\r\n\t\t\t\t} else if ( copy !== undefined ) {\r\n\t\t\t\t\ttarget[ name ] = copy;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Return the modified object\r\n\treturn target;\r\n};\r\n\r\njQuery.extend({\r\n\tnoConflict: function( deep ) {\r\n\t\tif ( window.$ === jQuery ) {\r\n\t\t\twindow.$ = _$;\r\n\t\t}\r\n\r\n\t\tif ( deep && window.jQuery === jQuery ) {\r\n\t\t\twindow.jQuery = _jQuery;\r\n\t\t}\r\n\r\n\t\treturn jQuery;\r\n\t},\r\n\r\n\t// Is the DOM ready to be used? Set to true once it occurs.\r\n\tisReady: false,\r\n\r\n\t// A counter to track how many items to wait for before\r\n\t// the ready event fires. See #6781\r\n\treadyWait: 1,\r\n\r\n\t// Hold (or release) the ready event\r\n\tholdReady: function( hold ) {\r\n\t\tif ( hold ) {\r\n\t\t\tjQuery.readyWait++;\r\n\t\t} else {\r\n\t\t\tjQuery.ready( true );\r\n\t\t}\r\n\t},\r\n\r\n\t// Handle when the DOM is ready\r\n\tready: function( wait ) {\r\n\t\t// Either a released hold or an DOMready/load event and not yet ready\r\n\t\tif ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {\r\n\t\t\t// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\r\n\t\t\tif ( !document.body ) {\r\n\t\t\t\treturn setTimeout( jQuery.ready, 1 );\r\n\t\t\t}\r\n\r\n\t\t\t// Remember that the DOM is ready\r\n\t\t\tjQuery.isReady = true;\r\n\r\n\t\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\r\n\t\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// If there are functions bound, to execute\r\n\t\t\treadyList.fireWith( document, [ jQuery ] );\r\n\r\n\t\t\t// Trigger any bound ready events\r\n\t\t\tif ( jQuery.fn.trigger ) {\r\n\t\t\t\tjQuery( document ).trigger( "ready" ).off( "ready" );\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tbindReady: function() {\r\n\t\tif ( readyList ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\treadyList = jQuery.Callbacks( "once memory" );\r\n\r\n\t\t// Catch cases where $(document).ready() is called after the\r\n\t\t// browser event has already occurred.\r\n\t\tif ( document.readyState === "complete" ) {\r\n\t\t\t// Handle it asynchronously to allow scripts the opportunity to delay ready\r\n\t\t\treturn setTimeout( jQuery.ready, 1 );\r\n\t\t}\r\n\r\n\t\t// Mozilla, Opera and webkit nightlies currently support this event\r\n\t\tif ( document.addEventListener ) {\r\n\t\t\t// Use the handy event callback\r\n\t\t\tdocument.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );\r\n\r\n\t\t\t// A fallback to window.onload, that will always work\r\n\t\t\twindow.addEventListener( "load", jQuery.ready, false );\r\n\r\n\t\t// If IE event model is used\r\n\t\t} else if ( document.attachEvent ) {\r\n\t\t\t// ensure firing before onload,\r\n\t\t\t// maybe late but safe also for iframes\r\n\t\t\tdocument.attachEvent( "onreadystatechange", DOMContentLoaded );\r\n\r\n\t\t\t// A fallback to window.onload, that will always work\r\n\t\t\twindow.attachEvent( "onload", jQuery.ready );\r\n\r\n\t\t\t// If IE and not a frame\r\n\t\t\t// continually check to see if the document is ready\r\n\t\t\tvar toplevel = false;\r\n\r\n\t\t\ttry {\r\n\t\t\t\ttoplevel = window.frameElement == null;\r\n\t\t\t} catch(e) {}\r\n\r\n\t\t\tif ( document.documentElement.doScroll && toplevel ) {\r\n\t\t\t\tdoScrollCheck();\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// See test/unit/core.js for details concerning isFunction.\r\n\t// Since version 1.3, DOM methods and functions like alert\r\n\t// aren\'t supported. They return false on IE (#2968).\r\n\tisFunction: function( obj ) {\r\n\t\treturn jQuery.type(obj) === "function";\r\n\t},\r\n\r\n\tisArray: Array.isArray || function( obj ) {\r\n\t\treturn jQuery.type(obj) === "array";\r\n\t},\r\n\r\n\tisWindow: function( obj ) {\r\n\t\treturn obj != null && obj == obj.window;\r\n\t},\r\n\r\n\tisNumeric: function( obj ) {\r\n\t\treturn !isNaN( parseFloat(obj) ) && isFinite( obj );\r\n\t},\r\n\r\n\ttype: function( obj ) {\r\n\t\treturn obj == null ?\r\n\t\t\tString( obj ) :\r\n\t\t\tclass2type[ toString.call(obj) ] || "object";\r\n\t},\r\n\r\n\tisPlainObject: function( obj ) {\r\n\t\t// Must be an Object.\r\n\t\t// Because of IE, we also have to check the presence of the constructor property.\r\n\t\t// Make sure that DOM nodes and window objects don\'t pass through, as well\r\n\t\tif ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\t// Not own constructor property must be Object\r\n\t\t\tif ( obj.constructor &&\r\n\t\t\t\t!hasOwn.call(obj, "constructor") &&\r\n\t\t\t\t!hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} catch ( e ) {\r\n\t\t\t// IE8,9 Will throw exceptions on certain host objects #9897\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// Own properties are enumerated firstly, so to speed up,\r\n\t\t// if last one is own, then all properties are own.\r\n\r\n\t\tvar key;\r\n\t\tfor ( key in obj ) {}\r\n\r\n\t\treturn key === undefined || hasOwn.call( obj, key );\r\n\t},\r\n\r\n\tisEmptyObject: function( obj ) {\r\n\t\tfor ( var name in obj ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t},\r\n\r\n\terror: function( msg ) {\r\n\t\tthrow new Error( msg );\r\n\t},\r\n\r\n\tparseJSON: function( data ) {\r\n\t\tif ( typeof data !== "string" || !data ) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t// Make sure leading/trailing whitespace is removed (IE can\'t handle it)\r\n\t\tdata = jQuery.trim( data );\r\n\r\n\t\t// Attempt to parse using the native JSON parser first\r\n\t\tif ( window.JSON && window.JSON.parse ) {\r\n\t\t\treturn window.JSON.parse( data );\r\n\t\t}\r\n\r\n\t\t// Make sure the incoming data is actual JSON\r\n\t\t// Logic borrowed from http://json.org/json2.js\r\n\t\tif ( rvalidchars.test( data.replace( rvalidescape, "@" )\r\n\t\t\t.replace( rvalidtokens, "]" )\r\n\t\t\t.replace( rvalidbraces, "")) ) {\r\n\r\n\t\t\treturn ( new Function( "return " + data ) )();\r\n\r\n\t\t}\r\n\t\tjQuery.error( "Invalid JSON: " + data );\r\n\t},\r\n\r\n\t// Cross-browser xml parsing\r\n\tparseXML: function( data ) {\r\n\t\tif ( typeof data !== "string" || !data ) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tvar xml, tmp;\r\n\t\ttry {\r\n\t\t\tif ( window.DOMParser ) { // Standard\r\n\t\t\t\ttmp = new DOMParser();\r\n\t\t\t\txml = tmp.parseFromString( data , "text/xml" );\r\n\t\t\t} else { // IE\r\n\t\t\t\txml = new ActiveXObject( "Microsoft.XMLDOM" );\r\n\t\t\t\txml.async = "false";\r\n\t\t\t\txml.loadXML( data );\r\n\t\t\t}\r\n\t\t} catch( e ) {\r\n\t\t\txml = undefined;\r\n\t\t}\r\n\t\tif ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {\r\n\t\t\tjQuery.error( "Invalid XML: " + data );\r\n\t\t}\r\n\t\treturn xml;\r\n\t},\r\n\r\n\tnoop: function() {},\r\n\r\n\t// Evaluates a script in a global context\r\n\t// Workarounds based on findings by Jim Driscoll\r\n\t// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context\r\n\tglobalEval: function( data ) {\r\n\t\tif ( data && rnotwhite.test( data ) ) {\r\n\t\t\t// We use execScript on Internet Explorer\r\n\t\t\t// We use an anonymous function so that context is window\r\n\t\t\t// rather than jQuery in Firefox\r\n\t\t\t( window.execScript || function( data ) {\r\n\t\t\t\twindow[ "eval" ].call( window, data );\r\n\t\t\t} )( data );\r\n\t\t}\r\n\t},\r\n\r\n\t// Convert dashed to camelCase; used by the css and data modules\r\n\t// Microsoft forgot to hump their vendor prefix (#9572)\r\n\tcamelCase: function( string ) {\r\n\t\treturn string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );\r\n\t},\r\n\r\n\tnodeName: function( elem, name ) {\r\n\t\treturn elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();\r\n\t},\r\n\r\n\t// args is for internal usage only\r\n\teach: function( object, callback, args ) {\r\n\t\tvar name, i = 0,\r\n\t\t\tlength = object.length,\r\n\t\t\tisObj = length === undefined || jQuery.isFunction( object );\r\n\r\n\t\tif ( args ) {\r\n\t\t\tif ( isObj ) {\r\n\t\t\t\tfor ( name in object ) {\r\n\t\t\t\t\tif ( callback.apply( object[ name ], args ) === false ) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor ( ; i < length; ) {\r\n\t\t\t\t\tif ( callback.apply( object[ i++ ], args ) === false ) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t// A special, fast, case for the most common use of each\r\n\t\t} else {\r\n\t\t\tif ( isObj ) {\r\n\t\t\t\tfor ( name in object ) {\r\n\t\t\t\t\tif ( callback.call( object[ name ], name, object[ name ] ) === false ) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor ( ; i < length; ) {\r\n\t\t\t\t\tif ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn object;\r\n\t},\r\n\r\n\t// Use native String.trim function wherever possible\r\n\ttrim: trim ?\r\n\t\tfunction( text ) {\r\n\t\t\treturn text == null ?\r\n\t\t\t\t"" :\r\n\t\t\t\ttrim.call( text );\r\n\t\t} :\r\n\r\n\t\t// Otherwise use our own trimming functionality\r\n\t\tfunction( text ) {\r\n\t\t\treturn text == null ?\r\n\t\t\t\t"" :\r\n\t\t\t\ttext.toString().replace( trimLeft, "" ).replace( trimRight, "" );\r\n\t\t},\r\n\r\n\t// results is for internal usage only\r\n\tmakeArray: function( array, results ) {\r\n\t\tvar ret = results || [];\r\n\r\n\t\tif ( array != null ) {\r\n\t\t\t// The window, strings (and functions) also have \'length\'\r\n\t\t\t// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930\r\n\t\t\tvar type = jQuery.type( array );\r\n\r\n\t\t\tif ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {\r\n\t\t\t\tpush.call( ret, array );\r\n\t\t\t} else {\r\n\t\t\t\tjQuery.merge( ret, array );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t},\r\n\r\n\tinArray: function( elem, array, i ) {\r\n\t\tvar len;\r\n\r\n\t\tif ( array ) {\r\n\t\t\tif ( indexOf ) {\r\n\t\t\t\treturn indexOf.call( array, elem, i );\r\n\t\t\t}\r\n\r\n\t\t\tlen = array.length;\r\n\t\t\ti = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;\r\n\r\n\t\t\tfor ( ; i < len; i++ ) {\r\n\t\t\t\t// Skip accessing in sparse arrays\r\n\t\t\t\tif ( i in array && array[ i ] === elem ) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn -1;\r\n\t},\r\n\r\n\tmerge: function( first, second ) {\r\n\t\tvar i = first.length,\r\n\t\t\tj = 0;\r\n\r\n\t\tif ( typeof second.length === "number" ) {\r\n\t\t\tfor ( var l = second.length; j < l; j++ ) {\r\n\t\t\t\tfirst[ i++ ] = second[ j ];\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\twhile ( second[j] !== undefined ) {\r\n\t\t\t\tfirst[ i++ ] = second[ j++ ];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfirst.length = i;\r\n\r\n\t\treturn first;\r\n\t},\r\n\r\n\tgrep: function( elems, callback, inv ) {\r\n\t\tvar ret = [], retVal;\r\n\t\tinv = !!inv;\r\n\r\n\t\t// Go through the array, only saving the items\r\n\t\t// that pass the validator function\r\n\t\tfor ( var i = 0, length = elems.length; i < length; i++ ) {\r\n\t\t\tretVal = !!callback( elems[ i ], i );\r\n\t\t\tif ( inv !== retVal ) {\r\n\t\t\t\tret.push( elems[ i ] );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t},\r\n\r\n\t// arg is for internal usage only\r\n\tmap: function( elems, callback, arg ) {\r\n\t\tvar value, key, ret = [],\r\n\t\t\ti = 0,\r\n\t\t\tlength = elems.length,\r\n\t\t\t// jquery objects are treated as arrays\r\n\t\t\tisArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;\r\n\r\n\t\t// Go through the array, translating each of the items to their\r\n\t\tif ( isArray ) {\r\n\t\t\tfor ( ; i < length; i++ ) {\r\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\r\n\r\n\t\t\t\tif ( value != null ) {\r\n\t\t\t\t\tret[ ret.length ] = value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t// Go through every key on the object,\r\n\t\t} else {\r\n\t\t\tfor ( key in elems ) {\r\n\t\t\t\tvalue = callback( elems[ key ], key, arg );\r\n\r\n\t\t\t\tif ( value != null ) {\r\n\t\t\t\t\tret[ ret.length ] = value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Flatten any nested arrays\r\n\t\treturn ret.concat.apply( [], ret );\r\n\t},\r\n\r\n\t// A global GUID counter for objects\r\n\tguid: 1,\r\n\r\n\t// Bind a function to a context, optionally partially applying any\r\n\t// arguments.\r\n\tproxy: function( fn, context ) {\r\n\t\tif ( typeof context === "string" ) {\r\n\t\t\tvar tmp = fn[ context ];\r\n\t\t\tcontext = fn;\r\n\t\t\tfn = tmp;\r\n\t\t}\r\n\r\n\t\t// Quick check to determine if target is callable, in the spec\r\n\t\t// this throws a TypeError, but we will just return undefined.\r\n\t\tif ( !jQuery.isFunction( fn ) ) {\r\n\t\t\treturn undefined;\r\n\t\t}\r\n\r\n\t\t// Simulated bind\r\n\t\tvar args = slice.call( arguments, 2 ),\r\n\t\t\tproxy = function() {\r\n\t\t\t\treturn fn.apply( context, args.concat( slice.call( arguments ) ) );\r\n\t\t\t};\r\n\r\n\t\t// Set the guid of unique handler to the same of original handler, so it can be removed\r\n\t\tproxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;\r\n\r\n\t\treturn proxy;\r\n\t},\r\n\r\n\t// Mutifunctional method to get and set values to a collection\r\n\t// The value/s can optionally be executed if it\'s a function\r\n\taccess: function( elems, fn, key, value, chainable, emptyGet, pass ) {\r\n\t\tvar exec,\r\n\t\t\tbulk = key == null,\r\n\t\t\ti = 0,\r\n\t\t\tlength = elems.length;\r\n\r\n\t\t// Sets many values\r\n\t\tif ( key && typeof key === "object" ) {\r\n\t\t\tfor ( i in key ) {\r\n\t\t\t\tjQuery.access( elems, fn, i, key[i], 1, emptyGet, value );\r\n\t\t\t}\r\n\t\t\tchainable = 1;\r\n\r\n\t\t// Sets one value\r\n\t\t} else if ( value !== undefined ) {\r\n\t\t\t// Optionally, function values get executed if exec is true\r\n\t\t\texec = pass === undefined && jQuery.isFunction( value );\r\n\r\n\t\t\tif ( bulk ) {\r\n\t\t\t\t// Bulk operations only iterate when executing function values\r\n\t\t\t\tif ( exec ) {\r\n\t\t\t\t\texec = fn;\r\n\t\t\t\t\tfn = function( elem, key, value ) {\r\n\t\t\t\t\t\treturn exec.call( jQuery( elem ), value );\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t// Otherwise they run against the entire set\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfn.call( elems, value );\r\n\t\t\t\t\tfn = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( fn ) {\r\n\t\t\t\tfor (; i < length; i++ ) {\r\n\t\t\t\t\tfn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tchainable = 1;\r\n\t\t}\r\n\r\n\t\treturn chainable ?\r\n\t\t\telems :\r\n\r\n\t\t\t// Gets\r\n\t\t\tbulk ?\r\n\t\t\t\tfn.call( elems ) :\r\n\t\t\t\tlength ? fn( elems[0], key ) : emptyGet;\r\n\t},\r\n\r\n\tnow: function() {\r\n\t\treturn ( new Date() ).getTime();\r\n\t},\r\n\r\n\t// Use of jQuery.browser is frowned upon.\r\n\t// More details: http://docs.jquery.com/Utilities/jQuery.browser\r\n\tuaMatch: function( ua ) {\r\n\t\tua = ua.toLowerCase();\r\n\r\n\t\tvar match = rwebkit.exec( ua ) ||\r\n\t\t\tropera.exec( ua ) ||\r\n\t\t\trmsie.exec( ua ) ||\r\n\t\t\tua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||\r\n\t\t\t[];\r\n\r\n\t\treturn { browser: match[1] || "", version: match[2] || "0" };\r\n\t},\r\n\r\n\tsub: function() {\r\n\t\tfunction jQuerySub( selector, context ) {\r\n\t\t\treturn new jQuerySub.fn.init( selector, context );\r\n\t\t}\r\n\t\tjQuery.extend( true, jQuerySub, this );\r\n\t\tjQuerySub.superclass = this;\r\n\t\tjQuerySub.fn = jQuerySub.prototype = this();\r\n\t\tjQuerySub.fn.constructor = jQuerySub;\r\n\t\tjQuerySub.sub = this.sub;\r\n\t\tjQuerySub.fn.init = function init( selector, context ) {\r\n\t\t\tif ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {\r\n\t\t\t\tcontext = jQuerySub( context );\r\n\t\t\t}\r\n\r\n\t\t\treturn jQuery.fn.init.call( this, selector, context, rootjQuerySub );\r\n\t\t};\r\n\t\tjQuerySub.fn.init.prototype = jQuerySub.fn;\r\n\t\tvar rootjQuerySub = jQuerySub(document);\r\n\t\treturn jQuerySub;\r\n\t},\r\n\r\n\tbrowser: {}\r\n});\r\n\r\n// Populate the class2type map\r\njQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {\r\n\tclass2type[ "[object " + name + "]" ] = name.toLowerCase();\r\n});\r\n\r\nbrowserMatch = jQuery.uaMatch( userAgent );\r\nif ( browserMatch.browser ) {\r\n\tjQuery.browser[ browserMatch.browser ] = true;\r\n\tjQuery.browser.version = browserMatch.version;\r\n}\r\n\r\n// Deprecated, use jQuery.browser.webkit instead\r\nif ( jQuery.browser.webkit ) {\r\n\tjQuery.browser.safari = true;\r\n}\r\n\r\n// IE doesn\'t match non-breaking spaces with \\s\r\nif ( rnotwhite.test( "\\xA0" ) ) {\r\n\ttrimLeft = /^[\\s\\xA0]+/;\r\n\ttrimRight = /[\\s\\xA0]+$/;\r\n}\r\n\r\n// All jQuery objects should point back to these\r\nrootjQuery = jQuery(document);\r\n\r\n// Cleanup functions for the document ready method\r\nif ( document.addEventListener ) {\r\n\tDOMContentLoaded = function() {\r\n\t\tdocument.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );\r\n\t\tjQuery.ready();\r\n\t};\r\n\r\n} else if ( document.attachEvent ) {\r\n\tDOMContentLoaded = function() {\r\n\t\t// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\r\n\t\tif ( document.readyState === "complete" ) {\r\n\t\t\tdocument.detachEvent( "onreadystatechange", DOMContentLoaded );\r\n\t\t\tjQuery.ready();\r\n\t\t}\r\n\t};\r\n}\r\n\r\n// The DOM ready check for Internet Explorer\r\nfunction doScrollCheck() {\r\n\tif ( jQuery.isReady ) {\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\t// If IE is used, use the trick by Diego Perini\r\n\t\t// http://javascript.nwbox.com/IEContentLoaded/\r\n\t\tdocument.documentElement.doScroll("left");\r\n\t} catch(e) {\r\n\t\tsetTimeout( doScrollCheck, 1 );\r\n\t\treturn;\r\n\t}\r\n\r\n\t// and execute any waiting functions\r\n\tjQuery.ready();\r\n}\r\n\r\nreturn jQuery;\r\n\r\n})();\r\n\r\n\r\n// String to Object flags format cache\r\nvar flagsCache = {};\r\n\r\n// Convert String-formatted flags into Object-formatted ones and store in cache\r\nfunction createFlags( flags ) {\r\n\tvar object = flagsCache[ flags ] = {},\r\n\t\ti, length;\r\n\tflags = flags.split( /\\s+/ );\r\n\tfor ( i = 0, length = flags.length; i < length; i++ ) {\r\n\t\tobject[ flags[i] ] = true;\r\n\t}\r\n\treturn object;\r\n}\r\n\r\n/*\r\n * Create a callback list using the following parameters:\r\n *\r\n *\tflags:\tan optional list of space-separated flags that will change how\r\n *\t\t\tthe callback list behaves\r\n *\r\n * By default a callback list will act like an event callback list and can be\r\n * "fired" multiple times.\r\n *\r\n * Possible flags:\r\n *\r\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\r\n *\r\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\r\n *\t\t\t\t\tafter the list has been fired right away with the latest "memorized"\r\n *\t\t\t\t\tvalues (like a Deferred)\r\n *\r\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\r\n *\r\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\r\n *\r\n */\r\njQuery.Callbacks = function( flags ) {\r\n\r\n\t// Convert flags from String-formatted to Object-formatted\r\n\t// (we check in cache first)\r\n\tflags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};\r\n\r\n\tvar // Actual callback list\r\n\t\tlist = [],\r\n\t\t// Stack of fire calls for repeatable lists\r\n\t\tstack = [],\r\n\t\t// Last fire value (for non-forgettable lists)\r\n\t\tmemory,\r\n\t\t// Flag to know if list was already fired\r\n\t\tfired,\r\n\t\t// Flag to know if list is currently firing\r\n\t\tfiring,\r\n\t\t// First callback to fire (used internally by add and fireWith)\r\n\t\tfiringStart,\r\n\t\t// End of the loop when firing\r\n\t\tfiringLength,\r\n\t\t// Index of currently firing callback (modified by remove if needed)\r\n\t\tfiringIndex,\r\n\t\t// Add one or several callbacks to the list\r\n\t\tadd = function( args ) {\r\n\t\t\tvar i,\r\n\t\t\t\tlength,\r\n\t\t\t\telem,\r\n\t\t\t\ttype,\r\n\t\t\t\tactual;\r\n\t\t\tfor ( i = 0, length = args.length; i < length; i++ ) {\r\n\t\t\t\telem = args[ i ];\r\n\t\t\t\ttype = jQuery.type( elem );\r\n\t\t\t\tif ( type === "array" ) {\r\n\t\t\t\t\t// Inspect recursively\r\n\t\t\t\t\tadd( elem );\r\n\t\t\t\t} else if ( type === "function" ) {\r\n\t\t\t\t\t// Add if not in unique mode and callback is not in\r\n\t\t\t\t\tif ( !flags.unique || !self.has( elem ) ) {\r\n\t\t\t\t\t\tlist.push( elem );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t// Fire callbacks\r\n\t\tfire = function( context, args ) {\r\n\t\t\targs = args || [];\r\n\t\t\tmemory = !flags.memory || [ context, args ];\r\n\t\t\tfired = true;\r\n\t\t\tfiring = true;\r\n\t\t\tfiringIndex = firingStart || 0;\r\n\t\t\tfiringStart = 0;\r\n\t\t\tfiringLength = list.length;\r\n\t\t\tfor ( ; list && firingIndex < firingLength; firingIndex++ ) {\r\n\t\t\t\tif ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {\r\n\t\t\t\t\tmemory = true; // Mark as halted\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfiring = false;\r\n\t\t\tif ( list ) {\r\n\t\t\t\tif ( !flags.once ) {\r\n\t\t\t\t\tif ( stack && stack.length ) {\r\n\t\t\t\t\t\tmemory = stack.shift();\r\n\t\t\t\t\t\tself.fireWith( memory[ 0 ], memory[ 1 ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ( memory === true ) {\r\n\t\t\t\t\tself.disable();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlist = [];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t// Actual Callbacks object\r\n\t\tself = {\r\n\t\t\t// Add a callback or a collection of callbacks to the list\r\n\t\t\tadd: function() {\r\n\t\t\t\tif ( list ) {\r\n\t\t\t\t\tvar length = list.length;\r\n\t\t\t\t\tadd( arguments );\r\n\t\t\t\t\t// Do we need to add the callbacks to the\r\n\t\t\t\t\t// current firing batch?\r\n\t\t\t\t\tif ( firing ) {\r\n\t\t\t\t\t\tfiringLength = list.length;\r\n\t\t\t\t\t// With memory, if we\'re not firing then\r\n\t\t\t\t\t// we should call right away, unless previous\r\n\t\t\t\t\t// firing was halted (stopOnFalse)\r\n\t\t\t\t\t} else if ( memory && memory !== true ) {\r\n\t\t\t\t\t\tfiringStart = length;\r\n\t\t\t\t\t\tfire( memory[ 0 ], memory[ 1 ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\t// Remove a callback from the list\r\n\t\t\tremove: function() {\r\n\t\t\t\tif ( list ) {\r\n\t\t\t\t\tvar args = arguments,\r\n\t\t\t\t\t\targIndex = 0,\r\n\t\t\t\t\t\targLength = args.length;\r\n\t\t\t\t\tfor ( ; argIndex < argLength ; argIndex++ ) {\r\n\t\t\t\t\t\tfor ( var i = 0; i < list.length; i++ ) {\r\n\t\t\t\t\t\t\tif ( args[ argIndex ] === list[ i ] ) {\r\n\t\t\t\t\t\t\t\t// Handle firingIndex and firingLength\r\n\t\t\t\t\t\t\t\tif ( firing ) {\r\n\t\t\t\t\t\t\t\t\tif ( i <= firingLength ) {\r\n\t\t\t\t\t\t\t\t\t\tfiringLength--;\r\n\t\t\t\t\t\t\t\t\t\tif ( i <= firingIndex ) {\r\n\t\t\t\t\t\t\t\t\t\t\tfiringIndex--;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// Remove the element\r\n\t\t\t\t\t\t\t\tlist.splice( i--, 1 );\r\n\t\t\t\t\t\t\t\t// If we have some unicity property then\r\n\t\t\t\t\t\t\t\t// we only need to do this once\r\n\t\t\t\t\t\t\t\tif ( flags.unique ) {\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\t// Control if a given callback is in the list\r\n\t\t\thas: function( fn ) {\r\n\t\t\t\tif ( list ) {\r\n\t\t\t\t\tvar i = 0,\r\n\t\t\t\t\t\tlength = list.length;\r\n\t\t\t\t\tfor ( ; i < length; i++ ) {\r\n\t\t\t\t\t\tif ( fn === list[ i ] ) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t},\r\n\t\t\t// Remove all callbacks from the list\r\n\t\t\tempty: function() {\r\n\t\t\t\tlist = [];\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\t// Have the list do nothing anymore\r\n\t\t\tdisable: function() {\r\n\t\t\t\tlist = stack = memory = undefined;\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\t// Is it disabled?\r\n\t\t\tdisabled: function() {\r\n\t\t\t\treturn !list;\r\n\t\t\t},\r\n\t\t\t// Lock the list in its current state\r\n\t\t\tlock: function() {\r\n\t\t\t\tstack = undefined;\r\n\t\t\t\tif ( !memory || memory === true ) {\r\n\t\t\t\t\tself.disable();\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\t// Is it locked?\r\n\t\t\tlocked: function() {\r\n\t\t\t\treturn !stack;\r\n\t\t\t},\r\n\t\t\t// Call all callbacks with the given context and arguments\r\n\t\t\tfireWith: function( context, args ) {\r\n\t\t\t\tif ( stack ) {\r\n\t\t\t\t\tif ( firing ) {\r\n\t\t\t\t\t\tif ( !flags.once ) {\r\n\t\t\t\t\t\t\tstack.push( [ context, args ] );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if ( !( flags.once && memory ) ) {\r\n\t\t\t\t\t\tfire( context, args );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\t// Call all the callbacks with the given arguments\r\n\t\t\tfire: function() {\r\n\t\t\t\tself.fireWith( this, arguments );\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\t// To know if the callbacks have already been called at least once\r\n\t\t\tfired: function() {\r\n\t\t\t\treturn !!fired;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\treturn self;\r\n};\r\n\r\n\r\n\r\n\r\nvar // Static reference to slice\r\n\tsliceDeferred = [].slice;\r\n\r\njQuery.extend({\r\n\r\n\tDeferred: function( func ) {\r\n\t\tvar doneList = jQuery.Callbacks( "once memory" ),\r\n\t\t\tfailList = jQuery.Callbacks( "once memory" ),\r\n\t\t\tprogressList = jQuery.Callbacks( "memory" ),\r\n\t\t\tstate = "pending",\r\n\t\t\tlists = {\r\n\t\t\t\tresolve: doneList,\r\n\t\t\t\treject: failList,\r\n\t\t\t\tnotify: progressList\r\n\t\t\t},\r\n\t\t\tpromise = {\r\n\t\t\t\tdone: doneList.add,\r\n\t\t\t\tfail: failList.add,\r\n\t\t\t\tprogress: progressList.add,\r\n\r\n\t\t\t\tstate: function() {\r\n\t\t\t\t\treturn state;\r\n\t\t\t\t},\r\n\r\n\t\t\t\t// Deprecated\r\n\t\t\t\tisResolved: doneList.fired,\r\n\t\t\t\tisRejected: failList.fired,\r\n\r\n\t\t\t\tthen: function( doneCallbacks, failCallbacks, progressCallbacks ) {\r\n\t\t\t\t\tdeferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t},\r\n\t\t\t\talways: function() {\r\n\t\t\t\t\tdeferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t},\r\n\t\t\t\tpipe: function( fnDone, fnFail, fnProgress ) {\r\n\t\t\t\t\treturn jQuery.Deferred(function( newDefer ) {\r\n\t\t\t\t\t\tjQuery.each( {\r\n\t\t\t\t\t\t\tdone: [ fnDone, "resolve" ],\r\n\t\t\t\t\t\t\tfail: [ fnFail, "reject" ],\r\n\t\t\t\t\t\t\tprogress: [ fnProgress, "notify" ]\r\n\t\t\t\t\t\t}, function( handler, data ) {\r\n\t\t\t\t\t\t\tvar fn = data[ 0 ],\r\n\t\t\t\t\t\t\t\taction = data[ 1 ],\r\n\t\t\t\t\t\t\t\treturned;\r\n\t\t\t\t\t\t\tif ( jQuery.isFunction( fn ) ) {\r\n\t\t\t\t\t\t\t\tdeferred[ handler ](function() {\r\n\t\t\t\t\t\t\t\t\treturned = fn.apply( this, arguments );\r\n\t\t\t\t\t\t\t\t\tif ( returned && jQuery.isFunction( returned.promise ) ) {\r\n\t\t\t\t\t\t\t\t\t\treturned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tnewDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tdeferred[ handler ]( newDefer[ action ] );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}).promise();\r\n\t\t\t\t},\r\n\t\t\t\t// Get a promise for this deferred\r\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\r\n\t\t\t\tpromise: function( obj ) {\r\n\t\t\t\t\tif ( obj == null ) {\r\n\t\t\t\t\t\tobj = promise;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfor ( var key in promise ) {\r\n\t\t\t\t\t\t\tobj[ key ] = promise[ key ];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn obj;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tdeferred = promise.promise({}),\r\n\t\t\tkey;\r\n\r\n\t\tfor ( key in lists ) {\r\n\t\t\tdeferred[ key ] = lists[ key ].fire;\r\n\t\t\tdeferred[ key + "With" ] = lists[ key ].fireWith;\r\n\t\t}\r\n\r\n\t\t// Handle state\r\n\t\tdeferred.done( function() {\r\n\t\t\tstate = "resolved";\r\n\t\t}, failList.disable, progressList.lock ).fail( function() {\r\n\t\t\tstate = "rejected";\r\n\t\t}, doneList.disable, progressList.lock );\r\n\r\n\t\t// Call given func if any\r\n\t\tif ( func ) {\r\n\t\t\tfunc.call( deferred, deferred );\r\n\t\t}\r\n\r\n\t\t// All done!\r\n\t\treturn deferred;\r\n\t},\r\n\r\n\t// Deferred helper\r\n\twhen: function( firstParam ) {\r\n\t\tvar args = sliceDeferred.call( arguments, 0 ),\r\n\t\t\ti = 0,\r\n\t\t\tlength = args.length,\r\n\t\t\tpValues = new Array( length ),\r\n\t\t\tcount = length,\r\n\t\t\tpCount = length,\r\n\t\t\tdeferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?\r\n\t\t\t\tfirstParam :\r\n\t\t\t\tjQuery.Deferred(),\r\n\t\t\tpromise = deferred.promise();\r\n\t\tfunction resolveFunc( i ) {\r\n\t\t\treturn function( value ) {\r\n\t\t\t\targs[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;\r\n\t\t\t\tif ( !( --count ) ) {\r\n\t\t\t\t\tdeferred.resolveWith( deferred, args );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}\r\n\t\tfunction progressFunc( i ) {\r\n\t\t\treturn function( value ) {\r\n\t\t\t\tpValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;\r\n\t\t\t\tdeferred.notifyWith( promise, pValues );\r\n\t\t\t};\r\n\t\t}\r\n\t\tif ( length > 1 ) {\r\n\t\t\tfor ( ; i < length; i++ ) {\r\n\t\t\t\tif ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {\r\n\t\t\t\t\targs[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );\r\n\t\t\t\t} else {\r\n\t\t\t\t\t--count;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ( !count ) {\r\n\t\t\t\tdeferred.resolveWith( deferred, args );\r\n\t\t\t}\r\n\t\t} else if ( deferred !== firstParam ) {\r\n\t\t\tdeferred.resolveWith( deferred, length ? [ firstParam ] : [] );\r\n\t\t}\r\n\t\treturn promise;\r\n\t}\r\n});\r\n\r\n\r\n\r\n\r\njQuery.support = (function() {\r\n\r\n\tvar support,\r\n\t\tall,\r\n\t\ta,\r\n\t\tselect,\r\n\t\topt,\r\n\t\tinput,\r\n\t\tfragment,\r\n\t\ttds,\r\n\t\tevents,\r\n\t\teventName,\r\n\t\ti,\r\n\t\tisSupported,\r\n\t\tdiv = document.createElement( "div" ),\r\n\t\tdocumentElement = document.documentElement;\r\n\r\n\t// Preliminary tests\r\n\tdiv.setAttribute("className", "t");\r\n\tdiv.innerHTML = "
    a";\r\n\r\n\tall = div.getElementsByTagName( "*" );\r\n\ta = div.getElementsByTagName( "a" )[ 0 ];\r\n\r\n\t// Can\'t get basic test support\r\n\tif ( !all || !all.length || !a ) {\r\n\t\treturn {};\r\n\t}\r\n\r\n\t// First batch of supports tests\r\n\tselect = document.createElement( "select" );\r\n\topt = select.appendChild( document.createElement("option") );\r\n\tinput = div.getElementsByTagName( "input" )[ 0 ];\r\n\r\n\tsupport = {\r\n\t\t// IE strips leading whitespace when .innerHTML is used\r\n\t\tleadingWhitespace: ( div.firstChild.nodeType === 3 ),\r\n\r\n\t\t// Make sure that tbody elements aren\'t automatically inserted\r\n\t\t// IE will insert them into empty tables\r\n\t\ttbody: !div.getElementsByTagName("tbody").length,\r\n\r\n\t\t// Make sure that link elements get serialized correctly by innerHTML\r\n\t\t// This requires a wrapper element in IE\r\n\t\thtmlSerialize: !!div.getElementsByTagName("link").length,\r\n\r\n\t\t// Get the style information from getAttribute\r\n\t\t// (IE uses .cssText instead)\r\n\t\tstyle: /top/.test( a.getAttribute("style") ),\r\n\r\n\t\t// Make sure that URLs aren\'t manipulated\r\n\t\t// (IE normalizes it by default)\r\n\t\threfNormalized: ( a.getAttribute("href") === "/a" ),\r\n\r\n\t\t// Make sure that element opacity exists\r\n\t\t// (IE uses filter instead)\r\n\t\t// Use a regex to work around a WebKit issue. See #5145\r\n\t\topacity: /^0.55/.test( a.style.opacity ),\r\n\r\n\t\t// Verify style float existence\r\n\t\t// (IE uses styleFloat instead of cssFloat)\r\n\t\tcssFloat: !!a.style.cssFloat,\r\n\r\n\t\t// Make sure that if no value is specified for a checkbox\r\n\t\t// that it defaults to "on".\r\n\t\t// (WebKit defaults to "" instead)\r\n\t\tcheckOn: ( input.value === "on" ),\r\n\r\n\t\t// Make sure that a selected-by-default option has a working selected property.\r\n\t\t// (WebKit defaults to false instead of true, IE too, if it\'s in an optgroup)\r\n\t\toptSelected: opt.selected,\r\n\r\n\t\t// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)\r\n\t\tgetSetAttribute: div.className !== "t",\r\n\r\n\t\t// Tests for enctype support on a form(#6743)\r\n\t\tenctype: !!document.createElement("form").enctype,\r\n\r\n\t\t// Makes sure cloning an html5 element does not cause problems\r\n\t\t// Where outerHTML is undefined, this still works\r\n\t\thtml5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>",\r\n\r\n\t\t// Will be defined later\r\n\t\tsubmitBubbles: true,\r\n\t\tchangeBubbles: true,\r\n\t\tfocusinBubbles: false,\r\n\t\tdeleteExpando: true,\r\n\t\tnoCloneEvent: true,\r\n\t\tinlineBlockNeedsLayout: false,\r\n\t\tshrinkWrapBlocks: false,\r\n\t\treliableMarginRight: true,\r\n\t\tpixelMargin: true\r\n\t};\r\n\r\n\t// jQuery.boxModel DEPRECATED in 1.3, use jQuery.support.boxModel instead\r\n\tjQuery.boxModel = support.boxModel = (document.compatMode === "CSS1Compat");\r\n\r\n\t// Make sure checked status is properly cloned\r\n\tinput.checked = true;\r\n\tsupport.noCloneChecked = input.cloneNode( true ).checked;\r\n\r\n\t// Make sure that the options inside disabled selects aren\'t marked as disabled\r\n\t// (WebKit marks them as disabled)\r\n\tselect.disabled = true;\r\n\tsupport.optDisabled = !opt.disabled;\r\n\r\n\t// Test to see if it\'s possible to delete an expando from an element\r\n\t// Fails in Internet Explorer\r\n\ttry {\r\n\t\tdelete div.test;\r\n\t} catch( e ) {\r\n\t\tsupport.deleteExpando = false;\r\n\t}\r\n\r\n\tif ( !div.addEventListener && div.attachEvent && div.fireEvent ) {\r\n\t\tdiv.attachEvent( "onclick", function() {\r\n\t\t\t// Cloning a node shouldn\'t copy over any\r\n\t\t\t// bound event handlers (IE does this)\r\n\t\t\tsupport.noCloneEvent = false;\r\n\t\t});\r\n\t\tdiv.cloneNode( true ).fireEvent( "onclick" );\r\n\t}\r\n\r\n\t// Check if a radio maintains its value\r\n\t// after being appended to the DOM\r\n\tinput = document.createElement("input");\r\n\tinput.value = "t";\r\n\tinput.setAttribute("type", "radio");\r\n\tsupport.radioValue = input.value === "t";\r\n\r\n\tinput.setAttribute("checked", "checked");\r\n\r\n\t// #11217 - WebKit loses check when the name is after the checked attribute\r\n\tinput.setAttribute( "name", "t" );\r\n\r\n\tdiv.appendChild( input );\r\n\tfragment = document.createDocumentFragment();\r\n\tfragment.appendChild( div.lastChild );\r\n\r\n\t// WebKit doesn\'t clone checked state correctly in fragments\r\n\tsupport.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;\r\n\r\n\t// Check if a disconnected checkbox will retain its checked\r\n\t// value of true after appended to the DOM (IE6/7)\r\n\tsupport.appendChecked = input.checked;\r\n\r\n\tfragment.removeChild( input );\r\n\tfragment.appendChild( div );\r\n\r\n\t// Technique from Juriy Zaytsev\r\n\t// http://perfectionkills.com/detecting-event-support-without-browser-sniffing/\r\n\t// We only care about the case where non-standard event systems\r\n\t// are used, namely in IE. Short-circuiting here helps us to\r\n\t// avoid an eval call (in setAttribute) which can cause CSP\r\n\t// to go haywire. See: https://developer.mozilla.org/en/Security/CSP\r\n\tif ( div.attachEvent ) {\r\n\t\tfor ( i in {\r\n\t\t\tsubmit: 1,\r\n\t\t\tchange: 1,\r\n\t\t\tfocusin: 1\r\n\t\t}) {\r\n\t\t\teventName = "on" + i;\r\n\t\t\tisSupported = ( eventName in div );\r\n\t\t\tif ( !isSupported ) {\r\n\t\t\t\tdiv.setAttribute( eventName, "return;" );\r\n\t\t\t\tisSupported = ( typeof div[ eventName ] === "function" );\r\n\t\t\t}\r\n\t\t\tsupport[ i + "Bubbles" ] = isSupported;\r\n\t\t}\r\n\t}\r\n\r\n\tfragment.removeChild( div );\r\n\r\n\t// Null elements to avoid leaks in IE\r\n\tfragment = select = opt = div = input = null;\r\n\r\n\t// Run tests that need a body at doc ready\r\n\tjQuery(function() {\r\n\t\tvar container, outer, inner, table, td, offsetSupport,\r\n\t\t\tmarginDiv, conMarginTop, style, html, positionTopLeftWidthHeight,\r\n\t\t\tpaddingMarginBorderVisibility, paddingMarginBorder,\r\n\t\t\tbody = document.getElementsByTagName("body")[0];\r\n\r\n\t\tif ( !body ) {\r\n\t\t\t// Return for frameset docs that don\'t have a body\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconMarginTop = 1;\r\n\t\tpaddingMarginBorder = "padding:0;margin:0;border:";\r\n\t\tpositionTopLeftWidthHeight = "position:absolute;top:0;left:0;width:1px;height:1px;";\r\n\t\tpaddingMarginBorderVisibility = paddingMarginBorder + "0;visibility:hidden;";\r\n\t\tstyle = "style=\'" + positionTopLeftWidthHeight + paddingMarginBorder + "5px solid #000;";\r\n\t\thtml = "
    " +\r\n\t\t\t"" +\r\n\t\t\t"
    ";\r\n\r\n\t\tcontainer = document.createElement("div");\r\n\t\tcontainer.style.cssText = paddingMarginBorderVisibility + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";\r\n\t\tbody.insertBefore( container, body.firstChild );\r\n\r\n\t\t// Construct the test element\r\n\t\tdiv = document.createElement("div");\r\n\t\tcontainer.appendChild( div );\r\n\r\n\t\t// Check if table cells still have offsetWidth/Height when they are set\r\n\t\t// to display:none and there are still other visible table cells in a\r\n\t\t// table row; if so, offsetWidth/Height are not reliable for use when\r\n\t\t// determining if an element has been hidden directly using\r\n\t\t// display:none (it is still safe to use offsets if a parent element is\r\n\t\t// hidden; don safety goggles and see bug #4512 for more information).\r\n\t\t// (only IE 8 fails this test)\r\n\t\tdiv.innerHTML = "
    t
    ";\r\n\t\ttds = div.getElementsByTagName( "td" );\r\n\t\tisSupported = ( tds[ 0 ].offsetHeight === 0 );\r\n\r\n\t\ttds[ 0 ].style.display = "";\r\n\t\ttds[ 1 ].style.display = "none";\r\n\r\n\t\t// Check if empty table cells still have offsetWidth/Height\r\n\t\t// (IE <= 8 fail this test)\r\n\t\tsupport.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );\r\n\r\n\t\t// Check if div with explicit width and no margin-right incorrectly\r\n\t\t// gets computed margin-right based on width of container. For more\r\n\t\t// info see bug #3333\r\n\t\t// Fails in WebKit before Feb 2011 nightlies\r\n\t\t// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\r\n\t\tif ( window.getComputedStyle ) {\r\n\t\t\tdiv.innerHTML = "";\r\n\t\t\tmarginDiv = document.createElement( "div" );\r\n\t\t\tmarginDiv.style.width = "0";\r\n\t\t\tmarginDiv.style.marginRight = "0";\r\n\t\t\tdiv.style.width = "2px";\r\n\t\t\tdiv.appendChild( marginDiv );\r\n\t\t\tsupport.reliableMarginRight =\r\n\t\t\t\t( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;\r\n\t\t}\r\n\r\n\t\tif ( typeof div.style.zoom !== "undefined" ) {\r\n\t\t\t// Check if natively block-level elements act like inline-block\r\n\t\t\t// elements when setting their display to \'inline\' and giving\r\n\t\t\t// them layout\r\n\t\t\t// (IE < 8 does this)\r\n\t\t\tdiv.innerHTML = "";\r\n\t\t\tdiv.style.width = div.style.padding = "1px";\r\n\t\t\tdiv.style.border = 0;\r\n\t\t\tdiv.style.overflow = "hidden";\r\n\t\t\tdiv.style.display = "inline";\r\n\t\t\tdiv.style.zoom = 1;\r\n\t\t\tsupport.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );\r\n\r\n\t\t\t// Check if elements with layout shrink-wrap their children\r\n\t\t\t// (IE 6 does this)\r\n\t\t\tdiv.style.display = "block";\r\n\t\t\tdiv.style.overflow = "visible";\r\n\t\t\tdiv.innerHTML = "
    ";\r\n\t\t\tsupport.shrinkWrapBlocks = ( div.offsetWidth !== 3 );\r\n\t\t}\r\n\r\n\t\tdiv.style.cssText = positionTopLeftWidthHeight + paddingMarginBorderVisibility;\r\n\t\tdiv.innerHTML = html;\r\n\r\n\t\touter = div.firstChild;\r\n\t\tinner = outer.firstChild;\r\n\t\ttd = outer.nextSibling.firstChild.firstChild;\r\n\r\n\t\toffsetSupport = {\r\n\t\t\tdoesNotAddBorder: ( inner.offsetTop !== 5 ),\r\n\t\t\tdoesAddBorderForTableAndCells: ( td.offsetTop === 5 )\r\n\t\t};\r\n\r\n\t\tinner.style.position = "fixed";\r\n\t\tinner.style.top = "20px";\r\n\r\n\t\t// safari subtracts parent border width here which is 5px\r\n\t\toffsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );\r\n\t\tinner.style.position = inner.style.top = "";\r\n\r\n\t\touter.style.overflow = "hidden";\r\n\t\touter.style.position = "relative";\r\n\r\n\t\toffsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );\r\n\t\toffsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );\r\n\r\n\t\tif ( window.getComputedStyle ) {\r\n\t\t\tdiv.style.marginTop = "1%";\r\n\t\t\tsupport.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%";\r\n\t\t}\r\n\r\n\t\tif ( typeof container.style.zoom !== "undefined" ) {\r\n\t\t\tcontainer.style.zoom = 1;\r\n\t\t}\r\n\r\n\t\tbody.removeChild( container );\r\n\t\tmarginDiv = div = container = null;\r\n\r\n\t\tjQuery.extend( support, offsetSupport );\r\n\t});\r\n\r\n\treturn support;\r\n})();\r\n\r\n\r\n\r\n\r\nvar rbrace = /^(?:\\{.*\\}|\\[.*\\])$/,\r\n\trmultiDash = /([A-Z])/g;\r\n\r\njQuery.extend({\r\n\tcache: {},\r\n\r\n\t// Please use with caution\r\n\tuuid: 0,\r\n\r\n\t// Unique for each copy of jQuery on the page\r\n\t// Non-digits removed to match rinlinejQuery\r\n\texpando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\\D/g, "" ),\r\n\r\n\t// The following elements throw uncatchable exceptions if you\r\n\t// attempt to add expando properties to them.\r\n\tnoData: {\r\n\t\t"embed": true,\r\n\t\t// Ban all objects except for Flash (which handle expandos)\r\n\t\t"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",\r\n\t\t"applet": true\r\n\t},\r\n\r\n\thasData: function( elem ) {\r\n\t\telem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];\r\n\t\treturn !!elem && !isEmptyDataObject( elem );\r\n\t},\r\n\r\n\tdata: function( elem, name, data, pvt /* Internal Use Only */ ) {\r\n\t\tif ( !jQuery.acceptData( elem ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar privateCache, thisCache, ret,\r\n\t\t\tinternalKey = jQuery.expando,\r\n\t\t\tgetByName = typeof name === "string",\r\n\r\n\t\t\t// We have to handle DOM nodes and JS objects differently because IE6-7\r\n\t\t\t// can\'t GC object references properly across the DOM-JS boundary\r\n\t\t\tisNode = elem.nodeType,\r\n\r\n\t\t\t// Only DOM nodes need the global jQuery cache; JS object data is\r\n\t\t\t// attached directly to the object so GC can occur automatically\r\n\t\t\tcache = isNode ? jQuery.cache : elem,\r\n\r\n\t\t\t// Only defining an ID for JS objects if its cache already exists allows\r\n\t\t\t// the code to shortcut on the same path as a DOM node with no cache\r\n\t\t\tid = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,\r\n\t\t\tisEvents = name === "events";\r\n\r\n\t\t// Avoid doing any more work than we need to when trying to get data on an\r\n\t\t// object that has no data at all\r\n\t\tif ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( !id ) {\r\n\t\t\t// Only DOM nodes need a new unique ID for each element since their data\r\n\t\t\t// ends up in the global cache\r\n\t\t\tif ( isNode ) {\r\n\t\t\t\telem[ internalKey ] = id = ++jQuery.uuid;\r\n\t\t\t} else {\r\n\t\t\t\tid = internalKey;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( !cache[ id ] ) {\r\n\t\t\tcache[ id ] = {};\r\n\r\n\t\t\t// Avoids exposing jQuery metadata on plain JS objects when the object\r\n\t\t\t// is serialized using JSON.stringify\r\n\t\t\tif ( !isNode ) {\r\n\t\t\t\tcache[ id ].toJSON = jQuery.noop;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// An object can be passed to jQuery.data instead of a key/value pair; this gets\r\n\t\t// shallow copied over onto the existing cache\r\n\t\tif ( typeof name === "object" || typeof name === "function" ) {\r\n\t\t\tif ( pvt ) {\r\n\t\t\t\tcache[ id ] = jQuery.extend( cache[ id ], name );\r\n\t\t\t} else {\r\n\t\t\t\tcache[ id ].data = jQuery.extend( cache[ id ].data, name );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tprivateCache = thisCache = cache[ id ];\r\n\r\n\t\t// jQuery data() is stored in a separate object inside the object\'s internal data\r\n\t\t// cache in order to avoid key collisions between internal data and user-defined\r\n\t\t// data.\r\n\t\tif ( !pvt ) {\r\n\t\t\tif ( !thisCache.data ) {\r\n\t\t\t\tthisCache.data = {};\r\n\t\t\t}\r\n\r\n\t\t\tthisCache = thisCache.data;\r\n\t\t}\r\n\r\n\t\tif ( data !== undefined ) {\r\n\t\t\tthisCache[ jQuery.camelCase( name ) ] = data;\r\n\t\t}\r\n\r\n\t\t// Users should not attempt to inspect the internal events object using jQuery.data,\r\n\t\t// it is undocumented and subject to change. But does anyone listen? No.\r\n\t\tif ( isEvents && !thisCache[ name ] ) {\r\n\t\t\treturn privateCache.events;\r\n\t\t}\r\n\r\n\t\t// Check for both converted-to-camel and non-converted data property names\r\n\t\t// If a data property was specified\r\n\t\tif ( getByName ) {\r\n\r\n\t\t\t// First Try to find as-is property data\r\n\t\t\tret = thisCache[ name ];\r\n\r\n\t\t\t// Test for null|undefined property data\r\n\t\t\tif ( ret == null ) {\r\n\r\n\t\t\t\t// Try to find the camelCased property\r\n\t\t\t\tret = thisCache[ jQuery.camelCase( name ) ];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tret = thisCache;\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t},\r\n\r\n\tremoveData: function( elem, name, pvt /* Internal Use Only */ ) {\r\n\t\tif ( !jQuery.acceptData( elem ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar thisCache, i, l,\r\n\r\n\t\t\t// Reference to internal data cache key\r\n\t\t\tinternalKey = jQuery.expando,\r\n\r\n\t\t\tisNode = elem.nodeType,\r\n\r\n\t\t\t// See jQuery.data for more information\r\n\t\t\tcache = isNode ? jQuery.cache : elem,\r\n\r\n\t\t\t// See jQuery.data for more information\r\n\t\t\tid = isNode ? elem[ internalKey ] : internalKey;\r\n\r\n\t\t// If there is already no cache entry for this object, there is no\r\n\t\t// purpose in continuing\r\n\t\tif ( !cache[ id ] ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( name ) {\r\n\r\n\t\t\tthisCache = pvt ? cache[ id ] : cache[ id ].data;\r\n\r\n\t\t\tif ( thisCache ) {\r\n\r\n\t\t\t\t// Support array or space separated string names for data keys\r\n\t\t\t\tif ( !jQuery.isArray( name ) ) {\r\n\r\n\t\t\t\t\t// try the string as a key before any manipulation\r\n\t\t\t\t\tif ( name in thisCache ) {\r\n\t\t\t\t\t\tname = [ name ];\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t// split the camel cased version by spaces unless a key with the spaces exists\r\n\t\t\t\t\t\tname = jQuery.camelCase( name );\r\n\t\t\t\t\t\tif ( name in thisCache ) {\r\n\t\t\t\t\t\t\tname = [ name ];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tname = name.split( " " );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor ( i = 0, l = name.length; i < l; i++ ) {\r\n\t\t\t\t\tdelete thisCache[ name[i] ];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If there is no data left in the cache, we want to continue\r\n\t\t\t\t// and let the cache object itself get destroyed\r\n\t\t\t\tif ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// See jQuery.data for more information\r\n\t\tif ( !pvt ) {\r\n\t\t\tdelete cache[ id ].data;\r\n\r\n\t\t\t// Don\'t destroy the parent cache unless the internal data object\r\n\t\t\t// had been the only thing left in it\r\n\t\t\tif ( !isEmptyDataObject(cache[ id ]) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Browsers that fail expando deletion also refuse to delete expandos on\r\n\t\t// the window, but it will allow it on all other JS objects; other browsers\r\n\t\t// don\'t care\r\n\t\t// Ensure that `cache` is not a window object #10080\r\n\t\tif ( jQuery.support.deleteExpando || !cache.setInterval ) {\r\n\t\t\tdelete cache[ id ];\r\n\t\t} else {\r\n\t\t\tcache[ id ] = null;\r\n\t\t}\r\n\r\n\t\t// We destroyed the cache and need to eliminate the expando on the node to avoid\r\n\t\t// false lookups in the cache for entries that no longer exist\r\n\t\tif ( isNode ) {\r\n\t\t\t// IE does not allow us to delete expando properties from nodes,\r\n\t\t\t// nor does it have a removeAttribute function on Document nodes;\r\n\t\t\t// we must handle all of these cases\r\n\t\t\tif ( jQuery.support.deleteExpando ) {\r\n\t\t\t\tdelete elem[ internalKey ];\r\n\t\t\t} else if ( elem.removeAttribute ) {\r\n\t\t\t\telem.removeAttribute( internalKey );\r\n\t\t\t} else {\r\n\t\t\t\telem[ internalKey ] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// For internal use only.\r\n\t_data: function( elem, name, data ) {\r\n\t\treturn jQuery.data( elem, name, data, true );\r\n\t},\r\n\r\n\t// A method for determining if a DOM node can handle the data expando\r\n\tacceptData: function( elem ) {\r\n\t\tif ( elem.nodeName ) {\r\n\t\t\tvar match = jQuery.noData[ elem.nodeName.toLowerCase() ];\r\n\r\n\t\t\tif ( match ) {\r\n\t\t\t\treturn !(match === true || elem.getAttribute("classid") !== match);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}\r\n});\r\n\r\njQuery.fn.extend({\r\n\tdata: function( key, value ) {\r\n\t\tvar parts, part, attr, name, l,\r\n\t\t\telem = this[0],\r\n\t\t\ti = 0,\r\n\t\t\tdata = null;\r\n\r\n\t\t// Gets all values\r\n\t\tif ( key === undefined ) {\r\n\t\t\tif ( this.length ) {\r\n\t\t\t\tdata = jQuery.data( elem );\r\n\r\n\t\t\t\tif ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {\r\n\t\t\t\t\tattr = elem.attributes;\r\n\t\t\t\t\tfor ( l = attr.length; i < l; i++ ) {\r\n\t\t\t\t\t\tname = attr[i].name;\r\n\r\n\t\t\t\t\t\tif ( name.indexOf( "data-" ) === 0 ) {\r\n\t\t\t\t\t\t\tname = jQuery.camelCase( name.substring(5) );\r\n\r\n\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tjQuery._data( elem, "parsedAttrs", true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn data;\r\n\t\t}\r\n\r\n\t\t// Sets multiple values\r\n\t\tif ( typeof key === "object" ) {\r\n\t\t\treturn this.each(function() {\r\n\t\t\t\tjQuery.data( this, key );\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tparts = key.split( ".", 2 );\r\n\t\tparts[1] = parts[1] ? "." + parts[1] : "";\r\n\t\tpart = parts[1] + "!";\r\n\r\n\t\treturn jQuery.access( this, function( value ) {\r\n\r\n\t\t\tif ( value === undefined ) {\r\n\t\t\t\tdata = this.triggerHandler( "getData" + part, [ parts[0] ] );\r\n\r\n\t\t\t\t// Try to fetch any internally stored data first\r\n\t\t\t\tif ( data === undefined && elem ) {\r\n\t\t\t\t\tdata = jQuery.data( elem, key );\r\n\t\t\t\t\tdata = dataAttr( elem, key, data );\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn data === undefined && parts[1] ?\r\n\t\t\t\t\tthis.data( parts[0] ) :\r\n\t\t\t\t\tdata;\r\n\t\t\t}\r\n\r\n\t\t\tparts[1] = value;\r\n\t\t\tthis.each(function() {\r\n\t\t\t\tvar self = jQuery( this );\r\n\r\n\t\t\t\tself.triggerHandler( "setData" + part, parts );\r\n\t\t\t\tjQuery.data( this, key, value );\r\n\t\t\t\tself.triggerHandler( "changeData" + part, parts );\r\n\t\t\t});\r\n\t\t}, null, value, arguments.length > 1, null, false );\r\n\t},\r\n\r\n\tremoveData: function( key ) {\r\n\t\treturn this.each(function() {\r\n\t\t\tjQuery.removeData( this, key );\r\n\t\t});\r\n\t}\r\n});\r\n\r\nfunction dataAttr( elem, key, data ) {\r\n\t// If nothing was found internally, try to fetch any\r\n\t// data from the HTML5 data-* attribute\r\n\tif ( data === undefined && elem.nodeType === 1 ) {\r\n\r\n\t\tvar name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();\r\n\r\n\t\tdata = elem.getAttribute( name );\r\n\r\n\t\tif ( typeof data === "string" ) {\r\n\t\t\ttry {\r\n\t\t\t\tdata = data === "true" ? true :\r\n\t\t\t\tdata === "false" ? false :\r\n\t\t\t\tdata === "null" ? null :\r\n\t\t\t\tjQuery.isNumeric( data ) ? +data :\r\n\t\t\t\t\trbrace.test( data ) ? jQuery.parseJSON( data ) :\r\n\t\t\t\t\tdata;\r\n\t\t\t} catch( e ) {}\r\n\r\n\t\t\t// Make sure we set the data so it isn\'t changed later\r\n\t\t\tjQuery.data( elem, key, data );\r\n\r\n\t\t} else {\r\n\t\t\tdata = undefined;\r\n\t\t}\r\n\t}\r\n\r\n\treturn data;\r\n}\r\n\r\n// checks a cache object for emptiness\r\nfunction isEmptyDataObject( obj ) {\r\n\tfor ( var name in obj ) {\r\n\r\n\t\t// if the public data object is empty, the private is still empty\r\n\t\tif ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\tif ( name !== "toJSON" ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\treturn true;\r\n}\r\n\r\n\r\n\r\n\r\nfunction handleQueueMarkDefer( elem, type, src ) {\r\n\tvar deferDataKey = type + "defer",\r\n\t\tqueueDataKey = type + "queue",\r\n\t\tmarkDataKey = type + "mark",\r\n\t\tdefer = jQuery._data( elem, deferDataKey );\r\n\tif ( defer &&\r\n\t\t( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&\r\n\t\t( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {\r\n\t\t// Give room for hard-coded callbacks to fire first\r\n\t\t// and eventually mark/queue something else on the element\r\n\t\tsetTimeout( function() {\r\n\t\t\tif ( !jQuery._data( elem, queueDataKey ) &&\r\n\t\t\t\t!jQuery._data( elem, markDataKey ) ) {\r\n\t\t\t\tjQuery.removeData( elem, deferDataKey, true );\r\n\t\t\t\tdefer.fire();\r\n\t\t\t}\r\n\t\t}, 0 );\r\n\t}\r\n}\r\n\r\njQuery.extend({\r\n\r\n\t_mark: function( elem, type ) {\r\n\t\tif ( elem ) {\r\n\t\t\ttype = ( type || "fx" ) + "mark";\r\n\t\t\tjQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );\r\n\t\t}\r\n\t},\r\n\r\n\t_unmark: function( force, elem, type ) {\r\n\t\tif ( force !== true ) {\r\n\t\t\ttype = elem;\r\n\t\t\telem = force;\r\n\t\t\tforce = false;\r\n\t\t}\r\n\t\tif ( elem ) {\r\n\t\t\ttype = type || "fx";\r\n\t\t\tvar key = type + "mark",\r\n\t\t\t\tcount = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );\r\n\t\t\tif ( count ) {\r\n\t\t\t\tjQuery._data( elem, key, count );\r\n\t\t\t} else {\r\n\t\t\t\tjQuery.removeData( elem, key, true );\r\n\t\t\t\thandleQueueMarkDefer( elem, type, "mark" );\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tqueue: function( elem, type, data ) {\r\n\t\tvar q;\r\n\t\tif ( elem ) {\r\n\t\t\ttype = ( type || "fx" ) + "queue";\r\n\t\t\tq = jQuery._data( elem, type );\r\n\r\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\r\n\t\t\tif ( data ) {\r\n\t\t\t\tif ( !q || jQuery.isArray(data) ) {\r\n\t\t\t\t\tq = jQuery._data( elem, type, jQuery.makeArray(data) );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.push( data );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn q || [];\r\n\t\t}\r\n\t},\r\n\r\n\tdequeue: function( elem, type ) {\r\n\t\ttype = type || "fx";\r\n\r\n\t\tvar queue = jQuery.queue( elem, type ),\r\n\t\t\tfn = queue.shift(),\r\n\t\t\thooks = {};\r\n\r\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\r\n\t\tif ( fn === "inprogress" ) {\r\n\t\t\tfn = queue.shift();\r\n\t\t}\r\n\r\n\t\tif ( fn ) {\r\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\r\n\t\t\t// automatically dequeued\r\n\t\t\tif ( type === "fx" ) {\r\n\t\t\t\tqueue.unshift( "inprogress" );\r\n\t\t\t}\r\n\r\n\t\t\tjQuery._data( elem, type + ".run", hooks );\r\n\t\t\tfn.call( elem, function() {\r\n\t\t\t\tjQuery.dequeue( elem, type );\r\n\t\t\t}, hooks );\r\n\t\t}\r\n\r\n\t\tif ( !queue.length ) {\r\n\t\t\tjQuery.removeData( elem, type + "queue " + type + ".run", true );\r\n\t\t\thandleQueueMarkDefer( elem, type, "queue" );\r\n\t\t}\r\n\t}\r\n});\r\n\r\njQuery.fn.extend({\r\n\tqueue: function( type, data ) {\r\n\t\tvar setter = 2;\r\n\r\n\t\tif ( typeof type !== "string" ) {\r\n\t\t\tdata = type;\r\n\t\t\ttype = "fx";\r\n\t\t\tsetter--;\r\n\t\t}\r\n\r\n\t\tif ( arguments.length < setter ) {\r\n\t\t\treturn jQuery.queue( this[0], type );\r\n\t\t}\r\n\r\n\t\treturn data === undefined ?\r\n\t\t\tthis :\r\n\t\t\tthis.each(function() {\r\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\r\n\r\n\t\t\t\tif ( type === "fx" && queue[0] !== "inprogress" ) {\r\n\t\t\t\t\tjQuery.dequeue( this, type );\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t},\r\n\tdequeue: function( type ) {\r\n\t\treturn this.each(function() {\r\n\t\t\tjQuery.dequeue( this, type );\r\n\t\t});\r\n\t},\r\n\t// Based off of the plugin by Clint Helfers, with permission.\r\n\t// http://blindsignals.com/index.php/2009/07/jquery-delay/\r\n\tdelay: function( time, type ) {\r\n\t\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\r\n\t\ttype = type || "fx";\r\n\r\n\t\treturn this.queue( type, function( next, hooks ) {\r\n\t\t\tvar timeout = setTimeout( next, time );\r\n\t\t\thooks.stop = function() {\r\n\t\t\t\tclearTimeout( timeout );\r\n\t\t\t};\r\n\t\t});\r\n\t},\r\n\tclearQueue: function( type ) {\r\n\t\treturn this.queue( type || "fx", [] );\r\n\t},\r\n\t// Get a promise resolved when queues of a certain type\r\n\t// are emptied (fx is the type by default)\r\n\tpromise: function( type, object ) {\r\n\t\tif ( typeof type !== "string" ) {\r\n\t\t\tobject = type;\r\n\t\t\ttype = undefined;\r\n\t\t}\r\n\t\ttype = type || "fx";\r\n\t\tvar defer = jQuery.Deferred(),\r\n\t\t\telements = this,\r\n\t\t\ti = elements.length,\r\n\t\t\tcount = 1,\r\n\t\t\tdeferDataKey = type + "defer",\r\n\t\t\tqueueDataKey = type + "queue",\r\n\t\t\tmarkDataKey = type + "mark",\r\n\t\t\ttmp;\r\n\t\tfunction resolve() {\r\n\t\t\tif ( !( --count ) ) {\r\n\t\t\t\tdefer.resolveWith( elements, [ elements ] );\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile( i-- ) {\r\n\t\t\tif (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||\r\n\t\t\t\t\t( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||\r\n\t\t\t\t\t\tjQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&\r\n\t\t\t\t\tjQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {\r\n\t\t\t\tcount++;\r\n\t\t\t\ttmp.add( resolve );\r\n\t\t\t}\r\n\t\t}\r\n\t\tresolve();\r\n\t\treturn defer.promise( object );\r\n\t}\r\n});\r\n\r\n\r\n\r\n\r\nvar rclass = /[\\n\\t\\r]/g,\r\n\trspace = /\\s+/,\r\n\trreturn = /\\r/g,\r\n\trtype = /^(?:button|input)$/i,\r\n\trfocusable = /^(?:button|input|object|select|textarea)$/i,\r\n\trclickable = /^a(?:rea)?$/i,\r\n\trboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,\r\n\tgetSetAttribute = jQuery.support.getSetAttribute,\r\n\tnodeHook, boolHook, fixSpecified;\r\n\r\njQuery.fn.extend({\r\n\tattr: function( name, value ) {\r\n\t\treturn jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );\r\n\t},\r\n\r\n\tremoveAttr: function( name ) {\r\n\t\treturn this.each(function() {\r\n\t\t\tjQuery.removeAttr( this, name );\r\n\t\t});\r\n\t},\r\n\r\n\tprop: function( name, value ) {\r\n\t\treturn jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );\r\n\t},\r\n\r\n\tremoveProp: function( name ) {\r\n\t\tname = jQuery.propFix[ name ] || name;\r\n\t\treturn this.each(function() {\r\n\t\t\t// try/catch handles cases where IE balks (such as removing a property on window)\r\n\t\t\ttry {\r\n\t\t\t\tthis[ name ] = undefined;\r\n\t\t\t\tdelete this[ name ];\r\n\t\t\t} catch( e ) {}\r\n\t\t});\r\n\t},\r\n\r\n\taddClass: function( value ) {\r\n\t\tvar classNames, i, l, elem,\r\n\t\t\tsetClass, c, cl;\r\n\r\n\t\tif ( jQuery.isFunction( value ) ) {\r\n\t\t\treturn this.each(function( j ) {\r\n\t\t\t\tjQuery( this ).addClass( value.call(this, j, this.className) );\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif ( value && typeof value === "string" ) {\r\n\t\t\tclassNames = value.split( rspace );\r\n\r\n\t\t\tfor ( i = 0, l = this.length; i < l; i++ ) {\r\n\t\t\t\telem = this[ i ];\r\n\r\n\t\t\t\tif ( elem.nodeType === 1 ) {\r\n\t\t\t\t\tif ( !elem.className && classNames.length === 1 ) {\r\n\t\t\t\t\t\telem.className = value;\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetClass = " " + elem.className + " ";\r\n\r\n\t\t\t\t\t\tfor ( c = 0, cl = classNames.length; c < cl; c++ ) {\r\n\t\t\t\t\t\t\tif ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {\r\n\t\t\t\t\t\t\t\tsetClass += classNames[ c ] + " ";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telem.className = jQuery.trim( setClass );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\tremoveClass: function( value ) {\r\n\t\tvar classNames, i, l, elem, className, c, cl;\r\n\r\n\t\tif ( jQuery.isFunction( value ) ) {\r\n\t\t\treturn this.each(function( j ) {\r\n\t\t\t\tjQuery( this ).removeClass( value.call(this, j, this.className) );\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif ( (value && typeof value === "string") || value === undefined ) {\r\n\t\t\tclassNames = ( value || "" ).split( rspace );\r\n\r\n\t\t\tfor ( i = 0, l = this.length; i < l; i++ ) {\r\n\t\t\t\telem = this[ i ];\r\n\r\n\t\t\t\tif ( elem.nodeType === 1 && elem.className ) {\r\n\t\t\t\t\tif ( value ) {\r\n\t\t\t\t\t\tclassName = (" " + elem.className + " ").replace( rclass, " " );\r\n\t\t\t\t\t\tfor ( c = 0, cl = classNames.length; c < cl; c++ ) {\r\n\t\t\t\t\t\t\tclassName = className.replace(" " + classNames[ c ] + " ", " ");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telem.className = jQuery.trim( className );\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\telem.className = "";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\ttoggleClass: function( value, stateVal ) {\r\n\t\tvar type = typeof value,\r\n\t\t\tisBool = typeof stateVal === "boolean";\r\n\r\n\t\tif ( jQuery.isFunction( value ) ) {\r\n\t\t\treturn this.each(function( i ) {\r\n\t\t\t\tjQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn this.each(function() {\r\n\t\t\tif ( type === "string" ) {\r\n\t\t\t\t// toggle individual class names\r\n\t\t\t\tvar className,\r\n\t\t\t\t\ti = 0,\r\n\t\t\t\t\tself = jQuery( this ),\r\n\t\t\t\t\tstate = stateVal,\r\n\t\t\t\t\tclassNames = value.split( rspace );\r\n\r\n\t\t\t\twhile ( (className = classNames[ i++ ]) ) {\r\n\t\t\t\t\t// check each className given, space seperated list\r\n\t\t\t\t\tstate = isBool ? state : !self.hasClass( className );\r\n\t\t\t\t\tself[ state ? "addClass" : "removeClass" ]( className );\r\n\t\t\t\t}\r\n\r\n\t\t\t} else if ( type === "undefined" || type === "boolean" ) {\r\n\t\t\t\tif ( this.className ) {\r\n\t\t\t\t\t// store className if set\r\n\t\t\t\t\tjQuery._data( this, "__className__", this.className );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// toggle whole className\r\n\t\t\t\tthis.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\r\n\thasClass: function( selector ) {\r\n\t\tvar className = " " + selector + " ",\r\n\t\t\ti = 0,\r\n\t\t\tl = this.length;\r\n\t\tfor ( ; i < l; i++ ) {\r\n\t\t\tif ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t},\r\n\r\n\tval: function( value ) {\r\n\t\tvar hooks, ret, isFunction,\r\n\t\t\telem = this[0];\r\n\r\n\t\tif ( !arguments.length ) {\r\n\t\t\tif ( elem ) {\r\n\t\t\t\thooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];\r\n\r\n\t\t\t\tif ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tret = elem.value;\r\n\r\n\t\t\t\treturn typeof ret === "string" ?\r\n\t\t\t\t\t// handle most common string cases\r\n\t\t\t\t\tret.replace(rreturn, "") :\r\n\t\t\t\t\t// handle cases where value is null/undef or number\r\n\t\t\t\t\tret == null ? "" : ret;\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tisFunction = jQuery.isFunction( value );\r\n\r\n\t\treturn this.each(function( i ) {\r\n\t\t\tvar self = jQuery(this), val;\r\n\r\n\t\t\tif ( this.nodeType !== 1 ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif ( isFunction ) {\r\n\t\t\t\tval = value.call( this, i, self.val() );\r\n\t\t\t} else {\r\n\t\t\t\tval = value;\r\n\t\t\t}\r\n\r\n\t\t\t// Treat null/undefined as ""; convert numbers to string\r\n\t\t\tif ( val == null ) {\r\n\t\t\t\tval = "";\r\n\t\t\t} else if ( typeof val === "number" ) {\r\n\t\t\t\tval += "";\r\n\t\t\t} else if ( jQuery.isArray( val ) ) {\r\n\t\t\t\tval = jQuery.map(val, function ( value ) {\r\n\t\t\t\t\treturn value == null ? "" : value + "";\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\r\n\r\n\t\t\t// If set returns undefined, fall back to normal setting\r\n\t\t\tif ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {\r\n\t\t\t\tthis.value = val;\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n});\r\n\r\njQuery.extend({\r\n\tvalHooks: {\r\n\t\toption: {\r\n\t\t\tget: function( elem ) {\r\n\t\t\t\t// attributes.value is undefined in Blackberry 4.7 but\r\n\t\t\t\t// uses .value. See #6932\r\n\t\t\t\tvar val = elem.attributes.value;\r\n\t\t\t\treturn !val || val.specified ? elem.value : elem.text;\r\n\t\t\t}\r\n\t\t},\r\n\t\tselect: {\r\n\t\t\tget: function( elem ) {\r\n\t\t\t\tvar value, i, max, option,\r\n\t\t\t\t\tindex = elem.selectedIndex,\r\n\t\t\t\t\tvalues = [],\r\n\t\t\t\t\toptions = elem.options,\r\n\t\t\t\t\tone = elem.type === "select-one";\r\n\r\n\t\t\t\t// Nothing was selected\r\n\t\t\t\tif ( index < 0 ) {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Loop through all the selected options\r\n\t\t\t\ti = one ? index : 0;\r\n\t\t\t\tmax = one ? index + 1 : options.length;\r\n\t\t\t\tfor ( ; i < max; i++ ) {\r\n\t\t\t\t\toption = options[ i ];\r\n\r\n\t\t\t\t\t// Don\'t return options that are disabled or in a disabled optgroup\r\n\t\t\t\t\tif ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&\r\n\t\t\t\t\t\t\t(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {\r\n\r\n\t\t\t\t\t\t// Get the specific value for the option\r\n\t\t\t\t\t\tvalue = jQuery( option ).val();\r\n\r\n\t\t\t\t\t\t// We don\'t need an array for one selects\r\n\t\t\t\t\t\tif ( one ) {\r\n\t\t\t\t\t\t\treturn value;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Multi-Selects return an array\r\n\t\t\t\t\t\tvalues.push( value );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Fixes Bug #2551 -- select.val() broken in IE after form.reset()\r\n\t\t\t\tif ( one && !values.length && options.length ) {\r\n\t\t\t\t\treturn jQuery( options[ index ] ).val();\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn values;\r\n\t\t\t},\r\n\r\n\t\t\tset: function( elem, value ) {\r\n\t\t\t\tvar values = jQuery.makeArray( value );\r\n\r\n\t\t\t\tjQuery(elem).find("option").each(function() {\r\n\t\t\t\t\tthis.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;\r\n\t\t\t\t});\r\n\r\n\t\t\t\tif ( !values.length ) {\r\n\t\t\t\t\telem.selectedIndex = -1;\r\n\t\t\t\t}\r\n\t\t\t\treturn values;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tattrFn: {\r\n\t\tval: true,\r\n\t\tcss: true,\r\n\t\thtml: true,\r\n\t\ttext: true,\r\n\t\tdata: true,\r\n\t\twidth: true,\r\n\t\theight: true,\r\n\t\toffset: true\r\n\t},\r\n\r\n\tattr: function( elem, name, value, pass ) {\r\n\t\tvar ret, hooks, notxml,\r\n\t\t\tnType = elem.nodeType;\r\n\r\n\t\t// don\'t get/set attributes on text, comment and attribute nodes\r\n\t\tif ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( pass && name in jQuery.attrFn ) {\r\n\t\t\treturn jQuery( elem )[ name ]( value );\r\n\t\t}\r\n\r\n\t\t// Fallback to prop when attributes are not supported\r\n\t\tif ( typeof elem.getAttribute === "undefined" ) {\r\n\t\t\treturn jQuery.prop( elem, name, value );\r\n\t\t}\r\n\r\n\t\tnotxml = nType !== 1 || !jQuery.isXMLDoc( elem );\r\n\r\n\t\t// All attributes are lowercase\r\n\t\t// Grab necessary hook if one is defined\r\n\t\tif ( notxml ) {\r\n\t\t\tname = name.toLowerCase();\r\n\t\t\thooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );\r\n\t\t}\r\n\r\n\t\tif ( value !== undefined ) {\r\n\r\n\t\t\tif ( value === null ) {\r\n\t\t\t\tjQuery.removeAttr( elem, name );\r\n\t\t\t\treturn;\r\n\r\n\t\t\t} else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {\r\n\t\t\t\treturn ret;\r\n\r\n\t\t\t} else {\r\n\t\t\t\telem.setAttribute( name, "" + value );\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\r\n\t\t} else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {\r\n\t\t\treturn ret;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tret = elem.getAttribute( name );\r\n\r\n\t\t\t// Non-existent attributes return null, we normalize to undefined\r\n\t\t\treturn ret === null ?\r\n\t\t\t\tundefined :\r\n\t\t\t\tret;\r\n\t\t}\r\n\t},\r\n\r\n\tremoveAttr: function( elem, value ) {\r\n\t\tvar propName, attrNames, name, l, isBool,\r\n\t\t\ti = 0;\r\n\r\n\t\tif ( value && elem.nodeType === 1 ) {\r\n\t\t\tattrNames = value.toLowerCase().split( rspace );\r\n\t\t\tl = attrNames.length;\r\n\r\n\t\t\tfor ( ; i < l; i++ ) {\r\n\t\t\t\tname = attrNames[ i ];\r\n\r\n\t\t\t\tif ( name ) {\r\n\t\t\t\t\tpropName = jQuery.propFix[ name ] || name;\r\n\t\t\t\t\tisBool = rboolean.test( name );\r\n\r\n\t\t\t\t\t// See #9699 for explanation of this approach (setting first, then removal)\r\n\t\t\t\t\t// Do not do this for boolean attributes (see #10870)\r\n\t\t\t\t\tif ( !isBool ) {\r\n\t\t\t\t\t\tjQuery.attr( elem, name, "" );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telem.removeAttribute( getSetAttribute ? name : propName );\r\n\r\n\t\t\t\t\t// Set corresponding property to false for boolean attributes\r\n\t\t\t\t\tif ( isBool && propName in elem ) {\r\n\t\t\t\t\t\telem[ propName ] = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tattrHooks: {\r\n\t\ttype: {\r\n\t\t\tset: function( elem, value ) {\r\n\t\t\t\t// We can\'t allow the type property to be changed (since it causes problems in IE)\r\n\t\t\t\tif ( rtype.test( elem.nodeName ) && elem.parentNode ) {\r\n\t\t\t\t\tjQuery.error( "type property can\'t be changed" );\r\n\t\t\t\t} else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {\r\n\t\t\t\t\t// Setting the type on a radio button after the value resets the value in IE6-9\r\n\t\t\t\t\t// Reset value to it\'s default in case type is set after value\r\n\t\t\t\t\t// This is for element creation\r\n\t\t\t\t\tvar val = elem.value;\r\n\t\t\t\t\telem.setAttribute( "type", value );\r\n\t\t\t\t\tif ( val ) {\r\n\t\t\t\t\t\telem.value = val;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t// Use the value property for back compat\r\n\t\t// Use the nodeHook for button elements in IE6/7 (#1954)\r\n\t\tvalue: {\r\n\t\t\tget: function( elem, name ) {\r\n\t\t\t\tif ( nodeHook && jQuery.nodeName( elem, "button" ) ) {\r\n\t\t\t\t\treturn nodeHook.get( elem, name );\r\n\t\t\t\t}\r\n\t\t\t\treturn name in elem ?\r\n\t\t\t\t\telem.value :\r\n\t\t\t\t\tnull;\r\n\t\t\t},\r\n\t\t\tset: function( elem, value, name ) {\r\n\t\t\t\tif ( nodeHook && jQuery.nodeName( elem, "button" ) ) {\r\n\t\t\t\t\treturn nodeHook.set( elem, value, name );\r\n\t\t\t\t}\r\n\t\t\t\t// Does not return so that setAttribute is also used\r\n\t\t\t\telem.value = value;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tpropFix: {\r\n\t\ttabindex: "tabIndex",\r\n\t\treadonly: "readOnly",\r\n\t\t"for": "htmlFor",\r\n\t\t"class": "className",\r\n\t\tmaxlength: "maxLength",\r\n\t\tcellspacing: "cellSpacing",\r\n\t\tcellpadding: "cellPadding",\r\n\t\trowspan: "rowSpan",\r\n\t\tcolspan: "colSpan",\r\n\t\tusemap: "useMap",\r\n\t\tframeborder: "frameBorder",\r\n\t\tcontenteditable: "contentEditable"\r\n\t},\r\n\r\n\tprop: function( elem, name, value ) {\r\n\t\tvar ret, hooks, notxml,\r\n\t\t\tnType = elem.nodeType;\r\n\r\n\t\t// don\'t get/set properties on text, comment and attribute nodes\r\n\t\tif ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tnotxml = nType !== 1 || !jQuery.isXMLDoc( elem );\r\n\r\n\t\tif ( notxml ) {\r\n\t\t\t// Fix name and attach hooks\r\n\t\t\tname = jQuery.propFix[ name ] || name;\r\n\t\t\thooks = jQuery.propHooks[ name ];\r\n\t\t}\r\n\r\n\t\tif ( value !== undefined ) {\r\n\t\t\tif ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {\r\n\t\t\t\treturn ret;\r\n\r\n\t\t\t} else {\r\n\t\t\t\treturn ( elem[ name ] = value );\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tif ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {\r\n\t\t\t\treturn ret;\r\n\r\n\t\t\t} else {\r\n\t\t\t\treturn elem[ name ];\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tpropHooks: {\r\n\t\ttabIndex: {\r\n\t\t\tget: function( elem ) {\r\n\t\t\t\t// elem.tabIndex doesn\'t always return the correct value when it hasn\'t been explicitly set\r\n\t\t\t\t// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\r\n\t\t\t\tvar attributeNode = elem.getAttributeNode("tabindex");\r\n\r\n\t\t\t\treturn attributeNode && attributeNode.specified ?\r\n\t\t\t\t\tparseInt( attributeNode.value, 10 ) :\r\n\t\t\t\t\trfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?\r\n\t\t\t\t\t\t0 :\r\n\t\t\t\t\t\tundefined;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)\r\njQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;\r\n\r\n// Hook for boolean attributes\r\nboolHook = {\r\n\tget: function( elem, name ) {\r\n\t\t// Align boolean attributes with corresponding properties\r\n\t\t// Fall back to attribute presence where some booleans are not supported\r\n\t\tvar attrNode,\r\n\t\t\tproperty = jQuery.prop( elem, name );\r\n\t\treturn property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?\r\n\t\t\tname.toLowerCase() :\r\n\t\t\tundefined;\r\n\t},\r\n\tset: function( elem, value, name ) {\r\n\t\tvar propName;\r\n\t\tif ( value === false ) {\r\n\t\t\t// Remove boolean attributes when set to false\r\n\t\t\tjQuery.removeAttr( elem, name );\r\n\t\t} else {\r\n\t\t\t// value is true since we know at this point it\'s type boolean and not false\r\n\t\t\t// Set boolean attributes to the same name and set the DOM property\r\n\t\t\tpropName = jQuery.propFix[ name ] || name;\r\n\t\t\tif ( propName in elem ) {\r\n\t\t\t\t// Only set the IDL specifically if it already exists on the element\r\n\t\t\t\telem[ propName ] = true;\r\n\t\t\t}\r\n\r\n\t\t\telem.setAttribute( name, name.toLowerCase() );\r\n\t\t}\r\n\t\treturn name;\r\n\t}\r\n};\r\n\r\n// IE6/7 do not support getting/setting some attributes with get/setAttribute\r\nif ( !getSetAttribute ) {\r\n\r\n\tfixSpecified = {\r\n\t\tname: true,\r\n\t\tid: true,\r\n\t\tcoords: true\r\n\t};\r\n\r\n\t// Use this for any attribute in IE6/7\r\n\t// This fixes almost every IE6/7 issue\r\n\tnodeHook = jQuery.valHooks.button = {\r\n\t\tget: function( elem, name ) {\r\n\t\t\tvar ret;\r\n\t\t\tret = elem.getAttributeNode( name );\r\n\t\t\treturn ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?\r\n\t\t\t\tret.nodeValue :\r\n\t\t\t\tundefined;\r\n\t\t},\r\n\t\tset: function( elem, value, name ) {\r\n\t\t\t// Set the existing or create a new attribute node\r\n\t\t\tvar ret = elem.getAttributeNode( name );\r\n\t\t\tif ( !ret ) {\r\n\t\t\t\tret = document.createAttribute( name );\r\n\t\t\t\telem.setAttributeNode( ret );\r\n\t\t\t}\r\n\t\t\treturn ( ret.nodeValue = value + "" );\r\n\t\t}\r\n\t};\r\n\r\n\t// Apply the nodeHook to tabindex\r\n\tjQuery.attrHooks.tabindex.set = nodeHook.set;\r\n\r\n\t// Set width and height to auto instead of 0 on empty string( Bug #8150 )\r\n\t// This is for removals\r\n\tjQuery.each([ "width", "height" ], function( i, name ) {\r\n\t\tjQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\r\n\t\t\tset: function( elem, value ) {\r\n\t\t\t\tif ( value === "" ) {\r\n\t\t\t\t\telem.setAttribute( name, "auto" );\r\n\t\t\t\t\treturn value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n\r\n\t// Set contenteditable to false on removals(#10429)\r\n\t// Setting to empty string throws an error as an invalid value\r\n\tjQuery.attrHooks.contenteditable = {\r\n\t\tget: nodeHook.get,\r\n\t\tset: function( elem, value, name ) {\r\n\t\t\tif ( value === "" ) {\r\n\t\t\t\tvalue = "false";\r\n\t\t\t}\r\n\t\t\tnodeHook.set( elem, value, name );\r\n\t\t}\r\n\t};\r\n}\r\n\r\n\r\n// Some attributes require a special call on IE\r\nif ( !jQuery.support.hrefNormalized ) {\r\n\tjQuery.each([ "href", "src", "width", "height" ], function( i, name ) {\r\n\t\tjQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\r\n\t\t\tget: function( elem ) {\r\n\t\t\t\tvar ret = elem.getAttribute( name, 2 );\r\n\t\t\t\treturn ret === null ? undefined : ret;\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n}\r\n\r\nif ( !jQuery.support.style ) {\r\n\tjQuery.attrHooks.style = {\r\n\t\tget: function( elem ) {\r\n\t\t\t// Return undefined in the case of empty string\r\n\t\t\t// Normalize to lowercase since IE uppercases css property names\r\n\t\t\treturn elem.style.cssText.toLowerCase() || undefined;\r\n\t\t},\r\n\t\tset: function( elem, value ) {\r\n\t\t\treturn ( elem.style.cssText = "" + value );\r\n\t\t}\r\n\t};\r\n}\r\n\r\n// Safari mis-reports the default selected property of an option\r\n// Accessing the parent\'s selectedIndex property fixes it\r\nif ( !jQuery.support.optSelected ) {\r\n\tjQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {\r\n\t\tget: function( elem ) {\r\n\t\t\tvar parent = elem.parentNode;\r\n\r\n\t\t\tif ( parent ) {\r\n\t\t\t\tparent.selectedIndex;\r\n\r\n\t\t\t\t// Make sure that it also works with optgroups, see #5701\r\n\t\t\t\tif ( parent.parentNode ) {\r\n\t\t\t\t\tparent.parentNode.selectedIndex;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n\t});\r\n}\r\n\r\n// IE6/7 call enctype encoding\r\nif ( !jQuery.support.enctype ) {\r\n\tjQuery.propFix.enctype = "encoding";\r\n}\r\n\r\n// Radios and checkboxes getter/setter\r\nif ( !jQuery.support.checkOn ) {\r\n\tjQuery.each([ "radio", "checkbox" ], function() {\r\n\t\tjQuery.valHooks[ this ] = {\r\n\t\t\tget: function( elem ) {\r\n\t\t\t\t// Handle the case where in Webkit "" is returned instead of "on" if a value isn\'t specified\r\n\t\t\t\treturn elem.getAttribute("value") === null ? "on" : elem.value;\r\n\t\t\t}\r\n\t\t};\r\n\t});\r\n}\r\njQuery.each([ "radio", "checkbox" ], function() {\r\n\tjQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {\r\n\t\tset: function( elem, value ) {\r\n\t\t\tif ( jQuery.isArray( value ) ) {\r\n\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n});\r\n\r\n\r\n\r\n\r\nvar rformElems = /^(?:textarea|input|select)$/i,\r\n\trtypenamespace = /^([^\\.]*)?(?:\\.(.+))?$/,\r\n\trhoverHack = /(?:^|\\s)hover(\\.\\S+)?\\b/,\r\n\trkeyEvent = /^key/,\r\n\trmouseEvent = /^(?:mouse|contextmenu)|click/,\r\n\trfocusMorph = /^(?:focusinfocus|focusoutblur)$/,\r\n\trquickIs = /^(\\w*)(?:#([\\w\\-]+))?(?:\\.([\\w\\-]+))?$/,\r\n\tquickParse = function( selector ) {\r\n\t\tvar quick = rquickIs.exec( selector );\r\n\t\tif ( quick ) {\r\n\t\t\t// 0 1 2 3\r\n\t\t\t// [ _, tag, id, class ]\r\n\t\t\tquick[1] = ( quick[1] || "" ).toLowerCase();\r\n\t\t\tquick[3] = quick[3] && new RegExp( "(?:^|\\\\s)" + quick[3] + "(?:\\\\s|$)" );\r\n\t\t}\r\n\t\treturn quick;\r\n\t},\r\n\tquickIs = function( elem, m ) {\r\n\t\tvar attrs = elem.attributes || {};\r\n\t\treturn (\r\n\t\t\t(!m[1] || elem.nodeName.toLowerCase() === m[1]) &&\r\n\t\t\t(!m[2] || (attrs.id || {}).value === m[2]) &&\r\n\t\t\t(!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))\r\n\t\t);\r\n\t},\r\n\thoverHack = function( events ) {\r\n\t\treturn jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );\r\n\t};\r\n\r\n/*\r\n * Helper functions for managing events -- not part of the public interface.\r\n * Props to Dean Edwards\' addEvent library for many of the ideas.\r\n */\r\njQuery.event = {\r\n\r\n\tadd: function( elem, types, handler, data, selector ) {\r\n\r\n\t\tvar elemData, eventHandle, events,\r\n\t\t\tt, tns, type, namespaces, handleObj,\r\n\t\t\thandleObjIn, quick, handlers, special;\r\n\r\n\t\t// Don\'t attach events to noData or text/comment nodes (allow plain objects tho)\r\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Caller can pass in an object of custom data in lieu of the handler\r\n\t\tif ( handler.handler ) {\r\n\t\t\thandleObjIn = handler;\r\n\t\t\thandler = handleObjIn.handler;\r\n\t\t\tselector = handleObjIn.selector;\r\n\t\t}\r\n\r\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\r\n\t\tif ( !handler.guid ) {\r\n\t\t\thandler.guid = jQuery.guid++;\r\n\t\t}\r\n\r\n\t\t// Init the element\'s event structure and main handler, if this is the first\r\n\t\tevents = elemData.events;\r\n\t\tif ( !events ) {\r\n\t\t\telemData.events = events = {};\r\n\t\t}\r\n\t\teventHandle = elemData.handle;\r\n\t\tif ( !eventHandle ) {\r\n\t\t\telemData.handle = eventHandle = function( e ) {\r\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\r\n\t\t\t\t// when an event is called after a page has unloaded\r\n\t\t\t\treturn typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?\r\n\t\t\t\t\tjQuery.event.dispatch.apply( eventHandle.elem, arguments ) :\r\n\t\t\t\t\tundefined;\r\n\t\t\t};\r\n\t\t\t// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events\r\n\t\t\teventHandle.elem = elem;\r\n\t\t}\r\n\r\n\t\t// Handle multiple events separated by a space\r\n\t\t// jQuery(...).bind("mouseover mouseout", fn);\r\n\t\ttypes = jQuery.trim( hoverHack(types) ).split( " " );\r\n\t\tfor ( t = 0; t < types.length; t++ ) {\r\n\r\n\t\t\ttns = rtypenamespace.exec( types[t] ) || [];\r\n\t\t\ttype = tns[1];\r\n\t\t\tnamespaces = ( tns[2] || "" ).split( "." ).sort();\r\n\r\n\t\t\t// If event changes its type, use the special event handlers for the changed type\r\n\t\t\tspecial = jQuery.event.special[ type ] || {};\r\n\r\n\t\t\t// If selector defined, determine special event api type, otherwise given type\r\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\r\n\r\n\t\t\t// Update special based on newly reset type\r\n\t\t\tspecial = jQuery.event.special[ type ] || {};\r\n\r\n\t\t\t// handleObj is passed to all event handlers\r\n\t\t\thandleObj = jQuery.extend({\r\n\t\t\t\ttype: type,\r\n\t\t\t\torigType: tns[1],\r\n\t\t\t\tdata: data,\r\n\t\t\t\thandler: handler,\r\n\t\t\t\tguid: handler.guid,\r\n\t\t\t\tselector: selector,\r\n\t\t\t\tquick: selector && quickParse( selector ),\r\n\t\t\t\tnamespace: namespaces.join(".")\r\n\t\t\t}, handleObjIn );\r\n\r\n\t\t\t// Init the event handler queue if we\'re the first\r\n\t\t\thandlers = events[ type ];\r\n\t\t\tif ( !handlers ) {\r\n\t\t\t\thandlers = events[ type ] = [];\r\n\t\t\t\thandlers.delegateCount = 0;\r\n\r\n\t\t\t\t// Only use addEventListener/attachEvent if the special events handler returns false\r\n\t\t\t\tif ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {\r\n\t\t\t\t\t// Bind the global event handler to the element\r\n\t\t\t\t\tif ( elem.addEventListener ) {\r\n\t\t\t\t\t\telem.addEventListener( type, eventHandle, false );\r\n\r\n\t\t\t\t\t} else if ( elem.attachEvent ) {\r\n\t\t\t\t\t\telem.attachEvent( "on" + type, eventHandle );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( special.add ) {\r\n\t\t\t\tspecial.add.call( elem, handleObj );\r\n\r\n\t\t\t\tif ( !handleObj.handler.guid ) {\r\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Add to the element\'s handler list, delegates in front\r\n\t\t\tif ( selector ) {\r\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\r\n\t\t\t} else {\r\n\t\t\t\thandlers.push( handleObj );\r\n\t\t\t}\r\n\r\n\t\t\t// Keep track of which events have ever been used, for event optimization\r\n\t\t\tjQuery.event.global[ type ] = true;\r\n\t\t}\r\n\r\n\t\t// Nullify elem to prevent memory leaks in IE\r\n\t\telem = null;\r\n\t},\r\n\r\n\tglobal: {},\r\n\r\n\t// Detach an event or set of events from an element\r\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\r\n\r\n\t\tvar elemData = jQuery.hasData( elem ) && jQuery._data( elem ),\r\n\t\t\tt, tns, type, origType, namespaces, origCount,\r\n\t\t\tj, events, special, handle, eventType, handleObj;\r\n\r\n\t\tif ( !elemData || !(events = elemData.events) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Once for each type.namespace in types; type may be omitted\r\n\t\ttypes = jQuery.trim( hoverHack( types || "" ) ).split(" ");\r\n\t\tfor ( t = 0; t < types.length; t++ ) {\r\n\t\t\ttns = rtypenamespace.exec( types[t] ) || [];\r\n\t\t\ttype = origType = tns[1];\r\n\t\t\tnamespaces = tns[2];\r\n\r\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\r\n\t\t\tif ( !type ) {\r\n\t\t\t\tfor ( type in events ) {\r\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tspecial = jQuery.event.special[ type ] || {};\r\n\t\t\ttype = ( selector? special.delegateType : special.bindType ) || type;\r\n\t\t\teventType = events[ type ] || [];\r\n\t\t\torigCount = eventType.length;\r\n\t\t\tnamespaces = namespaces ? new RegExp("(^|\\\\.)" + namespaces.split(".").sort().join("\\\\.(?:.*\\\\.)?") + "(\\\\.|$)") : null;\r\n\r\n\t\t\t// Remove matching events\r\n\t\t\tfor ( j = 0; j < eventType.length; j++ ) {\r\n\t\t\t\thandleObj = eventType[ j ];\r\n\r\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\r\n\t\t\t\t\t ( !handler || handler.guid === handleObj.guid ) &&\r\n\t\t\t\t\t ( !namespaces || namespaces.test( handleObj.namespace ) ) &&\r\n\t\t\t\t\t ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {\r\n\t\t\t\t\teventType.splice( j--, 1 );\r\n\r\n\t\t\t\t\tif ( handleObj.selector ) {\r\n\t\t\t\t\t\teventType.delegateCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( special.remove ) {\r\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\r\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\r\n\t\t\tif ( eventType.length === 0 && origCount !== eventType.length ) {\r\n\t\t\t\tif ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {\r\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdelete events[ type ];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Remove the expando if it\'s no longer used\r\n\t\tif ( jQuery.isEmptyObject( events ) ) {\r\n\t\t\thandle = elemData.handle;\r\n\t\t\tif ( handle ) {\r\n\t\t\t\thandle.elem = null;\r\n\t\t\t}\r\n\r\n\t\t\t// removeData also checks for emptiness and clears the expando if empty\r\n\t\t\t// so use it instead of delete\r\n\t\t\tjQuery.removeData( elem, [ "events", "handle" ], true );\r\n\t\t}\r\n\t},\r\n\r\n\t// Events that are safe to short-circuit if no handlers are attached.\r\n\t// Native DOM events should not be added, they may have inline handlers.\r\n\tcustomEvent: {\r\n\t\t"getData": true,\r\n\t\t"setData": true,\r\n\t\t"changeData": true\r\n\t},\r\n\r\n\ttrigger: function( event, data, elem, onlyHandlers ) {\r\n\t\t// Don\'t do events on text and comment nodes\r\n\t\tif ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Event object or event type\r\n\t\tvar type = event.type || event,\r\n\t\t\tnamespaces = [],\r\n\t\t\tcache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;\r\n\r\n\t\t// focus/blur morphs to focusin/out; ensure we\'re not firing them right now\r\n\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( type.indexOf( "!" ) >= 0 ) {\r\n\t\t\t// Exclusive events trigger only for the exact event (no namespaces)\r\n\t\t\ttype = type.slice(0, -1);\r\n\t\t\texclusive = true;\r\n\t\t}\r\n\r\n\t\tif ( type.indexOf( "." ) >= 0 ) {\r\n\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\r\n\t\t\tnamespaces = type.split(".");\r\n\t\t\ttype = namespaces.shift();\r\n\t\t\tnamespaces.sort();\r\n\t\t}\r\n\r\n\t\tif ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {\r\n\t\t\t// No jQuery handlers for this event type, and it can\'t have inline handlers\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Caller can pass in an Event, Object, or just an event type string\r\n\t\tevent = typeof event === "object" ?\r\n\t\t\t// jQuery.Event object\r\n\t\t\tevent[ jQuery.expando ] ? event :\r\n\t\t\t// Object literal\r\n\t\t\tnew jQuery.Event( type, event ) :\r\n\t\t\t// Just the event type (string)\r\n\t\t\tnew jQuery.Event( type );\r\n\r\n\t\tevent.type = type;\r\n\t\tevent.isTrigger = true;\r\n\t\tevent.exclusive = exclusive;\r\n\t\tevent.namespace = namespaces.join( "." );\r\n\t\tevent.namespace_re = event.namespace? new RegExp("(^|\\\\.)" + namespaces.join("\\\\.(?:.*\\\\.)?") + "(\\\\.|$)") : null;\r\n\t\tontype = type.indexOf( ":" ) < 0 ? "on" + type : "";\r\n\r\n\t\t// Handle a global trigger\r\n\t\tif ( !elem ) {\r\n\r\n\t\t\t// TODO: Stop taunting the data cache; remove global events and always attach to document\r\n\t\t\tcache = jQuery.cache;\r\n\t\t\tfor ( i in cache ) {\r\n\t\t\t\tif ( cache[ i ].events && cache[ i ].events[ type ] ) {\r\n\t\t\t\t\tjQuery.event.trigger( event, data, cache[ i ].handle.elem, true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Clean up the event in case it is being reused\r\n\t\tevent.result = undefined;\r\n\t\tif ( !event.target ) {\r\n\t\t\tevent.target = elem;\r\n\t\t}\r\n\r\n\t\t// Clone any incoming data and prepend the event, creating the handler arg list\r\n\t\tdata = data != null ? jQuery.makeArray( data ) : [];\r\n\t\tdata.unshift( event );\r\n\r\n\t\t// Allow special events to draw outside the lines\r\n\t\tspecial = jQuery.event.special[ type ] || {};\r\n\t\tif ( special.trigger && special.trigger.apply( elem, data ) === false ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Determine event propagation path in advance, per W3C events spec (#9951)\r\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\r\n\t\teventPath = [[ elem, special.bindType || type ]];\r\n\t\tif ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\r\n\r\n\t\t\tbubbleType = special.delegateType || type;\r\n\t\t\tcur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;\r\n\t\t\told = null;\r\n\t\t\tfor ( ; cur; cur = cur.parentNode ) {\r\n\t\t\t\teventPath.push([ cur, bubbleType ]);\r\n\t\t\t\told = cur;\r\n\t\t\t}\r\n\r\n\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\r\n\t\t\tif ( old && old === elem.ownerDocument ) {\r\n\t\t\t\teventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Fire handlers on the event path\r\n\t\tfor ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {\r\n\r\n\t\t\tcur = eventPath[i][0];\r\n\t\t\tevent.type = eventPath[i][1];\r\n\r\n\t\t\thandle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );\r\n\t\t\tif ( handle ) {\r\n\t\t\t\thandle.apply( cur, data );\r\n\t\t\t}\r\n\t\t\t// Note that this is a bare JS function and not a jQuery handler\r\n\t\t\thandle = ontype && cur[ ontype ];\r\n\t\t\tif ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t}\r\n\t\t}\r\n\t\tevent.type = type;\r\n\r\n\t\t// If nobody prevented the default action, do it now\r\n\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\r\n\r\n\t\t\tif ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&\r\n\t\t\t\t!(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {\r\n\r\n\t\t\t\t// Call a native DOM method on the target with the same name name as the event.\r\n\t\t\t\t// Can\'t use an .isFunction() check here because IE6/7 fails that test.\r\n\t\t\t\t// Don\'t do default actions on window, that\'s where global variables be (#6170)\r\n\t\t\t\t// IE<9 dies on focus/blur to hidden element (#1486)\r\n\t\t\t\tif ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {\r\n\r\n\t\t\t\t\t// Don\'t re-trigger an onFOO event when we call its FOO() method\r\n\t\t\t\t\told = elem[ ontype ];\r\n\r\n\t\t\t\t\tif ( old ) {\r\n\t\t\t\t\t\telem[ ontype ] = null;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\r\n\t\t\t\t\tjQuery.event.triggered = type;\r\n\t\t\t\t\telem[ type ]();\r\n\t\t\t\t\tjQuery.event.triggered = undefined;\r\n\r\n\t\t\t\t\tif ( old ) {\r\n\t\t\t\t\t\telem[ ontype ] = old;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn event.result;\r\n\t},\r\n\r\n\tdispatch: function( event ) {\r\n\r\n\t\t// Make a writable jQuery.Event from the native event object\r\n\t\tevent = jQuery.event.fix( event || window.event );\r\n\r\n\t\tvar handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),\r\n\t\t\tdelegateCount = handlers.delegateCount,\r\n\t\t\targs = [].slice.call( arguments, 0 ),\r\n\t\t\trun_all = !event.exclusive && !event.namespace,\r\n\t\t\tspecial = jQuery.event.special[ event.type ] || {},\r\n\t\t\thandlerQueue = [],\r\n\t\t\ti, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;\r\n\r\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\r\n\t\targs[0] = event;\r\n\t\tevent.delegateTarget = this;\r\n\r\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\r\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Determine handlers that should run if there are delegated events\r\n\t\t// Avoid non-left-click bubbling in Firefox (#3861)\r\n\t\tif ( delegateCount && !(event.button && event.type === "click") ) {\r\n\r\n\t\t\t// Pregenerate a single jQuery object for reuse with .is()\r\n\t\t\tjqcur = jQuery(this);\r\n\t\t\tjqcur.context = this.ownerDocument || this;\r\n\r\n\t\t\tfor ( cur = event.target; cur != this; cur = cur.parentNode || this ) {\r\n\r\n\t\t\t\t// Don\'t process events on disabled elements (#6911, #8165)\r\n\t\t\t\tif ( cur.disabled !== true ) {\r\n\t\t\t\t\tselMatch = {};\r\n\t\t\t\t\tmatches = [];\r\n\t\t\t\t\tjqcur[0] = cur;\r\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\r\n\t\t\t\t\t\thandleObj = handlers[ i ];\r\n\t\t\t\t\t\tsel = handleObj.selector;\r\n\r\n\t\t\t\t\t\tif ( selMatch[ sel ] === undefined ) {\r\n\t\t\t\t\t\t\tselMatch[ sel ] = (\r\n\t\t\t\t\t\t\t\thandleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ( selMatch[ sel ] ) {\r\n\t\t\t\t\t\t\tmatches.push( handleObj );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( matches.length ) {\r\n\t\t\t\t\t\thandlerQueue.push({ elem: cur, matches: matches });\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Add the remaining (directly-bound) handlers\r\n\t\tif ( handlers.length > delegateCount ) {\r\n\t\t\thandlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });\r\n\t\t}\r\n\r\n\t\t// Run delegates first; they may want to stop propagation beneath us\r\n\t\tfor ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {\r\n\t\t\tmatched = handlerQueue[ i ];\r\n\t\t\tevent.currentTarget = matched.elem;\r\n\r\n\t\t\tfor ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {\r\n\t\t\t\thandleObj = matched.matches[ j ];\r\n\r\n\t\t\t\t// Triggered event must either 1) be non-exclusive and have no namespace, or\r\n\t\t\t\t// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).\r\n\t\t\t\tif ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {\r\n\r\n\t\t\t\t\tevent.data = handleObj.data;\r\n\t\t\t\t\tevent.handleObj = handleObj;\r\n\r\n\t\t\t\t\tret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )\r\n\t\t\t\t\t\t\t.apply( matched.elem, args );\r\n\r\n\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\tevent.result = ret;\r\n\t\t\t\t\t\tif ( ret === false ) {\r\n\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\tevent.stopPropagation();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call the postDispatch hook for the mapped type\r\n\t\tif ( special.postDispatch ) {\r\n\t\t\tspecial.postDispatch.call( this, event );\r\n\t\t}\r\n\r\n\t\treturn event.result;\r\n\t},\r\n\r\n\t// Includes some event props shared by KeyEvent and MouseEvent\r\n\t// *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 ***\r\n\tprops: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),\r\n\r\n\tfixHooks: {},\r\n\r\n\tkeyHooks: {\r\n\t\tprops: "char charCode key keyCode".split(" "),\r\n\t\tfilter: function( event, original ) {\r\n\r\n\t\t\t// Add which for key events\r\n\t\t\tif ( event.which == null ) {\r\n\t\t\t\tevent.which = original.charCode != null ? original.charCode : original.keyCode;\r\n\t\t\t}\r\n\r\n\t\t\treturn event;\r\n\t\t}\r\n\t},\r\n\r\n\tmouseHooks: {\r\n\t\tprops: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),\r\n\t\tfilter: function( event, original ) {\r\n\t\t\tvar eventDoc, doc, body,\r\n\t\t\t\tbutton = original.button,\r\n\t\t\t\tfromElement = original.fromElement;\r\n\r\n\t\t\t// Calculate pageX/Y if missing and clientX/Y available\r\n\t\t\tif ( event.pageX == null && original.clientX != null ) {\r\n\t\t\t\teventDoc = event.target.ownerDocument || document;\r\n\t\t\t\tdoc = eventDoc.documentElement;\r\n\t\t\t\tbody = eventDoc.body;\r\n\r\n\t\t\t\tevent.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );\r\n\t\t\t\tevent.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );\r\n\t\t\t}\r\n\r\n\t\t\t// Add relatedTarget, if necessary\r\n\t\t\tif ( !event.relatedTarget && fromElement ) {\r\n\t\t\t\tevent.relatedTarget = fromElement === event.target ? original.toElement : fromElement;\r\n\t\t\t}\r\n\r\n\t\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\r\n\t\t\t// Note: button is not normalized, so don\'t use it\r\n\t\t\tif ( !event.which && button !== undefined ) {\r\n\t\t\t\tevent.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );\r\n\t\t\t}\r\n\r\n\t\t\treturn event;\r\n\t\t}\r\n\t},\r\n\r\n\tfix: function( event ) {\r\n\t\tif ( event[ jQuery.expando ] ) {\r\n\t\t\treturn event;\r\n\t\t}\r\n\r\n\t\t// Create a writable copy of the event object and normalize some properties\r\n\t\tvar i, prop,\r\n\t\t\toriginalEvent = event,\r\n\t\t\tfixHook = jQuery.event.fixHooks[ event.type ] || {},\r\n\t\t\tcopy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;\r\n\r\n\t\tevent = jQuery.Event( originalEvent );\r\n\r\n\t\tfor ( i = copy.length; i; ) {\r\n\t\t\tprop = copy[ --i ];\r\n\t\t\tevent[ prop ] = originalEvent[ prop ];\r\n\t\t}\r\n\r\n\t\t// Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)\r\n\t\tif ( !event.target ) {\r\n\t\t\tevent.target = originalEvent.srcElement || document;\r\n\t\t}\r\n\r\n\t\t// Target should not be a text node (#504, Safari)\r\n\t\tif ( event.target.nodeType === 3 ) {\r\n\t\t\tevent.target = event.target.parentNode;\r\n\t\t}\r\n\r\n\t\t// For mouse/key events; add metaKey if it\'s not there (#3368, IE6/7/8)\r\n\t\tif ( event.metaKey === undefined ) {\r\n\t\t\tevent.metaKey = event.ctrlKey;\r\n\t\t}\r\n\r\n\t\treturn fixHook.filter? fixHook.filter( event, originalEvent ) : event;\r\n\t},\r\n\r\n\tspecial: {\r\n\t\tready: {\r\n\t\t\t// Make sure the ready event is setup\r\n\t\t\tsetup: jQuery.bindReady\r\n\t\t},\r\n\r\n\t\tload: {\r\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\r\n\t\t\tnoBubble: true\r\n\t\t},\r\n\r\n\t\tfocus: {\r\n\t\t\tdelegateType: "focusin"\r\n\t\t},\r\n\t\tblur: {\r\n\t\t\tdelegateType: "focusout"\r\n\t\t},\r\n\r\n\t\tbeforeunload: {\r\n\t\t\tsetup: function( data, namespaces, eventHandle ) {\r\n\t\t\t\t// We only want to do this special case on windows\r\n\t\t\t\tif ( jQuery.isWindow( this ) ) {\r\n\t\t\t\t\tthis.onbeforeunload = eventHandle;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\r\n\t\t\tteardown: function( namespaces, eventHandle ) {\r\n\t\t\t\tif ( this.onbeforeunload === eventHandle ) {\r\n\t\t\t\t\tthis.onbeforeunload = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tsimulate: function( type, elem, event, bubble ) {\r\n\t\t// Piggyback on a donor event to simulate a different one.\r\n\t\t// Fake originalEvent to avoid donor\'s stopPropagation, but if the\r\n\t\t// simulated event prevents default then we do the same on the donor.\r\n\t\tvar e = jQuery.extend(\r\n\t\t\tnew jQuery.Event(),\r\n\t\t\tevent,\r\n\t\t\t{ type: type,\r\n\t\t\t\tisSimulated: true,\r\n\t\t\t\toriginalEvent: {}\r\n\t\t\t}\r\n\t\t);\r\n\t\tif ( bubble ) {\r\n\t\t\tjQuery.event.trigger( e, null, elem );\r\n\t\t} else {\r\n\t\t\tjQuery.event.dispatch.call( elem, e );\r\n\t\t}\r\n\t\tif ( e.isDefaultPrevented() ) {\r\n\t\t\tevent.preventDefault();\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Some plugins are using, but it\'s undocumented/deprecated and will be removed.\r\n// The 1.7 special event interface should provide all the hooks needed now.\r\njQuery.event.handle = jQuery.event.dispatch;\r\n\r\njQuery.removeEvent = document.removeEventListener ?\r\n\tfunction( elem, type, handle ) {\r\n\t\tif ( elem.removeEventListener ) {\r\n\t\t\telem.removeEventListener( type, handle, false );\r\n\t\t}\r\n\t} :\r\n\tfunction( elem, type, handle ) {\r\n\t\tif ( elem.detachEvent ) {\r\n\t\t\telem.detachEvent( "on" + type, handle );\r\n\t\t}\r\n\t};\r\n\r\njQuery.Event = function( src, props ) {\r\n\t// Allow instantiation without the \'new\' keyword\r\n\tif ( !(this instanceof jQuery.Event) ) {\r\n\t\treturn new jQuery.Event( src, props );\r\n\t}\r\n\r\n\t// Event object\r\n\tif ( src && src.type ) {\r\n\t\tthis.originalEvent = src;\r\n\t\tthis.type = src.type;\r\n\r\n\t\t// Events bubbling up the document may have been marked as prevented\r\n\t\t// by a handler lower down the tree; reflect the correct value.\r\n\t\tthis.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||\r\n\t\t\tsrc.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;\r\n\r\n\t// Event type\r\n\t} else {\r\n\t\tthis.type = src;\r\n\t}\r\n\r\n\t// Put explicitly provided properties onto the event object\r\n\tif ( props ) {\r\n\t\tjQuery.extend( this, props );\r\n\t}\r\n\r\n\t// Create a timestamp if incoming event doesn\'t have one\r\n\tthis.timeStamp = src && src.timeStamp || jQuery.now();\r\n\r\n\t// Mark it as fixed\r\n\tthis[ jQuery.expando ] = true;\r\n};\r\n\r\nfunction returnFalse() {\r\n\treturn false;\r\n}\r\nfunction returnTrue() {\r\n\treturn true;\r\n}\r\n\r\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\r\n// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\r\njQuery.Event.prototype = {\r\n\tpreventDefault: function() {\r\n\t\tthis.isDefaultPrevented = returnTrue;\r\n\r\n\t\tvar e = this.originalEvent;\r\n\t\tif ( !e ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if preventDefault exists run it on the original event\r\n\t\tif ( e.preventDefault ) {\r\n\t\t\te.preventDefault();\r\n\r\n\t\t// otherwise set the returnValue property of the original event to false (IE)\r\n\t\t} else {\r\n\t\t\te.returnValue = false;\r\n\t\t}\r\n\t},\r\n\tstopPropagation: function() {\r\n\t\tthis.isPropagationStopped = returnTrue;\r\n\r\n\t\tvar e = this.originalEvent;\r\n\t\tif ( !e ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if stopPropagation exists run it on the original event\r\n\t\tif ( e.stopPropagation ) {\r\n\t\t\te.stopPropagation();\r\n\t\t}\r\n\t\t// otherwise set the cancelBubble property of the original event to true (IE)\r\n\t\te.cancelBubble = true;\r\n\t},\r\n\tstopImmediatePropagation: function() {\r\n\t\tthis.isImmediatePropagationStopped = returnTrue;\r\n\t\tthis.stopPropagation();\r\n\t},\r\n\tisDefaultPrevented: returnFalse,\r\n\tisPropagationStopped: returnFalse,\r\n\tisImmediatePropagationStopped: returnFalse\r\n};\r\n\r\n// Create mouseenter/leave events using mouseover/out and event-time checks\r\njQuery.each({\r\n\tmouseenter: "mouseover",\r\n\tmouseleave: "mouseout"\r\n}, function( orig, fix ) {\r\n\tjQuery.event.special[ orig ] = {\r\n\t\tdelegateType: fix,\r\n\t\tbindType: fix,\r\n\r\n\t\thandle: function( event ) {\r\n\t\t\tvar target = this,\r\n\t\t\t\trelated = event.relatedTarget,\r\n\t\t\t\thandleObj = event.handleObj,\r\n\t\t\t\tselector = handleObj.selector,\r\n\t\t\t\tret;\r\n\r\n\t\t\t// For mousenter/leave call the handler if related is outside the target.\r\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\r\n\t\t\tif ( !related || (related !== target && !jQuery.contains( target, related )) ) {\r\n\t\t\t\tevent.type = handleObj.origType;\r\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\r\n\t\t\t\tevent.type = fix;\r\n\t\t\t}\r\n\t\t\treturn ret;\r\n\t\t}\r\n\t};\r\n});\r\n\r\n// IE submit delegation\r\nif ( !jQuery.support.submitBubbles ) {\r\n\r\n\tjQuery.event.special.submit = {\r\n\t\tsetup: function() {\r\n\t\t\t// Only need this for delegated form submit events\r\n\t\t\tif ( jQuery.nodeName( this, "form" ) ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// Lazy-add a submit handler when a descendant form may potentially be submitted\r\n\t\t\tjQuery.event.add( this, "click._submit keypress._submit", function( e ) {\r\n\t\t\t\t// Node name check avoids a VML-related crash in IE (#9807)\r\n\t\t\t\tvar elem = e.target,\r\n\t\t\t\t\tform = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;\r\n\t\t\t\tif ( form && !form._submit_attached ) {\r\n\t\t\t\t\tjQuery.event.add( form, "submit._submit", function( event ) {\r\n\t\t\t\t\t\tevent._submit_bubble = true;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tform._submit_attached = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t// return undefined since we don\'t need an event listener\r\n\t\t},\r\n\t\t\r\n\t\tpostDispatch: function( event ) {\r\n\t\t\t// If form was submitted by the user, bubble the event up the tree\r\n\t\t\tif ( event._submit_bubble ) {\r\n\t\t\t\tdelete event._submit_bubble;\r\n\t\t\t\tif ( this.parentNode && !event.isTrigger ) {\r\n\t\t\t\t\tjQuery.event.simulate( "submit", this.parentNode, event, true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tteardown: function() {\r\n\t\t\t// Only need this for delegated form submit events\r\n\t\t\tif ( jQuery.nodeName( this, "form" ) ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// Remove delegated handlers; cleanData eventually reaps submit handlers attached above\r\n\t\t\tjQuery.event.remove( this, "._submit" );\r\n\t\t}\r\n\t};\r\n}\r\n\r\n// IE change delegation and checkbox/radio fix\r\nif ( !jQuery.support.changeBubbles ) {\r\n\r\n\tjQuery.event.special.change = {\r\n\r\n\t\tsetup: function() {\r\n\r\n\t\t\tif ( rformElems.test( this.nodeName ) ) {\r\n\t\t\t\t// IE doesn\'t fire change on a check/radio until blur; trigger it on click\r\n\t\t\t\t// after a propertychange. Eat the blur-change in special.change.handle.\r\n\t\t\t\t// This still fires onchange a second time for check/radio after blur.\r\n\t\t\t\tif ( this.type === "checkbox" || this.type === "radio" ) {\r\n\t\t\t\t\tjQuery.event.add( this, "propertychange._change", function( event ) {\r\n\t\t\t\t\t\tif ( event.originalEvent.propertyName === "checked" ) {\r\n\t\t\t\t\t\t\tthis._just_changed = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tjQuery.event.add( this, "click._change", function( event ) {\r\n\t\t\t\t\t\tif ( this._just_changed && !event.isTrigger ) {\r\n\t\t\t\t\t\t\tthis._just_changed = false;\r\n\t\t\t\t\t\t\tjQuery.event.simulate( "change", this, event, true );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// Delegated event; lazy-add a change handler on descendant inputs\r\n\t\t\tjQuery.event.add( this, "beforeactivate._change", function( e ) {\r\n\t\t\t\tvar elem = e.target;\r\n\r\n\t\t\t\tif ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {\r\n\t\t\t\t\tjQuery.event.add( elem, "change._change", function( event ) {\r\n\t\t\t\t\t\tif ( this.parentNode && !event.isSimulated && !event.isTrigger ) {\r\n\t\t\t\t\t\t\tjQuery.event.simulate( "change", this.parentNode, event, true );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\telem._change_attached = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\r\n\t\thandle: function( event ) {\r\n\t\t\tvar elem = event.target;\r\n\r\n\t\t\t// Swallow native change events from checkbox/radio, we already triggered them above\r\n\t\t\tif ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {\r\n\t\t\t\treturn event.handleObj.handler.apply( this, arguments );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tteardown: function() {\r\n\t\t\tjQuery.event.remove( this, "._change" );\r\n\r\n\t\t\treturn rformElems.test( this.nodeName );\r\n\t\t}\r\n\t};\r\n}\r\n\r\n// Create "bubbling" focus and blur events\r\nif ( !jQuery.support.focusinBubbles ) {\r\n\tjQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {\r\n\r\n\t\t// Attach a single capturing handler while someone wants focusin/focusout\r\n\t\tvar attaches = 0,\r\n\t\t\thandler = function( event ) {\r\n\t\t\t\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );\r\n\t\t\t};\r\n\r\n\t\tjQuery.event.special[ fix ] = {\r\n\t\t\tsetup: function() {\r\n\t\t\t\tif ( attaches++ === 0 ) {\r\n\t\t\t\t\tdocument.addEventListener( orig, handler, true );\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tteardown: function() {\r\n\t\t\t\tif ( --attaches === 0 ) {\r\n\t\t\t\t\tdocument.removeEventListener( orig, handler, true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t});\r\n}\r\n\r\njQuery.fn.extend({\r\n\r\n\ton: function( types, selector, data, fn, /*INTERNAL*/ one ) {\r\n\t\tvar origFn, type;\r\n\r\n\t\t// Types can be a map of types/handlers\r\n\t\tif ( typeof types === "object" ) {\r\n\t\t\t// ( types-Object, selector, data )\r\n\t\t\tif ( typeof selector !== "string" ) { // && selector != null\r\n\t\t\t\t// ( types-Object, data )\r\n\t\t\t\tdata = data || selector;\r\n\t\t\t\tselector = undefined;\r\n\t\t\t}\r\n\t\t\tfor ( type in types ) {\r\n\t\t\t\tthis.on( type, selector, data, types[ type ], one );\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tif ( data == null && fn == null ) {\r\n\t\t\t// ( types, fn )\r\n\t\t\tfn = selector;\r\n\t\t\tdata = selector = undefined;\r\n\t\t} else if ( fn == null ) {\r\n\t\t\tif ( typeof selector === "string" ) {\r\n\t\t\t\t// ( types, selector, fn )\r\n\t\t\t\tfn = data;\r\n\t\t\t\tdata = undefined;\r\n\t\t\t} else {\r\n\t\t\t\t// ( types, data, fn )\r\n\t\t\t\tfn = data;\r\n\t\t\t\tdata = selector;\r\n\t\t\t\tselector = undefined;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ( fn === false ) {\r\n\t\t\tfn = returnFalse;\r\n\t\t} else if ( !fn ) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tif ( one === 1 ) {\r\n\t\t\torigFn = fn;\r\n\t\t\tfn = function( event ) {\r\n\t\t\t\t// Can use an empty set, since event contains the info\r\n\t\t\t\tjQuery().off( event );\r\n\t\t\t\treturn origFn.apply( this, arguments );\r\n\t\t\t};\r\n\t\t\t// Use same guid so caller can remove using origFn\r\n\t\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\r\n\t\t}\r\n\t\treturn this.each( function() {\r\n\t\t\tjQuery.event.add( this, types, fn, data, selector );\r\n\t\t});\r\n\t},\r\n\tone: function( types, selector, data, fn ) {\r\n\t\treturn this.on( types, selector, data, fn, 1 );\r\n\t},\r\n\toff: function( types, selector, fn ) {\r\n\t\tif ( types && types.preventDefault && types.handleObj ) {\r\n\t\t\t// ( event ) dispatched jQuery.Event\r\n\t\t\tvar handleObj = types.handleObj;\r\n\t\t\tjQuery( types.delegateTarget ).off(\r\n\t\t\t\thandleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,\r\n\t\t\t\thandleObj.selector,\r\n\t\t\t\thandleObj.handler\r\n\t\t\t);\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\tif ( typeof types === "object" ) {\r\n\t\t\t// ( types-object [, selector] )\r\n\t\t\tfor ( var type in types ) {\r\n\t\t\t\tthis.off( type, selector, types[ type ] );\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\tif ( selector === false || typeof selector === "function" ) {\r\n\t\t\t// ( types [, fn] )\r\n\t\t\tfn = selector;\r\n\t\t\tselector = undefined;\r\n\t\t}\r\n\t\tif ( fn === false ) {\r\n\t\t\tfn = returnFalse;\r\n\t\t}\r\n\t\treturn this.each(function() {\r\n\t\t\tjQuery.event.remove( this, types, fn, selector );\r\n\t\t});\r\n\t},\r\n\r\n\tbind: function( types, data, fn ) {\r\n\t\treturn this.on( types, null, data, fn );\r\n\t},\r\n\tunbind: function( types, fn ) {\r\n\t\treturn this.off( types, null, fn );\r\n\t},\r\n\r\n\tlive: function( types, data, fn ) {\r\n\t\tjQuery( this.context ).on( types, this.selector, data, fn );\r\n\t\treturn this;\r\n\t},\r\n\tdie: function( types, fn ) {\r\n\t\tjQuery( this.context ).off( types, this.selector || "**", fn );\r\n\t\treturn this;\r\n\t},\r\n\r\n\tdelegate: function( selector, types, data, fn ) {\r\n\t\treturn this.on( types, selector, data, fn );\r\n\t},\r\n\tundelegate: function( selector, types, fn ) {\r\n\t\t// ( namespace ) or ( selector, types [, fn] )\r\n\t\treturn arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );\r\n\t},\r\n\r\n\ttrigger: function( type, data ) {\r\n\t\treturn this.each(function() {\r\n\t\t\tjQuery.event.trigger( type, data, this );\r\n\t\t});\r\n\t},\r\n\ttriggerHandler: function( type, data ) {\r\n\t\tif ( this[0] ) {\r\n\t\t\treturn jQuery.event.trigger( type, data, this[0], true );\r\n\t\t}\r\n\t},\r\n\r\n\ttoggle: function( fn ) {\r\n\t\t// Save reference to arguments for access in closure\r\n\t\tvar args = arguments,\r\n\t\t\tguid = fn.guid || jQuery.guid++,\r\n\t\t\ti = 0,\r\n\t\t\ttoggler = function( event ) {\r\n\t\t\t\t// Figure out which function to execute\r\n\t\t\t\tvar lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;\r\n\t\t\t\tjQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );\r\n\r\n\t\t\t\t// Make sure that clicks stop\r\n\t\t\t\tevent.preventDefault();\r\n\r\n\t\t\t\t// and execute the function\r\n\t\t\t\treturn args[ lastToggle ].apply( this, arguments ) || false;\r\n\t\t\t};\r\n\r\n\t\t// link all the functions, so any of them can unbind this click handler\r\n\t\ttoggler.guid = guid;\r\n\t\twhile ( i < args.length ) {\r\n\t\t\targs[ i++ ].guid = guid;\r\n\t\t}\r\n\r\n\t\treturn this.click( toggler );\r\n\t},\r\n\r\n\thover: function( fnOver, fnOut ) {\r\n\t\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\r\n\t}\r\n});\r\n\r\njQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +\r\n\t"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +\r\n\t"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {\r\n\r\n\t// Handle event binding\r\n\tjQuery.fn[ name ] = function( data, fn ) {\r\n\t\tif ( fn == null ) {\r\n\t\t\tfn = data;\r\n\t\t\tdata = null;\r\n\t\t}\r\n\r\n\t\treturn arguments.length > 0 ?\r\n\t\t\tthis.on( name, null, data, fn ) :\r\n\t\t\tthis.trigger( name );\r\n\t};\r\n\r\n\tif ( jQuery.attrFn ) {\r\n\t\tjQuery.attrFn[ name ] = true;\r\n\t}\r\n\r\n\tif ( rkeyEvent.test( name ) ) {\r\n\t\tjQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;\r\n\t}\r\n\r\n\tif ( rmouseEvent.test( name ) ) {\r\n\t\tjQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;\r\n\t}\r\n});\r\n\r\n\r\n\r\n/*!\r\n * Sizzle CSS Selector Engine\r\n * Copyright 2011, The Dojo Foundation\r\n * Released under the MIT, BSD, and GPL Licenses.\r\n * More information: http://sizzlejs.com/\r\n */\r\n(function(){\r\n\r\nvar chunker = /((?:\\((?:\\([^()]+\\)|[^()]+)+\\)|\\[(?:\\[[^\\[\\]]*\\]|[\'"][^\'"]*[\'"]|[^\\[\\]\'"]+)+\\]|\\\\.|[^ >+~,(\\[\\\\]+)+|[>+~])(\\s*,\\s*)?((?:.|\\r|\\n)*)/g,\r\n\texpando = "sizcache" + (Math.random() + \'\').replace(\'.\', \'\'),\r\n\tdone = 0,\r\n\ttoString = Object.prototype.toString,\r\n\thasDuplicate = false,\r\n\tbaseHasDuplicate = true,\r\n\trBackslash = /\\\\/g,\r\n\trReturn = /\\r\\n/g,\r\n\trNonWord = /\\W/;\r\n\r\n// Here we check if the JavaScript engine is using some sort of\r\n// optimization where it does not always call our comparision\r\n// function. If that is the case, discard the hasDuplicate value.\r\n// Thus far that includes Google Chrome.\r\n[0, 0].sort(function() {\r\n\tbaseHasDuplicate = false;\r\n\treturn 0;\r\n});\r\n\r\nvar Sizzle = function( selector, context, results, seed ) {\r\n\tresults = results || [];\r\n\tcontext = context || document;\r\n\r\n\tvar origContext = context;\r\n\r\n\tif ( context.nodeType !== 1 && context.nodeType !== 9 ) {\r\n\t\treturn [];\r\n\t}\r\n\r\n\tif ( !selector || typeof selector !== "string" ) {\r\n\t\treturn results;\r\n\t}\r\n\r\n\tvar m, set, checkSet, extra, ret, cur, pop, i,\r\n\t\tprune = true,\r\n\t\tcontextXML = Sizzle.isXML( context ),\r\n\t\tparts = [],\r\n\t\tsoFar = selector;\r\n\r\n\t// Reset the position of the chunker regexp (start from head)\r\n\tdo {\r\n\t\tchunker.exec( "" );\r\n\t\tm = chunker.exec( soFar );\r\n\r\n\t\tif ( m ) {\r\n\t\t\tsoFar = m[3];\r\n\r\n\t\t\tparts.push( m[1] );\r\n\r\n\t\t\tif ( m[2] ) {\r\n\t\t\t\textra = m[3];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t} while ( m );\r\n\r\n\tif ( parts.length > 1 && origPOS.exec( selector ) ) {\r\n\r\n\t\tif ( parts.length === 2 && Expr.relative[ parts[0] ] ) {\r\n\t\t\tset = posProcess( parts[0] + parts[1], context, seed );\r\n\r\n\t\t} else {\r\n\t\t\tset = Expr.relative[ parts[0] ] ?\r\n\t\t\t\t[ context ] :\r\n\t\t\t\tSizzle( parts.shift(), context );\r\n\r\n\t\t\twhile ( parts.length ) {\r\n\t\t\t\tselector = parts.shift();\r\n\r\n\t\t\t\tif ( Expr.relative[ selector ] ) {\r\n\t\t\t\t\tselector += parts.shift();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tset = posProcess( selector, set, seed );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t} else {\r\n\t\t// Take a shortcut and set the context if the root selector is an ID\r\n\t\t// (but not if it\'ll be faster if the inner selector is an ID)\r\n\t\tif ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&\r\n\t\t\t\tExpr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {\r\n\r\n\t\t\tret = Sizzle.find( parts.shift(), context, contextXML );\r\n\t\t\tcontext = ret.expr ?\r\n\t\t\t\tSizzle.filter( ret.expr, ret.set )[0] :\r\n\t\t\t\tret.set[0];\r\n\t\t}\r\n\r\n\t\tif ( context ) {\r\n\t\t\tret = seed ?\r\n\t\t\t\t{ expr: parts.pop(), set: makeArray(seed) } :\r\n\t\t\t\tSizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );\r\n\r\n\t\t\tset = ret.expr ?\r\n\t\t\t\tSizzle.filter( ret.expr, ret.set ) :\r\n\t\t\t\tret.set;\r\n\r\n\t\t\tif ( parts.length > 0 ) {\r\n\t\t\t\tcheckSet = makeArray( set );\r\n\r\n\t\t\t} else {\r\n\t\t\t\tprune = false;\r\n\t\t\t}\r\n\r\n\t\t\twhile ( parts.length ) {\r\n\t\t\t\tcur = parts.pop();\r\n\t\t\t\tpop = cur;\r\n\r\n\t\t\t\tif ( !Expr.relative[ cur ] ) {\r\n\t\t\t\t\tcur = "";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpop = parts.pop();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( pop == null ) {\r\n\t\t\t\t\tpop = context;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tExpr.relative[ cur ]( checkSet, pop, contextXML );\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tcheckSet = parts = [];\r\n\t\t}\r\n\t}\r\n\r\n\tif ( !checkSet ) {\r\n\t\tcheckSet = set;\r\n\t}\r\n\r\n\tif ( !checkSet ) {\r\n\t\tSizzle.error( cur || selector );\r\n\t}\r\n\r\n\tif ( toString.call(checkSet) === "[object Array]" ) {\r\n\t\tif ( !prune ) {\r\n\t\t\tresults.push.apply( results, checkSet );\r\n\r\n\t\t} else if ( context && context.nodeType === 1 ) {\r\n\t\t\tfor ( i = 0; checkSet[i] != null; i++ ) {\r\n\t\t\t\tif ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {\r\n\t\t\t\t\tresults.push( set[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tfor ( i = 0; checkSet[i] != null; i++ ) {\r\n\t\t\t\tif ( checkSet[i] && checkSet[i].nodeType === 1 ) {\r\n\t\t\t\t\tresults.push( set[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t} else {\r\n\t\tmakeArray( checkSet, results );\r\n\t}\r\n\r\n\tif ( extra ) {\r\n\t\tSizzle( extra, origContext, results, seed );\r\n\t\tSizzle.uniqueSort( results );\r\n\t}\r\n\r\n\treturn results;\r\n};\r\n\r\nSizzle.uniqueSort = function( results ) {\r\n\tif ( sortOrder ) {\r\n\t\thasDuplicate = baseHasDuplicate;\r\n\t\tresults.sort( sortOrder );\r\n\r\n\t\tif ( hasDuplicate ) {\r\n\t\t\tfor ( var i = 1; i < results.length; i++ ) {\r\n\t\t\t\tif ( results[i] === results[ i - 1 ] ) {\r\n\t\t\t\t\tresults.splice( i--, 1 );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn results;\r\n};\r\n\r\nSizzle.matches = function( expr, set ) {\r\n\treturn Sizzle( expr, null, null, set );\r\n};\r\n\r\nSizzle.matchesSelector = function( node, expr ) {\r\n\treturn Sizzle( expr, null, null, [node] ).length > 0;\r\n};\r\n\r\nSizzle.find = function( expr, context, isXML ) {\r\n\tvar set, i, len, match, type, left;\r\n\r\n\tif ( !expr ) {\r\n\t\treturn [];\r\n\t}\r\n\r\n\tfor ( i = 0, len = Expr.order.length; i < len; i++ ) {\r\n\t\ttype = Expr.order[i];\r\n\r\n\t\tif ( (match = Expr.leftMatch[ type ].exec( expr )) ) {\r\n\t\t\tleft = match[1];\r\n\t\t\tmatch.splice( 1, 1 );\r\n\r\n\t\t\tif ( left.substr( left.length - 1 ) !== "\\\\" ) {\r\n\t\t\t\tmatch[1] = (match[1] || "").replace( rBackslash, "" );\r\n\t\t\t\tset = Expr.find[ type ]( match, context, isXML );\r\n\r\n\t\t\t\tif ( set != null ) {\r\n\t\t\t\t\texpr = expr.replace( Expr.match[ type ], "" );\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tif ( !set ) {\r\n\t\tset = typeof context.getElementsByTagName !== "undefined" ?\r\n\t\t\tcontext.getElementsByTagName( "*" ) :\r\n\t\t\t[];\r\n\t}\r\n\r\n\treturn { set: set, expr: expr };\r\n};\r\n\r\nSizzle.filter = function( expr, set, inplace, not ) {\r\n\tvar match, anyFound,\r\n\t\ttype, found, item, filter, left,\r\n\t\ti, pass,\r\n\t\told = expr,\r\n\t\tresult = [],\r\n\t\tcurLoop = set,\r\n\t\tisXMLFilter = set && set[0] && Sizzle.isXML( set[0] );\r\n\r\n\twhile ( expr && set.length ) {\r\n\t\tfor ( type in Expr.filter ) {\r\n\t\t\tif ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {\r\n\t\t\t\tfilter = Expr.filter[ type ];\r\n\t\t\t\tleft = match[1];\r\n\r\n\t\t\t\tanyFound = false;\r\n\r\n\t\t\t\tmatch.splice(1,1);\r\n\r\n\t\t\t\tif ( left.substr( left.length - 1 ) === "\\\\" ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( curLoop === result ) {\r\n\t\t\t\t\tresult = [];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( Expr.preFilter[ type ] ) {\r\n\t\t\t\t\tmatch = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );\r\n\r\n\t\t\t\t\tif ( !match ) {\r\n\t\t\t\t\t\tanyFound = found = true;\r\n\r\n\t\t\t\t\t} else if ( match === true ) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( match ) {\r\n\t\t\t\t\tfor ( i = 0; (item = curLoop[i]) != null; i++ ) {\r\n\t\t\t\t\t\tif ( item ) {\r\n\t\t\t\t\t\t\tfound = filter( item, match, i, curLoop );\r\n\t\t\t\t\t\t\tpass = not ^ found;\r\n\r\n\t\t\t\t\t\t\tif ( inplace && found != null ) {\r\n\t\t\t\t\t\t\t\tif ( pass ) {\r\n\t\t\t\t\t\t\t\t\tanyFound = true;\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tcurLoop[i] = false;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else if ( pass ) {\r\n\t\t\t\t\t\t\t\tresult.push( item );\r\n\t\t\t\t\t\t\t\tanyFound = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( found !== undefined ) {\r\n\t\t\t\t\tif ( !inplace ) {\r\n\t\t\t\t\t\tcurLoop = result;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\texpr = expr.replace( Expr.match[ type ], "" );\r\n\r\n\t\t\t\t\tif ( !anyFound ) {\r\n\t\t\t\t\t\treturn [];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Improper expression\r\n\t\tif ( expr === old ) {\r\n\t\t\tif ( anyFound == null ) {\r\n\t\t\t\tSizzle.error( expr );\r\n\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\told = expr;\r\n\t}\r\n\r\n\treturn curLoop;\r\n};\r\n\r\nSizzle.error = function( msg ) {\r\n\tthrow new Error( "Syntax error, unrecognized expression: " + msg );\r\n};\r\n\r\n/**\r\n * Utility function for retreiving the text value of an array of DOM nodes\r\n * @param {Array|Element} elem\r\n */\r\nvar getText = Sizzle.getText = function( elem ) {\r\n var i, node,\r\n\t\tnodeType = elem.nodeType,\r\n\t\tret = "";\r\n\r\n\tif ( nodeType ) {\r\n\t\tif ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\r\n\t\t\t// Use textContent || innerText for elements\r\n\t\t\tif ( typeof elem.textContent === \'string\' ) {\r\n\t\t\t\treturn elem.textContent;\r\n\t\t\t} else if ( typeof elem.innerText === \'string\' ) {\r\n\t\t\t\t// Replace IE\'s carriage returns\r\n\t\t\t\treturn elem.innerText.replace( rReturn, \'\' );\r\n\t\t\t} else {\r\n\t\t\t\t// Traverse it\'s children\r\n\t\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling) {\r\n\t\t\t\t\tret += getText( elem );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if ( nodeType === 3 || nodeType === 4 ) {\r\n\t\t\treturn elem.nodeValue;\r\n\t\t}\r\n\t} else {\r\n\r\n\t\t// If no nodeType, this is expected to be an array\r\n\t\tfor ( i = 0; (node = elem[i]); i++ ) {\r\n\t\t\t// Do not traverse comment nodes\r\n\t\t\tif ( node.nodeType !== 8 ) {\r\n\t\t\t\tret += getText( node );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn ret;\r\n};\r\n\r\nvar Expr = Sizzle.selectors = {\r\n\torder: [ "ID", "NAME", "TAG" ],\r\n\r\n\tmatch: {\r\n\t\tID: /#((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)/,\r\n\t\tCLASS: /\\.((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)/,\r\n\t\tNAME: /\\[name=[\'"]*((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)[\'"]*\\]/,\r\n\t\tATTR: /\\[\\s*((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)\\s*(?:(\\S?=)\\s*(?:([\'"])(.*?)\\3|(#?(?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)*)|)|)\\s*\\]/,\r\n\t\tTAG: /^((?:[\\w\\u00c0-\\uFFFF\\*\\-]|\\\\.)+)/,\r\n\t\tCHILD: /:(only|nth|last|first)-child(?:\\(\\s*(even|odd|(?:[+\\-]?\\d+|(?:[+\\-]?\\d*)?n\\s*(?:[+\\-]\\s*\\d+)?))\\s*\\))?/,\r\n\t\tPOS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\))?(?=[^\\-]|$)/,\r\n\t\tPSEUDO: /:((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)(?:\\(([\'"]?)((?:\\([^\\)]+\\)|[^\\(\\)]*)+)\\2\\))?/\r\n\t},\r\n\r\n\tleftMatch: {},\r\n\r\n\tattrMap: {\r\n\t\t"class": "className",\r\n\t\t"for": "htmlFor"\r\n\t},\r\n\r\n\tattrHandle: {\r\n\t\thref: function( elem ) {\r\n\t\t\treturn elem.getAttribute( "href" );\r\n\t\t},\r\n\t\ttype: function( elem ) {\r\n\t\t\treturn elem.getAttribute( "type" );\r\n\t\t}\r\n\t},\r\n\r\n\trelative: {\r\n\t\t"+": function(checkSet, part){\r\n\t\t\tvar isPartStr = typeof part === "string",\r\n\t\t\t\tisTag = isPartStr && !rNonWord.test( part ),\r\n\t\t\t\tisPartStrNotTag = isPartStr && !isTag;\r\n\r\n\t\t\tif ( isTag ) {\r\n\t\t\t\tpart = part.toLowerCase();\r\n\t\t\t}\r\n\r\n\t\t\tfor ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {\r\n\t\t\t\tif ( (elem = checkSet[i]) ) {\r\n\t\t\t\t\twhile ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}\r\n\r\n\t\t\t\t\tcheckSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?\r\n\t\t\t\t\t\telem || false :\r\n\t\t\t\t\t\telem === part;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( isPartStrNotTag ) {\r\n\t\t\t\tSizzle.filter( part, checkSet, true );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t">": function( checkSet, part ) {\r\n\t\t\tvar elem,\r\n\t\t\t\tisPartStr = typeof part === "string",\r\n\t\t\t\ti = 0,\r\n\t\t\t\tl = checkSet.length;\r\n\r\n\t\t\tif ( isPartStr && !rNonWord.test( part ) ) {\r\n\t\t\t\tpart = part.toLowerCase();\r\n\r\n\t\t\t\tfor ( ; i < l; i++ ) {\r\n\t\t\t\t\telem = checkSet[i];\r\n\r\n\t\t\t\t\tif ( elem ) {\r\n\t\t\t\t\t\tvar parent = elem.parentNode;\r\n\t\t\t\t\t\tcheckSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tfor ( ; i < l; i++ ) {\r\n\t\t\t\t\telem = checkSet[i];\r\n\r\n\t\t\t\t\tif ( elem ) {\r\n\t\t\t\t\t\tcheckSet[i] = isPartStr ?\r\n\t\t\t\t\t\t\telem.parentNode :\r\n\t\t\t\t\t\t\telem.parentNode === part;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( isPartStr ) {\r\n\t\t\t\t\tSizzle.filter( part, checkSet, true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t"": function(checkSet, part, isXML){\r\n\t\t\tvar nodeCheck,\r\n\t\t\t\tdoneName = done++,\r\n\t\t\t\tcheckFn = dirCheck;\r\n\r\n\t\t\tif ( typeof part === "string" && !rNonWord.test( part ) ) {\r\n\t\t\t\tpart = part.toLowerCase();\r\n\t\t\t\tnodeCheck = part;\r\n\t\t\t\tcheckFn = dirNodeCheck;\r\n\t\t\t}\r\n\r\n\t\t\tcheckFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );\r\n\t\t},\r\n\r\n\t\t"~": function( checkSet, part, isXML ) {\r\n\t\t\tvar nodeCheck,\r\n\t\t\t\tdoneName = done++,\r\n\t\t\t\tcheckFn = dirCheck;\r\n\r\n\t\t\tif ( typeof part === "string" && !rNonWord.test( part ) ) {\r\n\t\t\t\tpart = part.toLowerCase();\r\n\t\t\t\tnodeCheck = part;\r\n\t\t\t\tcheckFn = dirNodeCheck;\r\n\t\t\t}\r\n\r\n\t\t\tcheckFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );\r\n\t\t}\r\n\t},\r\n\r\n\tfind: {\r\n\t\tID: function( match, context, isXML ) {\r\n\t\t\tif ( typeof context.getElementById !== "undefined" && !isXML ) {\r\n\t\t\t\tvar m = context.getElementById(match[1]);\r\n\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\r\n\t\t\t\t// nodes that are no longer in the document #6963\r\n\t\t\t\treturn m && m.parentNode ? [m] : [];\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tNAME: function( match, context ) {\r\n\t\t\tif ( typeof context.getElementsByName !== "undefined" ) {\r\n\t\t\t\tvar ret = [],\r\n\t\t\t\t\tresults = context.getElementsByName( match[1] );\r\n\r\n\t\t\t\tfor ( var i = 0, l = results.length; i < l; i++ ) {\r\n\t\t\t\t\tif ( results[i].getAttribute("name") === match[1] ) {\r\n\t\t\t\t\t\tret.push( results[i] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn ret.length === 0 ? null : ret;\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tTAG: function( match, context ) {\r\n\t\t\tif ( typeof context.getElementsByTagName !== "undefined" ) {\r\n\t\t\t\treturn context.getElementsByTagName( match[1] );\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tpreFilter: {\r\n\t\tCLASS: function( match, curLoop, inplace, result, not, isXML ) {\r\n\t\t\tmatch = " " + match[1].replace( rBackslash, "" ) + " ";\r\n\r\n\t\t\tif ( isXML ) {\r\n\t\t\t\treturn match;\r\n\t\t\t}\r\n\r\n\t\t\tfor ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {\r\n\t\t\t\tif ( elem ) {\r\n\t\t\t\t\tif ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\\t\\n\\r]/g, " ").indexOf(match) >= 0) ) {\r\n\t\t\t\t\t\tif ( !inplace ) {\r\n\t\t\t\t\t\t\tresult.push( elem );\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else if ( inplace ) {\r\n\t\t\t\t\t\tcurLoop[i] = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn false;\r\n\t\t},\r\n\r\n\t\tID: function( match ) {\r\n\t\t\treturn match[1].replace( rBackslash, "" );\r\n\t\t},\r\n\r\n\t\tTAG: function( match, curLoop ) {\r\n\t\t\treturn match[1].replace( rBackslash, "" ).toLowerCase();\r\n\t\t},\r\n\r\n\t\tCHILD: function( match ) {\r\n\t\t\tif ( match[1] === "nth" ) {\r\n\t\t\t\tif ( !match[2] ) {\r\n\t\t\t\t\tSizzle.error( match[0] );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmatch[2] = match[2].replace(/^\\+|\\s*/g, \'\');\r\n\r\n\t\t\t\t// parse equations like \'even\', \'odd\', \'5\', \'2n\', \'3n+2\', \'4n-1\', \'-n+6\'\r\n\t\t\t\tvar test = /(-?)(\\d*)(?:n([+\\-]?\\d*))?/.exec(\r\n\t\t\t\t\tmatch[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||\r\n\t\t\t\t\t!/\\D/.test( match[2] ) && "0n+" + match[2] || match[2]);\r\n\r\n\t\t\t\t// calculate the numbers (first)n+(last) including if they are negative\r\n\t\t\t\tmatch[2] = (test[1] + (test[2] || 1)) - 0;\r\n\t\t\t\tmatch[3] = test[3] - 0;\r\n\t\t\t}\r\n\t\t\telse if ( match[2] ) {\r\n\t\t\t\tSizzle.error( match[0] );\r\n\t\t\t}\r\n\r\n\t\t\t// TODO: Move to normal caching system\r\n\t\t\tmatch[0] = done++;\r\n\r\n\t\t\treturn match;\r\n\t\t},\r\n\r\n\t\tATTR: function( match, curLoop, inplace, result, not, isXML ) {\r\n\t\t\tvar name = match[1] = match[1].replace( rBackslash, "" );\r\n\r\n\t\t\tif ( !isXML && Expr.attrMap[name] ) {\r\n\t\t\t\tmatch[1] = Expr.attrMap[name];\r\n\t\t\t}\r\n\r\n\t\t\t// Handle if an un-quoted value was used\r\n\t\t\tmatch[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );\r\n\r\n\t\t\tif ( match[2] === "~=" ) {\r\n\t\t\t\tmatch[4] = " " + match[4] + " ";\r\n\t\t\t}\r\n\r\n\t\t\treturn match;\r\n\t\t},\r\n\r\n\t\tPSEUDO: function( match, curLoop, inplace, result, not ) {\r\n\t\t\tif ( match[1] === "not" ) {\r\n\t\t\t\t// If we\'re dealing with a complex expression, or a simple one\r\n\t\t\t\tif ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\\w/.test(match[3]) ) {\r\n\t\t\t\t\tmatch[3] = Sizzle(match[3], null, null, curLoop);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);\r\n\r\n\t\t\t\t\tif ( !inplace ) {\r\n\t\t\t\t\t\tresult.push.apply( result, ret );\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t} else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\treturn match;\r\n\t\t},\r\n\r\n\t\tPOS: function( match ) {\r\n\t\t\tmatch.unshift( true );\r\n\r\n\t\t\treturn match;\r\n\t\t}\r\n\t},\r\n\r\n\tfilters: {\r\n\t\tenabled: function( elem ) {\r\n\t\t\treturn elem.disabled === false && elem.type !== "hidden";\r\n\t\t},\r\n\r\n\t\tdisabled: function( elem ) {\r\n\t\t\treturn elem.disabled === true;\r\n\t\t},\r\n\r\n\t\tchecked: function( elem ) {\r\n\t\t\treturn elem.checked === true;\r\n\t\t},\r\n\r\n\t\tselected: function( elem ) {\r\n\t\t\t// Accessing this property makes selected-by-default\r\n\t\t\t// options in Safari work properly\r\n\t\t\tif ( elem.parentNode ) {\r\n\t\t\t\telem.parentNode.selectedIndex;\r\n\t\t\t}\r\n\r\n\t\t\treturn elem.selected === true;\r\n\t\t},\r\n\r\n\t\tparent: function( elem ) {\r\n\t\t\treturn !!elem.firstChild;\r\n\t\t},\r\n\r\n\t\tempty: function( elem ) {\r\n\t\t\treturn !elem.firstChild;\r\n\t\t},\r\n\r\n\t\thas: function( elem, i, match ) {\r\n\t\t\treturn !!Sizzle( match[3], elem ).length;\r\n\t\t},\r\n\r\n\t\theader: function( elem ) {\r\n\t\t\treturn (/h\\d/i).test( elem.nodeName );\r\n\t\t},\r\n\r\n\t\ttext: function( elem ) {\r\n\t\t\tvar attr = elem.getAttribute( "type" ), type = elem.type;\r\n\t\t\t// IE6 and 7 will map elem.type to \'text\' for new HTML5 types (search, etc)\r\n\t\t\t// use getAttribute instead to test this case\r\n\t\t\treturn elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );\r\n\t\t},\r\n\r\n\t\tradio: function( elem ) {\r\n\t\t\treturn elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;\r\n\t\t},\r\n\r\n\t\tcheckbox: function( elem ) {\r\n\t\t\treturn elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;\r\n\t\t},\r\n\r\n\t\tfile: function( elem ) {\r\n\t\t\treturn elem.nodeName.toLowerCase() === "input" && "file" === elem.type;\r\n\t\t},\r\n\r\n\t\tpassword: function( elem ) {\r\n\t\t\treturn elem.nodeName.toLowerCase() === "input" && "password" === elem.type;\r\n\t\t},\r\n\r\n\t\tsubmit: function( elem ) {\r\n\t\t\tvar name = elem.nodeName.toLowerCase();\r\n\t\t\treturn (name === "input" || name === "button") && "submit" === elem.type;\r\n\t\t},\r\n\r\n\t\timage: function( elem ) {\r\n\t\t\treturn elem.nodeName.toLowerCase() === "input" && "image" === elem.type;\r\n\t\t},\r\n\r\n\t\treset: function( elem ) {\r\n\t\t\tvar name = elem.nodeName.toLowerCase();\r\n\t\t\treturn (name === "input" || name === "button") && "reset" === elem.type;\r\n\t\t},\r\n\r\n\t\tbutton: function( elem ) {\r\n\t\t\tvar name = elem.nodeName.toLowerCase();\r\n\t\t\treturn name === "input" && "button" === elem.type || name === "button";\r\n\t\t},\r\n\r\n\t\tinput: function( elem ) {\r\n\t\t\treturn (/input|select|textarea|button/i).test( elem.nodeName );\r\n\t\t},\r\n\r\n\t\tfocus: function( elem ) {\r\n\t\t\treturn elem === elem.ownerDocument.activeElement;\r\n\t\t}\r\n\t},\r\n\tsetFilters: {\r\n\t\tfirst: function( elem, i ) {\r\n\t\t\treturn i === 0;\r\n\t\t},\r\n\r\n\t\tlast: function( elem, i, match, array ) {\r\n\t\t\treturn i === array.length - 1;\r\n\t\t},\r\n\r\n\t\teven: function( elem, i ) {\r\n\t\t\treturn i % 2 === 0;\r\n\t\t},\r\n\r\n\t\todd: function( elem, i ) {\r\n\t\t\treturn i % 2 === 1;\r\n\t\t},\r\n\r\n\t\tlt: function( elem, i, match ) {\r\n\t\t\treturn i < match[3] - 0;\r\n\t\t},\r\n\r\n\t\tgt: function( elem, i, match ) {\r\n\t\t\treturn i > match[3] - 0;\r\n\t\t},\r\n\r\n\t\tnth: function( elem, i, match ) {\r\n\t\t\treturn match[3] - 0 === i;\r\n\t\t},\r\n\r\n\t\teq: function( elem, i, match ) {\r\n\t\t\treturn match[3] - 0 === i;\r\n\t\t}\r\n\t},\r\n\tfilter: {\r\n\t\tPSEUDO: function( elem, match, i, array ) {\r\n\t\t\tvar name = match[1],\r\n\t\t\t\tfilter = Expr.filters[ name ];\r\n\r\n\t\t\tif ( filter ) {\r\n\t\t\t\treturn filter( elem, i, match, array );\r\n\r\n\t\t\t} else if ( name === "contains" ) {\r\n\t\t\t\treturn (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;\r\n\r\n\t\t\t} else if ( name === "not" ) {\r\n\t\t\t\tvar not = match[3];\r\n\r\n\t\t\t\tfor ( var j = 0, l = not.length; j < l; j++ ) {\r\n\t\t\t\t\tif ( not[j] === elem ) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tSizzle.error( name );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tCHILD: function( elem, match ) {\r\n\t\t\tvar first, last,\r\n\t\t\t\tdoneName, parent, cache,\r\n\t\t\t\tcount, diff,\r\n\t\t\t\ttype = match[1],\r\n\t\t\t\tnode = elem;\r\n\r\n\t\t\tswitch ( type ) {\r\n\t\t\t\tcase "only":\r\n\t\t\t\tcase "first":\r\n\t\t\t\t\twhile ( (node = node.previousSibling) ) {\r\n\t\t\t\t\t\tif ( node.nodeType === 1 ) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ( type === "first" ) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnode = elem;\r\n\r\n\t\t\t\t\t/* falls through */\r\n\t\t\t\tcase "last":\r\n\t\t\t\t\twhile ( (node = node.nextSibling) ) {\r\n\t\t\t\t\t\tif ( node.nodeType === 1 ) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn true;\r\n\r\n\t\t\t\tcase "nth":\r\n\t\t\t\t\tfirst = match[2];\r\n\t\t\t\t\tlast = match[3];\r\n\r\n\t\t\t\t\tif ( first === 1 && last === 0 ) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdoneName = match[0];\r\n\t\t\t\t\tparent = elem.parentNode;\r\n\r\n\t\t\t\t\tif ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {\r\n\t\t\t\t\t\tcount = 0;\r\n\r\n\t\t\t\t\t\tfor ( node = parent.firstChild; node; node = node.nextSibling ) {\r\n\t\t\t\t\t\t\tif ( node.nodeType === 1 ) {\r\n\t\t\t\t\t\t\t\tnode.nodeIndex = ++count;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tparent[ expando ] = doneName;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdiff = elem.nodeIndex - last;\r\n\r\n\t\t\t\t\tif ( first === 0 ) {\r\n\t\t\t\t\t\treturn diff === 0;\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn ( diff % first === 0 && diff / first >= 0 );\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tID: function( elem, match ) {\r\n\t\t\treturn elem.nodeType === 1 && elem.getAttribute("id") === match;\r\n\t\t},\r\n\r\n\t\tTAG: function( elem, match ) {\r\n\t\t\treturn (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;\r\n\t\t},\r\n\r\n\t\tCLASS: function( elem, match ) {\r\n\t\t\treturn (" " + (elem.className || elem.getAttribute("class")) + " ")\r\n\t\t\t\t.indexOf( match ) > -1;\r\n\t\t},\r\n\r\n\t\tATTR: function( elem, match ) {\r\n\t\t\tvar name = match[1],\r\n\t\t\t\tresult = Sizzle.attr ?\r\n\t\t\t\t\tSizzle.attr( elem, name ) :\r\n\t\t\t\t\tExpr.attrHandle[ name ] ?\r\n\t\t\t\t\tExpr.attrHandle[ name ]( elem ) :\r\n\t\t\t\t\telem[ name ] != null ?\r\n\t\t\t\t\t\telem[ name ] :\r\n\t\t\t\t\t\telem.getAttribute( name ),\r\n\t\t\t\tvalue = result + "",\r\n\t\t\t\ttype = match[2],\r\n\t\t\t\tcheck = match[4];\r\n\r\n\t\t\treturn result == null ?\r\n\t\t\t\ttype === "!=" :\r\n\t\t\t\t!type && Sizzle.attr ?\r\n\t\t\t\tresult != null :\r\n\t\t\t\ttype === "=" ?\r\n\t\t\t\tvalue === check :\r\n\t\t\t\ttype === "*=" ?\r\n\t\t\t\tvalue.indexOf(check) >= 0 :\r\n\t\t\t\ttype === "~=" ?\r\n\t\t\t\t(" " + value + " ").indexOf(check) >= 0 :\r\n\t\t\t\t!check ?\r\n\t\t\t\tvalue && result !== false :\r\n\t\t\t\ttype === "!=" ?\r\n\t\t\t\tvalue !== check :\r\n\t\t\t\ttype === "^=" ?\r\n\t\t\t\tvalue.indexOf(check) === 0 :\r\n\t\t\t\ttype === "$=" ?\r\n\t\t\t\tvalue.substr(value.length - check.length) === check :\r\n\t\t\t\ttype === "|=" ?\r\n\t\t\t\tvalue === check || value.substr(0, check.length + 1) === check + "-" :\r\n\t\t\t\tfalse;\r\n\t\t},\r\n\r\n\t\tPOS: function( elem, match, i, array ) {\r\n\t\t\tvar name = match[2],\r\n\t\t\t\tfilter = Expr.setFilters[ name ];\r\n\r\n\t\t\tif ( filter ) {\r\n\t\t\t\treturn filter( elem, i, match, array );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\nvar origPOS = Expr.match.POS,\r\n\tfescape = function(all, num){\r\n\t\treturn "\\\\" + (num - 0 + 1);\r\n\t};\r\n\r\nfor ( var type in Expr.match ) {\r\n\tExpr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\\[]*\\])(?![^\\(]*\\))/.source) );\r\n\tExpr.leftMatch[ type ] = new RegExp( /(^(?:.|\\r|\\n)*?)/.source + Expr.match[ type ].source.replace(/\\\\(\\d+)/g, fescape) );\r\n}\r\n// Expose origPOS\r\n// "global" as in regardless of relation to brackets/parens\r\nExpr.match.globalPOS = origPOS;\r\n\r\nvar makeArray = function( array, results ) {\r\n\tarray = Array.prototype.slice.call( array, 0 );\r\n\r\n\tif ( results ) {\r\n\t\tresults.push.apply( results, array );\r\n\t\treturn results;\r\n\t}\r\n\r\n\treturn array;\r\n};\r\n\r\n// Perform a simple check to determine if the browser is capable of\r\n// converting a NodeList to an array using builtin methods.\r\n// Also verifies that the returned array holds DOM nodes\r\n// (which is not the case in the Blackberry browser)\r\ntry {\r\n\tArray.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;\r\n\r\n// Provide a fallback method if it does not work\r\n} catch( e ) {\r\n\tmakeArray = function( array, results ) {\r\n\t\tvar i = 0,\r\n\t\t\tret = results || [];\r\n\r\n\t\tif ( toString.call(array) === "[object Array]" ) {\r\n\t\t\tArray.prototype.push.apply( ret, array );\r\n\r\n\t\t} else {\r\n\t\t\tif ( typeof array.length === "number" ) {\r\n\t\t\t\tfor ( var l = array.length; i < l; i++ ) {\r\n\t\t\t\t\tret.push( array[i] );\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tfor ( ; array[i]; i++ ) {\r\n\t\t\t\t\tret.push( array[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t};\r\n}\r\n\r\nvar sortOrder, siblingCheck;\r\n\r\nif ( document.documentElement.compareDocumentPosition ) {\r\n\tsortOrder = function( a, b ) {\r\n\t\tif ( a === b ) {\r\n\t\t\thasDuplicate = true;\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tif ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {\r\n\t\t\treturn a.compareDocumentPosition ? -1 : 1;\r\n\t\t}\r\n\r\n\t\treturn a.compareDocumentPosition(b) & 4 ? -1 : 1;\r\n\t};\r\n\r\n} else {\r\n\tsortOrder = function( a, b ) {\r\n\t\t// The nodes are identical, we can exit early\r\n\t\tif ( a === b ) {\r\n\t\t\thasDuplicate = true;\r\n\t\t\treturn 0;\r\n\r\n\t\t// Fallback to using sourceIndex (in IE) if it\'s available on both nodes\r\n\t\t} else if ( a.sourceIndex && b.sourceIndex ) {\r\n\t\t\treturn a.sourceIndex - b.sourceIndex;\r\n\t\t}\r\n\r\n\t\tvar al, bl,\r\n\t\t\tap = [],\r\n\t\t\tbp = [],\r\n\t\t\taup = a.parentNode,\r\n\t\t\tbup = b.parentNode,\r\n\t\t\tcur = aup;\r\n\r\n\t\t// If the nodes are siblings (or identical) we can do a quick check\r\n\t\tif ( aup === bup ) {\r\n\t\t\treturn siblingCheck( a, b );\r\n\r\n\t\t// If no parents were found then the nodes are disconnected\r\n\t\t} else if ( !aup ) {\r\n\t\t\treturn -1;\r\n\r\n\t\t} else if ( !bup ) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\t// Otherwise they\'re somewhere else in the tree so we need\r\n\t\t// to build up a full list of the parentNodes for comparison\r\n\t\twhile ( cur ) {\r\n\t\t\tap.unshift( cur );\r\n\t\t\tcur = cur.parentNode;\r\n\t\t}\r\n\r\n\t\tcur = bup;\r\n\r\n\t\twhile ( cur ) {\r\n\t\t\tbp.unshift( cur );\r\n\t\t\tcur = cur.parentNode;\r\n\t\t}\r\n\r\n\t\tal = ap.length;\r\n\t\tbl = bp.length;\r\n\r\n\t\t// Start walking down the tree looking for a discrepancy\r\n\t\tfor ( var i = 0; i < al && i < bl; i++ ) {\r\n\t\t\tif ( ap[i] !== bp[i] ) {\r\n\t\t\t\treturn siblingCheck( ap[i], bp[i] );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// We ended someplace up the tree so do a sibling check\r\n\t\treturn i === al ?\r\n\t\t\tsiblingCheck( a, bp[i], -1 ) :\r\n\t\t\tsiblingCheck( ap[i], b, 1 );\r\n\t};\r\n\r\n\tsiblingCheck = function( a, b, ret ) {\r\n\t\tif ( a === b ) {\r\n\t\t\treturn ret;\r\n\t\t}\r\n\r\n\t\tvar cur = a.nextSibling;\r\n\r\n\t\twhile ( cur ) {\r\n\t\t\tif ( cur === b ) {\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\r\n\t\t\tcur = cur.nextSibling;\r\n\t\t}\r\n\r\n\t\treturn 1;\r\n\t};\r\n}\r\n\r\n// Check to see if the browser returns elements by name when\r\n// querying by getElementById (and provide a workaround)\r\n(function(){\r\n\t// We\'re going to inject a fake input element with a specified name\r\n\tvar form = document.createElement("div"),\r\n\t\tid = "script" + (new Date()).getTime(),\r\n\t\troot = document.documentElement;\r\n\r\n\tform.innerHTML = "";\r\n\r\n\t// Inject it into the root element, check its status, and remove it quickly\r\n\troot.insertBefore( form, root.firstChild );\r\n\r\n\t// The workaround has to do additional checks after a getElementById\r\n\t// Which slows things down for other browsers (hence the branching)\r\n\tif ( document.getElementById( id ) ) {\r\n\t\tExpr.find.ID = function( match, context, isXML ) {\r\n\t\t\tif ( typeof context.getElementById !== "undefined" && !isXML ) {\r\n\t\t\t\tvar m = context.getElementById(match[1]);\r\n\r\n\t\t\t\treturn m ?\r\n\t\t\t\t\tm.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?\r\n\t\t\t\t\t\t[m] :\r\n\t\t\t\t\t\tundefined :\r\n\t\t\t\t\t[];\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tExpr.filter.ID = function( elem, match ) {\r\n\t\t\tvar node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");\r\n\r\n\t\t\treturn elem.nodeType === 1 && node && node.nodeValue === match;\r\n\t\t};\r\n\t}\r\n\r\n\troot.removeChild( form );\r\n\r\n\t// release memory in IE\r\n\troot = form = null;\r\n})();\r\n\r\n(function(){\r\n\t// Check to see if the browser returns only elements\r\n\t// when doing getElementsByTagName("*")\r\n\r\n\t// Create a fake element\r\n\tvar div = document.createElement("div");\r\n\tdiv.appendChild( document.createComment("") );\r\n\r\n\t// Make sure no comments are found\r\n\tif ( div.getElementsByTagName("*").length > 0 ) {\r\n\t\tExpr.find.TAG = function( match, context ) {\r\n\t\t\tvar results = context.getElementsByTagName( match[1] );\r\n\r\n\t\t\t// Filter out possible comments\r\n\t\t\tif ( match[1] === "*" ) {\r\n\t\t\t\tvar tmp = [];\r\n\r\n\t\t\t\tfor ( var i = 0; results[i]; i++ ) {\r\n\t\t\t\t\tif ( results[i].nodeType === 1 ) {\r\n\t\t\t\t\t\ttmp.push( results[i] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tresults = tmp;\r\n\t\t\t}\r\n\r\n\t\t\treturn results;\r\n\t\t};\r\n\t}\r\n\r\n\t// Check to see if an attribute returns normalized href attributes\r\n\tdiv.innerHTML = "";\r\n\r\n\tif ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&\r\n\t\t\tdiv.firstChild.getAttribute("href") !== "#" ) {\r\n\r\n\t\tExpr.attrHandle.href = function( elem ) {\r\n\t\t\treturn elem.getAttribute( "href", 2 );\r\n\t\t};\r\n\t}\r\n\r\n\t// release memory in IE\r\n\tdiv = null;\r\n})();\r\n\r\nif ( document.querySelectorAll ) {\r\n\t(function(){\r\n\t\tvar oldSizzle = Sizzle,\r\n\t\t\tdiv = document.createElement("div"),\r\n\t\t\tid = "__sizzle__";\r\n\r\n\t\tdiv.innerHTML = "

    ";\r\n\r\n\t\t// Safari can\'t handle uppercase or unicode characters when\r\n\t\t// in quirks mode.\r\n\t\tif ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tSizzle = function( query, context, extra, seed ) {\r\n\t\t\tcontext = context || document;\r\n\r\n\t\t\t// Only use querySelectorAll on non-XML documents\r\n\t\t\t// (ID selectors don\'t work in non-HTML documents)\r\n\t\t\tif ( !seed && !Sizzle.isXML(context) ) {\r\n\t\t\t\t// See if we find a selector to speed up\r\n\t\t\t\tvar match = /^(\\w+$)|^\\.([\\w\\-]+$)|^#([\\w\\-]+$)/.exec( query );\r\n\r\n\t\t\t\tif ( match && (context.nodeType === 1 || context.nodeType === 9) ) {\r\n\t\t\t\t\t// Speed-up: Sizzle("TAG")\r\n\t\t\t\t\tif ( match[1] ) {\r\n\t\t\t\t\t\treturn makeArray( context.getElementsByTagName( query ), extra );\r\n\r\n\t\t\t\t\t// Speed-up: Sizzle(".CLASS")\r\n\t\t\t\t\t} else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {\r\n\t\t\t\t\t\treturn makeArray( context.getElementsByClassName( match[2] ), extra );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( context.nodeType === 9 ) {\r\n\t\t\t\t\t// Speed-up: Sizzle("body")\r\n\t\t\t\t\t// The body element only exists once, optimize finding it\r\n\t\t\t\t\tif ( query === "body" && context.body ) {\r\n\t\t\t\t\t\treturn makeArray( [ context.body ], extra );\r\n\r\n\t\t\t\t\t// Speed-up: Sizzle("#ID")\r\n\t\t\t\t\t} else if ( match && match[3] ) {\r\n\t\t\t\t\t\tvar elem = context.getElementById( match[3] );\r\n\r\n\t\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\r\n\t\t\t\t\t\t// nodes that are no longer in the document #6963\r\n\t\t\t\t\t\tif ( elem && elem.parentNode ) {\r\n\t\t\t\t\t\t\t// Handle the case where IE and Opera return items\r\n\t\t\t\t\t\t\t// by name instead of ID\r\n\t\t\t\t\t\t\tif ( elem.id === match[3] ) {\r\n\t\t\t\t\t\t\t\treturn makeArray( [ elem ], extra );\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\treturn makeArray( [], extra );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treturn makeArray( context.querySelectorAll(query), extra );\r\n\t\t\t\t\t} catch(qsaError) {}\r\n\r\n\t\t\t\t// qSA works strangely on Element-rooted queries\r\n\t\t\t\t// We can work around this by specifying an extra ID on the root\r\n\t\t\t\t// and working up from there (Thanks to Andrew Dupont for the technique)\r\n\t\t\t\t// IE 8 doesn\'t work on object elements\r\n\t\t\t\t} else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {\r\n\t\t\t\t\tvar oldContext = context,\r\n\t\t\t\t\t\told = context.getAttribute( "id" ),\r\n\t\t\t\t\t\tnid = old || id,\r\n\t\t\t\t\t\thasParent = context.parentNode,\r\n\t\t\t\t\t\trelativeHierarchySelector = /^\\s*[+~]/.test( query );\r\n\r\n\t\t\t\t\tif ( !old ) {\r\n\t\t\t\t\t\tcontext.setAttribute( "id", nid );\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnid = nid.replace( /\'/g, "\\\\$&" );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( relativeHierarchySelector && hasParent ) {\r\n\t\t\t\t\t\tcontext = context.parentNode;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif ( !relativeHierarchySelector || hasParent ) {\r\n\t\t\t\t\t\t\treturn makeArray( context.querySelectorAll( "[id=\'" + nid + "\'] " + query ), extra );\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} catch(pseudoError) {\r\n\t\t\t\t\t} finally {\r\n\t\t\t\t\t\tif ( !old ) {\r\n\t\t\t\t\t\t\toldContext.removeAttribute( "id" );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn oldSizzle(query, context, extra, seed);\r\n\t\t};\r\n\r\n\t\tfor ( var prop in oldSizzle ) {\r\n\t\t\tSizzle[ prop ] = oldSizzle[ prop ];\r\n\t\t}\r\n\r\n\t\t// release memory in IE\r\n\t\tdiv = null;\r\n\t})();\r\n}\r\n\r\n(function(){\r\n\tvar html = document.documentElement,\r\n\t\tmatches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;\r\n\r\n\tif ( matches ) {\r\n\t\t// Check to see if it\'s possible to do matchesSelector\r\n\t\t// on a disconnected node (IE 9 fails this)\r\n\t\tvar disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),\r\n\t\t\tpseudoWorks = false;\r\n\r\n\t\ttry {\r\n\t\t\t// This should fail with an exception\r\n\t\t\t// Gecko does not error, returns false instead\r\n\t\t\tmatches.call( document.documentElement, "[test!=\'\']:sizzle" );\r\n\r\n\t\t} catch( pseudoError ) {\r\n\t\t\tpseudoWorks = true;\r\n\t\t}\r\n\r\n\t\tSizzle.matchesSelector = function( node, expr ) {\r\n\t\t\t// Make sure that attribute selectors are quoted\r\n\t\t\texpr = expr.replace(/\\=\\s*([^\'"\\]]*)\\s*\\]/g, "=\'$1\']");\r\n\r\n\t\t\tif ( !Sizzle.isXML( node ) ) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {\r\n\t\t\t\t\t\tvar ret = matches.call( node, expr );\r\n\r\n\t\t\t\t\t\t// IE 9\'s matchesSelector returns false on disconnected nodes\r\n\t\t\t\t\t\tif ( ret || !disconnectedMatch ||\r\n\t\t\t\t\t\t\t\t// As well, disconnected nodes are said to be in a document\r\n\t\t\t\t\t\t\t\t// fragment in IE 9, so check for that\r\n\t\t\t\t\t\t\t\tnode.document && node.document.nodeType !== 11 ) {\r\n\t\t\t\t\t\t\treturn ret;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch(e) {}\r\n\t\t\t}\r\n\r\n\t\t\treturn Sizzle(expr, null, null, [node]).length > 0;\r\n\t\t};\r\n\t}\r\n})();\r\n\r\n(function(){\r\n\tvar div = document.createElement("div");\r\n\r\n\tdiv.innerHTML = "
    ";\r\n\r\n\t// Opera can\'t find a second classname (in 9.6)\r\n\t// Also, make sure that getElementsByClassName actually exists\r\n\tif ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t// Safari caches class attributes, doesn\'t catch changes (in 3.2)\r\n\tdiv.lastChild.className = "e";\r\n\r\n\tif ( div.getElementsByClassName("e").length === 1 ) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tExpr.order.splice(1, 0, "CLASS");\r\n\tExpr.find.CLASS = function( match, context, isXML ) {\r\n\t\tif ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {\r\n\t\t\treturn context.getElementsByClassName(match[1]);\r\n\t\t}\r\n\t};\r\n\r\n\t// release memory in IE\r\n\tdiv = null;\r\n})();\r\n\r\nfunction dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {\r\n\tfor ( var i = 0, l = checkSet.length; i < l; i++ ) {\r\n\t\tvar elem = checkSet[i];\r\n\r\n\t\tif ( elem ) {\r\n\t\t\tvar match = false;\r\n\r\n\t\t\telem = elem[dir];\r\n\r\n\t\t\twhile ( elem ) {\r\n\t\t\t\tif ( elem[ expando ] === doneName ) {\r\n\t\t\t\t\tmatch = checkSet[elem.sizset];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( elem.nodeType === 1 && !isXML ){\r\n\t\t\t\t\telem[ expando ] = doneName;\r\n\t\t\t\t\telem.sizset = i;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( elem.nodeName.toLowerCase() === cur ) {\r\n\t\t\t\t\tmatch = elem;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telem = elem[dir];\r\n\t\t\t}\r\n\r\n\t\t\tcheckSet[i] = match;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {\r\n\tfor ( var i = 0, l = checkSet.length; i < l; i++ ) {\r\n\t\tvar elem = checkSet[i];\r\n\r\n\t\tif ( elem ) {\r\n\t\t\tvar match = false;\r\n\r\n\t\t\telem = elem[dir];\r\n\r\n\t\t\twhile ( elem ) {\r\n\t\t\t\tif ( elem[ expando ] === doneName ) {\r\n\t\t\t\t\tmatch = checkSet[elem.sizset];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( elem.nodeType === 1 ) {\r\n\t\t\t\t\tif ( !isXML ) {\r\n\t\t\t\t\t\telem[ expando ] = doneName;\r\n\t\t\t\t\t\telem.sizset = i;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ( typeof cur !== "string" ) {\r\n\t\t\t\t\t\tif ( elem === cur ) {\r\n\t\t\t\t\t\t\tmatch = true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {\r\n\t\t\t\t\t\tmatch = elem;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\telem = elem[dir];\r\n\t\t\t}\r\n\r\n\t\t\tcheckSet[i] = match;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nif ( document.documentElement.contains ) {\r\n\tSizzle.contains = function( a, b ) {\r\n\t\treturn a !== b && (a.contains ? a.contains(b) : true);\r\n\t};\r\n\r\n} else if ( document.documentElement.compareDocumentPosition ) {\r\n\tSizzle.contains = function( a, b ) {\r\n\t\treturn !!(a.compareDocumentPosition(b) & 16);\r\n\t};\r\n\r\n} else {\r\n\tSizzle.contains = function() {\r\n\t\treturn false;\r\n\t};\r\n}\r\n\r\nSizzle.isXML = function( elem ) {\r\n\t// documentElement is verified for cases where it doesn\'t yet exist\r\n\t// (such as loading iframes in IE - #4833)\r\n\tvar documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;\r\n\r\n\treturn documentElement ? documentElement.nodeName !== "HTML" : false;\r\n};\r\n\r\nvar posProcess = function( selector, context, seed ) {\r\n\tvar match,\r\n\t\ttmpSet = [],\r\n\t\tlater = "",\r\n\t\troot = context.nodeType ? [context] : context;\r\n\r\n\t// Position selectors must be done after the filter\r\n\t// And so must :not(positional) so we move all PSEUDOs to the end\r\n\twhile ( (match = Expr.match.PSEUDO.exec( selector )) ) {\r\n\t\tlater += match[0];\r\n\t\tselector = selector.replace( Expr.match.PSEUDO, "" );\r\n\t}\r\n\r\n\tselector = Expr.relative[selector] ? selector + "*" : selector;\r\n\r\n\tfor ( var i = 0, l = root.length; i < l; i++ ) {\r\n\t\tSizzle( selector, root[i], tmpSet, seed );\r\n\t}\r\n\r\n\treturn Sizzle.filter( later, tmpSet );\r\n};\r\n\r\n// EXPOSE\r\n// Override sizzle attribute retrieval\r\nSizzle.attr = jQuery.attr;\r\nSizzle.selectors.attrMap = {};\r\njQuery.find = Sizzle;\r\njQuery.expr = Sizzle.selectors;\r\njQuery.expr[":"] = jQuery.expr.filters;\r\njQuery.unique = Sizzle.uniqueSort;\r\njQuery.text = Sizzle.getText;\r\njQuery.isXMLDoc = Sizzle.isXML;\r\njQuery.contains = Sizzle.contains;\r\n\r\n\r\n})();\r\n\r\n\r\nvar runtil = /Until$/,\r\n\trparentsprev = /^(?:parents|prevUntil|prevAll)/,\r\n\t// Note: This RegExp should be improved, or likely pulled from Sizzle\r\n\trmultiselector = /,/,\r\n\tisSimple = /^.[^:#\\[\\.,]*$/,\r\n\tslice = Array.prototype.slice,\r\n\tPOS = jQuery.expr.match.globalPOS,\r\n\t// methods guaranteed to produce a unique set when starting from a unique set\r\n\tguaranteedUnique = {\r\n\t\tchildren: true,\r\n\t\tcontents: true,\r\n\t\tnext: true,\r\n\t\tprev: true\r\n\t};\r\n\r\njQuery.fn.extend({\r\n\tfind: function( selector ) {\r\n\t\tvar self = this,\r\n\t\t\ti, l;\r\n\r\n\t\tif ( typeof selector !== "string" ) {\r\n\t\t\treturn jQuery( selector ).filter(function() {\r\n\t\t\t\tfor ( i = 0, l = self.length; i < l; i++ ) {\r\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tvar ret = this.pushStack( "", "find", selector ),\r\n\t\t\tlength, n, r;\r\n\r\n\t\tfor ( i = 0, l = this.length; i < l; i++ ) {\r\n\t\t\tlength = ret.length;\r\n\t\t\tjQuery.find( selector, this[i], ret );\r\n\r\n\t\t\tif ( i > 0 ) {\r\n\t\t\t\t// Make sure that the results are unique\r\n\t\t\t\tfor ( n = length; n < ret.length; n++ ) {\r\n\t\t\t\t\tfor ( r = 0; r < length; r++ ) {\r\n\t\t\t\t\t\tif ( ret[r] === ret[n] ) {\r\n\t\t\t\t\t\t\tret.splice(n--, 1);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t},\r\n\r\n\thas: function( target ) {\r\n\t\tvar targets = jQuery( target );\r\n\t\treturn this.filter(function() {\r\n\t\t\tfor ( var i = 0, l = targets.length; i < l; i++ ) {\r\n\t\t\t\tif ( jQuery.contains( this, targets[i] ) ) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\r\n\tnot: function( selector ) {\r\n\t\treturn this.pushStack( winnow(this, selector, false), "not", selector);\r\n\t},\r\n\r\n\tfilter: function( selector ) {\r\n\t\treturn this.pushStack( winnow(this, selector, true), "filter", selector );\r\n\t},\r\n\r\n\tis: function( selector ) {\r\n\t\treturn !!selector && (\r\n\t\t\ttypeof selector === "string" ?\r\n\t\t\t\t// If this is a positional selector, check membership in the returned set\r\n\t\t\t\t// so $("p:first").is("p:last") won\'t return true for a doc with two "p".\r\n\t\t\t\tPOS.test( selector ) ?\r\n\t\t\t\t\tjQuery( selector, this.context ).index( this[0] ) >= 0 :\r\n\t\t\t\t\tjQuery.filter( selector, this ).length > 0 :\r\n\t\t\t\tthis.filter( selector ).length > 0 );\r\n\t},\r\n\r\n\tclosest: function( selectors, context ) {\r\n\t\tvar ret = [], i, l, cur = this[0];\r\n\r\n\t\t// Array (deprecated as of jQuery 1.7)\r\n\t\tif ( jQuery.isArray( selectors ) ) {\r\n\t\t\tvar level = 1;\r\n\r\n\t\t\twhile ( cur && cur.ownerDocument && cur !== context ) {\r\n\t\t\t\tfor ( i = 0; i < selectors.length; i++ ) {\r\n\r\n\t\t\t\t\tif ( jQuery( cur ).is( selectors[ i ] ) ) {\r\n\t\t\t\t\t\tret.push({ selector: selectors[ i ], elem: cur, level: level });\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcur = cur.parentNode;\r\n\t\t\t\tlevel++;\r\n\t\t\t}\r\n\r\n\t\t\treturn ret;\r\n\t\t}\r\n\r\n\t\t// String\r\n\t\tvar pos = POS.test( selectors ) || typeof selectors !== "string" ?\r\n\t\t\t\tjQuery( selectors, context || this.context ) :\r\n\t\t\t\t0;\r\n\r\n\t\tfor ( i = 0, l = this.length; i < l; i++ ) {\r\n\t\t\tcur = this[i];\r\n\r\n\t\t\twhile ( cur ) {\r\n\t\t\t\tif ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {\r\n\t\t\t\t\tret.push( cur );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcur = cur.parentNode;\r\n\t\t\t\t\tif ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tret = ret.length > 1 ? jQuery.unique( ret ) : ret;\r\n\r\n\t\treturn this.pushStack( ret, "closest", selectors );\r\n\t},\r\n\r\n\t// Determine the position of an element within\r\n\t// the matched set of elements\r\n\tindex: function( elem ) {\r\n\r\n\t\t// No argument, return index in parent\r\n\t\tif ( !elem ) {\r\n\t\t\treturn ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;\r\n\t\t}\r\n\r\n\t\t// index in selector\r\n\t\tif ( typeof elem === "string" ) {\r\n\t\t\treturn jQuery.inArray( this[0], jQuery( elem ) );\r\n\t\t}\r\n\r\n\t\t// Locate the position of the desired element\r\n\t\treturn jQuery.inArray(\r\n\t\t\t// If it receives a jQuery object, the first element is used\r\n\t\t\telem.jquery ? elem[0] : elem, this );\r\n\t},\r\n\r\n\tadd: function( selector, context ) {\r\n\t\tvar set = typeof selector === "string" ?\r\n\t\t\t\tjQuery( selector, context ) :\r\n\t\t\t\tjQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),\r\n\t\t\tall = jQuery.merge( this.get(), set );\r\n\r\n\t\treturn this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?\r\n\t\t\tall :\r\n\t\t\tjQuery.unique( all ) );\r\n\t},\r\n\r\n\tandSelf: function() {\r\n\t\treturn this.add( this.prevObject );\r\n\t}\r\n});\r\n\r\n// A painfully simple check to see if an element is disconnected\r\n// from a document (should be improved, where feasible).\r\nfunction isDisconnected( node ) {\r\n\treturn !node || !node.parentNode || node.parentNode.nodeType === 11;\r\n}\r\n\r\njQuery.each({\r\n\tparent: function( elem ) {\r\n\t\tvar parent = elem.parentNode;\r\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\r\n\t},\r\n\tparents: function( elem ) {\r\n\t\treturn jQuery.dir( elem, "parentNode" );\r\n\t},\r\n\tparentsUntil: function( elem, i, until ) {\r\n\t\treturn jQuery.dir( elem, "parentNode", until );\r\n\t},\r\n\tnext: function( elem ) {\r\n\t\treturn jQuery.nth( elem, 2, "nextSibling" );\r\n\t},\r\n\tprev: function( elem ) {\r\n\t\treturn jQuery.nth( elem, 2, "previousSibling" );\r\n\t},\r\n\tnextAll: function( elem ) {\r\n\t\treturn jQuery.dir( elem, "nextSibling" );\r\n\t},\r\n\tprevAll: function( elem ) {\r\n\t\treturn jQuery.dir( elem, "previousSibling" );\r\n\t},\r\n\tnextUntil: function( elem, i, until ) {\r\n\t\treturn jQuery.dir( elem, "nextSibling", until );\r\n\t},\r\n\tprevUntil: function( elem, i, until ) {\r\n\t\treturn jQuery.dir( elem, "previousSibling", until );\r\n\t},\r\n\tsiblings: function( elem ) {\r\n\t\treturn jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );\r\n\t},\r\n\tchildren: function( elem ) {\r\n\t\treturn jQuery.sibling( elem.firstChild );\r\n\t},\r\n\tcontents: function( elem ) {\r\n\t\treturn jQuery.nodeName( elem, "iframe" ) ?\r\n\t\t\telem.contentDocument || elem.contentWindow.document :\r\n\t\t\tjQuery.makeArray( elem.childNodes );\r\n\t}\r\n}, function( name, fn ) {\r\n\tjQuery.fn[ name ] = function( until, selector ) {\r\n\t\tvar ret = jQuery.map( this, fn, until );\r\n\r\n\t\tif ( !runtil.test( name ) ) {\r\n\t\t\tselector = until;\r\n\t\t}\r\n\r\n\t\tif ( selector && typeof selector === "string" ) {\r\n\t\t\tret = jQuery.filter( selector, ret );\r\n\t\t}\r\n\r\n\t\tret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;\r\n\r\n\t\tif ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {\r\n\t\t\tret = ret.reverse();\r\n\t\t}\r\n\r\n\t\treturn this.pushStack( ret, name, slice.call( arguments ).join(",") );\r\n\t};\r\n});\r\n\r\njQuery.extend({\r\n\tfilter: function( expr, elems, not ) {\r\n\t\tif ( not ) {\r\n\t\t\texpr = ":not(" + expr + ")";\r\n\t\t}\r\n\r\n\t\treturn elems.length === 1 ?\r\n\t\t\tjQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :\r\n\t\t\tjQuery.find.matches(expr, elems);\r\n\t},\r\n\r\n\tdir: function( elem, dir, until ) {\r\n\t\tvar matched = [],\r\n\t\t\tcur = elem[ dir ];\r\n\r\n\t\twhile ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {\r\n\t\t\tif ( cur.nodeType === 1 ) {\r\n\t\t\t\tmatched.push( cur );\r\n\t\t\t}\r\n\t\t\tcur = cur[dir];\r\n\t\t}\r\n\t\treturn matched;\r\n\t},\r\n\r\n\tnth: function( cur, result, dir, elem ) {\r\n\t\tresult = result || 1;\r\n\t\tvar num = 0;\r\n\r\n\t\tfor ( ; cur; cur = cur[dir] ) {\r\n\t\t\tif ( cur.nodeType === 1 && ++num === result ) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn cur;\r\n\t},\r\n\r\n\tsibling: function( n, elem ) {\r\n\t\tvar r = [];\r\n\r\n\t\tfor ( ; n; n = n.nextSibling ) {\r\n\t\t\tif ( n.nodeType === 1 && n !== elem ) {\r\n\t\t\t\tr.push( n );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn r;\r\n\t}\r\n});\r\n\r\n// Implement the identical functionality for filter and not\r\nfunction winnow( elements, qualifier, keep ) {\r\n\r\n\t// Can\'t pass null or undefined to indexOf in Firefox 4\r\n\t// Set to 0 to skip string check\r\n\tqualifier = qualifier || 0;\r\n\r\n\tif ( jQuery.isFunction( qualifier ) ) {\r\n\t\treturn jQuery.grep(elements, function( elem, i ) {\r\n\t\t\tvar retVal = !!qualifier.call( elem, i, elem );\r\n\t\t\treturn retVal === keep;\r\n\t\t});\r\n\r\n\t} else if ( qualifier.nodeType ) {\r\n\t\treturn jQuery.grep(elements, function( elem, i ) {\r\n\t\t\treturn ( elem === qualifier ) === keep;\r\n\t\t});\r\n\r\n\t} else if ( typeof qualifier === "string" ) {\r\n\t\tvar filtered = jQuery.grep(elements, function( elem ) {\r\n\t\t\treturn elem.nodeType === 1;\r\n\t\t});\r\n\r\n\t\tif ( isSimple.test( qualifier ) ) {\r\n\t\t\treturn jQuery.filter(qualifier, filtered, !keep);\r\n\t\t} else {\r\n\t\t\tqualifier = jQuery.filter( qualifier, filtered );\r\n\t\t}\r\n\t}\r\n\r\n\treturn jQuery.grep(elements, function( elem, i ) {\r\n\t\treturn ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;\r\n\t});\r\n}\r\n\r\n\r\n\r\n\r\nfunction createSafeFragment( document ) {\r\n\tvar list = nodeNames.split( "|" ),\r\n\tsafeFrag = document.createDocumentFragment();\r\n\r\n\tif ( safeFrag.createElement ) {\r\n\t\twhile ( list.length ) {\r\n\t\t\tsafeFrag.createElement(\r\n\t\t\t\tlist.pop()\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\treturn safeFrag;\r\n}\r\n\r\nvar nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +\r\n\t\t"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",\r\n\trinlinejQuery = / jQuery\\d+="(?:\\d+|null)"/g,\r\n\trleadingWhitespace = /^\\s+/,\r\n\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/ig,\r\n\trtagName = /<([\\w:]+)/,\r\n\trtbody = /]", "i"),\r\n\t// checked="checked" or checked\r\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\r\n\trscriptType = /\\/(java|ecma)script/i,\r\n\trcleanScript = /^\\s*", "" ],\r\n\t\tlegend: [ 1, "
    ", "
    " ],\r\n\t\tthead: [ 1, "", "
    " ],\r\n\t\ttr: [ 2, "", "
    " ],\r\n\t\ttd: [ 3, "", "
    " ],\r\n\t\tcol: [ 2, "", "
    " ],\r\n\t\tarea: [ 1, "", "" ],\r\n\t\t_default: [ 0, "", "" ]\r\n\t},\r\n\tsafeFragment = createSafeFragment( document );\r\n\r\nwrapMap.optgroup = wrapMap.option;\r\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\r\nwrapMap.th = wrapMap.td;\r\n\r\n// IE can\'t serialize and