YOP Poll - Version 6.1.5

Version Description

  • fixed typos
  • fixed security issue when previewing a poll
  • fixed issue with loading language files
  • fixed issue with loader not being shown when voting
  • fixed issue with answers displayed below radio/checkbox controls on small screens
Download this release

Release Info

Developer yourownprogrammer
Plugin Icon 128x128 YOP Poll
Version 6.1.5
Comparing to
See all releases

Code changes from version 6.1.4 to 6.1.5

admin/admin.php CHANGED
@@ -109,10 +109,14 @@ class YOP_Poll_Admin {
109
$maintenance = new YOP_POLL_Maintenance();
110
$maintenance->update_to_version_6_1_4();
111
}
112
}
113
}
114
public function load_translations() {
115
- load_plugin_textdomain( 'yop-poll', FALSE, YOP_POLL_PATH . '/languages/' );
116
}
117
public function is_user_logged_in() {
118
if ( true === is_user_logged_in() ) {
@@ -387,7 +391,7 @@ class YOP_Poll_Admin {
387
'noCustomDate' => esc_html__( 'Custom Date for displaying results is missing', 'yop-poll' ),
388
'noShowResultsMoment' => esc_html__( 'Show Results Time is missing', 'yop-poll' ),
389
'noShowResultsTo' => esc_html__( 'Show Results To is missing', 'yop-poll' ),
390
- 'noVoteAsWordpress' => esc_html__( 'Vote As Wordpress User is missing', 'yop-poll' )
391
),
392
'saveBanParams' => array(
393
'noBanFor' => esc_html__( 'Ban For is missing', 'yop-poll' ),
109
$maintenance = new YOP_POLL_Maintenance();
110
$maintenance->update_to_version_6_1_4();
111
}
112
+ if ( true === version_compare( $installed_version, '6.1.5', '<' ) ) {
113
+ $maintenance = new YOP_POLL_Maintenance();
114
+ $maintenance->update_to_version_6_1_5();
115
+ }
116
}
117
}
118
public function load_translations() {
119
+ load_plugin_textdomain( 'yop-poll', FALSE, 'yop-poll/languages/' );
120
}
121
public function is_user_logged_in() {
122
if ( true === is_user_logged_in() ) {
391
'noCustomDate' => esc_html__( 'Custom Date for displaying results is missing', 'yop-poll' ),
392
'noShowResultsMoment' => esc_html__( 'Show Results Time is missing', 'yop-poll' ),
393
'noShowResultsTo' => esc_html__( 'Show Results To is missing', 'yop-poll' ),
394
+ 'noVoteAsWordpress' => esc_html__( 'Vote As WordPress User is missing', 'yop-poll' )
395
),
396
'saveBanParams' => array(
397
'noBanFor' => esc_html__( 'Ban For is missing', 'yop-poll' ),
admin/assets/css/{admin-6.1.4.css → admin-6.1.5.css} RENAMED
@@ -1,4 +1,4 @@
1
- @import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);@import url(//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css);#yop-main-area *,:hover{transition:border 1s,color 1s,outline 1s!important}h2{text-transform:uppercase}h3{border-bottom:1px solid #eee}.yop-poll-hook h3 span{text-transform:uppercase;padding:.5em 10em .5em 1em;background:#aaa;color:#fff;font-size:12px;position:relative;bottom:4px;border-top-left-radius:4px;border-top-right-radius:4px;min-width:200px}.border{outline:1px solid #eee}.tabs-container{background-color:#fff;padding:3em}.question{border-bottom:5px solid #eee}.question:hover{outline:1px solid #eee}.question .title-bar{overflow:hidden;padding:.5em 1em;border-bottom:1px solid transparent;cursor:move}.title-bar.collapsed .bar-title{color:#777}.question .bar-title{cursor:pointer!important}.title-bar .actions{display:none}.question:hover>.title-bar .actions{display:inline}.question:hover>.title-bar{border-bottom:1px solid #eee}.bar-title{text-transform:uppercase;color:transparent}.question:hover>.title-bar .bar-title{color:#aaa}.answer{margin:1em 0 0;outline:1px solid transparent}.answer:hover{outline:1px solid #eee}.answer:hover>.title-bar{border-bottom:1px solid #eee}.answer:hover>.title-bar .bar-title{color:#aaa}.answer:hover>.title-bar .actions{display:inline}.answer-text .form-inline .form-group{display:inline}.answer-options{display:none}.form-inline input.form-control.answer-value{width:92%}.content-inside{padding:1em}.hspace{padding:0 .5em}.oh{overflow:hidden}.set-as-default-inline{padding:.5em}.answers input.form-control,.question-text input.form-control{border:1px solid transparent!important;box-shadow:none!important}input.form-control:hover{border:1px solid #ccc!important}.btn-underline{border:none!important;border-bottom:2px solid #000!important;text-decoration:none!important}.btn-premium{background:#ffdb4b;border:1px solid #a9a9a9;color:#000}.btn-default{background:#fafafa;border:1px solid #ccc}.buttons-row i{font-size:2em}.regular-buttons{overflow:hidden;display:inline-block}.premium-buttons{overflow:hidden;display:inline-block;float:right;clear:right}.premium{float:left;display:inline;width:50px;color:#eda033;font-weight:700;font-size:12px;margin-right:0;text-transform:uppercase;text-align:center;margin-top:-7px}.upgrade-to-pro,.upgrade-to-pro:hover{text-decoration:none!important}i.glyphicon.glyphicon-info-sign{color:#d3d3d3}i.glyphicon.glyphicon-info-sign:hover{color:orange}ul.main.nav{margin-top:1em}ul.main.nav li{width:33.333333%;text-align:center}ul.main.nav li a{padding:1em}.bootstrap-yop .carousel-inner>.item>a>img,.bootstrap-yop .carousel-inner>.item>img{margin:auto}.bootstrap-yop .carousel-caption{background:rgba(0,0,0,.45);border-radius:4px}.bootstrap-yop .carousel-caption h3{border-bottom:0}.minicolors-theme-bootstrap .minicolors-swatch{width:40px;cursor:pointer}.bootstrap-yop a:focus{box-shadow:none;-webkit-box-shadow:none}.tablenav-pages-navspan{height:inherit!important}.panel-heading a:after{font-family:'Glyphicons Halflings';content:"\e114";float:right;color:grey}.panel-heading a.collapsed:after{content:"\e080"}.subactions-links{padding:20px;font-size:14px}.bootstrap-yop .carousel-control.left,.bootstrap-yop .carousel-control.right{background-image:none!important}.bootstrap-yop .carousel-control{z-index:99}.bootstrap-yop .carousel-indicators .active{background-color:#fff;border-color:#fff}.bootstrap-yop .carousel-indicators li{border:1px solid #fff;background-color:#fff}.color-scheme li{position:relative;float:left;width:16px;height:16px;margin:2px 1px 0 0;background:#000;cursor:pointer;opacity:.5;-webkit-transition:opacity .2s;-moz-transition:opacity .2s;-ms-transition:opacity .2s;-o-transition:opacity .2s;transition:opacity .2s}.color-scheme li.red{background:#d54e21}.color-scheme li.green{background:#78a300}.color-scheme li.blue{background:#0e76a8}.color-scheme li.aero{background:#9cc2cb}.color-scheme li.grey{background:#73716e}.color-scheme li.orange{background:#f70}.color-scheme li.yellow{background:#fc0}.color-scheme li.pink{background:#ff66b5}.color-scheme li.purple{background:#6a5a8c}.color-scheme li.active{height:20px;margin-top:0;opacity:.75}.color-scheme li:hover{opacity:1}.bootstrap-yop .carousel-indicators .active{border-color:#000;background-color:#000!important}.bootstrap-yop .carousel-indicators li{border:1px solid #000!important}.bootstrap-yop .carousel-inner{display:contents}@media screen and (min-width:768px){.bootstrap-yop .carousel-caption{position:relative;background:0 0;color:#000!important;text-shadow:none!important;left:50%!important;transform:translateX(-50%)}}.yop-poll-poll-templates figure{position:relative;margin-bottom:25px!important;max-width:600px;margin-right:auto!important;margin-left:auto!important}.yop-poll-poll-templates figcaption{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:none!important}.yop-poll-poll-templates figure:hover figcaption{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.yop-poll-poll-templates figure h4{position:absolute;bottom:10%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:100%}.yop-poll-poll-templates img.selected{padding:3px;border:2px solid #000}.yop-poll-poll-templates figcaption .radio label{padding-left:12px}.yop-poll-poll-templates .img-thumbnail,.yop-poll-poll-templates figcaption{border-radius:5px}.yop-poll-poll-templates .button{margin:10px auto;width:150px;font-size:14px}@media screen and (max-width:650px){.yop-poll-poll-templates div.col-xs-6{width:100%}}#ypContainer .basic-answer .basic-answer-content{min-height:35px}#ypContainer .imgContainer h4.text-center{min-height:40px}.bootstrap-yop .question-section:nth-child(n+2){margin-top:20px}.bootstrap-yop .answer-section{margin-top:20px}.bootstrap-yop .btn-cancel-add-votes-manually{margin-right:20px}.element-results-header,.poll-style-header{cursor:pointer}@media only screen and (min-width:650px) and (max-width:720px),(min-width:850px) and (max-width:1200px){.template-name{min-height:38px}}.bootstrap-yop .admin-select{height:34px!important;min-height:34px!important}.bootstrap-yop .admin-label{font-weight:400!important}.bootstrap-yop input[type=checkbox],.bootstrap-yop input[type=radio]{outline:0!important}.bootstrap-yop input[type=checkbox]:focus,.bootstrap-yop input[type=radio]:focus{outline:0!important}.bootstrap-yop .poll-options-access input[type=checkbox],.bootstrap-yop .poll-options-access input[type=radio],.bootstrap-yop .poll-results-options input[type=checkbox],.bootstrap-yop .poll-results-options input[type=radio]{position:relative;top:-3px}#yop-poll-upgrade-modal-long .modal-dialog{width:70%!important;padding-left:160px}#yop-poll-upgrade-modal-short .modal-dialog{width:700px!important;padding-left:160px}@media only screen and (max-width:960px){#yop-poll-upgrade-modal-long .modal-dialog{width:90%!important;padding-left:36px}#yop-poll-upgrade-modal-short .modal-dialog{width:90%!important;padding-left:36px}}@media only screen and (max-width:782px){#yop-poll-upgrade-modal-long .modal-dialog{width:90%!important}#yop-poll-upgrade-modal-short .modal-dialog{width:90%!important}}.upgrade-to-pro-section{font-family:Helvetica}.yop-poll-pro-headline{font-size:48px;font-weight:700}.yop-poll-pro-subheadline{font-size:24px;font-weight:700}.yop-poll-pro-subheadline1{font-size:20px;font-weight:700}.yop-poll-pro-testimonial{border-color:#08c;border:2px solid;border-radius:15px;text-align:center;margin-top:10px;margin-bottom:10px;padding-left:10px;padding-right:10px}.yop-poll-pro-testimonial-header{text-align:left;font-size:20px;font-weight:700;margin-top:2%!important;margin-bottom:2%!important}.yop-poll-pro-testimonial-body{text-align:left;font-size:15px;margin-left:5%;margin-right:5%}.yop-poll-pro-testimonial-client{text-align:right;font-size:15px;margin-left:5%;margin-right:5%;font-weight:700}.yop-poll-pro-order{margin-top:30px;margin-bottom:30px}.yop-poll-pro-button{color:#fff!important;background-color:#338eef!important;display:block;margin-left:auto;margin-right:auto;text-align:center!important;text-decoration:none!important;border-radius:5px;font-size:26px!important;font-weight:600!important;padding-left:25px!important;padding-right:25px!important;border:none;padding-top:10px!important;padding-bottom:10px!important}.yop-poll-pro-button .pricing{font-size:14px}.yop-poll-pro-button:hover{color:#fff!important}.yop-poll-pro-divider{margin-top:100px!important;margin-bottom:100px!important}.yop-poll-pro-divider .horizontal-line{border-top-width:2px;border-top-style:solid;border-top-color:rgba(0,0,0,.1)}.yop-poll-pro-feature-block{margin-top:50px}.yop-poll-pro-feature-block .title{font-size:20px;font-weight:700;margin-bottom:20px;line-height:1.5em}.yop-poll-pro-feature-block .description{font-size:18px;line-height:1.5em}#yop-main-area .collapse-element{margin-right:20px}.pro-section-features a:hover{text-decoration:none!important}.pro-section-features .pro-section-headline{margin-bottom:20px}.pro-section-features .pro-section-headline h3{border-bottom:0!important}.pro-section-features .pro-section-text{font-size:18px;line-height:2em}.pro-section-upgrade-headline{font-size:20px;margin-top:20px;line-height:1.7em}.pro-section-upgrade-subheadline{font-size:16px;margin-top:20px;margin-bottom:20px}#yop-poll-guide-modal .modal-body{padding-top:0!important}.guide-section-header .main-headline{border-bottom:0!important;line-height:1.5;color:#c00000;font-size:28px;font-weight:600}.guide-section .send-poll-guide{background-color:#007cba!important;color:#fff!important;padding:5px!important;border-radius:5px!important;display:inline-block!important;min-width:50%!important;font-size:20px;font-weight:700!important;margin-top:20px!important;margin-bottom:20px!important}.guide-section a:hover,.guide-section a:visited{text-decoration:none!important}.guide-section .guide-section-headline{margin-bottom:20px;font-size:20px;line-height:1.7em}.guide-section .guide-section-headline h3{border-bottom:0!important}.guide-section .guide-section-text{font-size:18px;line-height:2em}.optin-section-upgrade-subheadline{font-size:16px;margin-top:20px;margin-bottom:20px}.guide-section .extra-text{margin-bottom:20px}.guide-section .email-container{width:50%;margin:0 auto}.guide-section-never-show{margin-top:20px}figure.yp-figure{position:relative;margin-bottom:25px;margin-right:auto;margin-left:auto;z-index:1}figcaption.yp-figcaption{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.75);display:none!important}figure.yp-figure:hover figcaption.yp-figcaption{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}figcaption.yp-figcaption button{margin:10px auto;width:110px}figure.yp-figure .glyphicon{font-size:50px;color:#fff}figure.yp-figure .selected-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.75);-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:none;z-index:5}.yp-figure.selected .selected-overlay{display:-webkit-box;display:-ms-flexbox;display:flex}.yp-figure.selected:hover figcaption.yp-figcaption{display:none!important}@media screen and (min-width:1501px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:25%!important;min-height:430px}}@media screen and (max-width:1500px) and (min-width:1350px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:25%!important;min-height:435px}}@media screen and (max-width:1349px) and (min-width:1201px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:33.33%!important;min-height:435px}}@media screen and (max-width:1200px) and (min-width:992px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:50%!important;min-height:435px}}@media screen and (max-width:991px) and (min-width:850px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:100%!important}}@media screen and (max-width:849px) and (min-width:768px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:50%!important;min-height:470px}}@media screen and (max-width:767px) and (min-width:577px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:50%!important;min-height:470px}}@media screen and (max-width:576px){.bootstrap-yop .col-width.col-xs-6{width:100%}}.basic-yop-poll-container.orange-def{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:10px 10px}.basic-yop-poll-container.orange-def2 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:left}.basic-yop-poll-container.orange-def .basic-answer{padding:0 0}.basic-yop-poll-container.orange-def .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-def .basic-vote-button{background-color:#ee7600;border-width:0;border-color:#000;border-radius:0;padding:5px 10px;color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-def .basic-vote-button:focus,.basic-yop-poll-container.orange-def .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-def .basic-vote{text-align:left}.basic-yop-poll-container.orange-def .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v3{background-color:#fff;border-width:1px;border-color:#fb6911;border-radius:0;padding:10px 10px}.basic-yop-poll-container.orange-v3 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v3 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v3 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v3 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#555;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v3 .basic-vote-button:focus,.basic-yop-poll-container.orange-v3 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v3 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v3 .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v2{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.orange-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v2 .basic-vote-button:focus,.basic-yop-poll-container.orange-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v2 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v2 .basic-question-title h5{background-color:#fb6911;padding:5px 0}.basic-yop-poll-container.orange-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v1{background-color:#fb6911;border-width:0;border-color:#fb6911;border-radius:0;padding:10px 10px}.basic-yop-poll-container.orange-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v1 .basic-vote-button:focus,.basic-yop-poll-container.orange-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v1 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v4{background-color:#fff;border-width:1px;border-color:#fb6911;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.orange-v4 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v4 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v4 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v4 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#555;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v4 .basic-vote-button:focus,.basic-yop-poll-container.orange-v4 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v4 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v4 .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v5{background-color:#fb6911;border-width:0;border-color:#fb6911;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.orange-v5 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v5 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v5 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v5 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v5 .basic-vote-button:focus,.basic-yop-poll-container.orange-v5 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v5 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v5 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v3{background-color:#fff;border-width:1px;border-color:#3f8b43;border-radius:0;padding:10px 10px}.basic-yop-poll-container.green-v3 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v3 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v3 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v3 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v3 .basic-vote-button:focus,.basic-yop-poll-container.green-v3 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v3 .basic-vote{text-align:center}.basic-yop-poll-container.green-v3 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v2{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.green-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v2 .basic-vote-button:focus,.basic-yop-poll-container.green-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v2 .basic-vote{text-align:center}.basic-yop-poll-container.green-v2 .basic-question-title h5{background-color:#3f8b43;padding:5px 0}.basic-yop-poll-container.green-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v1{background-color:#3f8b43;border-width:0;border-color:#3f8b43;border-radius:0;padding:10px 10px}.basic-yop-poll-container.green-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v1 .basic-vote-button:focus,.basic-yop-poll-container.green-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v1 .basic-vote{text-align:center}.basic-yop-poll-container.green-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v4{background-color:#fff;border-width:1px;border-color:#3f8b43;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.green-v4 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v4 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v4 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v4 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v4 .basic-vote-button:focus,.basic-yop-poll-container.green-v4 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v4 .basic-vote{text-align:center}.basic-yop-poll-container.green-v4 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v5{background-color:#3f8b43;border-width:0;border-color:#3f8b43;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.green-v5 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v5 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v5 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v5 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v5 .basic-vote-button:focus,.basic-yop-poll-container.green-v5 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v5 .basic-vote{text-align:center}.basic-yop-poll-container.green-v5 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v3{background-color:#fff;border-width:1px;border-color:#b70004;border-radius:0;padding:10px 10px}.basic-yop-poll-container.red-v3 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v3 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v3 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v3 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v3 .basic-vote-button:focus,.basic-yop-poll-container.red-v3 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v3 .basic-vote{text-align:center}.basic-yop-poll-container.red-v3 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v2{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.red-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v2 .basic-vote-button:focus,.basic-yop-poll-container.red-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v2 .basic-vote{text-align:center}.basic-yop-poll-container.red-v2 .basic-question-title h5{background-color:#b70004;padding:5px 0}.basic-yop-poll-container.red-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v1{background-color:#b70004;border-width:0;border-color:#b70004;border-radius:0;padding:10px 10px}.basic-yop-poll-container.red-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v1 .basic-vote-button:focus,.basic-yop-poll-container.red-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v1 .basic-vote{text-align:center}.basic-yop-poll-container.red-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v4{background-color:#fff;border-width:1px;border-color:#b70004;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.red-v4 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v4 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v4 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v4 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v4 .basic-vote-button:focus,.basic-yop-poll-container.red-v4 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v4 .basic-vote{text-align:center}.basic-yop-poll-container.red-v4 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v5{background-color:#b70004;border-width:0;border-color:#b70004;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.red-v5 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v5 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v5 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v5 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v5 .basic-vote-button:focus,.basic-yop-poll-container.red-v5 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v5 .basic-vote{text-align:center}.basic-yop-poll-container.red-v5 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v3{background-color:#fff;border-width:1px;border-color:#327bd6;border-radius:0;padding:10px 10px}.basic-yop-poll-container.blue-v3 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v3 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v3 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v3 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v3 .basic-vote-button:focus,.basic-yop-poll-container.blue-v3 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v3 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v3 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v2{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.blue-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v2 .basic-vote-button:focus,.basic-yop-poll-container.blue-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v2 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v2 .basic-question-title h5{background-color:#327bd6;padding:5px 0}.basic-yop-poll-container.blue-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v1{background-color:#327bd6;border-width:0;border-color:#327bd6;border-radius:0;padding:10px 10px}.basic-yop-poll-container.blue-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v1 .basic-vote-button:focus,.basic-yop-poll-container.blue-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v1 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v4{background-color:#fff;border-width:1px;border-color:#327bd6;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.blue-v4 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v4 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v4 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v4 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v4 .basic-vote-button:focus,.basic-yop-poll-container.blue-v4 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v4 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v4 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v5{background-color:#327bd6;border-width:0;border-color:#327bd6;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.blue-v5 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v5 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v5 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v5 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v5 .basic-vote-button:focus,.basic-yop-poll-container.blue-v5 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v5 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v5 .basic-vote-button{border-style:solid}.basic-yop-poll-container.dark-v1{background-color:#555;border-width:0;border-color:#555;border-radius:0;padding:10px 10px}.basic-yop-poll-container.dark-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.dark-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.dark-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.dark-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.dark-v1 .basic-vote-button:focus,.basic-yop-poll-container.dark-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.dark-v1 .basic-vote{text-align:center}.basic-yop-poll-container.dark-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.grey{background-color:#eee;border-width:0;border-color:#eee;border-radius:0;padding:10px 10px}.basic-yop-poll-container.grey .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.grey .basic-answer{padding:0 0}.basic-yop-poll-container.grey .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.grey .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.grey .basic-vote-button:focus,.basic-yop-poll-container.grey .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.grey .basic-vote{text-align:center}.basic-yop-poll-container.grey .basic-vote-button{border-style:solid}.basic-yop-poll-container.white-v1{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.white-v1 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.white-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.white-v1 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.white-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.white-v1 .basic-vote-button:focus,.basic-yop-poll-container.white-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.white-v1 .basic-vote{text-align:center}.basic-yop-poll-container.white-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.dark-v2{background-color:#555;border-width:0;border-color:#555;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.dark-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.dark-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.dark-v2 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.dark-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.dark-v2 .basic-vote-button:focus,.basic-yop-poll-container.dark-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.dark-v2 .basic-vote{text-align:center}.basic-yop-poll-container.dark-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.white-v2{background-color:#fff;border-width:1px;border-color:#000;border-radius:5px;padding:10px 10px}.basic-yop-poll-container.white-v2 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.white-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.white-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.white-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.white-v2 .basic-vote-button:focus,.basic-yop-poll-container.white-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.white-v2 .basic-vote{text-align:center}.basic-yop-poll-container.white-v2 .basic-vote-button{border-style:solid}.bootstrap-dialog .modal-header{border-top-left-radius:4px;border-top-right-radius:4px}.bootstrap-dialog .bootstrap-dialog-title{color:#fff;display:inline-block;font-size:16px}.bootstrap-dialog .bootstrap-dialog-message{font-size:14px}.bootstrap-dialog .bootstrap-dialog-button-icon{margin-right:3px}.bootstrap-dialog .bootstrap-dialog-close-button{font-size:20px;float:right;opacity:.9}.bootstrap-dialog .bootstrap-dialog-close-button:hover{cursor:pointer;opacity:1}.bootstrap-dialog.type-default .modal-header{background-color:#fff}.bootstrap-dialog.type-default .bootstrap-dialog-title{color:#333}.bootstrap-dialog.type-info .modal-header{background-color:#5bc0de}.bootstrap-dialog.type-primary .modal-header{background-color:#337ab7}.bootstrap-dialog.type-success .modal-header{background-color:#5cb85c}.bootstrap-dialog.type-warning .modal-header{background-color:#f0ad4e}.bootstrap-dialog.type-danger .modal-header{background-color:#d9534f}.bootstrap-dialog.size-large .bootstrap-dialog-title{font-size:24px}.bootstrap-dialog.size-large .bootstrap-dialog-close-button{font-size:30px}.bootstrap-dialog.size-large .bootstrap-dialog-message{font-size:18px}.bootstrap-dialog .icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.bootstrap-yop{/*!
2
* Bootstrap v3.0.3 (http://getbootstrap.com)
3
* Copyright 2013 Twitter, Inc.
4
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
1
+ @import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);@import url(//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css);#yop-main-area *,:hover{transition:border 1s,color 1s,outline 1s!important}h2{text-transform:uppercase}h3{border-bottom:1px solid #eee}.yop-poll-hook h3 span{text-transform:uppercase;padding:.5em 10em .5em 1em;background:#aaa;color:#fff;font-size:12px;position:relative;bottom:4px;border-top-left-radius:4px;border-top-right-radius:4px;min-width:200px}.border{outline:1px solid #eee}.tabs-container{background-color:#fff;padding:3em}.question{border-bottom:5px solid #eee}.question:hover{outline:1px solid #eee}.question .title-bar{overflow:hidden;padding:.5em 1em;border-bottom:1px solid transparent;cursor:move}.title-bar.collapsed .bar-title{color:#777}.question .bar-title{cursor:pointer!important}.title-bar .actions{display:none}.question:hover>.title-bar .actions{display:inline}.question:hover>.title-bar{border-bottom:1px solid #eee}.bar-title{text-transform:uppercase;color:transparent}.question:hover>.title-bar .bar-title{color:#aaa}.answer{margin:1em 0 0;outline:1px solid transparent}.answer:hover{outline:1px solid #eee}.answer:hover>.title-bar{border-bottom:1px solid #eee}.answer:hover>.title-bar .bar-title{color:#aaa}.answer:hover>.title-bar .actions{display:inline}.answer-text .form-inline .form-group{display:inline}.answer-options{display:none}.form-inline input.form-control.answer-value{width:92%}.content-inside{padding:1em}.hspace{padding:0 .5em}.oh{overflow:hidden}.set-as-default-inline{padding:.5em}.answers input.form-control,.question-text input.form-control{border:1px solid transparent!important;box-shadow:none!important}input.form-control:hover{border:1px solid #ccc!important}.btn-underline{border:none!important;border-bottom:2px solid #000!important;text-decoration:none!important}.btn-premium{background:#ffdb4b;border:1px solid #a9a9a9;color:#000}.btn-default{background:#fafafa;border:1px solid #ccc}.buttons-row i{font-size:2em}.regular-buttons{overflow:hidden;display:inline-block}.premium-buttons{overflow:hidden;display:inline-block;float:right;clear:right}.premium{float:left;display:inline;width:50px;color:#eda033;font-weight:700;font-size:12px;margin-right:0;text-transform:uppercase;text-align:center;margin-top:-7px}.upgrade-to-pro,.upgrade-to-pro:hover{text-decoration:none!important}i.glyphicon.glyphicon-info-sign{color:#d3d3d3}i.glyphicon.glyphicon-info-sign:hover{color:orange}ul.main.nav{margin-top:1em}ul.main.nav li{width:33.333333%;text-align:center}ul.main.nav li a{padding:1em}.bootstrap-yop .carousel-inner>.item>a>img,.bootstrap-yop .carousel-inner>.item>img{margin:auto}.bootstrap-yop .carousel-caption{background:rgba(0,0,0,.45);border-radius:4px}.bootstrap-yop .carousel-caption h3{border-bottom:0}.minicolors-theme-bootstrap .minicolors-swatch{width:40px;cursor:pointer}.bootstrap-yop a:focus{box-shadow:none;-webkit-box-shadow:none}.tablenav-pages-navspan{height:inherit!important}.panel-heading a:after{font-family:'Glyphicons Halflings';content:"\e114";float:right;color:grey}.panel-heading a.collapsed:after{content:"\e080"}.subactions-links{padding:20px;font-size:14px}.bootstrap-yop .carousel-control.left,.bootstrap-yop .carousel-control.right{background-image:none!important}.bootstrap-yop .carousel-control{z-index:99}.bootstrap-yop .carousel-indicators .active{background-color:#fff;border-color:#fff}.bootstrap-yop .carousel-indicators li{border:1px solid #fff;background-color:#fff}.color-scheme li{position:relative;float:left;width:16px;height:16px;margin:2px 1px 0 0;background:#000;cursor:pointer;opacity:.5;-webkit-transition:opacity .2s;-moz-transition:opacity .2s;-ms-transition:opacity .2s;-o-transition:opacity .2s;transition:opacity .2s}.color-scheme li.red{background:#d54e21}.color-scheme li.green{background:#78a300}.color-scheme li.blue{background:#0e76a8}.color-scheme li.aero{background:#9cc2cb}.color-scheme li.grey{background:#73716e}.color-scheme li.orange{background:#f70}.color-scheme li.yellow{background:#fc0}.color-scheme li.pink{background:#ff66b5}.color-scheme li.purple{background:#6a5a8c}.color-scheme li.active{height:20px;margin-top:0;opacity:.75}.color-scheme li:hover{opacity:1}.bootstrap-yop .carousel-indicators .active{border-color:#000;background-color:#000!important}.bootstrap-yop .carousel-indicators li{border:1px solid #000!important}.bootstrap-yop .carousel-inner{display:contents}@media screen and (min-width:768px){.bootstrap-yop .carousel-caption{position:relative;background:0 0;color:#000!important;text-shadow:none!important;left:50%!important;transform:translateX(-50%)}}.yop-poll-poll-templates figure{position:relative;margin-bottom:25px!important;max-width:600px;margin-right:auto!important;margin-left:auto!important}.yop-poll-poll-templates figcaption{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:none!important}.yop-poll-poll-templates figure:hover figcaption{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.yop-poll-poll-templates figure h4{position:absolute;bottom:10%;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:100%}.yop-poll-poll-templates img.selected{padding:3px;border:2px solid #000}.yop-poll-poll-templates figcaption .radio label{padding-left:12px}.yop-poll-poll-templates .img-thumbnail,.yop-poll-poll-templates figcaption{border-radius:5px}.yop-poll-poll-templates .button{margin:10px auto;width:150px;font-size:14px}@media screen and (max-width:650px){.yop-poll-poll-templates div.col-xs-6{width:100%}}#ypContainer .basic-answer .basic-answer-content{min-height:35px}#ypContainer .imgContainer h4.text-center{min-height:40px}.bootstrap-yop .question-section:nth-child(n+2){margin-top:20px}.bootstrap-yop .answer-section{margin-top:20px}.bootstrap-yop .btn-cancel-add-votes-manually{margin-right:20px}.element-results-header,.poll-style-header{cursor:pointer}@media only screen and (min-width:650px) and (max-width:720px),(min-width:850px) and (max-width:1200px){.template-name{min-height:38px}}.bootstrap-yop .admin-select{height:34px!important;min-height:34px!important}.bootstrap-yop .admin-label{font-weight:400!important}.bootstrap-yop input[type=checkbox],.bootstrap-yop input[type=radio]{outline:0!important}.bootstrap-yop input[type=checkbox]:focus,.bootstrap-yop input[type=radio]:focus{outline:0!important}.bootstrap-yop .poll-options-access input[type=checkbox],.bootstrap-yop .poll-options-access input[type=radio],.bootstrap-yop .poll-results-options input[type=checkbox],.bootstrap-yop .poll-results-options input[type=radio]{position:relative;top:-3px}#yop-poll-upgrade-modal-long .modal-dialog{width:70%!important;padding-left:160px}#yop-poll-upgrade-modal-short .modal-dialog{width:700px!important;padding-left:160px}@media only screen and (max-width:960px){#yop-poll-upgrade-modal-long .modal-dialog{width:90%!important;padding-left:36px}#yop-poll-upgrade-modal-short .modal-dialog{width:90%!important;padding-left:36px}}@media only screen and (max-width:782px){#yop-poll-upgrade-modal-long .modal-dialog{width:90%!important}#yop-poll-upgrade-modal-short .modal-dialog{width:90%!important}}.upgrade-to-pro-section{font-family:Helvetica}.yop-poll-pro-headline{font-size:48px;font-weight:700}.yop-poll-pro-subheadline{font-size:24px;font-weight:700}.yop-poll-pro-subheadline1{font-size:20px;font-weight:700}.yop-poll-pro-testimonial{border-color:#08c;border:2px solid;border-radius:15px;text-align:center;margin-top:10px;margin-bottom:10px;padding-left:10px;padding-right:10px}.yop-poll-pro-testimonial-header{text-align:left;font-size:20px;font-weight:700;margin-top:2%!important;margin-bottom:2%!important}.yop-poll-pro-testimonial-body{text-align:left;font-size:15px;margin-left:5%;margin-right:5%}.yop-poll-pro-testimonial-client{text-align:right;font-size:15px;margin-left:5%;margin-right:5%;font-weight:700}.yop-poll-pro-order{margin-top:30px;margin-bottom:30px}.yop-poll-pro-button{color:#fff!important;background-color:#338eef!important;display:block;margin-left:auto;margin-right:auto;text-align:center!important;text-decoration:none!important;border-radius:5px;font-size:26px!important;font-weight:600!important;padding-left:25px!important;padding-right:25px!important;border:none;padding-top:10px!important;padding-bottom:10px!important}.yop-poll-pro-button .pricing{font-size:14px}.yop-poll-pro-button:hover{color:#fff!important}.yop-poll-pro-divider{margin-top:100px!important;margin-bottom:100px!important}.yop-poll-pro-divider .horizontal-line{border-top-width:2px;border-top-style:solid;border-top-color:rgba(0,0,0,.1)}.yop-poll-pro-feature-block{margin-top:50px}.yop-poll-pro-feature-block .title{font-size:20px;font-weight:700;margin-bottom:20px;line-height:1.5em}.yop-poll-pro-feature-block .description{font-size:18px;line-height:1.5em}#yop-main-area .collapse-element{margin-right:20px}.pro-section-features a:hover{text-decoration:none!important}.pro-section-features .pro-section-headline{margin-bottom:20px}.pro-section-features .pro-section-headline h3{border-bottom:0!important}.pro-section-features .pro-section-text{font-size:18px;line-height:2em}.pro-section-upgrade-headline{font-size:20px;margin-top:20px;line-height:1.7em}.pro-section-upgrade-subheadline{font-size:16px;margin-top:20px;margin-bottom:20px}#yop-poll-guide-modal .modal-body{padding-top:0!important}.guide-section-header .main-headline{border-bottom:0!important;line-height:1.5;color:#c00000;font-size:28px;font-weight:600}.guide-section .send-poll-guide{background-color:#007cba!important;color:#fff!important;padding:5px!important;border-radius:5px!important;display:inline-block!important;min-width:50%!important;font-size:20px;font-weight:700!important;margin-top:20px!important;margin-bottom:20px!important}.guide-section a:hover,.guide-section a:visited{text-decoration:none!important}.guide-section .guide-section-headline{margin-bottom:20px;font-size:20px;line-height:1.7em}.guide-section .guide-section-headline h3{border-bottom:0!important}.guide-section .guide-section-text{font-size:18px;line-height:2em}.optin-section-upgrade-subheadline{font-size:16px;margin-top:20px;margin-bottom:20px}.guide-section .extra-text{margin-bottom:20px}.guide-section .email-container{width:50%;margin:0 auto}.guide-section-never-show{margin-top:20px}.bootstrap-yop .submenu{display:block!important}.element-options-section{padding-top:20px;padding-bottom:20px}.bootstrap-yop .buttons-row{border-bottom:1px solid #eee;margin-bottom:20px}.bootstrap-yop .lite-button,.bootstrap-yop .premium-button{margin-bottom:10px!important;width:156px}figure.yp-figure{position:relative;margin-bottom:25px;margin-right:auto;margin-left:auto;z-index:1}figcaption.yp-figcaption{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.75);display:none!important}figure.yp-figure:hover figcaption.yp-figcaption{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}figcaption.yp-figcaption button{margin:10px auto;width:110px}figure.yp-figure .glyphicon{font-size:50px;color:#fff}figure.yp-figure .selected-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.75);-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:none;z-index:5}.yp-figure.selected .selected-overlay{display:-webkit-box;display:-ms-flexbox;display:flex}.yp-figure.selected:hover figcaption.yp-figcaption{display:none!important}@media screen and (min-width:1501px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:25%!important;min-height:430px}}@media screen and (max-width:1500px) and (min-width:1350px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:25%!important;min-height:435px}}@media screen and (max-width:1349px) and (min-width:1201px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:33.33%!important;min-height:435px}}@media screen and (max-width:1200px) and (min-width:992px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:50%!important;min-height:435px}}@media screen and (max-width:991px) and (min-width:850px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:100%!important}}@media screen and (max-width:849px) and (min-width:768px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:50%!important;min-height:470px}}@media screen and (max-width:767px) and (min-width:577px){.bootstrap-yop .skins-basic .col-width.col-md-2{width:50%!important;min-height:470px}}@media screen and (max-width:576px){.bootstrap-yop .col-width.col-xs-6{width:100%}}.basic-yop-poll-container.orange-def{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:10px 10px}.basic-yop-poll-container.orange-def2 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:left}.basic-yop-poll-container.orange-def .basic-answer{padding:0 0}.basic-yop-poll-container.orange-def .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-def .basic-vote-button{background-color:#ee7600;border-width:0;border-color:#000;border-radius:0;padding:5px 10px;color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-def .basic-vote-button:focus,.basic-yop-poll-container.orange-def .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-def .basic-vote{text-align:left}.basic-yop-poll-container.orange-def .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v3{background-color:#fff;border-width:1px;border-color:#fb6911;border-radius:0;padding:10px 10px}.basic-yop-poll-container.orange-v3 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v3 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v3 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v3 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#555;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v3 .basic-vote-button:focus,.basic-yop-poll-container.orange-v3 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v3 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v3 .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v2{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.orange-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v2 .basic-vote-button:focus,.basic-yop-poll-container.orange-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v2 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v2 .basic-question-title h5{background-color:#fb6911;padding:5px 0}.basic-yop-poll-container.orange-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v1{background-color:#fb6911;border-width:0;border-color:#fb6911;border-radius:0;padding:10px 10px}.basic-yop-poll-container.orange-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v1 .basic-vote-button:focus,.basic-yop-poll-container.orange-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v1 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v4{background-color:#fff;border-width:1px;border-color:#fb6911;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.orange-v4 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v4 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v4 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v4 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#555;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v4 .basic-vote-button:focus,.basic-yop-poll-container.orange-v4 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v4 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v4 .basic-vote-button{border-style:solid}.basic-yop-poll-container.orange-v5{background-color:#fb6911;border-width:0;border-color:#fb6911;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.orange-v5 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.orange-v5 .basic-answer{padding:0 0}.basic-yop-poll-container.orange-v5 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v5 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.orange-v5 .basic-vote-button:focus,.basic-yop-poll-container.orange-v5 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.orange-v5 .basic-vote{text-align:center}.basic-yop-poll-container.orange-v5 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v3{background-color:#fff;border-width:1px;border-color:#3f8b43;border-radius:0;padding:10px 10px}.basic-yop-poll-container.green-v3 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v3 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v3 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v3 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v3 .basic-vote-button:focus,.basic-yop-poll-container.green-v3 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v3 .basic-vote{text-align:center}.basic-yop-poll-container.green-v3 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v2{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.green-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v2 .basic-vote-button:focus,.basic-yop-poll-container.green-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v2 .basic-vote{text-align:center}.basic-yop-poll-container.green-v2 .basic-question-title h5{background-color:#3f8b43;padding:5px 0}.basic-yop-poll-container.green-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v1{background-color:#3f8b43;border-width:0;border-color:#3f8b43;border-radius:0;padding:10px 10px}.basic-yop-poll-container.green-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v1 .basic-vote-button:focus,.basic-yop-poll-container.green-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v1 .basic-vote{text-align:center}.basic-yop-poll-container.green-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v4{background-color:#fff;border-width:1px;border-color:#3f8b43;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.green-v4 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v4 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v4 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v4 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v4 .basic-vote-button:focus,.basic-yop-poll-container.green-v4 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v4 .basic-vote{text-align:center}.basic-yop-poll-container.green-v4 .basic-vote-button{border-style:solid}.basic-yop-poll-container.green-v5{background-color:#3f8b43;border-width:0;border-color:#3f8b43;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.green-v5 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.green-v5 .basic-answer{padding:0 0}.basic-yop-poll-container.green-v5 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v5 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.green-v5 .basic-vote-button:focus,.basic-yop-poll-container.green-v5 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.green-v5 .basic-vote{text-align:center}.basic-yop-poll-container.green-v5 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v3{background-color:#fff;border-width:1px;border-color:#b70004;border-radius:0;padding:10px 10px}.basic-yop-poll-container.red-v3 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v3 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v3 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v3 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v3 .basic-vote-button:focus,.basic-yop-poll-container.red-v3 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v3 .basic-vote{text-align:center}.basic-yop-poll-container.red-v3 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v2{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.red-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v2 .basic-vote-button:focus,.basic-yop-poll-container.red-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v2 .basic-vote{text-align:center}.basic-yop-poll-container.red-v2 .basic-question-title h5{background-color:#b70004;padding:5px 0}.basic-yop-poll-container.red-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v1{background-color:#b70004;border-width:0;border-color:#b70004;border-radius:0;padding:10px 10px}.basic-yop-poll-container.red-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v1 .basic-vote-button:focus,.basic-yop-poll-container.red-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v1 .basic-vote{text-align:center}.basic-yop-poll-container.red-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v4{background-color:#fff;border-width:1px;border-color:#b70004;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.red-v4 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v4 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v4 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v4 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v4 .basic-vote-button:focus,.basic-yop-poll-container.red-v4 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v4 .basic-vote{text-align:center}.basic-yop-poll-container.red-v4 .basic-vote-button{border-style:solid}.basic-yop-poll-container.red-v5{background-color:#b70004;border-width:0;border-color:#b70004;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.red-v5 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.red-v5 .basic-answer{padding:0 0}.basic-yop-poll-container.red-v5 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v5 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.red-v5 .basic-vote-button:focus,.basic-yop-poll-container.red-v5 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.red-v5 .basic-vote{text-align:center}.basic-yop-poll-container.red-v5 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v3{background-color:#fff;border-width:1px;border-color:#327bd6;border-radius:0;padding:10px 10px}.basic-yop-poll-container.blue-v3 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v3 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v3 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v3 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v3 .basic-vote-button:focus,.basic-yop-poll-container.blue-v3 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v3 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v3 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v2{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.blue-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v2 .basic-vote-button:focus,.basic-yop-poll-container.blue-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v2 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v2 .basic-question-title h5{background-color:#327bd6;padding:5px 0}.basic-yop-poll-container.blue-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v1{background-color:#327bd6;border-width:0;border-color:#327bd6;border-radius:0;padding:10px 10px}.basic-yop-poll-container.blue-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v1 .basic-vote-button:focus,.basic-yop-poll-container.blue-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v1 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v4{background-color:#fff;border-width:1px;border-color:#327bd6;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.blue-v4 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v4 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v4 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v4 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v4 .basic-vote-button:focus,.basic-yop-poll-container.blue-v4 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v4 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v4 .basic-vote-button{border-style:solid}.basic-yop-poll-container.blue-v5{background-color:#327bd6;border-width:0;border-color:#327bd6;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.blue-v5 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.blue-v5 .basic-answer{padding:0 0}.basic-yop-poll-container.blue-v5 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v5 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.blue-v5 .basic-vote-button:focus,.basic-yop-poll-container.blue-v5 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.blue-v5 .basic-vote{text-align:center}.basic-yop-poll-container.blue-v5 .basic-vote-button{border-style:solid}.basic-yop-poll-container.dark-v1{background-color:#555;border-width:0;border-color:#555;border-radius:0;padding:10px 10px}.basic-yop-poll-container.dark-v1 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.dark-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.dark-v1 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.dark-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.dark-v1 .basic-vote-button:focus,.basic-yop-poll-container.dark-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.dark-v1 .basic-vote{text-align:center}.basic-yop-poll-container.dark-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.grey{background-color:#eee;border-width:0;border-color:#eee;border-radius:0;padding:10px 10px}.basic-yop-poll-container.grey .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.grey .basic-answer{padding:0 0}.basic-yop-poll-container.grey .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.grey .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.grey .basic-vote-button:focus,.basic-yop-poll-container.grey .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.grey .basic-vote{text-align:center}.basic-yop-poll-container.grey .basic-vote-button{border-style:solid}.basic-yop-poll-container.white-v1{background-color:#fff;border-width:0;border-color:#fff;border-radius:0;padding:10px 10px}.basic-yop-poll-container.white-v1 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.white-v1 .basic-answer{padding:0 0}.basic-yop-poll-container.white-v1 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.white-v1 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.white-v1 .basic-vote-button:focus,.basic-yop-poll-container.white-v1 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.white-v1 .basic-vote{text-align:center}.basic-yop-poll-container.white-v1 .basic-vote-button{border-style:solid}.basic-yop-poll-container.dark-v2{background-color:#555;border-width:0;border-color:#555;border-radius:7px;padding:10px 10px}.basic-yop-poll-container.dark-v2 .basic-question-title h5{color:#fff;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.dark-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.dark-v2 .basic-answer .basic-text{color:#fff;font-size:14px;font-weight:400}.basic-yop-poll-container.dark-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.dark-v2 .basic-vote-button:focus,.basic-yop-poll-container.dark-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.dark-v2 .basic-vote{text-align:center}.basic-yop-poll-container.dark-v2 .basic-vote-button{border-style:solid}.basic-yop-poll-container.white-v2{background-color:#fff;border-width:1px;border-color:#000;border-radius:5px;padding:10px 10px}.basic-yop-poll-container.white-v2 .basic-question-title h5{color:#000;font-size:14px;font-weight:400;text-align:center}.basic-yop-poll-container.white-v2 .basic-answer{padding:0 0}.basic-yop-poll-container.white-v2 .basic-answer .basic-text{color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.white-v2 .basic-vote-button{background-color:#fff;border-width:1px;border-color:#000;border-radius:0;padding:5px 10px;color:#000;font-size:14px;font-weight:400}.basic-yop-poll-container.white-v2 .basic-vote-button:focus,.basic-yop-poll-container.white-v2 .basic-vote-button:hover{background-color:#fff;border-color:#000;color:#000}.basic-yop-poll-container.white-v2 .basic-vote{text-align:center}.basic-yop-poll-container.white-v2 .basic-vote-button{border-style:solid}.bootstrap-dialog .modal-header{border-top-left-radius:4px;border-top-right-radius:4px}.bootstrap-dialog .bootstrap-dialog-title{color:#fff;display:inline-block;font-size:16px}.bootstrap-dialog .bootstrap-dialog-message{font-size:14px}.bootstrap-dialog .bootstrap-dialog-button-icon{margin-right:3px}.bootstrap-dialog .bootstrap-dialog-close-button{font-size:20px;float:right;opacity:.9}.bootstrap-dialog .bootstrap-dialog-close-button:hover{cursor:pointer;opacity:1}.bootstrap-dialog.type-default .modal-header{background-color:#fff}.bootstrap-dialog.type-default .bootstrap-dialog-title{color:#333}.bootstrap-dialog.type-info .modal-header{background-color:#5bc0de}.bootstrap-dialog.type-primary .modal-header{background-color:#337ab7}.bootstrap-dialog.type-success .modal-header{background-color:#5cb85c}.bootstrap-dialog.type-warning .modal-header{background-color:#f0ad4e}.bootstrap-dialog.type-danger .modal-header{background-color:#d9534f}.bootstrap-dialog.size-large .bootstrap-dialog-title{font-size:24px}.bootstrap-dialog.size-large .bootstrap-dialog-close-button{font-size:30px}.bootstrap-dialog.size-large .bootstrap-dialog-message{font-size:18px}.bootstrap-dialog .icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.bootstrap-yop{/*!
2
* Bootstrap v3.0.3 (http://getbootstrap.com)
3
* Copyright 2013 Twitter, Inc.
4
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
admin/assets/js/{admin-6.1.4.min.js → admin-6.1.5.min.js} RENAMED
@@ -1 +1 @@
1
- if(!function(t){"function"==typeof define&&define.amd?define(["jquery","jquery-ui"],t):t(jQuery)}(function($){if($.ui.timepicker=$.ui.timepicker||{},!$.ui.timepicker.version){$.extend($.ui,{timepicker:{version:"1.6.3"}});var Timepicker=function(){this.regional=[],this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:!1},this._defaults={showButtonPanel:!0,timeOnly:!1,timeOnlyShowDate:!1,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:!0,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:!0,separator:" ",altFieldTimeOnly:!0,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:!0,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:!0,timezoneList:null,addSliderAccess:!1,sliderAccessArgs:null,controlType:"slider",oneLine:!1,defaultValue:null,parse:"strict",afterInject:null},$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(t){return extendRemove(this._defaults,t||{}),this},_newInst:function($input,opts){var tp_inst=new Timepicker,inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults)if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue)try{inlineSettings[attrName]=eval(attrValue)}catch(t){inlineSettings[attrName]=attrValue}}for(i in overrides={beforeShow:function(t,e){if($.isFunction(tp_inst._defaults.evnts.beforeShow))return tp_inst._defaults.evnts.beforeShow.call($input[0],t,e,tp_inst)},onChangeMonthYear:function(t,e,s){$.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)&&tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],t,e,s,tp_inst)},onClose:function(t,e){!0===tp_inst.timeDefined&&""!==$input.val()&&tp_inst._updateDateTime(e),$.isFunction(tp_inst._defaults.evnts.onClose)&&tp_inst._defaults.evnts.onClose.call($input[0],t,e,tp_inst)}},overrides)overrides.hasOwnProperty(i)&&(fns[i]=opts[i]||this._defaults[i]||null);tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst}),tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(t){return t.toUpperCase()}),tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(t){return t.toUpperCase()}),tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:"")),"string"==typeof tp_inst._defaults.controlType?("slider"===tp_inst._defaults.controlType&&void 0===$.ui.slider&&(tp_inst._defaults.controlType="select"),tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]):tp_inst.control=tp_inst._defaults.controlType;var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];null!==tp_inst._defaults.timezoneList&&(timezoneList=tp_inst._defaults.timezoneList);var tzl=timezoneList.length,tzi=0,tzv=null;if(0<tzl&&"object"!=typeof timezoneList[0])for(;tzi<tzl;tzi++)tzv=timezoneList[tzi],timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};return tp_inst._defaults.timezoneList=timezoneList,tp_inst.timezone=null!==tp_inst._defaults.timezone?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):-1*(new Date).getTimezoneOffset(),tp_inst.hour=tp_inst._defaults.hour<tp_inst._defaults.hourMin?tp_inst._defaults.hourMin:tp_inst._defaults.hour>tp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour,tp_inst.minute=tp_inst._defaults.minute<tp_inst._defaults.minuteMin?tp_inst._defaults.minuteMin:tp_inst._defaults.minute>tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute,tp_inst.second=tp_inst._defaults.second<tp_inst._defaults.secondMin?tp_inst._defaults.secondMin:tp_inst._defaults.second>tp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second,tp_inst.millisec=tp_inst._defaults.millisec<tp_inst._defaults.millisecMin?tp_inst._defaults.millisecMin:tp_inst._defaults.millisec>tp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec,tp_inst.microsec=tp_inst._defaults.microsec<tp_inst._defaults.microsecMin?tp_inst._defaults.microsecMin:tp_inst._defaults.microsec>tp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec,tp_inst.ampm="",tp_inst.$input=$input,tp_inst._defaults.altField&&(tp_inst.$altInput=$(tp_inst._defaults.altField),!0===tp_inst._defaults.altRedirectFocus&&tp_inst.$altInput.css({cursor:"pointer"}).focus(function(){$input.trigger("focus")})),0!==tp_inst._defaults.minDate&&0!==tp_inst._defaults.minDateTime||(tp_inst._defaults.minDate=new Date),0!==tp_inst._defaults.maxDate&&0!==tp_inst._defaults.maxDateTime||(tp_inst._defaults.maxDate=new Date),void 0!==tp_inst._defaults.minDate&&tp_inst._defaults.minDate instanceof Date&&(tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime())),void 0!==tp_inst._defaults.minDateTime&&tp_inst._defaults.minDateTime instanceof Date&&(tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime())),void 0!==tp_inst._defaults.maxDate&&tp_inst._defaults.maxDate instanceof Date&&(tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime())),void 0!==tp_inst._defaults.maxDateTime&&tp_inst._defaults.maxDateTime instanceof Date&&(tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime())),tp_inst.$input.bind("focus",function(){tp_inst._onFocus()}),tp_inst},_addTimePicker:function(t){var e=$.trim(this.$altInput&&this._defaults.altFieldTimeOnly?this.$input.val()+" "+this.$altInput.val():this.$input.val());this.timeDefined=this._parseTime(e),this._limitMinMaxDateTime(t,!1),this._injectTimePicker(),this._afterInject()},_parseTime:function(e,t){if(this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),t||!this._defaults.timeOnly){var s=$.datepicker._get(this.inst,"dateFormat");try{var a=parseDateTimeInternal(s,this._defaults.timeFormat,e,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!a.timeObj)return!1;$.extend(this,a.timeObj)}catch(t){return $.timepicker.log("Error parsing the date/time string: "+t+"\ndate/time string = "+e+"\ntimeFormat = "+this._defaults.timeFormat+"\ndateFormat = "+s),!1}return!0}var i=$.datepicker.parseTime(this._defaults.timeFormat,e,this._defaults);return!!i&&($.extend(this,i),!0)},_afterInject:function(){var t=this.inst.settings;$.isFunction(t.afterInject)&&t.afterInject.call(this)},_injectTimePicker:function(){var t=this.inst.dpDiv,e=this.inst.settings,o=this,l="",s="",a=null,i={},n={},r=null,c=0,d=0;if(0===t.find("div.ui-timepicker-div").length&&e.showTimepicker){var u=" ui_tpicker_unit_hide",p='<div class="ui-timepicker-div'+(e.isRTL?" ui-timepicker-rtl":"")+(e.oneLine&&"select"===e.controlType?" ui-timepicker-oneLine":"")+'"><dl><dt class="ui_tpicker_time_label'+(e.showTime?"":u)+'">'+e.timeText+'</dt><dd class="ui_tpicker_time '+(e.showTime?"":u)+'"><input class="ui_tpicker_time_input" '+(e.timeInput?"":"disabled")+"/></dd>";for(c=0,d=this.units.length;c<d;c++){if(a=null!==e["show"+(s=(l=this.units[c]).substr(0,1).toUpperCase()+l.substr(1))]?e["show"+s]:this.support[l],i[l]=parseInt(e[l+"Max"]-(e[l+"Max"]-e[l+"Min"])%e["step"+s],10),n[l]=0,p+='<dt class="ui_tpicker_'+l+"_label"+(a?"":u)+'">'+e[l+"Text"]+'</dt><dd class="ui_tpicker_'+l+(a?"":u)+'"><div class="ui_tpicker_'+l+"_slider"+(a?"":u)+'"></div>',a&&0<e[l+"Grid"]){if(p+='<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>',"hour"===l)for(var h=e[l+"Min"];h<=i[l];h+=parseInt(e[l+"Grid"],10)){n[l]++;var m=$.datepicker.formatTime(this.support.ampm?"hht":"HH",{hour:h},e);p+='<td data-for="'+l+'">'+m+"</td>"}else for(var f=e[l+"Min"];f<=i[l];f+=parseInt(e[l+"Grid"],10))n[l]++,p+='<td data-for="'+l+'">'+(f<10?"0":"")+f+"</td>";p+="</tr></table></div>"}p+="</dd>"}var g=null!==e.showTimezone?e.showTimezone:this.support.timezone;p+='<dt class="ui_tpicker_timezone_label'+(g?"":u)+'">'+e.timezoneText+"</dt>",p+='<dd class="ui_tpicker_timezone'+(g?"":u)+'"></dd>';var v=$(p+="</dl></div>");for(!0===e.timeOnly&&(v.prepend('<div class="ui-widget-header ui-helper-clearfix ui-corner-all"><div class="ui-datepicker-title">'+e.timeOnlyTitle+"</div></div>"),t.find(".ui-datepicker-header, .ui-datepicker-calendar").hide()),c=0,d=o.units.length;c<d;c++)a=null!==e["show"+(s=(l=o.units[c]).substr(0,1).toUpperCase()+l.substr(1))]?e["show"+s]:this.support[l],o[l+"_slider"]=o.control.create(o,v.find(".ui_tpicker_"+l+"_slider"),l,o[l],e[l+"Min"],i[l],e["step"+s]),a&&0<e[l+"Grid"]&&(r=100*n[l]*e[l+"Grid"]/(i[l]-e[l+"Min"]),v.find(".ui_tpicker_"+l+" table").css({width:r+"%",marginLeft:e.isRTL?"0":r/(-2*n[l])+"%",marginRight:e.isRTL?r/(-2*n[l])+"%":"0",borderCollapse:"collapse"}).find("td").click(function(t){var e=$(this),s=e.html(),a=parseInt(s.replace(/[^0-9]/g),10),i=s.replace(/[^apm]/gi),n=e.data("for");"hour"===n&&(-1!==i.indexOf("p")&&a<12?a+=12:-1!==i.indexOf("a")&&12===a&&(a=0)),o.control.value(o,o[n+"_slider"],l,a),o._onTimeChange(),o._onSelectHandler()}).css({cursor:"pointer",width:100/n[l]+"%",textAlign:"center",overflow:"hidden"}));if(this.timezone_select=v.find(".ui_tpicker_timezone").append("<select></select>").find("select"),$.fn.append.apply(this.timezone_select,$.map(e.timezoneList,function(t,e){return $("<option />").val("object"==typeof t?t.value:t).text("object"==typeof t?t.label:t)})),void 0!==this.timezone&&null!==this.timezone&&""!==this.timezone)-1*new Date(this.inst.selectedYear,this.inst.selectedMonth,this.inst.selectedDay,12).getTimezoneOffset()===this.timezone?selectLocalTimezone(o):this.timezone_select.val(this.timezone);else void 0!==this.hour&&null!==this.hour&&""!==this.hour?this.timezone_select.val(e.timezone):selectLocalTimezone(o);this.timezone_select.change(function(){o._onTimeChange(),o._onSelectHandler(),o._afterInject()});var b=t.find(".ui-datepicker-buttonpane");if(b.length?b.before(v):t.append(v),this.$timeObj=v.find(".ui_tpicker_time_input"),this.$timeObj.change(function(){var t=o.inst.settings.timeFormat,e=$.datepicker.parseTime(t,this.value),s=new Date;e?(s.setHours(e.hour),s.setMinutes(e.minute),s.setSeconds(e.second),$.datepicker._setTime(o.inst,s)):(this.value=o.formattedTime,this.blur())}),null!==this.inst){var y=this.timeDefined;this._onTimeChange(),this.timeDefined=y}if(this._defaults.addSliderAccess){var w=this._defaults.sliderAccessArgs,k=this._defaults.isRTL;w.isRTL=k,setTimeout(function(){if(0===v.find(".ui-slider-access").length){v.find(".ui-slider:visible").sliderAccess(w);var o=v.find(".ui-slider-access:eq(0)").outerWidth(!0);o&&v.find("table:visible").each(function(){var t=$(this),e=t.outerWidth(),s=t.css(k?"marginRight":"marginLeft").toString().replace("%",""),a=e-o,i=s*a/e+"%",n={width:a,marginRight:0,marginLeft:0};n[k?"marginRight":"marginLeft"]=i,t.css(n)})}},10)}o._limitMinMaxDateTime(this.inst,!0)}},_limitMinMaxDateTime:function(t,e){var s=this._defaults,a=new Date(t.selectedYear,t.selectedMonth,t.selectedDay);if(this._defaults.showTimepicker){if(null!==$.datepicker._get(t,"minDateTime")&&void 0!==$.datepicker._get(t,"minDateTime")&&a){var i=$.datepicker._get(t,"minDateTime"),n=new Date(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0,0);null!==this.hourMinOriginal&&null!==this.minuteMinOriginal&&null!==this.secondMinOriginal&&null!==this.millisecMinOriginal&&null!==this.microsecMinOriginal||(this.hourMinOriginal=s.hourMin,this.minuteMinOriginal=s.minuteMin,this.secondMinOriginal=s.secondMin,this.millisecMinOriginal=s.millisecMin,this.microsecMinOriginal=s.microsecMin),t.settings.timeOnly||n.getTime()===a.getTime()?(this._defaults.hourMin=i.getHours(),this.hour<=this._defaults.hourMin?(this.hour=this._defaults.hourMin,this._defaults.minuteMin=i.getMinutes(),this.minute<=this._defaults.minuteMin?(this.minute=this._defaults.minuteMin,this._defaults.secondMin=i.getSeconds(),this.second<=this._defaults.secondMin?(this.second=this._defaults.secondMin,this._defaults.millisecMin=i.getMilliseconds(),this.millisec<=this._defaults.millisecMin?(this.millisec=this._defaults.millisecMin,this._defaults.microsecMin=i.getMicroseconds()):(this.microsec<this._defaults.microsecMin&&(this.microsec=this._defaults.microsecMin),this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.minuteMin=this.minuteMinOriginal,this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.hourMin=this.hourMinOriginal,this._defaults.minuteMin=this.minuteMinOriginal,this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)}if(null!==$.datepicker._get(t,"maxDateTime")&&void 0!==$.datepicker._get(t,"maxDateTime")&&a){var o=$.datepicker._get(t,"maxDateTime"),l=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0,0);null!==this.hourMaxOriginal&&null!==this.minuteMaxOriginal&&null!==this.secondMaxOriginal&&null!==this.millisecMaxOriginal||(this.hourMaxOriginal=s.hourMax,this.minuteMaxOriginal=s.minuteMax,this.secondMaxOriginal=s.secondMax,this.millisecMaxOriginal=s.millisecMax,this.microsecMaxOriginal=s.microsecMax),t.settings.timeOnly||l.getTime()===a.getTime()?(this._defaults.hourMax=o.getHours(),this.hour>=this._defaults.hourMax?(this.hour=this._defaults.hourMax,this._defaults.minuteMax=o.getMinutes(),this.minute>=this._defaults.minuteMax?(this.minute=this._defaults.minuteMax,this._defaults.secondMax=o.getSeconds(),this.second>=this._defaults.secondMax?(this.second=this._defaults.secondMax,this._defaults.millisecMax=o.getMilliseconds(),this.millisec>=this._defaults.millisecMax?(this.millisec=this._defaults.millisecMax,this._defaults.microsecMax=o.getMicroseconds()):(this.microsec>this._defaults.microsecMax&&(this.microsec=this._defaults.microsecMax),this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.minuteMax=this.minuteMaxOriginal,this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.hourMax=this.hourMaxOriginal,this._defaults.minuteMax=this.minuteMaxOriginal,this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)}if(null!==t.settings.minTime){var r=new Date("01/01/1970 "+t.settings.minTime);this.hour<r.getHours()?(this.hour=this._defaults.hourMin=r.getHours(),this.minute=this._defaults.minuteMin=r.getMinutes()):this.hour===r.getHours()&&this.minute<r.getMinutes()?this.minute=this._defaults.minuteMin=r.getMinutes():this._defaults.hourMin<r.getHours()?(this._defaults.hourMin=r.getHours(),this._defaults.minuteMin=r.getMinutes()):this._defaults.hourMin===r.getHours()===this.hour&&this._defaults.minuteMin<r.getMinutes()?this._defaults.minuteMin=r.getMinutes():this._defaults.minuteMin=0}if(null!==t.settings.maxTime){var c=new Date("01/01/1970 "+t.settings.maxTime);this.hour>c.getHours()?(this.hour=this._defaults.hourMax=c.getHours(),this.minute=this._defaults.minuteMax=c.getMinutes()):this.hour===c.getHours()&&this.minute>c.getMinutes()?this.minute=this._defaults.minuteMax=c.getMinutes():this._defaults.hourMax>c.getHours()?(this._defaults.hourMax=c.getHours(),this._defaults.minuteMax=c.getMinutes()):this._defaults.hourMax===c.getHours()===this.hour&&this._defaults.minuteMax>c.getMinutes()?this._defaults.minuteMax=c.getMinutes():this._defaults.minuteMax=59}if(void 0!==e&&!0===e){var d=parseInt(this._defaults.hourMax-(this._defaults.hourMax-this._defaults.hourMin)%this._defaults.stepHour,10),u=parseInt(this._defaults.minuteMax-(this._defaults.minuteMax-this._defaults.minuteMin)%this._defaults.stepMinute,10),p=parseInt(this._defaults.secondMax-(this._defaults.secondMax-this._defaults.secondMin)%this._defaults.stepSecond,10),h=parseInt(this._defaults.millisecMax-(this._defaults.millisecMax-this._defaults.millisecMin)%this._defaults.stepMillisec,10),m=parseInt(this._defaults.microsecMax-(this._defaults.microsecMax-this._defaults.microsecMin)%this._defaults.stepMicrosec,10);this.hour_slider&&(this.control.options(this,this.hour_slider,"hour",{min:this._defaults.hourMin,max:d,step:this._defaults.stepHour}),this.control.value(this,this.hour_slider,"hour",this.hour-this.hour%this._defaults.stepHour)),this.minute_slider&&(this.control.options(this,this.minute_slider,"minute",{min:this._defaults.minuteMin,max:u,step:this._defaults.stepMinute}),this.control.value(this,this.minute_slider,"minute",this.minute-this.minute%this._defaults.stepMinute)),this.second_slider&&(this.control.options(this,this.second_slider,"second",{min:this._defaults.secondMin,max:p,step:this._defaults.stepSecond}),this.control.value(this,this.second_slider,"second",this.second-this.second%this._defaults.stepSecond)),this.millisec_slider&&(this.control.options(this,this.millisec_slider,"millisec",{min:this._defaults.millisecMin,max:h,step:this._defaults.stepMillisec}),this.control.value(this,this.millisec_slider,"millisec",this.millisec-this.millisec%this._defaults.stepMillisec)),this.microsec_slider&&(this.control.options(this,this.microsec_slider,"microsec",{min:this._defaults.microsecMin,max:m,step:this._defaults.stepMicrosec}),this.control.value(this,this.microsec_slider,"microsec",this.microsec-this.microsec%this._defaults.stepMicrosec))}}},_onTimeChange:function(){if(this._defaults.showTimepicker){var t=!!this.hour_slider&&this.control.value(this,this.hour_slider,"hour"),e=!!this.minute_slider&&this.control.value(this,this.minute_slider,"minute"),s=!!this.second_slider&&this.control.value(this,this.second_slider,"second"),a=!!this.millisec_slider&&this.control.value(this,this.millisec_slider,"millisec"),i=!!this.microsec_slider&&this.control.value(this,this.microsec_slider,"microsec"),n=!!this.timezone_select&&this.timezone_select.val(),o=this._defaults,l=o.pickerTimeFormat||o.timeFormat,r=o.pickerTimeSuffix||o.timeSuffix;"object"==typeof t&&(t=!1),"object"==typeof e&&(e=!1),"object"==typeof s&&(s=!1),"object"==typeof a&&(a=!1),"object"==typeof i&&(i=!1),"object"==typeof n&&(n=!1),!1!==t&&(t=parseInt(t,10)),!1!==e&&(e=parseInt(e,10)),!1!==s&&(s=parseInt(s,10)),!1!==a&&(a=parseInt(a,10)),!1!==i&&(i=parseInt(i,10)),!1!==n&&(n=n.toString());var c=o[t<12?"amNames":"pmNames"][0],d=t!==parseInt(this.hour,10)||e!==parseInt(this.minute,10)||s!==parseInt(this.second,10)||a!==parseInt(this.millisec,10)||i!==parseInt(this.microsec,10)||0<this.ampm.length&&t<12!=(-1!==$.inArray(this.ampm.toUpperCase(),this.amNames))||null!==this.timezone&&n!==this.timezone.toString();if(d&&(!1!==t&&(this.hour=t),!1!==e&&(this.minute=e),!1!==s&&(this.second=s),!1!==a&&(this.millisec=a),!1!==i&&(this.microsec=i),!1!==n&&(this.timezone=n),this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),this._limitMinMaxDateTime(this.inst,!0)),this.support.ampm&&(this.ampm=c),this.formattedTime=$.datepicker.formatTime(o.timeFormat,this,o),this.$timeObj&&(l===o.timeFormat?this.$timeObj.val(this.formattedTime+r):this.$timeObj.val($.datepicker.formatTime(l,this,o)+r),this.$timeObj[0].setSelectionRange)){var u=this.$timeObj[0].selectionStart,p=this.$timeObj[0].selectionEnd;this.$timeObj[0].setSelectionRange(u,p)}this.timeDefined=!0,d&&this._updateDateTime()}},_onSelectHandler:function(){var t=this._defaults.onSelect||this.inst.settings.onSelect,e=this.$input?this.$input[0]:null;t&&e&&t.apply(e,[this.formattedDateTime,this])},_updateDateTime:function(t){var e=0<(t=this.inst||t).currentYear?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(t.selectedYear,t.selectedMonth,t.selectedDay),s=$.datepicker._daylightSavingAdjust(e),a=$.datepicker._get(t,"dateFormat"),i=$.datepicker._getFormatConfig(t),n=null!==s&&this.timeDefined;this.formattedDate=$.datepicker.formatDate(a,null===s?new Date:s,i);var o=this.formattedDate;if(""===t.lastVal&&(t.currentYear=t.selectedYear,t.currentMonth=t.selectedMonth,t.currentDay=t.selectedDay),!0===this._defaults.timeOnly&&!1===this._defaults.timeOnlyShowDate?o=this.formattedTime:(!0!==this._defaults.timeOnly&&(this._defaults.alwaysSetTime||n)||!0===this._defaults.timeOnly&&!0===this._defaults.timeOnlyShowDate)&&(o+=this._defaults.separator+this.formattedTime+this._defaults.timeSuffix),this.formattedDateTime=o,this._defaults.showTimepicker)if(this.$altInput&&!1===this._defaults.timeOnly&&!0===this._defaults.altFieldTimeOnly)this.$altInput.val(this.formattedTime),this.$input.val(this.formattedDate);else if(this.$altInput){this.$input.val(o);var l="",r=null!==this._defaults.altSeparator?this._defaults.altSeparator:this._defaults.separator,c=null!==this._defaults.altTimeSuffix?this._defaults.altTimeSuffix:this._defaults.timeSuffix;this._defaults.timeOnly||(l=this._defaults.altFormat?$.datepicker.formatDate(this._defaults.altFormat,null===s?new Date:s,i):this.formattedDate)&&(l+=r),null!==this._defaults.altTimeFormat?l+=$.datepicker.formatTime(this._defaults.altTimeFormat,this,this._defaults)+c:l+=this.formattedTime+c,this.$altInput.val(l)}else this.$input.val(o);else this.$input.val(this.formattedDate);this.$input.trigger("change")},_onFocus:function(){if(!this.$input.val()&&this._defaults.defaultValue){this.$input.val(this._defaults.defaultValue);var t=$.datepicker._getInst(this.$input.get(0)),e=$.datepicker._get(t,"timepicker");if(e&&e._defaults.timeOnly&&t.input.val()!==t.lastVal)try{$.datepicker._updateDatepicker(t)}catch(t){$.timepicker.log(t)}}},_controls:{slider:{create:function(s,t,a,e,i,n,o){var l=s._defaults.isRTL;return t.prop("slide",null).slider({orientation:"horizontal",value:l?-1*e:e,min:l?-1*n:i,max:l?-1*i:n,step:o,slide:function(t,e){s.control.value(s,$(this),a,l?-1*e.value:e.value),s._onTimeChange()},stop:function(t,e){s._onSelectHandler()}})},options:function(t,e,s,a,i){if(t._defaults.isRTL){if("string"==typeof a)return"min"===a||"max"===a?void 0!==i?e.slider(a,-1*i):Math.abs(e.slider(a)):e.slider(a);var n=a.min,o=a.max;return a.min=a.max=null,void 0!==n&&(a.max=-1*n),void 0!==o&&(a.min=-1*o),e.slider(a)}return"string"==typeof a&&void 0!==i?e.slider(a,i):e.slider(a)},value:function(t,e,s,a){return t._defaults.isRTL?void 0!==a?e.slider("value",-1*a):Math.abs(e.slider("value")):void 0!==a?e.slider("value",a):e.slider("value")}},select:{create:function(e,t,s,a,i,n,o){for(var l='<select class="ui-timepicker-select ui-state-default ui-corner-all" data-unit="'+s+'" data-min="'+i+'" data-max="'+n+'" data-step="'+o+'">',r=e._defaults.pickerTimeFormat||e._defaults.timeFormat,c=i;c<=n;c+=o)l+='<option value="'+c+'"'+(c===a?" selected":"")+">",l+="hour"===s?$.datepicker.formatTime($.trim(r.replace(/[^ht ]/gi,"")),{hour:c},e._defaults):"millisec"===s||"microsec"===s||10<=c?c:"0"+c.toString(),l+="</option>";return l+="</select>",t.children("select").remove(),$(l).appendTo(t).change(function(t){e._onTimeChange(),e._onSelectHandler(),e._afterInject()}),t},options:function(t,e,s,a,i){var n={},o=e.children("select");if("string"==typeof a){if(void 0===i)return o.data(a);n[a]=i}else n=a;return t.control.create(t,e,o.data("unit"),o.val(),0<=n.min?n.min:o.data("min"),n.max||o.data("max"),n.step||o.data("step"))},value:function(t,e,s,a){var i=e.children("select");return void 0!==a?i.val(a):i.val()}}}}),$.fn.extend({timepicker:function(t){t=t||{};var e=Array.prototype.slice.call(arguments);return"object"==typeof t&&(e[0]=$.extend(t,{timeOnly:!0})),$(this).each(function(){$.fn.datetimepicker.apply($(this),e)})},datetimepicker:function(e){var s=arguments;return"string"==typeof(e=e||{})?"getDate"===e||"option"===e&&2===s.length&&"string"==typeof s[1]?$.fn.datepicker.apply($(this[0]),s):this.each(function(){var t=$(this);t.datepicker.apply(t,s)}):this.each(function(){var t=$(this);t.datepicker($.timepicker._newInst(t,e)._defaults)})}}),$.datepicker.parseDateTime=function(t,e,s,a,i){var n=parseDateTimeInternal(t,e,s,a,i);if(n.timeObj){var o=n.timeObj;n.date.setHours(o.hour,o.minute,o.second,o.millisec),n.date.setMicroseconds(o.microsec)}return n.date},$.datepicker.parseTime=function(t,e,s){function i(t,e,s){var a,i="^"+t.toString().replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(t){var e=t.length;switch(t.charAt(0).toLowerCase()){case"h":case"m":case"s":return 1===e?"(\\d?\\d)":"(\\d{"+e+"})";case"l":case"c":return"(\\d?\\d?\\d)";case"z":return"(z|[-+]\\d\\d:?\\d\\d|\\S+)?";case"t":return function(t,e){var s=[];return t&&$.merge(s,t),e&&$.merge(s,e),"("+(s=$.map(s,function(t){return t.replace(/[.*+?|()\[\]{}\\]/g,"\\amp;")})).join("|")+")?"}(s.amNames,s.pmNames);default:return"("+t.replace(/\'/g,"").replace(/(\.|\$|\^|\\|\/|\(|\)|\[|\]|\?|\+|\*)/g,function(t){return"\\"+t})+")?"}}).replace(/\s/g,"\\s?")+s.timeSuffix+"quot;,n=function(t){var e=t.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),s={h:-1,m:-1,s:-1,l:-1,c:-1,t:-1,z:-1};if(e)for(var a=0;a<e.length;a++)-1===s[e[a].toString().charAt(0)]&&(s[e[a].toString().charAt(0)]=a+1);return s}(t),o="",l={hour:0,minute:0,second:0,millisec:0,microsec:0};return!!(a=e.match(new RegExp(i,"i")))&&(-1!==n.t&&(void 0===a[n.t]||0===a[n.t].length?(o="",l.ampm=""):(o=-1!==$.inArray(a[n.t].toUpperCase(),$.map(s.amNames,function(t,e){return t.toUpperCase()}))?"AM":"PM",l.ampm=s["AM"===o?"amNames":"pmNames"][0])),-1!==n.h&&("AM"===o&&"12"===a[n.h]?l.hour=0:"PM"===o&&"12"!==a[n.h]?l.hour=parseInt(a[n.h],10)+12:l.hour=Number(a[n.h])),-1!==n.m&&(l.minute=Number(a[n.m])),-1!==n.s&&(l.second=Number(a[n.s])),-1!==n.l&&(l.millisec=Number(a[n.l])),-1!==n.c&&(l.microsec=Number(a[n.c])),-1!==n.z&&void 0!==a[n.z]&&(l.timezone=$.timepicker.timezoneOffsetNumber(a[n.z])),l)}var a=extendRemove(extendRemove({},$.timepicker._defaults),s||{});t.replace(/\'.*?\'/g,"").indexOf("Z");return"function"==typeof a.parse?a.parse(t,e,a):"loose"===a.parse?function(e,s,a){try{var t=new Date("2012-01-01 "+s);if(isNaN(t.getTime())&&(t=new Date("2012-01-01T"+s),isNaN(t.getTime())&&(t=new Date("01/01/2012 "+s),isNaN(t.getTime()))))throw"Unable to parse time with native Date: "+s;return{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisec:t.getMilliseconds(),microsec:t.getMicroseconds(),timezone:-1*t.getTimezoneOffset()}}catch(t){try{return i(e,s,a)}catch(t){$.timepicker.log("Unable to parse \ntimeString: "+s+"\ntimeFormat: "+e)}}return!1}(t,e,a):i(t,e,a)},$.datepicker.formatTime=function(t,e,s){s=s||{},s=$.extend({},$.timepicker._defaults,s),e=$.extend({hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null},e);var a=t,i=s.amNames[0],n=parseInt(e.hour,10);return 11<n&&(i=s.pmNames[0]),a=a.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(t){switch(t){case"HH":return("0"+n).slice(-2);case"H":return n;case"hh":return("0"+convert24to12(n)).slice(-2);case"h":return convert24to12(n);case"mm":return("0"+e.minute).slice(-2);case"m":return e.minute;case"ss":return("0"+e.second).slice(-2);case"s":return e.second;case"l":return("00"+e.millisec).slice(-3);case"c":return("00"+e.microsec).slice(-3);case"z":return $.timepicker.timezoneOffsetString(null===e.timezone?s.timezone:e.timezone,!1);case"Z":return $.timepicker.timezoneOffsetString(null===e.timezone?s.timezone:e.timezone,!0);case"T":return i.charAt(0).toUpperCase();case"TT":return i.toUpperCase();case"t":return i.charAt(0).toLowerCase();case"tt":return i.toLowerCase();default:return t.replace(/'/g,"")}})},$.datepicker._base_selectDate=$.datepicker._selectDate,$.datepicker._selectDate=function(t,e){var s,a=this._getInst($(t)[0]),i=this._get(a,"timepicker");i&&a.settings.showTimepicker?(i._limitMinMaxDateTime(a,!0),s=a.inline,a.inline=a.stay_open=!0,this._base_selectDate(t,e),a.inline=s,a.stay_open=!1,this._notifyChange(a),this._updateDatepicker(a)):this._base_selectDate(t,e)},$.datepicker._base_updateDatepicker=$.datepicker._updateDatepicker,$.datepicker._updateDatepicker=function(t){var e=t.input[0];if(!($.datepicker._curInst&&$.datepicker._curInst!==t&&$.datepicker._datepickerShowing&&$.datepicker._lastInput!==e||"boolean"==typeof t.stay_open&&!1!==t.stay_open)){this._base_updateDatepicker(t);var s=this._get(t,"timepicker");s&&s._addTimePicker(t)}},$.datepicker._base_doKeyPress=$.datepicker._doKeyPress,$.datepicker._doKeyPress=function(t){var e=$.datepicker._getInst(t.target),s=$.datepicker._get(e,"timepicker");if(s&&$.datepicker._get(e,"constrainInput")){var a=s.support.ampm,i=null!==s._defaults.showTimezone?s._defaults.showTimezone:s.support.timezone,n=$.datepicker._possibleChars($.datepicker._get(e,"dateFormat")),o=s._defaults.timeFormat.toString().replace(/[hms]/g,"").replace(/TT/g,a?"APM":"").replace(/Tt/g,a?"AaPpMm":"").replace(/tT/g,a?"AaPpMm":"").replace(/T/g,a?"AP":"").replace(/tt/g,a?"apm":"").replace(/t/g,a?"ap":"")+" "+s._defaults.separator+s._defaults.timeSuffix+(i?s._defaults.timezoneList.join(""):"")+s._defaults.amNames.join("")+s._defaults.pmNames.join("")+n,l=String.fromCharCode(void 0===t.charCode?t.keyCode:t.charCode);return t.ctrlKey||l<" "||!n||-1<o.indexOf(l)}return $.datepicker._base_doKeyPress(t)},$.datepicker._base_updateAlternate=$.datepicker._updateAlternate,$.datepicker._updateAlternate=function(t){var e=this._get(t,"timepicker");if(e){var s=e._defaults.altField;if(s){e._defaults.altFormat||e._defaults.dateFormat;var a=this._getDate(t),i=$.datepicker._getFormatConfig(t),n="",o=e._defaults.altSeparator?e._defaults.altSeparator:e._defaults.separator,l=e._defaults.altTimeSuffix?e._defaults.altTimeSuffix:e._defaults.timeSuffix,r=null!==e._defaults.altTimeFormat?e._defaults.altTimeFormat:e._defaults.timeFormat;n+=$.datepicker.formatTime(r,e,e._defaults)+l,e._defaults.timeOnly||e._defaults.altFieldTimeOnly||null===a||(n=e._defaults.altFormat?$.datepicker.formatDate(e._defaults.altFormat,a,i)+o+n:e.formattedDate+o+n),$(s).val(t.input.val()?n:"")}}else $.datepicker._base_updateAlternate(t)},$.datepicker._base_doKeyUp=$.datepicker._doKeyUp,$.datepicker._doKeyUp=function(t){var e=$.datepicker._getInst(t.target),s=$.datepicker._get(e,"timepicker");if(s&&s._defaults.timeOnly&&e.input.val()!==e.lastVal)try{$.datepicker._updateDatepicker(e)}catch(t){$.timepicker.log(t)}return $.datepicker._base_doKeyUp(t)},$.datepicker._base_gotoToday=$.datepicker._gotoToday,$.datepicker._gotoToday=function(t){var e=this._getInst($(t)[0]);this._base_gotoToday(t);var s=this._get(e,"timepicker");if(s){var a=$.timepicker.timezoneOffsetNumber(s.timezone),i=new Date;i.setMinutes(i.getMinutes()+i.getTimezoneOffset()+parseInt(a,10)),this._setTime(e,i),this._setDate(e,i),s._onSelectHandler()}},$.datepicker._disableTimepickerDatepicker=function(t){var e=this._getInst(t);if(e){var s=this._get(e,"timepicker");$(t).datepicker("getDate"),s&&(e.settings.showTimepicker=!1,s._defaults.showTimepicker=!1,s._updateDateTime(e))}},$.datepicker._enableTimepickerDatepicker=function(t){var e=this._getInst(t);if(e){var s=this._get(e,"timepicker");$(t).datepicker("getDate"),s&&(e.settings.showTimepicker=!0,s._defaults.showTimepicker=!0,s._addTimePicker(e),s._updateDateTime(e))}},$.datepicker._setTime=function(t,e){var s=this._get(t,"timepicker");if(s){var a=s._defaults;s.hour=e?e.getHours():a.hour,s.minute=e?e.getMinutes():a.minute,s.second=e?e.getSeconds():a.second,s.millisec=e?e.getMilliseconds():a.millisec,s.microsec=e?e.getMicroseconds():a.microsec,s._limitMinMaxDateTime(t,!0),s._onTimeChange(),s._updateDateTime(t)}},$.datepicker._setTimeDatepicker=function(t,e,s){var a=this._getInst(t);if(a){var i,n=this._get(a,"timepicker");if(n)this._setDateFromField(a),e&&("string"==typeof e?(n._parseTime(e,s),(i=new Date).setHours(n.hour,n.minute,n.second,n.millisec),i.setMicroseconds(n.microsec)):(i=new Date(e.getTime())).setMicroseconds(e.getMicroseconds()),"Invalid Date"===i.toString()&&(i=void 0),this._setTime(a,i))}},$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker,$.datepicker._setDateDatepicker=function(t,e){var s=this._getInst(t),a=e;if(s){"string"==typeof e&&((a=new Date(e)).getTime()||(this._base_setDateDatepicker.apply(this,arguments),a=$(t).datepicker("getDate")));var i,n=this._get(s,"timepicker");a instanceof Date?(i=new Date(a.getTime())).setMicroseconds(a.getMicroseconds()):i=a,n&&i&&(n.support.timezone||null!==n._defaults.timezone||(n.timezone=-1*i.getTimezoneOffset()),a=$.timepicker.timezoneAdjust(a,$.timepicker.timezoneOffsetString(-a.getTimezoneOffset()),n.timezone),i=$.timepicker.timezoneAdjust(i,$.timepicker.timezoneOffsetString(-i.getTimezoneOffset()),n.timezone)),this._updateDatepicker(s),this._base_setDateDatepicker.apply(this,arguments),this._setTimeDatepicker(t,i,!0)}},$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker,$.datepicker._getDateDatepicker=function(t,e){var s=this._getInst(t);if(s){var a=this._get(s,"timepicker");if(a){void 0===s.lastVal&&this._setDateFromField(s,e);var i=this._getDate(s),n=null;return n=a.$altInput&&a._defaults.altFieldTimeOnly?a.$input.val()+" "+a.$altInput.val():"INPUT"!==a.$input.get(0).tagName&&a.$altInput?a.$altInput.val():a.$input.val(),i&&a._parseTime(n,!s.settings.timeOnly)&&(i.setHours(a.hour,a.minute,a.second,a.millisec),i.setMicroseconds(a.microsec),null!=a.timezone&&(a.support.timezone||null!==a._defaults.timezone||(a.timezone=-1*i.getTimezoneOffset()),i=$.timepicker.timezoneAdjust(i,a.timezone,$.timepicker.timezoneOffsetString(-i.getTimezoneOffset())))),i}return this._base_getDateDatepicker(t,e)}},$.datepicker._base_parseDate=$.datepicker.parseDate,$.datepicker.parseDate=function(e,s,a){var i;try{i=this._base_parseDate(e,s,a)}catch(t){if(!(0<=t.indexOf(":")))throw t;i=this._base_parseDate(e,s.substring(0,s.length-(t.length-t.indexOf(":")-2)),a),$.timepicker.log("Error parsing the date string: "+t+"\ndate string = "+s+"\ndate format = "+e)}return i},$.datepicker._base_formatDate=$.datepicker._formatDate,$.datepicker._formatDate=function(t,e,s,a){var i=this._get(t,"timepicker");return i?(i._updateDateTime(t),i.$input.val()):this._base_formatDate(t)},$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker,$.datepicker._optionDatepicker=function(t,e,s){var a,i=this._getInst(t);if(!i)return null;var n=this._get(i,"timepicker");if(n){var o,l,r,c,d=null,u=null,p=null,h=n._defaults.evnts,m={};if("string"==typeof e){if("minDate"===e||"minDateTime"===e)d=s;else if("maxDate"===e||"maxDateTime"===e)u=s;else if("onSelect"===e)p=s;else if(h.hasOwnProperty(e)){if(void 0===s)return h[e];m[e]=s,a={}}}else if("object"==typeof e)for(o in e.minDate?d=e.minDate:e.minDateTime?d=e.minDateTime:e.maxDate?u=e.maxDate:e.maxDateTime&&(u=e.maxDateTime),h)h.hasOwnProperty(o)&&e[o]&&(m[o]=e[o]);for(o in m)m.hasOwnProperty(o)&&(h[o]=m[o],delete(a=a||$.extend({},e))[o]);if(a&&isEmptyObject(a))return;if(d?(d=0===d?new Date:new Date(d),n._defaults.minDate=d,n._defaults.minDateTime=d):u?(u=0===u?new Date:new Date(u),n._defaults.maxDate=u,n._defaults.maxDateTime=u):p&&(n._defaults.onSelect=p),d||u)return r=(c=$(t)).datetimepicker("getDate"),l=this._base_optionDatepicker.call($.datepicker,t,a||e,s),c.datetimepicker("setDate",r),l}return void 0===s?this._base_optionDatepicker.call($.datepicker,t,e):this._base_optionDatepicker.call($.datepicker,t,a||e,s)};var isEmptyObject=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},extendRemove=function(t,e){for(var s in $.extend(t,e),e)null!==e[s]&&void 0!==e[s]||(t[s]=e[s]);return t},detectSupport=function(t){function e(t,e){return-1!==t.indexOf(e)}var s=t.replace(/'.*?'/g,"").toLowerCase();return{hour:e(s,"h"),minute:e(s,"m"),second:e(s,"s"),millisec:e(s,"l"),microsec:e(s,"c"),timezone:e(s,"z"),ampm:e(s,"t")&&e(t,"h"),iso8601:e(t,"Z")}},convert24to12=function(t){return 0===(t%=12)&&(t=12),String(t)},computeEffectiveSetting=function(t,e){return t&&t[e]?t[e]:$.timepicker._defaults[e]},splitDateTime=function(t,e){var s=computeEffectiveSetting(e,"separator"),a=computeEffectiveSetting(e,"timeFormat").split(s).length,i=t.split(s),n=i.length;return 1<n?{dateString:i.splice(0,n-a).join(s),timeString:i.splice(0,a).join(s)}:{dateString:t,timeString:""}},parseDateTimeInternal=function(t,e,s,a,i){var n,o,l;if(o=splitDateTime(s,i),n=$.datepicker._base_parseDate(t,o.dateString,a),""===o.timeString)return{date:n};if(!(l=$.datepicker.parseTime(e,o.timeString,i)))throw"Wrong time format";return{date:n,timeObj:l}},selectLocalTimezone=function(t,e){if(t&&t.timezone_select){var s=e||new Date;t.timezone_select.val(-s.getTimezoneOffset())}};$.timepicker=new Timepicker,$.timepicker.timezoneOffsetString=function(t,e){if(isNaN(t)||840<t||t<-720)return t;var s=t%60,a=(t-s)/60,i=e?":":"",n=(0<=t?"+":"-")+("0"+Math.abs(a)).slice(-2)+i+("0"+Math.abs(s)).slice(-2);return"+00:00"==n?"Z":n},$.timepicker.timezoneOffsetNumber=function(t){var e=t.toString().replace(":","");return"Z"===e.toUpperCase()?0:/^(\-|\+)\d{4}#x2F;.test(e)?("-"===e.substr(0,1)?-1:1)*(60*parseInt(e.substr(1,2),10)+parseInt(e.substr(3,2),10)):parseInt(t,10)},$.timepicker.timezoneAdjust=function(t,e,s){var a=$.timepicker.timezoneOffsetNumber(e),i=$.timepicker.timezoneOffsetNumber(s);return isNaN(i)||t.setMinutes(t.getMinutes()+-a- -i),t},$.timepicker.timeRange=function(t,e,s){return $.timepicker.handleRange("timepicker",t,e,s)},$.timepicker.datetimeRange=function(t,e,s){$.timepicker.handleRange("datetimepicker",t,e,s)},$.timepicker.dateRange=function(t,e,s){$.timepicker.handleRange("datepicker",t,e,s)},$.timepicker.handleRange=function(l,r,c,d){d=$.extend({},{minInterval:0,maxInterval:0,start:{},end:{}},d);var t=!1;function s(t,e){var s=r[l]("getDate"),a=c[l]("getDate"),i=t[l]("getDate");if(null!==s){var n=new Date(s.getTime()),o=new Date(s.getTime());n.setMilliseconds(n.getMilliseconds()+d.minInterval),o.setMilliseconds(o.getMilliseconds()+d.maxInterval),0<d.minInterval&&a<n?c[l]("setDate",n):0<d.maxInterval&&o<a?c[l]("setDate",o):a<s&&e[l]("setDate",i)}}function e(t,e,s){if(t.val()){var a=t[l].call(t,"getDate");null!==a&&0<d.minInterval&&("minDate"===s&&a.setMilliseconds(a.getMilliseconds()+d.minInterval),"maxDate"===s&&a.setMilliseconds(a.getMilliseconds()-d.minInterval)),a.getTime&&e[l].call(e,"option",s,a)}}return"timepicker"===l&&(t=!0,l="datetimepicker"),$.fn[l].call(r,$.extend({timeOnly:t,onClose:function(t,e){s($(this),c)},onSelect:function(t){e($(this),c,"minDate")}},d,d.start)),$.fn[l].call(c,$.extend({timeOnly:t,onClose:function(t,e){s($(this),r)},onSelect:function(t){e($(this),r,"maxDate")}},d,d.end)),s(r,c),e(r,c,"minDate"),e(c,r,"maxDate"),$([r.get(0),c.get(0)])},$.timepicker.log=function(){window.console&&window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,Array.prototype.slice.call(arguments))},$.timepicker._util={_extendRemove:extendRemove,_isEmptyObject:isEmptyObject,_convert24to12:convert24to12,_detectSupport:detectSupport,_selectLocalTimezone:selectLocalTimezone,_computeEffectiveSetting:computeEffectiveSetting,_splitDateTime:splitDateTime,_parseDateTimeInternal:parseDateTimeInternal},Date.prototype.getMicroseconds||(Date.prototype.microseconds=0,Date.prototype.getMicroseconds=function(){return this.microseconds},Date.prototype.setMicroseconds=function(t){return this.setMilliseconds(this.getMilliseconds()+Math.floor(t/1e3)),this.microseconds=t%1e3,this}),$.timepicker.version="1.6.3"}}),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");function date(t,e){function s(t,e){return n[t]?n[t]():e}function a(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}var i,n,o=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"],l=/\\?(.?)/gi;n={d:function(){return a(n.j(),2)},D:function(){return n.l().slice(0,3)},j:function(){return i.getDate()},l:function(){return o[n.w()]+"day"},N:function(){return n.w()||7},S:function(){var t=n.j(),e=t%10;return e<=3&&1===parseInt(t%100/10,10)&&(e=0),["st","nd","rd"][e-1]||"th"},w:function(){return i.getDay()},z:function(){var t=new Date(n.Y(),n.n()-1,n.j()),e=new Date(n.Y(),0,1);return Math.round((t-e)/864e5)},W:function(){var t=new Date(n.Y(),n.n()-1,n.j()-n.N()+3),e=new Date(t.getFullYear(),0,4);return a(1+Math.round((t-e)/864e5/7),2)},F:function(){return o[6+n.n()]},m:function(){return a(n.n(),2)},M:function(){return n.F().slice(0,3)},n:function(){return i.getMonth()+1},t:function(){return new Date(n.Y(),n.n(),0).getDate()},L:function(){var t=n.Y();return t%4==0&t%100!=0|t%400==0},o:function(){var t=n.n(),e=n.W();return n.Y()+(12===t&&e<9?1:1===t&&9<e?-1:0)},Y:function(){return i.getFullYear()},y:function(){return n.Y().toString().slice(-2)},a:function(){return 11<i.getHours()?"pm":"am"},A:function(){return n.a().toUpperCase()},B:function(){var t=3600*i.getUTCHours(),e=60*i.getUTCMinutes(),s=i.getUTCSeconds();return a(Math.floor((t+e+s+3600)/86.4)%1e3,3)},g:function(){return n.G()%12||12},G:function(){return i.getHours()},h:function(){return a(n.g(),2)},H:function(){return a(n.G(),2)},i:function(){return a(i.getMinutes(),2)},s:function(){return a(i.getSeconds(),2)},u:function(){return a(1e3*i.getMilliseconds(),6)},e:function(){throw new Error("Not supported (see source code of date() for timezone on how to add support)")},I:function(){return new Date(n.Y(),0)-Date.UTC(n.Y(),0)!=new Date(n.Y(),6)-Date.UTC(n.Y(),6)?1:0},O:function(){var t=i.getTimezoneOffset(),e=Math.abs(t);return(0<t?"-":"+")+a(100*Math.floor(e/60)+e%60,4)},P:function(){var t=n.O();return t.substr(0,3)+":"+t.substr(3,2)},T:function(){return"UTC"},Z:function(){return 60*-i.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(l,s)},r:function(){return"D, d M Y H:i:s O".replace(l,s)},U:function(){return i/1e3|0}};var r,c;return r=t,i=void 0===(c=e)?new Date:c instanceof Date?new Date(c):new Date(1e3*c),r.replace(l,s)}function strtotime(t,e){var s,a,i,n,o,l,r,c,d,u;if(!t)return!1;t=t.replace(/^\s+|\s+#x2F;g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase();var p=new RegExp(["^(\\d{1,4})","([\\-\\.\\/:])","(\\d{1,2})","([\\-\\.\\/:])","(\\d{1,4})","(?:\\s(\\d{1,2}):(\\d{2})?:?(\\d{2})?)?","(?:\\s([A-Z]+)?)?quot;].join(""));if((a=t.match(p))&&a[2]===a[4])if(1901<a[1])switch(a[2]){case"-":return!(12<a[3]||31<a[5])&&new Date(a[1],parseInt(a[3],10)-1,a[5],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3;case".":return!1;case"/":return!(12<a[3]||31<a[5])&&new Date(a[1],parseInt(a[3],10)-1,a[5],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3}else if(1901<a[5])switch(a[2]){case"-":case".":return!(12<a[3]||31<a[1])&&new Date(a[5],parseInt(a[3],10)-1,a[1],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3;case"/":return!(12<a[1]||31<a[3])&&new Date(a[5],parseInt(a[1],10)-1,a[3],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3}else switch(a[2]){case"-":return!(12<a[3]||31<a[5]||a[1]<70&&38<a[1])&&(n=0<=a[1]&&a[1]<=38?+a[1]+2e3:a[1],new Date(n,parseInt(a[3],10)-1,a[5],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3);case".":return 70<=a[5]?!(12<a[3]||31<a[1])&&new Date(a[5],parseInt(a[3],10)-1,a[1],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3:a[5]<60&&!a[6]&&(!(23<a[1]||59<a[3])&&(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),a[1]||0,a[3]||0,a[5]||0,a[9]||0)/1e3));case"/":return!(12<a[1]||31<a[3]||a[5]<70&&38<a[5])&&(n=0<=a[5]&&a[5]<=38?+a[5]+2e3:a[5],new Date(n,parseInt(a[1],10)-1,a[3],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3);case":":return!(23<a[1]||59<a[3]||59<a[5])&&(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),a[1]||0,a[3]||0,a[5]||0)/1e3)}if("now"===t)return null===e||isNaN(e)?(new Date).getTime()/1e3|0:0|e;if(!isNaN(s=Date.parse(t)))return s/1e3|0;if(p=new RegExp(["^([0-9]{4}-[0-9]{2}-[0-9]{2})","[ t]","([0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?)","([\\+-][0-9]{2}(:[0-9]{2})?|z)"].join("")),(a=t.match(p))&&("z"===a[4]?a[4]="Z":a[4].match(/^([\+-][0-9]{2})#x2F;)&&(a[4]=a[4]+":00"),!isNaN(s=Date.parse(a[1]+"T"+a[2]+a[4]))))return s/1e3|0;function h(t){var e=t.split(" "),s=e[0],a=e[1].substring(0,3),i=/\d+/.test(s),n=("last"===s?-1:1)*("ago"===e[2]?-1:1);if(i&&(n*=parseInt(s,10)),r.hasOwnProperty(a)&&!e[1].match(/^mon(day|\.)?#x2F;i))return o["set"+r[a]](o["get"+r[a]]()+n);if("wee"===a)return o.setDate(o.getDate()+7*n);if("next"===s||"last"===s)!function(t,e,s){var a,i=l[e];void 0!==i&&(0===(a=i-o.getDay())?a=7*s:0<a&&"last"===t?a-=7:a<0&&"next"===t&&(a+=7),o.setDate(o.getDate()+a))}(s,a,n);else if(!i)return!1;return!0}if(o=e?new Date(1e3*e):new Date,l={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},r={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},"([+-]?\\d+\\s"+(d="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)")+"|(last|next)\\s"+d+")(\\sago)?",!(a=t.match(new RegExp("([+-]?\\d+\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)|(last|next)\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?))(\\sago)?","gi"))))return!1;for(u=0,c=a.length;u<c;u++)if(!h(a[u]))return!1;return o.getTime()/1e3}function fallbackMessage(t){var e="cut"===t?"X":"C";return/iPhone|iPad/i.test(navigator.userAgent)?objectL10n.yopPollParams.copyToClipboardError.noSupport:/Mac/i.test(navigator.userAgent)?objectL10n.yopPollParams.copyToClipboardError.press+" ⌘-"+e+objectL10n.yopPollParams.copyToClipboardError.copy:objectL10n.yopPollParams.copyToClipboardError.press+" Ctrl-"+e+objectL10n.yopPollParams.copyToClipboardError.copy}if(!function(a){"use strict";a.fn.emulateTransitionEnd=function(t){var e=!1,s=this;a(this).one(a.support.transition.end,function(){e=!0});return setTimeout(function(){e||a(s).trigger(a.support.transition.end)},t),this},a(function(){a.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var s in e)if(void 0!==t.style[s])return{end:e[s]}}()})}(jQuery),function(n){"use strict";function a(t){n(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';a.prototype.close=function(t){var e=n(this),s=e.attr("data-target");s=s||(s=e.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"");var a=n(s);function i(){a.trigger("closed.bs.alert").remove()}t&&t.preventDefault(),a.length||(a=e.hasClass("alert")?e:e.parent()),a.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),n.support.transition&&a.hasClass("fade")?a.one(n.support.transition.end,i).emulateTransitionEnd(150):i())};var t=n.fn.alert;n.fn.alert=function(s){return this.each(function(){var t=n(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof s&&e[s].call(t)})},n.fn.alert.Constructor=a,n.fn.alert.noConflict=function(){return n.fn.alert=t,this},n(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(i){"use strict";var n=function(t,e){this.$element=i(t),this.options=i.extend({},n.DEFAULTS,e)};n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var e="disabled",s=this.$element,a=s.is("input")?"val":"html",i=s.data();t+="Text",i.resetText||s.data("resetText",s[a]()),s[a](i[t]||this.options[t]),setTimeout(function(){"loadingText"==t?s.addClass(e).attr(e,e):s.removeClass(e).removeAttr(e)},0)},n.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons"]'),e=!0;if(t.length){var s=this.$element.find("input");"radio"===s.prop("type")&&(s.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&s.prop("checked",!this.$element.hasClass("active")).trigger("change")}e&&this.$element.toggleClass("active")};var t=i.fn.button;i.fn.button=function(a){return this.each(function(){var t=i(this),e=t.data("bs.button"),s="object"==typeof a&&a;e||t.data("bs.button",e=new n(this,s)),"toggle"==a?e.toggle():a&&e.setState(a)})},i.fn.button.Constructor=n,i.fn.button.noConflict=function(){return i.fn.button=t,this},i(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var e=i(t.target);e.hasClass("btn")||(e=e.closest(".btn")),e.button("toggle"),t.preventDefault()})}(jQuery),function(c){"use strict";function n(t,e){this.$element=c(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",c.proxy(this.pause,this)).on("mouseleave",c.proxy(this.cycle,this))}n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval)),this},n.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},n.prototype.to=function(t){var e=this,s=this.getActiveIndex();if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):s==t?this.pause().cycle():this.slide(s<t?"next":"prev",c(this.$items[t]))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&c.support.transition.end&&(this.$element.trigger(c.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,e){var s=this.$element.find(".item.active"),a=e||s[t](),i=this.interval,n="next"==t?"left":"right",o="next"==t?"first":"last",l=this;if(!a.length){if(!this.options.wrap)return;a=this.$element.find(".item")[o]()}this.sliding=!0,i&&this.pause();var r=c.Event("slide.bs.carousel",{relatedTarget:a[0],direction:n});if(!a.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var t=c(l.$indicators.children()[l.getActiveIndex()]);t&&t.addClass("active")})),c.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(r),r.isDefaultPrevented())return;a.addClass(t),a[0].offsetWidth,s.addClass(n),a.addClass(n),s.one(c.support.transition.end,function(){a.removeClass([t,n].join(" ")).addClass("active"),s.removeClass(["active",n].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(r),r.isDefaultPrevented())return;s.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return i&&this.cycle(),this}};var t=c.fn.carousel;c.fn.carousel=function(i){return this.each(function(){var t=c(this),e=t.data("bs.carousel"),s=c.extend({},n.DEFAULTS,t.data(),"object"==typeof i&&i),a="string"==typeof i?i:s.slide;e||t.data("bs.carousel",e=new n(this,s)),"number"==typeof i?e.to(i):a?e[a]():s.interval&&e.pause().cycle()})},c.fn.carousel.Constructor=n,c.fn.carousel.noConflict=function(){return c.fn.carousel=t,this},c(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var e,s=c(this),a=c(s.attr("data-target")||(e=s.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")),i=c.extend({},a.data(),s.data()),n=s.attr("data-slide-to");n&&(i.interval=!1),a.carousel(i),(n=s.attr("data-slide-to"))&&a.data("bs.carousel").to(n),t.preventDefault()}),c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var t=c(this);t.carousel(t.data())})})}(jQuery),function(c){"use strict";var i=function(t,e){this.$element=c(t),this.options=c.extend({},i.DEFAULTS,e),this.transitioning=null,this.options.parent&&(this.$parent=c(this.options.parent)),this.options.toggle&&this.toggle()};i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=c.Event("show.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.$parent&&this.$parent.find("> .panel > .in");if(e&&e.length){var s=e.data("bs.collapse");if(s&&s.transitioning)return;e.collapse("hide"),s||e.data("bs.collapse",null)}var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("in")[a]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!c.support.transition)return i.call(this);var n=c.camelCase(["scroll",a].join("-"));this.$element.one(c.support.transition.end,c.proxy(i,this)).emulateTransitionEnd(350)[a](this.$element[0][n])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=c.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!c.support.transition)return s.call(this);this.$element[e](0).one(c.support.transition.end,c.proxy(s,this)).emulateTransitionEnd(350)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var t=c.fn.collapse;c.fn.collapse=function(a){return this.each(function(){var t=c(this),e=t.data("bs.collapse"),s=c.extend({},i.DEFAULTS,t.data(),"object"==typeof a&&a);e||t.data("bs.collapse",e=new i(this,s)),"string"==typeof a&&e[a]()})},c.fn.collapse.Constructor=i,c.fn.collapse.noConflict=function(){return c.fn.collapse=t,this},c(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var e,s=c(this),a=s.attr("data-target")||t.preventDefault()||(e=s.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),i=c(a),n=i.data("bs.collapse"),o=n?"toggle":s.data(),l=s.attr("data-parent"),r=l&&c(l);n&&n.transitioning||(r&&r.find('[data-toggle=collapse][data-parent="'+l+'"]').not(s).addClass("collapsed"),s[i.hasClass("in")?"addClass":"removeClass"]("collapsed")),i.collapse(o)})}(jQuery),function(o){"use strict";function a(t){o(t).on("click.bs.dropdown",this.toggle)}var l="[data-toggle=dropdown]";function i(){o(".dropdown-backdrop").remove(),o(l).each(function(t){var e=r(o(this));e.hasClass("open")&&(e.trigger(t=o.Event("hide.bs.dropdown")),t.isDefaultPrevented()||e.removeClass("open").trigger("hidden.bs.dropdown"))})}function r(t){var e=t.attr("data-target"),s=(e=e||(e=t.attr("href"))&&/#/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&o(e);return s&&s.length?s:t.parent()}a.prototype.toggle=function(t){var e=o(this);if(!e.is(".disabled, :disabled")){var s=r(e),a=s.hasClass("open");if(i(),!a){if("ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&o('<div class="dropdown-backdrop"/>').insertAfter(o(this)).on("click",i),s.trigger(t=o.Event("show.bs.dropdown")),t.isDefaultPrevented())return;s.toggleClass("open").trigger("shown.bs.dropdown"),e.focus()}return!1}},a.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=o(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var s=r(e),a=s.hasClass("open");if(!a||a&&27==t.keyCode)return 27==t.which&&s.find(l).focus(),e.click();var i=o("[role=menu] li:not(.divider):visible a",s);if(i.length){var n=i.index(i.filter(":focus"));38==t.keyCode&&0<n&&n--,40==t.keyCode&&n<i.length-1&&n++,~n||(n=0),i.eq(n).focus()}}}};var t=o.fn.dropdown;o.fn.dropdown=function(s){return this.each(function(){var t=o(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new a(this)),"string"==typeof s&&e[s].call(t)})},o.fn.dropdown.Constructor=a,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=t,this},o(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",l,a.prototype.toggle).on("keydown.bs.dropdown.data-api",l+", [role=menu]",a.prototype.keydown)}(jQuery),function(n){"use strict";function o(t,e){this.options=e,this.$element=n(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)}o.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},o.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},o.prototype.show=function(s){var a=this,t=n.Event("show.bs.modal",{relatedTarget:s});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var t=n.support.transition&&a.$element.hasClass("fade");a.$element.parent().length||a.$element.appendTo("#yop-main-area"),a.$element.show(),t&&a.$element[0].offsetWidth,a.$element.addClass("in").attr("aria-hidden",!1),a.enforceFocus();var e=n.Event("shown.bs.modal",{relatedTarget:s});t?a.$element.find(".modal-dialog").one(n.support.transition.end,function(){a.$element.focus().trigger(e)}).emulateTransitionEnd(300):a.$element.focus().trigger(e)}))},o.prototype.hide=function(t){t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},o.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},o.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},o.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bs.modal")})},o.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},o.prototype.backdrop=function(t){var e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=n.support.transition&&e;if(this.$backdrop=n('<div class="modal-backdrop '+e+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",n.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;s?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var t=n.fn.modal;n.fn.modal=function(a,i){return this.each(function(){var t=n(this),e=t.data("bs.modal"),s=n.extend({},o.DEFAULTS,t.data(),"object"==typeof a&&a);e||t.data("bs.modal",e=new o(this,s)),"string"==typeof a?e[a](i):s.show&&e.show(i)})},n.fn.modal.Constructor=o,n.fn.modal.noConflict=function(){return n.fn.modal=t,this},n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=n(this),s=e.attr("href"),a=n(e.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),i=a.data("modal")?"toggle":n.extend({remote:!/#/.test(s)&&s},a.data(),e.data());t.preventDefault(),a.modal(i,this).one("hide",function(){e.is(":visible")&&e.focus()})}),n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(jQuery),function(f){"use strict";function i(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)}i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},i.prototype.init=function(t,e,s){this.enabled=!0,this.type=t,this.$element=f(e),this.options=this.getOptions(s);for(var a=this.options.trigger.split(" "),i=a.length;i--;){var n=a[i];if("click"==n)this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this));else if("manual"!=n){var o="hover"==n?"mouseenter":"focus",l="hover"==n?"mouseleave":"blur";this.$element.on(o+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,f.proxy(this.leave,this))}}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(t){return(t=f.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},i.prototype.getDelegateOptions=function(){var s={},a=this.getDefaults();return this._options&&f.each(this._options,function(t,e){a[t]!=e&&(s[t]=e)}),s},i.prototype.enter=function(t){var e=t instanceof this.constructor?t:f(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},i.prototype.leave=function(t){var e=t instanceof this.constructor?t:f(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},i.prototype.show=function(){var t=f.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(t),t.isDefaultPrevented())return;var e=this.tip();this.setContent(),this.options.animation&&e.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,i=a.test(s);i&&(s=s.replace(a,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addClass(s),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element);var n=this.getPosition(),o=e[0].offsetWidth,l=e[0].offsetHeight;if(i){var r=this.$element.parent(),c=s,d=document.documentElement.scrollTop||document.body.scrollTop,u="body"==this.options.container?window.innerWidth:r.outerWidth(),p="body"==this.options.container?window.innerHeight:r.outerHeight(),h="body"==this.options.container?0:r.offset().left;s="bottom"==s&&n.top+n.height+l-d>p?"top":"top"==s&&n.top-d-l<0?"bottom":"right"==s&&n.right+o>u?"left":"left"==s&&n.left-o<h?"right":s,e.removeClass(c).addClass(s)}var m=this.getCalculatedOffset(s,n,o,l);this.applyPlacement(m,s),this.$element.trigger("shown.bs."+this.type)}},i.prototype.applyPlacement=function(t,e){var s,a=this.tip(),i=a[0].offsetWidth,n=a[0].offsetHeight,o=parseInt(a.css("margin-top"),10),l=parseInt(a.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(l)&&(l=0),t.top=t.top+o,t.left=t.left+l,a.offset(t).addClass("in");var r=a[0].offsetWidth,c=a[0].offsetHeight;if("top"==e&&c!=n&&(s=!0,t.top=t.top+n-c),/bottom|top/.test(e)){var d=0;t.left<0&&(d=-2*t.left,t.left=0,a.offset(t),r=a[0].offsetWidth,c=a[0].offsetHeight),this.replaceArrow(d-i+r,r,"left")}else this.replaceArrow(c-n,c,"top");s&&a.offset(t)},i.prototype.replaceArrow=function(t,e,s){this.arrow().css(s,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){var t=this,e=this.tip(),s=f.Event("hide.bs."+this.type);function a(){"in"!=t.hoverState&&e.detach()}if(this.$element.trigger(s),!s.isDefaultPrevented())return e.removeClass("in"),f.support.transition&&this.$tip.hasClass("fade")?e.one(f.support.transition.end,a).emulateTransitionEnd(150):a(),this.$element.trigger("hidden.bs."+this.type),this},i.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(){var t=this.$element[0];return f.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},i.prototype.getCalculatedOffset=function(t,e,s,a){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-s/2}:"top"==t?{top:e.top-a,left:e.left+e.width/2-s/2}:"left"==t?{top:e.top+e.height/2-a/2,left:e.left-s}:{top:e.top+e.height/2-a/2,left:e.left+e.width}},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.tip=function(){return this.$tip=this.$tip||f(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(t){var e=t?f(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;e.tip().hasClass("in")?e.leave(e):e.enter(e)},i.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var t=f.fn.tooltip;f.fn.tooltip=function(a){return this.each(function(){var t=f(this),e=t.data("bs.tooltip"),s="object"==typeof a&&a;e||t.data("bs.tooltip",e=new i(this,s)),"string"==typeof a&&e[a]()})},f.fn.tooltip.Constructor=i,f.fn.tooltip.noConflict=function(){return f.fn.tooltip=t,this}}(jQuery),function(i){"use strict";function n(t,e){this.init("popover",t,e)}if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");n.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((n.prototype=i.extend({},i.fn.tooltip.Constructor.prototype)).constructor=n).prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),s=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](s),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},n.prototype.tip=function(){return this.$tip||(this.$tip=i(this.options.template)),this.$tip};var t=i.fn.popover;i.fn.popover=function(a){return this.each(function(){var t=i(this),e=t.data("bs.popover"),s="object"==typeof a&&a;e||t.data("bs.popover",e=new n(this,s)),"string"==typeof a&&e[a]()})},i.fn.popover.Constructor=n,i.fn.popover.noConflict=function(){return i.fn.popover=t,this}}(jQuery),function(n){"use strict";function i(t,e){var s,a=n.proxy(this.process,this);this.$element=n(t).is("body")?n(window):n(t),this.$body=n("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",a),this.options=n.extend({},i.DEFAULTS,e),this.selector=(this.options.target||(s=n(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=n([]),this.targets=n([]),this.activeTarget=null,this.refresh(),this.process()}i.DEFAULTS={offset:10},i.prototype.refresh=function(){var a=this.$element[0]==window?"offset":"position";this.offsets=n([]),this.targets=n([]);var i=this;this.$body.find(this.selector).map(function(){var t=n(this),e=t.data("target")||t.attr("href"),s=/^#\w/.test(e)&&n(e);return s&&s.length&&[[s[a]().top+(!n.isWindow(i.$scrollElement.get(0))&&i.$scrollElement.scrollTop()),e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,s=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),a=this.offsets,i=this.targets,n=this.activeTarget;if(s<=e)return n!=(t=i.last()[0])&&this.activate(t);for(t=a.length;t--;)n!=i[t]&&e>=a[t]&&(!a[t+1]||e<=a[t+1])&&this.activate(i[t])},i.prototype.activate=function(t){this.activeTarget=t,n(this.selector).parents(".active").removeClass("active");var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',s=n(e).parents("li").addClass("active");s.parent(".dropdown-menu").length&&(s=s.closest("li.dropdown").addClass("active")),s.trigger("activate.bs.scrollspy")};var t=n.fn.scrollspy;n.fn.scrollspy=function(a){return this.each(function(){var t=n(this),e=t.data("bs.scrollspy"),s="object"==typeof a&&a;e||t.data("bs.scrollspy",e=new i(this,s)),"string"==typeof a&&e[a]()})},n.fn.scrollspy.Constructor=i,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=t,this},n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(jQuery),function(o){"use strict";function a(t){this.element=o(t)}a.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),s=t.data("target");if(s=s||(s=t.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,""),!t.parent("li").hasClass("active")){var a=e.find(".active:last a")[0],i=o.Event("show.bs.tab",{relatedTarget:a});if(t.trigger(i),!i.isDefaultPrevented()){var n=o(s);this.activate(t.parent("li"),e),this.activate(n,n.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:a})})}}},a.prototype.activate=function(t,e,s){var a=e.find("> .active"),i=s&&o.support.transition&&a.hasClass("fade");function n(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),i?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),s&&s()}i?a.one(o.support.transition.end,n).emulateTransitionEnd(150):n(),a.removeClass("in")};var t=o.fn.tab;o.fn.tab=function(s){return this.each(function(){var t=o(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof s&&e[s]()})},o.fn.tab.Constructor=a,o.fn.tab.noConflict=function(){return o.fn.tab=t,this},o(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),o(this).tab("show")})}(jQuery),function(l){"use strict";var r=function(t,e){this.options=l.extend({},r.DEFAULTS,e),this.$window=l(window).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=this.unpin=null,this.checkPosition()};r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0},r.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=l(document).height(),e=this.$window.scrollTop(),s=this.$element.offset(),a=this.options.offset,i=a.top,n=a.bottom;"object"!=typeof a&&(n=i=a),"function"==typeof i&&(i=a.top()),"function"==typeof n&&(n=a.bottom());var o=!(null!=this.unpin&&e+this.unpin<=s.top)&&(null!=n&&s.top+this.$element.height()>=t-n?"bottom":null!=i&&e<=i&&"top");this.affixed!==o&&(this.unpin&&this.$element.css("top",""),this.affixed=o,this.unpin="bottom"==o?s.top-e:null,this.$element.removeClass(r.RESET).addClass("affix"+(o?"-"+o:"")),"bottom"==o&&this.$element.offset({top:document.body.offsetHeight-n-this.$element.height()}))}};var t=l.fn.affix;l.fn.affix=function(a){return this.each(function(){var t=l(this),e=t.data("bs.affix"),s="object"==typeof a&&a;e||t.data("bs.affix",e=new r(this,s)),"string"==typeof a&&e[a]()})},l.fn.affix.Constructor=r,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),t.affix(e)})})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(k){"use strict";function s(t){var e=t.parent();t.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),e.before(t).remove()}function a(t){var e=t.parent(),s=e.find(".minicolors-panel"),a=t.data("minicolors-settings");!t.data("minicolors-initialized")||t.prop("disabled")||e.hasClass("minicolors-inline")||e.hasClass("minicolors-focus")||(i(),e.addClass("minicolors-focus"),s.stop(!0,!0).fadeIn(a.showSpeed,function(){a.show&&a.show.call(t.get(0))}))}function i(){k(".minicolors-focus").each(function(){var t=k(this),e=t.find(".minicolors-input"),s=t.find(".minicolors-panel"),a=e.data("minicolors-settings");s.fadeOut(a.hideSpeed,function(){a.hide&&a.hide.call(e.get(0)),t.removeClass("minicolors-focus")})})}function n(t,e,s){var a,i,n,o,l=t.parents(".minicolors").find(".minicolors-input"),r=l.data("minicolors-settings"),c=t.find("[class$=-picker]"),d=t.offset().left,u=t.offset().top,p=Math.round(e.pageX-d),h=Math.round(e.pageY-u),m=s?r.animationSpeed:0;e.originalEvent.changedTouches&&(p=e.originalEvent.changedTouches[0].pageX-d,h=e.originalEvent.changedTouches[0].pageY-u),p<0&&(p=0),h<0&&(h=0),p>t.width()&&(p=t.width()),h>t.height()&&(h=t.height()),t.parent().is(".minicolors-slider-wheel")&&c.parent().is(".minicolors-grid")&&(a=75-p,i=75-h,n=Math.sqrt(a*a+i*i),(o=Math.atan2(i,a))<0&&(o+=2*Math.PI),75<n&&(p=(n=75)-75*Math.cos(o),h=75-75*Math.sin(o)),p=Math.round(p),h=Math.round(h)),t.is(".minicolors-grid")?c.stop(!0).animate({top:h+"px",left:p+"px"},m,r.animationEasing,function(){f(l,t)}):c.stop(!0).animate({top:h+"px"},m,r.animationEasing,function(){f(l,t)})}function f(t,e){function s(t,e){var s,a;return t.length&&e?(s=t.offset().left,a=t.offset().top,{x:s-e.offset().left+t.outerWidth()/2,y:a-e.offset().top+t.outerHeight()/2}):null}var a,i,n,o,l,r,c,d=t.val(),u=t.attr("data-opacity"),p=t.parent(),h=t.data("minicolors-settings"),m=p.find(".minicolors-input-swatch"),f=p.find(".minicolors-grid"),g=p.find(".minicolors-slider"),v=p.find(".minicolors-opacity-slider"),b=f.find("[class$=-picker]"),y=g.find("[class$=-picker]"),w=v.find("[class$=-picker]"),k=s(b,f),x=s(y,g),C=s(w,v);if(e.is(".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider")){switch(h.control){case"wheel":o=f.width()/2-k.x,l=f.height()/2-k.y,r=Math.sqrt(o*o+l*l),(c=Math.atan2(l,o))<0&&(c+=2*Math.PI),75<r&&(r=75,k.x=69-75*Math.cos(c),k.y=69-75*Math.sin(c)),i=D(r/.75,0,100),d=O({h:a=D(180*c/Math.PI,0,360),s:i,b:n=D(100-Math.floor(x.y*(100/g.height())),0,100)}),g.css("backgroundColor",O({h:a,s:i,b:100}));break;case"saturation":d=O({h:a=D(parseInt(k.x*(360/f.width()),10),0,360),s:i=D(100-Math.floor(x.y*(100/g.height())),0,100),b:n=D(100-Math.floor(k.y*(100/f.height())),0,100)}),g.css("backgroundColor",O({h:a,s:100,b:n})),p.find(".minicolors-grid-inner").css("opacity",i/100);break;case"brightness":d=O({h:a=D(parseInt(k.x*(360/f.width()),10),0,360),s:i=D(100-Math.floor(k.y*(100/f.height())),0,100),b:n=D(100-Math.floor(x.y*(100/g.height())),0,100)}),g.css("backgroundColor",O({h:a,s:i,b:100})),p.find(".minicolors-grid-inner").css("opacity",1-n/100);break;default:d=O({h:a=D(360-parseInt(x.y*(360/g.height()),10),0,360),s:i=D(Math.floor(k.x*(100/f.width())),0,100),b:n=D(100-Math.floor(k.y*(100/f.height())),0,100)}),f.css("backgroundColor",O({h:a,s:100,b:100}))}_(t,d,u=h.opacity?parseFloat(1-C.y/v.height()).toFixed(2):1)}else m.find("span").css({backgroundColor:d,opacity:u}),P(t,d,u)}function _(t,e,s){var a,i=t.parent(),n=t.data("minicolors-settings"),o=i.find(".minicolors-input-swatch");n.opacity&&t.attr("data-opacity",s),e="rgb"===n.format?(a=T(e)?A(e,!0):L(C(e,!0)),s=""===t.attr("data-opacity")?1:D(parseFloat(t.attr("data-opacity")).toFixed(2),0,1),!isNaN(s)&&n.opacity||(s=1),t.minicolors("rgbObject").a<=1&&a&&n.opacity?"rgba("+a.r+", "+a.g+", "+a.b+", "+parseFloat(s)+")":"rgb("+a.r+", "+a.g+", "+a.b+")"):(T(e)&&(e=E(e)),x(e,n.letterCase)),t.val(e),o.find("span").css({backgroundColor:e,opacity:s}),P(t,e,s)}function c(t,e){var s,a,i,n,o,l,r,c,d,u,p=t.parent(),h=t.data("minicolors-settings"),m=p.find(".minicolors-input-swatch"),f=p.find(".minicolors-grid"),g=p.find(".minicolors-slider"),v=p.find(".minicolors-opacity-slider"),b=f.find("[class$=-picker]"),y=g.find("[class$=-picker]"),w=v.find("[class$=-picker]");switch(T(t.val())?(s=E(t.val()),(o=D(parseFloat(S(t.val())).toFixed(2),0,1))&&t.attr("data-opacity",o)):s=x(C(t.val(),!0),h.letterCase),a=function(t){var e=function(t){var e={h:0,s:0,b:0},s=Math.min(t.r,t.g,t.b),a=Math.max(t.r,t.g,t.b),i=a-s;e.b=a,e.s=0!==a?255*i/a:0,0!==e.s?t.r===a?e.h=(t.g-t.b)/i:t.g===a?e.h=2+(t.b-t.r)/i:e.h=4+(t.r-t.g)/i:e.h=-1;e.h*=60,e.h<0&&(e.h+=360);return e.s*=100/255,e.b*=100/255,e}(L(t));0===e.s&&(e.h=360);return e}(s=s||x(M(h.defaultValue,!0),h.letterCase)),n=h.keywords?k.map(h.keywords.split(","),function(t){return k.trim(t.toLowerCase())}):[],l=""!==t.val()&&-1<k.inArray(t.val().toLowerCase(),n)?x(t.val()):T(t.val())?A(t.val()):s,e||t.val(l),h.opacity&&(i=""===t.attr("data-opacity")?1:D(parseFloat(t.attr("data-opacity")).toFixed(2),0,1),isNaN(i)&&(i=1),t.attr("data-opacity",i),m.find("span").css("opacity",i),c=D(v.height()-v.height()*i,0,v.height()),w.css("top",c+"px")),"transparent"===t.val().toLowerCase()&&m.find("span").css("opacity",0),m.find("span").css("backgroundColor",s),h.control){case"wheel":d=D(Math.ceil(.75*a.s),0,f.height()/2),u=a.h*Math.PI/180,r=D(75-Math.cos(u)*d,0,f.width()),c=D(75-Math.sin(u)*d,0,f.height()),b.css({top:c+"px",left:r+"px"}),c=150-a.b/(100/f.height()),""===s&&(c=0),y.css("top",c+"px"),g.css("backgroundColor",O({h:a.h,s:a.s,b:100}));break;case"saturation":r=D(5*a.h/12,0,150),c=D(f.height()-Math.ceil(a.b/(100/f.height())),0,f.height()),b.css({top:c+"px",left:r+"px"}),c=D(g.height()-a.s*(g.height()/100),0,g.height()),y.css("top",c+"px"),g.css("backgroundColor",O({h:a.h,s:100,b:a.b})),p.find(".minicolors-grid-inner").css("opacity",a.s/100);break;case"brightness":r=D(5*a.h/12,0,150),c=D(f.height()-Math.ceil(a.s/(100/f.height())),0,f.height()),b.css({top:c+"px",left:r+"px"}),c=D(g.height()-a.b*(g.height()/100),0,g.height()),y.css("top",c+"px"),g.css("backgroundColor",O({h:a.h,s:a.s,b:100})),p.find(".minicolors-grid-inner").css("opacity",1-a.b/100);break;default:r=D(Math.ceil(a.s/(100/f.width())),0,f.width()),c=D(f.height()-Math.ceil(a.b/(100/f.height())),0,f.height()),b.css({top:c+"px",left:r+"px"}),c=D(g.height()-a.h/(360/g.height()),0,g.height()),y.css("top",c+"px"),f.css("backgroundColor",O({h:a.h,s:100,b:100}))}t.data("minicolors-initialized")&&P(t,l,i)}function P(t,e,s){var a,i,n=t.data("minicolors-settings"),o=t.data("minicolors-lastChange");if(!o||o.value!==e||o.opacity!==s){if(t.data("minicolors-lastChange",{value:e,opacity:s}),n.swatches&&0!==n.swatches.length){for(a=T(e)?A(e,!0):L(e),-1,i=0;i<n.swatches.length;++i)if(a.r===n.swatches[i].r&&a.g===n.swatches[i].g&&a.b===n.swatches[i].b&&a.a===n.swatches[i].a){i;break}t.parent().find(".minicolors-swatches .minicolors-swatch").removeClass("selected"),-1!==i&&t.parent().find(".minicolors-swatches .minicolors-swatch").eq(i).addClass("selected")}n.change&&(n.changeDelay?(clearTimeout(t.data("minicolors-changeTimeout")),t.data("minicolors-changeTimeout",setTimeout(function(){n.change.call(t.get(0),e,s)},n.changeDelay))):n.change.call(t.get(0),e,s)),t.trigger("change").trigger("input")}}function x(t,e){return"uppercase"===e?t.toUpperCase():t.toLowerCase()}function C(t,e){return(t=t.replace(/^#/g,"")).match(/^[A-F0-9]{3,6}/gi)?3!==t.length&&6!==t.length?"":(3===t.length&&e&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),"#"+t):""}function A(t,e){var s=t.replace(/[^\d,.]/g,"").split(",");return s[0]=D(parseInt(s[0],10),0,255),s[1]=D(parseInt(s[1],10),0,255),s[2]=D(parseInt(s[2],10),0,255),s[3]&&(s[3]=D(parseFloat(s[3],10),0,1)),e?{r:s[0],g:s[1],b:s[2],a:s[3]?s[3]:null}:void 0!==s[3]&&s[3]<=1?"rgba("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+")":"rgb("+s[0]+", "+s[1]+", "+s[2]+")"}function M(t,e){return T(t)?A(t):C(t,e)}function D(t,e,s){return t<e&&(t=e),s<t&&(t=s),t}function T(t){var e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return!(!e||4!==e.length)}function S(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d{1,2})?|\.\d{1,2})[\s+]?/i))&&6===t.length?t[4]:"1"}function E(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}function d(t){var s=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];return k.each(s,function(t,e){1===e.length&&(s[t]="0"+e)}),"#"+s.join("")}function O(t){return d(function(t){var e={},s=Math.round(t.h),a=Math.round(255*t.s/100),i=Math.round(255*t.b/100);if(0===a)e.r=e.g=e.b=i;else{var n=i,o=(255-a)*i/255,l=s%60*(n-o)/60;360===s&&(s=0),s<60?(e.r=n,e.b=o,e.g=o+l):s<120?(e.g=n,e.b=o,e.r=n-l):s<180?(e.g=n,e.r=o,e.b=o+l):s<240?(e.b=n,e.r=o,e.g=n-l):s<300?(e.b=n,e.g=o,e.r=o+l):s<360?(e.r=n,e.g=o,e.b=n-l):(e.r=0,e.g=0,e.b=0)}return{r:Math.round(e.r),g:Math.round(e.g),b:Math.round(e.b)}}(t))}function L(t){return{r:(t=parseInt(-1<t.indexOf("#")?t.substring(1):t,16))>>16,g:(65280&t)>>8,b:255&t}}k.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",dataUris:!0,defaultValue:"",format:"hex",hide:null,hideSpeed:100,inline:!1,keywords:"",letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default",swatches:[]}},k.extend(k.fn,{minicolors:function(t,e){switch(t){case"destroy":return k(this).each(function(){s(k(this))}),k(this);case"hide":return i(),k(this);case"opacity":return void 0===e?k(this).attr("data-opacity"):(k(this).each(function(){c(k(this).attr("data-opacity",e))}),k(this));case"rgbObject":return function(t){var e=L(C(k(t).val(),!0)),s=k(t).attr("data-opacity");if(!e)return null;void 0!==s&&k.extend(e,{a:parseFloat(s)});return e}(k(this));case"rgbString":case"rgbaString":return function(t,e){var s=L(C(k(t).val(),!0)),a=k(t).attr("data-opacity");if(!s)return null;void 0===a&&(a=1);return e?"rgba("+s.r+", "+s.g+", "+s.b+", "+parseFloat(a)+")":"rgb("+s.r+", "+s.g+", "+s.b+")"}(k(this),"rgbaString"===t);case"settings":return void 0===e?k(this).data("minicolors-settings"):(k(this).each(function(){var t=k(this).data("minicolors-settings")||{};s(k(this)),k(this).minicolors(k.extend(!0,t,e))}),k(this));case"show":return a(k(this).eq(0)),k(this);case"value":return void 0===e?k(this).val():(k(this).each(function(){"object"==typeof e&&null!==typeof e?(e.opacity&&k(this).attr("data-opacity",D(e.opacity,0,1)),e.color&&k(this).val(e.color)):k(this).val(e),c(k(this))}),k(this));default:return"create"!==t&&(e=t),k(this).each(function(){!function(e,t){var s,a,i,n,o,l=k('<div class="minicolors" />'),r=k.minicolors.defaults;if(e.data("minicolors-initialized"))return;t=k.extend(!0,{},r,t),l.addClass("minicolors-theme-"+t.theme).toggleClass("minicolors-with-opacity",t.opacity).toggleClass("minicolors-no-data-uris",!0!==t.dataUris),void 0!==t.position&&k.each(t.position.split(" "),function(){l.addClass("minicolors-position-"+this)});s="rgb"===t.format?t.opacity?"25":"20":t.keywords?"11":"7";e.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",t).prop("size",s).wrap(l).after('<div class="minicolors-panel minicolors-slider-'+t.control+'"><div class="minicolors-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-grid minicolors-sprite"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>'),t.inline||(e.after('<span class="minicolors-swatch minicolors-sprite minicolors-input-swatch"><span class="minicolors-swatch-color"></span></span>'),e.next(".minicolors-input-swatch").on("click",function(t){t.preventDefault(),e.focus()}));if((n=e.parent().find(".minicolors-panel")).on("selectstart",function(){return!1}).end(),t.swatches&&0!==t.swatches.length)for(7<t.swatches.length&&(t.swatches.length=7),n.addClass("minicolors-with-swatches"),a=k('<ul class="minicolors-swatches"></ul>').appendTo(n),o=0;o<t.swatches.length;++o)i=T(i=t.swatches[o])?A(i,!0):L(C(i,!0)),k('<li class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color"></span></li>').appendTo(a).data("swatch-color",t.swatches[o]).find(".minicolors-swatch-color").css({backgroundColor:d(i),opacity:i.a}),t.swatches[o]=i;t.inline&&e.parent().addClass("minicolors-inline");c(e,!1),e.data("minicolors-initialized",!0)}(k(this),e)}),k(this)}}}),k(document).on("mousedown.minicolors touchstart.minicolors",function(t){k(t.target).parents().add(t.target).hasClass("minicolors")||i()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(t){var e=k(this);t.preventDefault(),k(document).data("minicolors-target",e),n(e,t,!0)}).on("mousemove.minicolors touchmove.minicolors",function(t){var e=k(document).data("minicolors-target");e&&n(e,t)}).on("mouseup.minicolors touchend.minicolors",function(){k(this).removeData("minicolors-target")}).on("click.minicolors",".minicolors-swatches li",function(t){t.preventDefault();var e=k(this),s=e.parents(".minicolors").find(".minicolors-input"),a=e.data("swatch-color");_(s,a,S(a)),c(s)}).on("mousedown.minicolors touchstart.minicolors",".minicolors-input-swatch",function(t){var e=k(this).parent().find(".minicolors-input");t.preventDefault(),a(e)}).on("focus.minicolors",".minicolors-input",function(){var t=k(this);t.data("minicolors-initialized")&&a(t)}).on("blur.minicolors",".minicolors-input",function(){var t,e,s,a,i,n=k(this),o=n.data("minicolors-settings");n.data("minicolors-initialized")&&(t=o.keywords?k.map(o.keywords.split(","),function(t){return k.trim(t.toLowerCase())}):[],i=""!==n.val()&&-1<k.inArray(n.val().toLowerCase(),t)?n.val():null===(s=T(n.val())?A(n.val(),!0):(e=C(n.val(),!0))?L(e):null)?o.defaultValue:"rgb"===o.format?o.opacity?A("rgba("+s.r+","+s.g+","+s.b+","+n.attr("data-opacity")+")"):A("rgb("+s.r+","+s.g+","+s.b+")"):d(s),a=o.opacity?n.attr("data-opacity"):1,"transparent"===i.toLowerCase()&&(a=0),n.closest(".minicolors").find(".minicolors-input-swatch > span").css("opacity",a),n.val(i),""===n.val()&&n.val(M(o.defaultValue,!0)),n.val(x(n.val(),o.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(t){var e=k(this);if(e.data("minicolors-initialized"))switch(t.keyCode){case 9:i();break;case 13:case 27:i(),e.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var t=k(this);t.data("minicolors-initialized")&&c(t,!0)}).on("paste.minicolors",".minicolors-input",function(){var t=k(this);t.data("minicolors-initialized")&&setTimeout(function(){c(t,!0)},1)})}),function(t,e){"use strict";"undefined"!=typeof module&&module.exports?"undefined"!=typeof process&&"electron"in process.versions?t.BootstrapDialog=e(t.jQuery):module.exports=e(require("jquery"),require("bootstrap")):"function"==typeof define&&define.amd?define("bootstrap-dialog",["jquery","bootstrap"],function(t){return e(t)}):t.BootstrapDialog=e(t.jQuery)}(this,function(l){"use strict";function e(t,e){s.call(this,t,e)}var s=l.fn.modal.Constructor;e.getModalVersion=function(){return void 0===l.fn.modal.Constructor.VERSION?"v3.1":/3\.2\.\d+/.test(l.fn.modal.Constructor.VERSION)?"v3.2":/3\.3\.[1,2]/.test(l.fn.modal.Constructor.VERSION)?"v3.3":"v3.3.4"},e.ORIGINAL_BODY_PADDING=parseInt(l("body").css("padding-right")||0,10),(e.METHODS_TO_OVERRIDE={})["v3.1"]={},e.METHODS_TO_OVERRIDE["v3.2"]={hide:function(t){t&&t.preventDefault(),t=l.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),l(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),l.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",l.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())}},e.METHODS_TO_OVERRIDE["v3.3"]={setScrollbar:function(){var t=e.ORIGINAL_BODY_PADDING;this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},resetScrollbar:function(){0===this.getGlobalOpenedDialogs().length&&this.$body.css("padding-right",e.ORIGINAL_BODY_PADDING)},hideModal:function(){this.$element.hide(),this.backdrop(l.proxy(function(){0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetAdjustments(),this.resetScrollbar(),this.$element.trigger("hidden.bs.modal")},this))}},e.METHODS_TO_OVERRIDE["v3.3.4"]=l.extend({},e.METHODS_TO_OVERRIDE["v3.3"]),e.prototype={constructor:e,getGlobalOpenedDialogs:function(){var s=[];return l.each(n.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&s.push(e)}),s}},e.prototype=l.extend(e.prototype,s.prototype,e.METHODS_TO_OVERRIDE[e.getModalVersion()]);var n=function(t){this.defaultOptions=l.extend(!0,{id:n.newGuid(),buttons:[],data:{},onshow:null,onshown:null,onhide:null,onhidden:null},n.defaultOptions),this.indexedButtons={},this.registeredButtonHotkeys={},this.draggableData={isMouseDown:!1,mouseOffset:{}},this.realized=!1,this.opened=!1,this.initOptions(t),this.holdThisInstance()};return n.BootstrapDialogModal=e,n.NAMESPACE="bootstrap-dialog",n.TYPE_DEFAULT="type-default",n.TYPE_INFO="type-info",n.TYPE_PRIMARY="type-primary",n.TYPE_SUCCESS="type-success",n.TYPE_WARNING="type-warning",n.TYPE_DANGER="type-danger",n.DEFAULT_TEXTS={},n.DEFAULT_TEXTS[n.TYPE_DEFAULT]="Information",n.DEFAULT_TEXTS[n.TYPE_INFO]="Information",n.DEFAULT_TEXTS[n.TYPE_PRIMARY]="Information",n.DEFAULT_TEXTS[n.TYPE_SUCCESS]="Success",n.DEFAULT_TEXTS[n.TYPE_WARNING]="Warning",n.DEFAULT_TEXTS[n.TYPE_DANGER]="Danger",n.DEFAULT_TEXTS.OK="OK",n.DEFAULT_TEXTS.CANCEL="Cancel",n.DEFAULT_TEXTS.CONFIRM="Confirmation",n.SIZE_NORMAL="size-normal",n.SIZE_SMALL="size-small",n.SIZE_WIDE="size-wide",n.SIZE_LARGE="size-large",n.BUTTON_SIZES={},n.BUTTON_SIZES[n.SIZE_NORMAL]="",n.BUTTON_SIZES[n.SIZE_SMALL]="",n.BUTTON_SIZES[n.SIZE_WIDE]="",n.BUTTON_SIZES[n.SIZE_LARGE]="btn-lg",n.ICON_SPINNER="glyphicon glyphicon-asterisk",n.defaultOptions={type:n.TYPE_PRIMARY,size:n.SIZE_NORMAL,cssClass:"",title:null,message:null,nl2br:!0,closable:!0,closeByBackdrop:!0,closeByKeyboard:!0,closeIcon:"&#215;",spinicon:n.ICON_SPINNER,autodestroy:!0,draggable:!1,animate:!0,description:"",tabindex:-1},n.configDefaultOptions=function(t){n.defaultOptions=l.extend(!0,n.defaultOptions,t)},n.dialogs={},n.openAll=function(){l.each(n.dialogs,function(t,e){e.open()})},n.closeAll=function(){l.each(n.dialogs,function(t,e){e.close()})},n.getDialog=function(t){var e=null;return void 0!==n.dialogs[t]&&(e=n.dialogs[t]),e},n.setDialog=function(t){return n.dialogs[t.getId()]=t},n.addDialog=function(t){return n.setDialog(t)},n.moveFocus=function(){var s=null;l.each(n.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&(s=e)}),null!==s&&s.getModal().focus()},n.METHODS_TO_OVERRIDE={},n.METHODS_TO_OVERRIDE["v3.1"]={handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},function(t){t.target===this&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByBackdrop()&&t.data.dialog.close()}),this},updateZIndex:function(){if(this.isOpened()){var s=0;l.each(n.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&s++});var t=this.getModal(),e=t.data("bs.modal").$backdrop;t.css("z-index",1050+20*(s-1)),e.css("z-index",1040+20*(s-1))}return this},open:function(){return this.isRealized()||this.realize(),this.getModal().modal("show"),this.updateZIndex(),this}},n.METHODS_TO_OVERRIDE["v3.2"]={handleModalBackdropEvent:n.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:n.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:n.METHODS_TO_OVERRIDE["v3.1"].open},n.METHODS_TO_OVERRIDE["v3.3"]={},n.METHODS_TO_OVERRIDE["v3.3.4"]=l.extend({},n.METHODS_TO_OVERRIDE["v3.1"]),n.prototype={constructor:n,initOptions:function(t){return this.options=l.extend(!0,this.defaultOptions,t),this},holdThisInstance:function(){return n.addDialog(this),this},initModalStuff:function(){return this.setModal(this.createModal()).setModalDialog(this.createModalDialog()).setModalContent(this.createModalContent()).setModalHeader(this.createModalHeader()).setModalBody(this.createModalBody()).setModalFooter(this.createModalFooter()),this.getModal().append(this.getModalDialog()),this.getModalDialog().append(this.getModalContent()),this.getModalContent().append(this.getModalHeader()).append(this.getModalBody()).append(this.getModalFooter()),this},createModal:function(){var t=l('<div class="modal" role="dialog" aria-hidden="true"></div>');return t.prop("id",this.getId()),t.attr("aria-labelledby",this.getId()+"_title"),t},getModal:function(){return this.$modal},setModal:function(t){return this.$modal=t,this},createModalDialog:function(){return l('<div class="modal-dialog"></div>')},getModalDialog:function(){return this.$modalDialog},setModalDialog:function(t){return this.$modalDialog=t,this},createModalContent:function(){return l('<div class="modal-content"></div>')},getModalContent:function(){return this.$modalContent},setModalContent:function(t){return this.$modalContent=t,this},createModalHeader:function(){return l('<div class="modal-header"></div>')},getModalHeader:function(){return this.$modalHeader},setModalHeader:function(t){return this.$modalHeader=t,this},createModalBody:function(){return l('<div class="modal-body"></div>')},getModalBody:function(){return this.$modalBody},setModalBody:function(t){return this.$modalBody=t,this},createModalFooter:function(){return l('<div class="modal-footer"></div>')},getModalFooter:function(){return this.$modalFooter},setModalFooter:function(t){return this.$modalFooter=t,this},createDynamicContent:function(t){var e=null;return"string"==typeof(e="function"==typeof t?t.call(t,this):t)&&(e=this.formatStringContent(e)),e},formatStringContent:function(t){return this.options.nl2br?t.replace(/\r\n/g,"<br />").replace(/[\r\n]/g,"<br />"):t},setData:function(t,e){return this.options.data[t]=e,this},getData:function(t){return this.options.data[t]},setId:function(t){return this.options.id=t,this},getId:function(){return this.options.id},getType:function(){return this.options.type},setType:function(t){return this.options.type=t,this.updateType(),this},updateType:function(){if(this.isRealized()){var t=[n.TYPE_DEFAULT,n.TYPE_INFO,n.TYPE_PRIMARY,n.TYPE_SUCCESS,n.TYPE_WARNING,n.TYPE_DANGER];this.getModal().removeClass(t.join(" ")).addClass(this.getType())}return this},getSize:function(){return this.options.size},setSize:function(t){return this.options.size=t,this.updateSize(),this},updateSize:function(){if(this.isRealized()){var o=this;this.getModal().removeClass(n.SIZE_NORMAL).removeClass(n.SIZE_SMALL).removeClass(n.SIZE_WIDE).removeClass(n.SIZE_LARGE),this.getModal().addClass(this.getSize()),this.getModalDialog().removeClass("modal-sm"),this.getSize()===n.SIZE_SMALL&&this.getModalDialog().addClass("modal-sm"),this.getModalDialog().removeClass("modal-lg"),this.getSize()===n.SIZE_WIDE&&this.getModalDialog().addClass("modal-lg"),l.each(this.options.buttons,function(t,e){var s=o.getButton(e.id),a=["btn-lg","btn-sm","btn-xs"],i=!1;if("string"==typeof e.cssClass){var n=e.cssClass.split(" ");l.each(n,function(t,e){-1!==l.inArray(e,a)&&(i=!0)})}i||(s.removeClass(a.join(" ")),s.addClass(o.getButtonSize()))})}return this},getCssClass:function(){return this.options.cssClass},setCssClass:function(t){return this.options.cssClass=t,this},getTitle:function(){return this.options.title},setTitle:function(t){return this.options.title=t,this.updateTitle(),this},updateTitle:function(){if(this.isRealized()){var t=null!==this.getTitle()?this.createDynamicContent(this.getTitle()):this.getDefaultText();this.getModalHeader().find("."+this.getNamespace("title")).html("").append(t).prop("id",this.getId()+"_title")}return this},getMessage:function(){return this.options.message},setMessage:function(t){return this.options.message=t,this.updateMessage(),this},updateMessage:function(){if(this.isRealized()){var t=this.createDynamicContent(this.getMessage());this.getModalBody().find("."+this.getNamespace("message")).html("").append(t)}return this},isClosable:function(){return this.options.closable},setClosable:function(t){return this.options.closable=t,this.updateClosable(),this},setCloseByBackdrop:function(t){return this.options.closeByBackdrop=t,this},canCloseByBackdrop:function(){return this.options.closeByBackdrop},setCloseByKeyboard:function(t){return this.options.closeByKeyboard=t,this},canCloseByKeyboard:function(){return this.options.closeByKeyboard},isAnimate:function(){return this.options.animate},setAnimate:function(t){return this.options.animate=t,this},updateAnimate:function(){return this.isRealized()&&this.getModal().toggleClass("fade",this.isAnimate()),this},getSpinicon:function(){return this.options.spinicon},setSpinicon:function(t){return this.options.spinicon=t,this},addButton:function(t){return this.options.buttons.push(t),this},addButtons:function(t){var s=this;return l.each(t,function(t,e){s.addButton(e)}),this},getButtons:function(){return this.options.buttons},setButtons:function(t){return this.options.buttons=t,this.updateButtons(),this},getButton:function(t){return void 0!==this.indexedButtons[t]?this.indexedButtons[t]:null},getButtonSize:function(){return void 0!==n.BUTTON_SIZES[this.getSize()]?n.BUTTON_SIZES[this.getSize()]:""},updateButtons:function(){return this.isRealized()&&(0===this.getButtons().length?this.getModalFooter().hide():this.getModalFooter().show().find("."+this.getNamespace("footer")).html("").append(this.createFooterButtons())),this},isAutodestroy:function(){return this.options.autodestroy},setAutodestroy:function(t){this.options.autodestroy=t},getDescription:function(){return this.options.description},setDescription:function(t){return this.options.description=t,this},setTabindex:function(t){return this.options.tabindex=t,this},getTabindex:function(){return this.options.tabindex},updateTabindex:function(){return this.isRealized()&&this.getModal().attr("tabindex",this.getTabindex()),this},getDefaultText:function(){return n.DEFAULT_TEXTS[this.getType()]},getNamespace:function(t){return n.NAMESPACE+"-"+t},createHeaderContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("header")),t.append(this.createTitleContent()),t.prepend(this.createCloseButton()),t},createTitleContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("title")),t},createCloseButton:function(){var t=l("<div></div>");t.addClass(this.getNamespace("close-button"));var e=l('<button class="close"></button>');return e.append(this.options.closeIcon),t.append(e),t.on("click",{dialog:this},function(t){t.data.dialog.close()}),t},createBodyContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("body")),t.append(this.createMessageContent()),t},createMessageContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("message")),t},createFooterContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("footer")),t},createFooterButtons:function(){var a=this,i=l("<div></div>");return i.addClass(this.getNamespace("footer-buttons")),this.indexedButtons={},l.each(this.options.buttons,function(t,e){e.id||(e.id=n.newGuid());var s=a.createButton(e);a.indexedButtons[e.id]=s,i.append(s)}),i},createButton:function(t){var e=l('<button class="btn"></button>');return e.prop("id",t.id),e.data("button",t),void 0!==t.icon&&""!==l.trim(t.icon)&&e.append(this.createButtonIcon(t.icon)),void 0!==t.label&&e.append(t.label),void 0!==t.cssClass&&""!==l.trim(t.cssClass)?e.addClass(t.cssClass):e.addClass("btn-default"),void 0!==t.hotkey&&(this.registeredButtonHotkeys[t.hotkey]=e),e.on("click",{dialog:this,$button:e,button:t},function(t){var e=t.data.dialog,s=t.data.$button,a=s.data("button");if(a.autospin&&s.toggleSpin(!0),"function"==typeof a.action)return a.action.call(s,e,t)}),this.enhanceButton(e),void 0!==t.enabled&&e.toggleEnable(t.enabled),e},enhanceButton:function(a){return a.dialog=this,a.toggleEnable=function(t){return void 0!==t?this.prop("disabled",!t).toggleClass("disabled",!t):this.prop("disabled",!this.prop("disabled")),this},a.enable=function(){return this.toggleEnable(!0),this},a.disable=function(){return this.toggleEnable(!1),this},a.toggleSpin=function(t){var e=this.dialog,s=this.find("."+e.getNamespace("button-icon"));return void 0===t&&(t=!(0<a.find(".icon-spin").length)),t?(s.hide(),a.prepend(e.createButtonIcon(e.getSpinicon()).addClass("icon-spin"))):(s.show(),a.find(".icon-spin").remove()),this},a.spin=function(){return this.toggleSpin(!0),this},a.stopSpin=function(){return this.toggleSpin(!1),this},this},createButtonIcon:function(t){var e=l("<span></span>");return e.addClass(this.getNamespace("button-icon")).addClass(t),e},enableButtons:function(s){return l.each(this.indexedButtons,function(t,e){e.toggleEnable(s)}),this},updateClosable:function(){return this.isRealized()&&this.getModalHeader().find("."+this.getNamespace("close-button")).toggle(this.isClosable()),this},onShow:function(t){return this.options.onshow=t,this},onShown:function(t){return this.options.onshown=t,this},onHide:function(t){return this.options.onhide=t,this},onHidden:function(t){return this.options.onhidden=t,this},isRealized:function(){return this.realized},setRealized:function(t){return this.realized=t,this},isOpened:function(){return this.opened},setOpened:function(t){return this.opened=t,this},handleModalEvents:function(){return this.getModal().on("show.bs.modal",{dialog:this},function(t){var e=t.data.dialog;if(e.setOpened(!0),e.isModalEvent(t)&&"function"==typeof e.options.onshow){var s=e.options.onshow(e);return!1===s&&e.setOpened(!1),s}}),this.getModal().on("shown.bs.modal",{dialog:this},function(t){var e=t.data.dialog;e.isModalEvent(t)&&"function"==typeof e.options.onshown&&e.options.onshown(e)}),this.getModal().on("hide.bs.modal",{dialog:this},function(t){var e=t.data.dialog;if(e.setOpened(!1),e.isModalEvent(t)&&"function"==typeof e.options.onhide){var s=e.options.onhide(e);return!1===s&&e.setOpened(!0),s}}),this.getModal().on("hidden.bs.modal",{dialog:this},function(t){var e=t.data.dialog;e.isModalEvent(t)&&"function"==typeof e.options.onhidden&&e.options.onhidden(e),e.isAutodestroy()&&(e.setRealized(!1),delete n.dialogs[e.getId()],l(this).remove()),n.moveFocus()}),this.handleModalBackdropEvent(),this.getModal().on("keyup",{dialog:this},function(t){27===t.which&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByKeyboard()&&t.data.dialog.close()}),this.getModal().on("keyup",{dialog:this},function(t){var e=t.data.dialog;if(void 0!==e.registeredButtonHotkeys[t.which]){var s=l(e.registeredButtonHotkeys[t.which]);s.prop("disabled")||s.focus().trigger("click")}}),this},handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},function(t){l(t.target).hasClass("modal-backdrop")&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByBackdrop()&&t.data.dialog.close()}),this},isModalEvent:function(t){return void 0!==t.namespace&&"bs.modal"===t.namespace},makeModalDraggable:function(){return this.options.draggable&&(this.getModalHeader().addClass(this.getNamespace("draggable")).on("mousedown",{dialog:this},function(t){var e=t.data.dialog;e.draggableData.isMouseDown=!0;var s=e.getModalDialog().offset();e.draggableData.mouseOffset={top:t.clientY-s.top,left:t.clientX-s.left}}),this.getModal().on("mouseup mouseleave",{dialog:this},function(t){t.data.dialog.draggableData.isMouseDown=!1}),l("body").on("mousemove",{dialog:this},function(t){var e=t.data.dialog;e.draggableData.isMouseDown&&e.getModalDialog().offset({top:t.clientY-e.draggableData.mouseOffset.top,left:t.clientX-e.draggableData.mouseOffset.left})})),this},realize:function(){return this.initModalStuff(),this.getModal().addClass(n.NAMESPACE).addClass(this.getCssClass()),this.updateSize(),this.getDescription()&&this.getModal().attr("aria-describedby",this.getDescription()),this.getModalFooter().append(this.createFooterContent()),this.getModalHeader().append(this.createHeaderContent()),this.getModalBody().append(this.createBodyContent()),this.getModal().data("bs.modal",new e(this.getModal(),{backdrop:"static",keyboard:!1,show:!1})),this.makeModalDraggable(),this.handleModalEvents(),this.setRealized(!0),this.updateButtons(),this.updateType(),this.updateTitle(),this.updateMessage(),this.updateClosable(),this.updateAnimate(),this.updateSize(),this.updateTabindex(),this},open:function(){return this.isRealized()||this.realize(),this.getModal().modal("show"),this},close:function(){return this.isRealized()||this.realize(),this.getModal().modal("hide"),this}},n.prototype=l.extend(n.prototype,n.METHODS_TO_OVERRIDE[e.getModalVersion()]),n.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},n.show=function(t){return new n(t).open()},n.alert=function(){var t={},e={type:n.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,buttonLabel:n.DEFAULT_TEXTS.OK,callback:null};t="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?l.extend(!0,e,arguments[0]):l.extend(!0,e,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null});var s=new n(t);return s.setData("callback",t.callback),s.addButton({label:t.buttonLabel,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!0))&&(t.setData("btnClicked",!0),t.close())}}),"function"==typeof s.options.onhide?s.onHide(function(t){var e=!0;return!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&(e=t.getData("callback")(!1)),!1!==e&&(e=this.onhide(t))}.bind({onhide:s.options.onhide})):s.onHide(function(t){var e=!0;return!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&(e=t.getData("callback")(!1)),e}),s.open()},n.confirm=function(){var t={},e={type:n.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,btnCancelLabel:n.DEFAULT_TEXTS.CANCEL,btnCancelClass:null,btnOKLabel:n.DEFAULT_TEXTS.OK,btnOKClass:null,callback:null};null===(t="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?l.extend(!0,e,arguments[0]):l.extend(!0,e,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null})).btnOKClass&&(t.btnOKClass=["btn",t.type.split("-")[1]].join("-"));var s=new n(t);return s.setData("callback",t.callback),s.addButton({label:t.btnCancelLabel,cssClass:t.btnCancelClass,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!1))&&t.close()}}),s.addButton({label:t.btnOKLabel,cssClass:t.btnOKClass,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!0))&&t.close()}}),s.open()},n.warning=function(t,e){return new n({type:n.TYPE_WARNING,message:t}).open()},n.danger=function(t,e){return new n({type:n.TYPE_DANGER,message:t}).open()},n.success=function(t,e){return new n({type:n.TYPE_SUCCESS,message:t}).open()},n}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t,a;function p(){return t.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function o(t,e){var s,a=[];for(s=0;s<t.length;++s)a.push(e(t[s],s));return a}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var s in e)h(e,s)&&(t[s]=e[s]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,s,a){return le(t,e,s,a,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}),t._pf}function r(t){if(null==t._isValid){var e=m(t),s=a.call(e.parsedDateParts,function(t){return null!=t});t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&s),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function c(t){var e=d(NaN);return null!=t?l(m(e),t):m(e).userInvalidated=!0,e}function u(t){return void 0===t}a=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),s=e.length>>>0,a=0;a<s;a++)if(a in e&&t.call(this,e[a],a,e))return!0;return!1};var f=p.momentProperties=[];function g(t,e){var s,a,i;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=m(e)),u(e._locale)||(t._locale=e._locale),0<f.length)for(s in f)u(i=e[a=f[s]])||(t[a]=i);return t}var e=!1;function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===e&&(e=!0,p.updateOffset(this),e=!1)}function b(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function y(t){return t<0?Math.ceil(t):Math.floor(t)}function w(t){var e=+t,s=0;return 0!=e&&isFinite(e)&&(s=y(e)),s}function k(t,e,s){var a,i=Math.min(t.length,e.length),n=Math.abs(t.length-e.length),o=0;for(a=0;a<i;a++)(s&&t[a]!==e[a]||!s&&w(t[a])!==w(e[a]))&&o++;return o+n}function x(t){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function s(t,e){var s=!0;return l(function(){return null!=p.deprecationHandler&&p.deprecationHandler(null,t),s&&(x(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),s=!1),e.apply(this,arguments)},e)}var C,_={};function P(t,e){null!=p.deprecationHandler&&p.deprecationHandler(t,e),_[t]||(x(e),_[t]=!0)}function A(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){return"[object Object]"===Object.prototype.toString.call(t)}function D(t,e){var s,a=l({},t);for(s in e)h(e,s)&&(M(t[s])&&M(e[s])?(a[s]={},l(a[s],t[s]),l(a[s],e[s])):null!=e[s]?a[s]=e[s]:delete a[s]);return a}function T(t){null!=t&&this.set(t)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,s=[];for(e in t)h(t,e)&&s.push(e);return s};var S,E={};function O(t){return t?t.toLowerCase().replace("_","-"):t}function L(t){var e=null;if(!E[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=S._abbr,require("./locale/"+t),B(e)}catch(t){}return E[t]}function B(t,e){var s;return t&&(s=u(e)?j(t):I(t,e))&&(S=s),S._abbr}function I(t,e){return null!==e?(e.abbr=t,null!=E[t]?(P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),e=D(E[t]._config,e)):null!=e.parentLocale&&(null!=E[e.parentLocale]?e=D(E[e.parentLocale]._config,e):P("parentLocaleUndefined","specified parentLocale is not defined yet")),E[t]=new T(e),B(t),E[t]):(delete E[t],null)}function j(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return S;if(!i(t)){if(e=L(t))return e;t=[t]}return function(t){for(var e,s,a,i,n=0;n<t.length;){for(e=(i=O(t[n]).split("-")).length,s=(s=O(t[n+1]))?s.split("-"):null;0<e;){if(a=L(i.slice(0,e).join("-")))return a;if(s&&s.length>=e&&k(i,s,!0)>=e-1)break;e--}n++}return null}(t)}var F={};function Y(t,e){var s=t.toLowerCase();F[s]=F[s+"s"]=F[e]=t}function R(t){return"string"==typeof t?F[t]||F[t.toLowerCase()]:void 0}function z(t){var e,s,a={};for(s in t)h(t,s)&&(e=R(s))&&(a[e]=t[s]);return a}function Q(e,s){return function(t){return null!=t?(N(this,e,t),p.updateOffset(this,s),this):H(this,e)}}function H(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function N(t,e,s){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](s)}function $(t,e){var s;if("object"==typeof t)for(s in t)this.set(s,t[s]);else if(A(this[t=R(t)]))return this[t](e);return this}function U(t,e,s){var a=""+Math.abs(t),i=e-a.length;return(0<=t?s?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+a}var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},K={};function W(t,e,s,a){var i=a;"string"==typeof a&&(i=function(){return this[a]()}),t&&(K[t]=i),e&&(K[e[0]]=function(){return U(i.apply(this,arguments),e[1],e[2])}),s&&(K[s]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function J(t,e){return t.isValid()?(e=Z(e,t.localeData()),V[e]=V[e]||function(a){var t,i,e,n=a.match(G);for(t=0,i=n.length;t<i;t++)K[n[t]]?n[t]=K[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]#x2F;g,""):e.replace(/\\/g,"");return function(t){var e,s="";for(e=0;e<i;e++)s+=n[e]instanceof Function?n[e].call(t,a):n[e];return s}}(e),V[e](t)):t.localeData().invalidDate()}function Z(t,e){var s=5;function a(t){return e.longDateFormat(t)||t}for(q.lastIndex=0;0<=s&&q.test(t);)t=t.replace(q,a),q.lastIndex=0,s-=1;return t}var X=/\d/,tt=/\d\d/,et=/\d{3}/,st=/\d{4}/,at=/[+-]?\d{6}/,it=/\d\d?/,nt=/\d\d\d\d?/,ot=/\d\d\d\d\d\d?/,lt=/\d{1,3}/,rt=/\d{1,4}/,ct=/[+-]?\d{1,6}/,dt=/\d+/,ut=/[+-]?\d+/,pt=/Z|[+-]\d\d:?\d\d/gi,ht=/Z|[+-]\d\d(?::?\d\d)?/gi,mt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ft={};function gt(t,s,a){ft[t]=A(s)?s:function(t,e){return t&&a?a:s}}function vt(t,e){return h(ft,t)?ft[t](e._strict,e._locale):new RegExp(function(t){return bt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,s,a,i){return e||s||a||i}))}(t))}function bt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\amp;")}var yt={};function wt(t,s){var e,a=s;for("string"==typeof t&&(t=[t]),"number"==typeof s&&(a=function(t,e){e[s]=w(t)}),e=0;e<t.length;e++)yt[t[e]]=a}function kt(t,i){wt(t,function(t,e,s,a){s._w=s._w||{},i(t,s._w,s,a)})}var xt,Ct=0,_t=1,Pt=2,At=3,Mt=4,Dt=5,Tt=6,St=7,Et=8;function Ot(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}xt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),W("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),gt("M",it),gt("MM",it,tt),gt("MMM",function(t,e){return e.monthsShortRegex(t)}),gt("MMMM",function(t,e){return e.monthsRegex(t)}),wt(["M","MM"],function(t,e){e[_t]=w(t)-1}),wt(["MMM","MMMM"],function(t,e,s,a){var i=s._locale.monthsParse(t,a,s._strict);null!=i?e[_t]=i:m(s).invalidMonth=t});var Lt=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Bt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var It="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function jt(t,e){var s;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+#x2F;.test(e))e=w(e);else if("number"!=typeof(e=t.localeData().monthsParse(e)))return t;return s=Math.min(t.date(),Ot(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,s),t}function Ft(t){return null!=t?(jt(this,t),p.updateOffset(this,!0),this):H(this,"Month")}var Yt=mt;var Rt=mt;function zt(){function t(t,e){return e.length-t.length}var e,s,a=[],i=[],n=[];for(e=0;e<12;e++)s=d([2e3,e]),a.push(this.monthsShort(s,"")),i.push(this.months(s,"")),n.push(this.months(s,"")),n.push(this.monthsShort(s,""));for(a.sort(t),i.sort(t),n.sort(t),e=0;e<12;e++)a[e]=bt(a[e]),i[e]=bt(i[e]),n[e]=bt(n[e]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(t){var e,s=t._a;return s&&-2===m(t).overflow&&(e=s[_t]<0||11<s[_t]?_t:s[Pt]<1||s[Pt]>Ot(s[Ct],s[_t])?Pt:s[At]<0||24<s[At]||24===s[At]&&(0!==s[Mt]||0!==s[Dt]||0!==s[Tt])?At:s[Mt]<0||59<s[Mt]?Mt:s[Dt]<0||59<s[Dt]?Dt:s[Tt]<0||999<s[Tt]?Tt:-1,m(t)._overflowDayOfYear&&(e<Ct||Pt<e)&&(e=Pt),m(t)._overflowWeeks&&-1===e&&(e=St),m(t)._overflowWeekday&&-1===e&&(e=Et),m(t).overflow=e),t}var Ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Nt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,$t=/Z|[+-]\d\d(?::?\d\d)?/,Ut=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qt=/^\/?Date\((\-?\d+)/i;function Vt(t){var e,s,a,i,n,o,l=t._i,r=Ht.exec(l)||Nt.exec(l);if(r){for(m(t).iso=!0,e=0,s=Ut.length;e<s;e++)if(Ut[e][1].exec(r[1])){i=Ut[e][0],a=!1!==Ut[e][2];break}if(null==i)return void(t._isValid=!1);if(r[3]){for(e=0,s=Gt.length;e<s;e++)if(Gt[e][1].exec(r[3])){n=(r[2]||" ")+Gt[e][0];break}if(null==n)return void(t._isValid=!1)}if(!a&&null!=n)return void(t._isValid=!1);if(r[4]){if(!$t.exec(r[4]))return void(t._isValid=!1);o="Z"}t._f=i+(n||"")+(o||""),ne(t)}else t._isValid=!1}function Kt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Wt(t){return Jt(t)?366:365}function Jt(t){return t%4==0&&t%100!=0||t%400==0}p.createFromInputFallback=s("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),W("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),gt("Y",ut),gt("YY",it,tt),gt("YYYY",rt,st),gt("YYYYY",ct,at),gt("YYYYYY",ct,at),wt(["YYYYY","YYYYYY"],Ct),wt("YYYY",function(t,e){e[Ct]=2===t.length?p.parseTwoDigitYear(t):w(t)}),wt("YY",function(t,e){e[Ct]=p.parseTwoDigitYear(t)}),wt("Y",function(t,e){e[Ct]=parseInt(t,10)}),p.parseTwoDigitYear=function(t){return w(t)+(68<w(t)?1900:2e3)};var Zt=Q("FullYear",!0);function Xt(t,e,s){var a=7+e-s;return a-(7+Kt(t,0,a).getUTCDay()-e)%7-1}function te(t,e,s,a,i){var n,o,l=1+7*(e-1)+(7+s-a)%7+Xt(t,a,i);return o=l<=0?Wt(n=t-1)+l:l>Wt(t)?(n=t+1,l-Wt(t)):(n=t,l),{year:n,dayOfYear:o}}function ee(t,e,s){var a,i,n=Xt(t.year(),e,s),o=Math.floor((t.dayOfYear()-n-1)/7)+1;return o<1?a=o+se(i=t.year()-1,e,s):o>se(t.year(),e,s)?(a=o-se(t.year(),e,s),i=t.year()+1):(i=t.year(),a=o),{week:a,year:i}}function se(t,e,s){var a=Xt(t,e,s),i=Xt(t+1,e,s);return(Wt(t)-a+i)/7}function ae(t,e,s){return null!=t?t:null!=e?e:s}function ie(t){var e,s,a,i,n=[];if(!t._d){for(a=function(t){var e=new Date(p.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Pt]&&null==t._a[_t]&&function(t){var e,s,a,i,n,o,l,r;null!=(e=t._w).GG||null!=e.W||null!=e.E?(n=1,o=4,s=ae(e.GG,t._a[Ct],ee(re(),1,4).year),a=ae(e.W,1),((i=ae(e.E,1))<1||7<i)&&(r=!0)):(n=t._locale._week.dow,o=t._locale._week.doy,s=ae(e.gg,t._a[Ct],ee(re(),n,o).year),a=ae(e.w,1),null!=e.d?((i=e.d)<0||6<i)&&(r=!0):null!=e.e?(i=e.e+n,(e.e<0||6<e.e)&&(r=!0)):i=n);a<1||a>se(s,n,o)?m(t)._overflowWeeks=!0:null!=r?m(t)._overflowWeekday=!0:(l=te(s,a,i,n,o),t._a[Ct]=l.year,t._dayOfYear=l.dayOfYear)}(t),t._dayOfYear&&(i=ae(t._a[Ct],a[Ct]),t._dayOfYear>Wt(i)&&(m(t)._overflowDayOfYear=!0),s=Kt(i,0,t._dayOfYear),t._a[_t]=s.getUTCMonth(),t._a[Pt]=s.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=n[e]=a[e];for(;e<7;e++)t._a[e]=n[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[At]&&0===t._a[Mt]&&0===t._a[Dt]&&0===t._a[Tt]&&(t._nextDay=!0,t._a[At]=0),t._d=(t._useUTC?Kt:function(t,e,s,a,i,n,o){var l=new Date(t,e,s,a,i,n,o);return t<100&&0<=t&&isFinite(l.getFullYear())&&l.setFullYear(t),l}).apply(null,n),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[At]=24)}}function ne(t){if(t._f!==p.ISO_8601){t._a=[],m(t).empty=!0;var e,s,a,i,n,o,l,r,c=""+t._i,d=c.length,u=0;for(a=Z(t._f,t._locale).match(G)||[],e=0;e<a.length;e++)i=a[e],(s=(c.match(vt(i,t))||[])[0])&&(0<(n=c.substr(0,c.indexOf(s))).length&&m(t).unusedInput.push(n),c=c.slice(c.indexOf(s)+s.length),u+=s.length),K[i]?(s?m(t).empty=!1:m(t).unusedTokens.push(i),o=i,r=t,null!=(l=s)&&h(yt,o)&&yt[o](l,r._a,r,o)):t._strict&&!s&&m(t).unusedTokens.push(i);m(t).charsLeftOver=d-u,0<c.length&&m(t).unusedInput.push(c),!0===m(t).bigHour&&t._a[At]<=12&&0<t._a[At]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[At]=function(t,e,s){var a;if(null==s)return e;return null!=t.meridiemHour?t.meridiemHour(e,s):(null!=t.isPM&&((a=t.isPM(s))&&e<12&&(e+=12),a||12!==e||(e=0)),e)}(t._locale,t._a[At],t._meridiem),ie(t),Qt(t)}else Vt(t)}function oe(t){var e=t._i,s=t._f;return t._locale=t._locale||j(t._l),null===e||void 0===s&&""===e?c({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new v(Qt(e)):(i(s)?function(t){var e,s,a,i,n;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)n=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],ne(e),r(e)&&(n+=m(e).charsLeftOver,n+=10*m(e).unusedTokens.length,m(e).score=n,(null==a||n<a)&&(a=n,s=e));l(t,s||e)}(t):s?ne(t):n(e)?t._d=e:function(t){var e=t._i;void 0===e?t._d=new Date(p.now()):n(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=qt.exec(t._i);null===e?(Vt(t),!1===t._isValid&&(delete t._isValid,p.createFromInputFallback(t))):t._d=new Date(+e[1])}(t):i(e)?(t._a=o(e.slice(0),function(t){return parseInt(t,10)}),ie(t)):"object"==typeof e?function(t){if(!t._d){var e=z(t._i);t._a=o([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ie(t)}}(t):"number"==typeof e?t._d=new Date(e):p.createFromInputFallback(t)}(t),r(t)||(t._d=null),t))}function le(t,e,s,a,i){var n={};return"boolean"==typeof s&&(a=s,s=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=i,n._l=s,n._i=t,n._f=e,n._strict=a,function(t){var e=new v(Qt(oe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(n)}function re(t,e,s,a){return le(t,e,s,a,!1)}p.ISO_8601=function(){};var ce=s("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=re.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:c()}),de=s("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=re.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:c()});function ue(t,e){var s,a;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return re();for(s=e[0],a=1;a<e.length;++a)e[a].isValid()&&!e[a][t](s)||(s=e[a]);return s}function pe(t){var e=z(t),s=e.year||0,a=e.quarter||0,i=e.month||0,n=e.week||0,o=e.day||0,l=e.hour||0,r=e.minute||0,c=e.second||0,d=e.millisecond||0;this._milliseconds=+d+1e3*c+6e4*r+1e3*l*60*60,this._days=+o+7*n,this._months=+i+3*a+12*s,this._data={},this._locale=j(),this._bubble()}function he(t){return t instanceof pe}function me(t,s){W(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+U(~~(t/60),2)+s+U(~~t%60,2)})}me("Z",":"),me("ZZ",""),gt("Z",ht),gt("ZZ",ht),wt(["Z","ZZ"],function(t,e,s){s._useUTC=!0,s._tzm=ge(ht,t)});var fe=/([\+\-]|\d\d)/gi;function ge(t,e){var s=(e||"").match(t)||[],a=((s[s.length-1]||[])+"").match(fe)||["-",0,0],i=60*a[1]+w(a[2]);return"+"===a[0]?i:-i}function ve(t,e){var s,a;return e._isUTC?(s=e.clone(),a=(b(t)||n(t)?t.valueOf():re(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+a),p.updateOffset(s,!1),s):re(t).local()}function be(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function ye(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}p.updateOffset=function(){};var we=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?#x2F;,ke=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?#x2F;;function xe(t,e){var s,a,i,n=t,o=null;return he(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(n={},e?n[e]=t:n.milliseconds=t):(o=we.exec(t))?(s="-"===o[1]?-1:1,n={y:0,d:w(o[Pt])*s,h:w(o[At])*s,m:w(o[Mt])*s,s:w(o[Dt])*s,ms:w(o[Tt])*s}):(o=ke.exec(t))?(s="-"===o[1]?-1:1,n={y:Ce(o[2],s),M:Ce(o[3],s),w:Ce(o[4],s),d:Ce(o[5],s),h:Ce(o[6],s),m:Ce(o[7],s),s:Ce(o[8],s)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(i=function(t,e){var s;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ve(e,t),t.isBefore(e)?s=_e(t,e):((s=_e(e,t)).milliseconds=-s.milliseconds,s.months=-s.months);return s}(re(n.from),re(n.to)),(n={}).ms=i.milliseconds,n.M=i.months),a=new pe(n),he(t)&&h(t,"_locale")&&(a._locale=t._locale),a}function Ce(t,e){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*e}function _e(t,e){var s={milliseconds:0,months:0};return s.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(s.months,"M").isAfter(e)&&--s.months,s.milliseconds=e-t.clone().add(s.months,"M"),s}function Pe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ae(a,i){return function(t,e){var s;return null===e||isNaN(+e)||(P(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period)."),s=t,t=e,e=s),Me(this,xe(t="string"==typeof t?+t:t,e),a),this}}function Me(t,e,s,a){var i=e._milliseconds,n=Pe(e._days),o=Pe(e._months);t.isValid()&&(a=null==a||a,i&&t._d.setTime(t._d.valueOf()+i*s),n&&N(t,"Date",H(t,"Date")+n*s),o&&jt(t,H(t,"Month")+o*s),a&&p.updateOffset(t,n||o))}xe.fn=pe.prototype;var De=Ae(1,"add"),Te=Ae(-1,"subtract");function Se(t){var e;return void 0===t?this._locale._abbr:(null!=(e=j(t))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ee=s("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Oe(){return this._locale}function Le(t,e){W(0,[t,t.length],0,e)}function Be(t,e,s,a,i){var n;return null==t?ee(this,a,i).year:((n=se(t,a,i))<e&&(e=n),function(t,e,s,a,i){var n=te(t,e,s,a,i),o=Kt(n.year,0,n.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,s,a,i))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Le("gggg","weekYear"),Le("ggggg","weekYear"),Le("GGGG","isoWeekYear"),Le("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),gt("G",ut),gt("g",ut),gt("GG",it,tt),gt("gg",it,tt),gt("GGGG",rt,st),gt("gggg",rt,st),gt("GGGGG",ct,at),gt("ggggg",ct,at),kt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,s,a){e[a.substr(0,2)]=w(t)}),kt(["gg","GG"],function(t,e,s,a){e[a]=p.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),Y("quarter","Q"),gt("Q",X),wt("Q",function(t,e){e[_t]=3*(w(t)-1)}),W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),gt("w",it),gt("ww",it,tt),gt("W",it),gt("WW",it,tt),kt(["w","ww","W","WW"],function(t,e,s,a){e[a.substr(0,1)]=w(t)});W("D",["DD",2],"Do","date"),Y("date","D"),gt("D",it),gt("DD",it,tt),gt("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),wt(["D","DD"],Pt),wt("Do",function(t,e){e[Pt]=w(t.match(it)[0])});var Ie=Q("Date",!0);W("d",0,"do","day"),W("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),W("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),W("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),gt("d",it),gt("e",it),gt("E",it),gt("dd",function(t,e){return e.weekdaysMinRegex(t)}),gt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),gt("dddd",function(t,e){return e.weekdaysRegex(t)}),kt(["dd","ddd","dddd"],function(t,e,s,a){var i=s._locale.weekdaysParse(t,a,s._strict);null!=i?e.d=i:m(s).invalidWeekday=t}),kt(["d","e","E"],function(t,e,s,a){e[a]=w(t)});var je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Fe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Re=mt;var ze=mt;var Qe=mt;function He(){function t(t,e){return e.length-t.length}var e,s,a,i,n,o=[],l=[],r=[],c=[];for(e=0;e<7;e++)s=d([2e3,1]).day(e),a=this.weekdaysMin(s,""),i=this.weekdaysShort(s,""),n=this.weekdays(s,""),o.push(a),l.push(i),r.push(n),c.push(a),c.push(i),c.push(n);for(o.sort(t),l.sort(t),r.sort(t),c.sort(t),e=0;e<7;e++)l[e]=bt(l[e]),r[e]=bt(r[e]),c[e]=bt(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ne(){return this.hours()%12||12}function $e(t,e){W(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Ue(t,e){return e._meridiemParse}W("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),gt("DDD",lt),gt("DDDD",et),wt(["DDD","DDDD"],function(t,e,s){s._dayOfYear=w(t)}),W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Ne),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Ne.apply(this)+U(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Ne.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),$e("a",!0),$e("A",!1),Y("hour","h"),gt("a",Ue),gt("A",Ue),gt("H",it),gt("h",it),gt("HH",it,tt),gt("hh",it,tt),gt("hmm",nt),gt("hmmss",ot),gt("Hmm",nt),gt("Hmmss",ot),wt(["H","HH"],At),wt(["a","A"],function(t,e,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),wt(["h","hh"],function(t,e,s){e[At]=w(t),m(s).bigHour=!0}),wt("hmm",function(t,e,s){var a=t.length-2;e[At]=w(t.substr(0,a)),e[Mt]=w(t.substr(a)),m(s).bigHour=!0}),wt("hmmss",function(t,e,s){var a=t.length-4,i=t.length-2;e[At]=w(t.substr(0,a)),e[Mt]=w(t.substr(a,2)),e[Dt]=w(t.substr(i)),m(s).bigHour=!0}),wt("Hmm",function(t,e,s){var a=t.length-2;e[At]=w(t.substr(0,a)),e[Mt]=w(t.substr(a))}),wt("Hmmss",function(t,e,s){var a=t.length-4,i=t.length-2;e[At]=w(t.substr(0,a)),e[Mt]=w(t.substr(a,2)),e[Dt]=w(t.substr(i))});var Ge=Q("Hours",!0);W("m",["mm",2],0,"minute"),Y("minute","m"),gt("m",it),gt("mm",it,tt),wt(["m","mm"],Mt);var qe=Q("Minutes",!1);W("s",["ss",2],0,"second"),Y("second","s"),gt("s",it),gt("ss",it,tt),wt(["s","ss"],Dt);var Ve,Ke=Q("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),gt("S",lt,X),gt("SS",lt,tt),gt("SSS",lt,et),Ve="SSSS";Ve.length<=9;Ve+="S")gt(Ve,dt);function We(t,e){e[Tt]=w(1e3*("0."+t))}for(Ve="S";Ve.length<=9;Ve+="S")wt(Ve,We);var Je=Q("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var Ze=v.prototype;Ze.add=De,Ze.calendar=function(t,e){var s=t||re(),a=ve(s,this).startOf("day"),i=this.diff(a,"days",!0),n=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse",o=e&&(A(e[n])?e[n]():e[n]);return this.format(o||this.localeData().calendar(n,this,re(s)))},Ze.clone=function(){return new v(this)},Ze.diff=function(t,e,s){var a,i,n,o;return this.isValid()&&(a=ve(t,this)).isValid()?(i=6e4*(a.utcOffset()-this.utcOffset()),"year"===(e=R(e))||"month"===e||"quarter"===e?(o=function(t,e){var s,a,i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");a=e-n<0?(s=t.clone().add(i-1,"months"),(e-n)/(n-s)):(s=t.clone().add(1+i,"months"),(e-n)/(s-n));return-(i+a)||0}(this,a),"quarter"===e?o/=3:"year"===e&&(o/=12)):(n=this-a,o="second"===e?n/1e3:"minute"===e?n/6e4:"hour"===e?n/36e5:"day"===e?(n-i)/864e5:"week"===e?(n-i)/6048e5:n),s?o:y(o)):NaN},Ze.endOf=function(t){return void 0===(t=R(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},Ze.format=function(t){t=t||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var e=J(this,t);return this.localeData().postformat(e)},Ze.from=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||re(t).isValid())?xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ze.fromNow=function(t){return this.from(re(),t)},Ze.to=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||re(t).isValid())?xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ze.toNow=function(t){return this.to(re(),t)},Ze.get=$,Ze.invalidAt=function(){return m(this).overflow},Ze.isAfter=function(t,e){var s=b(t)?t:re(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=R(u(e)?"millisecond":e))?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(e).valueOf())},Ze.isBefore=function(t,e){var s=b(t)?t:re(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=R(u(e)?"millisecond":e))?this.valueOf()<s.valueOf():this.clone().endOf(e).valueOf()<s.valueOf())},Ze.isBetween=function(t,e,s,a){return("("===(a=a||"()")[0]?this.isAfter(t,s):!this.isBefore(t,s))&&(")"===a[1]?this.isBefore(e,s):!this.isAfter(e,s))},Ze.isSame=function(t,e){var s,a=b(t)?t:re(t);return!(!this.isValid()||!a.isValid())&&("millisecond"===(e=R(e||"millisecond"))?this.valueOf()===a.valueOf():(s=a.valueOf(),this.clone().startOf(e).valueOf()<=s&&s<=this.clone().endOf(e).valueOf()))},Ze.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ze.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ze.isValid=function(){return r(this)},Ze.lang=Ee,Ze.locale=Se,Ze.localeData=Oe,Ze.max=de,Ze.min=ce,Ze.parsingFlags=function(){return l({},m(this))},Ze.set=$,Ze.startOf=function(t){switch(t=R(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},Ze.subtract=Te,Ze.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ze.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Ze.toDate=function(){return this._offset?new Date(this.valueOf()):this._d},Ze.toISOString=function(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?A(Date.prototype.toISOString)?this.toDate().toISOString():J(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):J(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},Ze.toJSON=function(){return this.isValid()?this.toISOString():null},Ze.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ze.unix=function(){return Math.floor(this.valueOf()/1e3)},Ze.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ze.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ze.year=Zt,Ze.isLeapYear=function(){return Jt(this.year())},Ze.weekYear=function(t){return Be.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ze.isoWeekYear=function(t){return Be.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ze.quarter=Ze.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ze.month=Ft,Ze.daysInMonth=function(){return Ot(this.year(),this.month())},Ze.week=Ze.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ze.isoWeek=Ze.isoWeeks=function(t){var e=ee(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ze.weeksInYear=function(){var t=this.localeData()._week;return se(this.year(),t.dow,t.doy)},Ze.isoWeeksInYear=function(){return se(this.year(),1,4)},Ze.date=Ie,Ze.day=Ze.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Ze.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Ze.isoWeekday=function(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:NaN},Ze.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Ze.hour=Ze.hours=Ge,Ze.minute=Ze.minutes=qe,Ze.second=Ze.seconds=Ke,Ze.millisecond=Ze.milliseconds=Je,Ze.utcOffset=function(t,e){var s,a=this._offset||0;return this.isValid()?null!=t?("string"==typeof t?t=ge(ht,t):Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(s=be(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),a!==t&&(!e||this._changeInProgress?Me(this,xe(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?a:be(this):null!=t?this:NaN},Ze.utc=function(t){return this.utcOffset(0,t)},Ze.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(be(this),"m")),this},Ze.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ge(pt,this._i)),this},Ze.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?re(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ze.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ze.isDSTShifted=function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=oe(t))._a){var e=t._isUTC?d(t._a):re(t._a);this._isDSTShifted=this.isValid()&&0<k(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted},Ze.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ze.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ze.isUtc=ye,Ze.isUTC=ye,Ze.zoneAbbr=function(){return this._isUTC?"UTC":""},Ze.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ze.dates=s("dates accessor is deprecated. Use date instead.",Ie),Ze.months=s("months accessor is deprecated. Use month instead",Ft),Ze.years=s("years accessor is deprecated. Use year instead",Zt),Ze.zone=s("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()});var Xe=Ze;function ts(t){return t}var es=T.prototype;function ss(t,e,s,a){var i=j(),n=d().set(a,e);return i[s](n,t)}function as(t,e,s){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return ss(t,e,s,"month");var a,i=[];for(a=0;a<12;a++)i[a]=ss(t,a,s,"month");return i}function is(t,e,s,a){e=("boolean"==typeof t?"number"==typeof e&&(s=e,e=void 0):(e=t,t=!1,"number"==typeof(s=e)&&(s=e,e=void 0)),e||"");var i,n=j(),o=t?n._week.dow:0;if(null!=s)return ss(e,(s+o)%7,a,"day");var l=[];for(i=0;i<7;i++)l[i]=ss(e,(i+o)%7,a,"day");return l}es._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},es.calendar=function(t,e,s){var a=this._calendar[t];return A(a)?a.call(e,s):a},es._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},es.longDateFormat=function(t){var e=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return e||!s?e:(this._longDateFormat[t]=s.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},es._invalidDate="Invalid date",es.invalidDate=function(){return this._invalidDate},es._ordinal="%d",es.ordinal=function(t){return this._ordinal.replace("%d",t)},es._ordinalParse=/\d{1,2}/,es.preparse=ts,es.postformat=ts,es._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},es.relativeTime=function(t,e,s,a){var i=this._relativeTime[s];return A(i)?i(t,e,s,a):i.replace(/%d/i,t)},es.pastFuture=function(t,e){var s=this._relativeTime[0<t?"future":"past"];return A(s)?s(e):s.replace(/%s/i,e)},es.set=function(t){var e,s;for(s in t)A(e=t[s])?this[s]=e:this["_"+s]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},es.months=function(t,e){return i(this._months)?this._months[t.month()]:this._months[Lt.test(e)?"format":"standalone"][t.month()]},es._months=Bt,es.monthsShort=function(t,e){return i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Lt.test(e)?"format":"standalone"][t.month()]},es._monthsShort=It,es.monthsParse=function(t,e,s){var a,i,n;if(this._monthsParseExact)return function(t,e,s){var a,i,n,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)n=d([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(n,"").toLocaleLowerCase();return s?"MMM"===e?-1!==(i=xt.call(this._shortMonthsParse,o))?i:null:-1!==(i=xt.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=xt.call(this._shortMonthsParse,o))?i:-1!==(i=xt.call(this._longMonthsParse,o))?i:null:-1!==(i=xt.call(this._longMonthsParse,o))?i:-1!==(i=xt.call(this._shortMonthsParse,o))?i:null}.call(this,t,e,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(i=d([2e3,a]),s&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(i,"").replace(".","")+"quot;,"i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"quot;,"i")),s||this._monthsParse[a]||(n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[a]=new RegExp(n.replace(".",""),"i")),s&&"MMMM"===e&&this._longMonthsParse[a].test(t))return a;if(s&&"MMM"===e&&this._shortMonthsParse[a].test(t))return a;if(!s&&this._monthsParse[a].test(t))return a}},es._monthsRegex=Rt,es.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||zt.call(this),t?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex},es._monthsShortRegex=Yt,es.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||zt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex},es.week=function(t){return ee(t,this._week.dow,this._week.doy).week},es._week={dow:0,doy:6},es.firstDayOfYear=function(){return this._week.doy},es.firstDayOfWeek=function(){return this._week.dow},es.weekdays=function(t,e){return i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]},es._weekdays=je,es.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},es._weekdaysMin=Ye,es.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},es._weekdaysShort=Fe,es.weekdaysParse=function(t,e,s){var a,i,n;if(this._weekdaysParseExact)return function(t,e,s){var a,i,n,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)n=d([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(n,"").toLocaleLowerCase();return s?"dddd"===e?-1!==(i=xt.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=xt.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=xt.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=xt.call(this._weekdaysParse,o))?i:-1!==(i=xt.call(this._shortWeekdaysParse,o))?i:-1!==(i=xt.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=xt.call(this._shortWeekdaysParse,o))?i:-1!==(i=xt.call(this._weekdaysParse,o))?i:-1!==(i=xt.call(this._minWeekdaysParse,o))?i:null:-1!==(i=xt.call(this._minWeekdaysParse,o))?i:-1!==(i=xt.call(this._weekdaysParse,o))?i:-1!==(i=xt.call(this._shortWeekdaysParse,o))?i:null}.call(this,t,e,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(i=d([2e3,1]).day(a),s&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"quot;,"i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"quot;,"i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"quot;,"i")),this._weekdaysParse[a]||(n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[a]=new RegExp(n.replace(".",""),"i")),s&&"dddd"===e&&this._fullWeekdaysParse[a].test(t))return a;if(s&&"ddd"===e&&this._shortWeekdaysParse[a].test(t))return a;if(s&&"dd"===e&&this._minWeekdaysParse[a].test(t))return a;if(!s&&this._weekdaysParse[a].test(t))return a}},es._weekdaysRegex=Re,es.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||He.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex},es._weekdaysShortRegex=ze,es.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||He.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex},es._weekdaysMinRegex=Qe,es.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||He.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex},es.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},es._meridiemParse=/[ap]\.?m?\.?/i,es.meridiem=function(t,e,s){return 11<t?s?"pm":"PM":s?"am":"AM"},B("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),p.lang=s("moment.lang is deprecated. Use moment.locale instead.",B),p.langData=s("moment.langData is deprecated. Use moment.localeData instead.",j);var ns=Math.abs;function os(t,e,s,a){var i=xe(e,s);return t._milliseconds+=a*i._milliseconds,t._days+=a*i._days,t._months+=a*i._months,t._bubble()}function ls(t){return t<0?Math.floor(t):Math.ceil(t)}function rs(t){return 4800*t/146097}function cs(t){return 146097*t/4800}function ds(t){return function(){return this.as(t)}}var us=ds("ms"),ps=ds("s"),hs=ds("m"),ms=ds("h"),fs=ds("d"),gs=ds("w"),vs=ds("M"),bs=ds("y");function ys(t){return function(){return this._data[t]}}var ws=ys("milliseconds"),ks=ys("seconds"),xs=ys("minutes"),Cs=ys("hours"),_s=ys("days"),Ps=ys("months"),As=ys("years");var Ms=Math.round,Ds={s:45,m:45,h:22,d:26,M:11};function Ts(t,e,s){var a=xe(t).abs(),i=Ms(a.as("s")),n=Ms(a.as("m")),o=Ms(a.as("h")),l=Ms(a.as("d")),r=Ms(a.as("M")),c=Ms(a.as("y")),d=i<Ds.s&&["s",i]||n<=1&&["m"]||n<Ds.m&&["mm",n]||o<=1&&["h"]||o<Ds.h&&["hh",o]||l<=1&&["d"]||l<Ds.d&&["dd",l]||r<=1&&["M"]||r<Ds.M&&["MM",r]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=0<+t,d[4]=s,function(t,e,s,a,i){return i.relativeTime(e||1,!!s,t,a)}.apply(null,d)}var Ss=Math.abs;function Es(){var t,e,s=Ss(this._milliseconds)/1e3,a=Ss(this._days),i=Ss(this._months);t=y(s/60),e=y(t/60),s%=60,t%=60;var n=y(i/12),o=i%=12,l=a,r=e,c=t,d=s,u=this.asSeconds();return u?(u<0?"-":"")+"P"+(n?n+"Y":"")+(o?o+"M":"")+(l?l+"D":"")+(r||c||d?"T":"")+(r?r+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var Os=pe.prototype;return Os.abs=function(){var t=this._data;return this._milliseconds=ns(this._milliseconds),this._days=ns(this._days),this._months=ns(this._months),t.milliseconds=ns(t.milliseconds),t.seconds=ns(t.seconds),t.minutes=ns(t.minutes),t.hours=ns(t.hours),t.months=ns(t.months),t.years=ns(t.years),this},Os.add=function(t,e){return os(this,t,e,1)},Os.subtract=function(t,e){return os(this,t,e,-1)},Os.as=function(t){var e,s,a=this._milliseconds;if("month"===(t=R(t))||"year"===t)return e=this._days+a/864e5,s=this._months+rs(e),"month"===t?s:s/12;switch(e=this._days+Math.round(cs(this._months)),t){case"week":return e/7+a/6048e5;case"day":return e+a/864e5;case"hour":return 24*e+a/36e5;case"minute":return 1440*e+a/6e4;case"second":return 86400*e+a/1e3;case"millisecond":return Math.floor(864e5*e)+a;default:throw new Error("Unknown unit "+t)}},Os.asMilliseconds=us,Os.asSeconds=ps,Os.asMinutes=hs,Os.asHours=ms,Os.asDays=fs,Os.asWeeks=gs,Os.asMonths=vs,Os.asYears=bs,Os.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)},Os._bubble=function(){var t,e,s,a,i,n=this._milliseconds,o=this._days,l=this._months,r=this._data;return 0<=n&&0<=o&&0<=l||n<=0&&o<=0&&l<=0||(n+=864e5*ls(cs(l)+o),l=o=0),r.milliseconds=n%1e3,t=y(n/1e3),r.seconds=t%60,e=y(t/60),r.minutes=e%60,s=y(e/60),r.hours=s%24,o+=y(s/24),l+=i=y(rs(o)),o-=ls(cs(i)),a=y(l/12),l%=12,r.days=o,r.months=l,r.years=a,this},Os.get=function(t){return this[(t=R(t))+"s"]()},Os.milliseconds=ws,Os.seconds=ks,Os.minutes=xs,Os.hours=Cs,Os.days=_s,Os.weeks=function(){return y(this.days()/7)},Os.months=Ps,Os.years=As,Os.humanize=function(t){var e=this.localeData(),s=Ts(this,!t,e);return t&&(s=e.pastFuture(+this,s)),e.postformat(s)},Os.toISOString=Es,Os.toString=Es,Os.toJSON=Es,Os.locale=Se,Os.localeData=Oe,Os.toIsoString=s("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Es),Os.lang=Ee,W("X",0,0,"unix"),W("x",0,0,"valueOf"),gt("x",ut),gt("X",/[+-]?\d+(\.\d{1,3})?/),wt("X",function(t,e,s){s._d=new Date(1e3*parseFloat(t,10))}),wt("x",function(t,e,s){s._d=new Date(w(t))}),p.version="2.13.0",t=re,p.fn=Xe,p.min=function(){return ue("isBefore",[].slice.call(arguments,0))},p.max=function(){return ue("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=d,p.unix=function(t){return re(1e3*t)},p.months=function(t,e){return as(t,e,"months")},p.isDate=n,p.locale=B,p.invalid=c,p.duration=xe,p.isMoment=b,p.weekdays=function(t,e,s){return is(t,e,s,"weekdays")},p.parseZone=function(){return re.apply(null,arguments).parseZone()},p.localeData=j,p.isDuration=he,p.monthsShort=function(t,e){return as(t,e,"monthsShort")},p.weekdaysMin=function(t,e,s){return is(t,e,s,"weekdaysMin")},p.defineLocale=I,p.updateLocale=function(t,e){var s;return null!=e?(null!=E[t]&&(e=D(E[t]._config,e)),(s=new T(e)).parentLocale=E[t],E[t]=s,B(t)):null!=E[t]&&(null!=E[t].parentLocale?E[t]=E[t].parentLocale:null!=E[t]&&delete E[t]),E[t]},p.locales=function(){return C(E)},p.weekdaysShort=function(t,e,s){return is(t,e,s,"weekdaysShort")},p.normalizeUnits=R,p.relativeTimeThreshold=function(t,e){return void 0!==Ds[t]&&(void 0===e?Ds[t]:(Ds[t]=e,!0))},p.prototype=Xe,p}),(typeof define==="function"&&define.amd?define:function(t,e){if(typeof module!=="undefined"&&module.exports){module.exports=e(require("jquery"))}else{window.toastr=e(window.jQuery)}})(["jquery"],function(g){return C=0,n="error",o="info",l="success",r="warning",t={clear:function(t,e){var s=y();k||v(s);a(t,s,e)||function(t){for(var e=k.children(),s=e.length-1;0<=s;s--)a(g(e[s]),t)}(s)},remove:function(t){var e=y();k||v(e);if(t&&0===g(":focus",t).length)return void w(t);k.children().length&&k.remove()},error:function(t,e,s){return i({type:n,iconClass:y().iconClasses.error,message:t,optionsOverride:s,title:e})},getContainer:v,info:function(t,e,s){return i({type:o,iconClass:y().iconClasses.info,message:t,optionsOverride:s,title:e})},options:{},subscribe:function(t){e=t},success:function(t,e,s){return i({type:l,iconClass:y().iconClasses.success,message:t,optionsOverride:s,title:e})},version:"2.1.3",warning:function(t,e,s){return i({type:r,iconClass:y().iconClasses.warning,message:t,optionsOverride:s,title:e})}};function v(t,e){return t=t||y(),(k=g("#"+t.containerId)).length||e&&(k=function(t){return(k=g("<div/>").attr("id",t.containerId).addClass(t.positionClass)).appendTo(g(t.target)),k}(t)),k}function a(t,e,s){var a=!(!s||!s.force)&&s.force;return!(!t||!a&&0!==g(":focus",t).length)&&(t[e.hideMethod]({duration:e.hideDuration,easing:e.hideEasing,complete:function(){w(t)}}),!0)}function b(t){e&&e(t)}function i(e){var i=y(),t=e.iconClass||i.iconClass;if(void 0!==e.optionsOverride&&(i=g.extend(i,e.optionsOverride),t=e.optionsOverride.iconClass||t),!function(t,e){if(t.preventDuplicates){if(e.message===x)return!0;x=e.message}return!1}(i,e)){C++,k=v(i,!0);var n=null,o=g("<div/>"),s=g("<div/>"),a=g("<div/>"),l=g("<div/>"),r=g(i.closeHtml),c={intervalId:null,hideEta:null,maxHideTime:null},d={toastId:C,state:"visible",startTime:new Date,options:i,map:e};return e.iconClass&&o.addClass(i.toastClass).addClass(t),function(){if(e.title){var t=e.title;i.escapeHtml&&(t=u(e.title)),s.append(t).addClass(i.titleClass),o.append(s)}}(),function(){if(e.message){var t=e.message;i.escapeHtml&&(t=u(e.message)),a.append(t).addClass(i.messageClass),o.append(a)}}(),i.closeButton&&(r.addClass(i.closeClass).attr("role","button"),o.prepend(r)),i.progressBar&&(l.addClass(i.progressClass),o.prepend(l)),i.rtl&&o.addClass("rtl"),i.newestOnTop?k.prepend(o):k.append(o),function(){var t="";switch(e.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}o.attr("aria-live",t)}(),o.hide(),o[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),0<i.timeOut&&(n=setTimeout(p,i.timeOut),c.maxHideTime=parseFloat(i.timeOut),c.hideEta=(new Date).getTime()+c.maxHideTime,i.progressBar&&(c.intervalId=setInterval(f,10))),function(){i.closeOnHover&&o.hover(m,h);!i.onclick&&i.tapToDismiss&&o.click(p);i.closeButton&&r&&r.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(t),p(!0)});i.onclick&&o.click(function(t){i.onclick(t),p()})}(),b(d),i.debug&&console&&console.log(d),o}function u(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function p(t){var e=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,s=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,a=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!g(":focus",o).length||t)return clearTimeout(c.intervalId),o[e]({duration:s,easing:a,complete:function(){w(o),clearTimeout(n),i.onHidden&&"hidden"!==d.state&&i.onHidden(),d.state="hidden",d.endTime=new Date,b(d)}})}function h(){(0<i.timeOut||0<i.extendedTimeOut)&&(n=setTimeout(p,i.extendedTimeOut),c.maxHideTime=parseFloat(i.extendedTimeOut),c.hideEta=(new Date).getTime()+c.maxHideTime)}function m(){clearTimeout(n),c.hideEta=0,o.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function f(){var t=(c.hideEta-(new Date).getTime())/c.maxHideTime*100;l.width(t+"%")}}function y(){return g.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},t.options)}function w(t){k=k||v(),t.is(":visible")||(t.remove(),t=null,0===k.children().length&&(k.remove(),x=void 0))}var k,e,x,C,n,o,l,r,t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(b){"use strict";var y=b.scrollTo=function(t,e,s){return b(window).scrollTo(t,e,s)};function w(t){return!t.nodeName||-1!==b.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function e(t){return b.isFunction(t)||b.isPlainObject(t)?t:{top:t,left:t}}return y.defaults={axis:"xy",duration:0,limit:!0},b.fn.scrollTo=function(t,s,g){"object"==typeof s&&(g=s,s=0),"function"==typeof g&&(g={onAfter:g}),"max"===t&&(t=9e9),g=b.extend({},y.defaults,g),s=s||g.duration;var v=g.queue&&1<g.axis.length;return v&&(s/=2),g.offset=e(g.offset),g.over=e(g.over),this.each(function(){if(null!==t){var r,c=w(this),d=c?this.contentWindow||window:this,u=b(d),p=t,h={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?#x2F;.test(p)){p=e(p);break}p=c?b(p):b(p,d);case"object":if(0===p.length)return;(p.is||p.style)&&(r=(p=b(p)).offset())}var m=b.isFunction(g.offset)&&g.offset(d,p)||g.offset;b.each(g.axis.split(""),function(t,e){var s="x"===e?"Left":"Top",a=s.toLowerCase(),i="scroll"+s,n=u[i](),o=y.max(d,e);if(r)h[i]=r[a]+(c?0:n-u.offset()[a]),g.margin&&(h[i]-=parseInt(p.css("margin"+s),10)||0,h[i]-=parseInt(p.css("border"+s+"Width"),10)||0),h[i]+=m[a]||0,g.over[a]&&(h[i]+=p["x"===e?"width":"height"]()*g.over[a]);else{var l=p[a];h[i]=l.slice&&"%"===l.slice(-1)?parseFloat(l)/100*o:l}g.limit&&/^\d+#x2F;.test(h[i])&&(h[i]=h[i]<=0?0:Math.min(h[i],o)),!t&&1<g.axis.length&&(n===h[i]?h={}:v&&(f(g.onAfterFirst),h={}))}),f(g.onAfter)}function f(t){var e=b.extend({},g,{queue:!0,duration:s,complete:t&&function(){t.call(d,p,g)}});u.animate(h,e)}})},y.max=function(t,e){var s="x"===e?"Width":"Height",a="scroll"+s;if(!w(t))return t[a]-b(t)[s.toLowerCase()]();var i="client"+s,n=t.ownerDocument||t.document,o=n.documentElement,l=n.body;return Math.max(o[a],l[a])-Math.min(o[i],l[i])},b.Tween.propHooks.scrollLeft=b.Tween.propHooks.scrollTop={get:function(t){return b(t.elem)[t.prop]()},set:function(t){var e=this.get(t);if(t.options.interrupt&&t._last&&t._last!==e)return b(t.elem).stop();var s=Math.round(t.now);e!==s&&(b(t.elem)[t.prop](s),t._last=this.get(t))}},y}),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.striptags=e()}(this,function(){var p=/\s/,h=/<(\w*)>/g;return function(t,n){t=t||"";var e,s,a,i=0,o=0,l="",r="",c=!1;for("string"==typeof n?n=function(t){var e,s=[];for(;null!==(e=h.exec(t));)s.push(e[1]);return 0!==s.length?s:null}(n):Array.isArray(n)||(n=null),e=0,s=t.length;e<s;e++)switch(a=t[e]){case"<":if(c)break;if(" "==t[e+1]){d(a);break}if(0==i){i=1,d(a);break}if(1==i){o++;break}d(a);break;case">":if(o){o--;break}if(c)break;if(1==i){c=i=0,n&&(r+=">",u());break}if(2==i){c=i=0,r="";break}if(3==i&&"-"==t[e-1]&&"-"==t[e-2]){c=i=0,r="";break}d(a);break;case'"':case"'":1==i&&(c=c!=a&&(c||a)),d(a);break;case"!":if(1==i&&"<"==t[e-1]){i=2;break}d(a);break;case"-":if(2==i&&"-"==t[e-1]&&"!"==t[e-2]){i=3;break}d(a);break;case"E":case"e":if(2==i&&"doctype"==t.substr(e-6,7).toLowerCase()){i=1;break}d(a);break;default:d(a)}function d(t){0==i?l+=t:n&&1==i&&(r+=t)}function u(){var t,e,s,a="",i=!1;t:for(t=0,e=r.length;t<e;t++)switch(s=r[t].toLowerCase()){case"<":break;case">":break t;case"/":i=!0;break;default:if(s.match(p)){if(i)break t}else i=!0,a+=s}-1!==n.indexOf(a)&&(l+=r),r=""}return l}}),function(t){"use strict";function e(t){if("#"!=t.charAt(1))return i[t]||t;var e,s=t.charAt(2);return e="x"==s||"X"==s?(s=t.substring(3,t.length-1),parseInt(s,16)):(s=t.substring(2,t.length-1),parseInt(s)),isNaN(e)?t:String.fromCharCode(e)}function s(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(t){return t.replace(/&#?\w+;/g,e)}var i={"&nbsp;":" ","&iexcl;":"¡","&cent;":"¢","&pound;":"£","&curren;":"¤","&yen;":"¥","&brvbar;":"¦","&sect;":"§","&uml;":"¨","&copy;":"©","&ordf;":"ª","&laquo;":"«","&not;":"¬","&shy;":"­","&reg;":"®","&macr;":"¯","&deg;":"°","&plusmn;":"±","&sup2;":"²","&sup3;":"³","&acute;":"´","&micro;":"µ","&para;":"¶","&middot;":"·","&cedil;":"¸","&sup1;":"¹","&ordm;":"º","&raquo;":"»","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&iquest;":"¿","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&times;":"×","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&divide;":"÷","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&quot;":'"',"&amp;":"&","&lt;":"<","&gt;":">","&apos;":"'","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&circ;":"ˆ","&tilde;":"˜","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&zwnj;":"‌","&zwj;":"‍","&lrm;":"‎","&rlm;":"‏","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&permil;":"‰","&lsaquo;":"‹","&rsaquo;":"›","&euro;":"€","&fnof;":"ƒ","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigmaf;":"ς","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&thetasym;":"ϑ","&upsih;":"ϒ","&piv;":"ϖ","&bull;":"•","&hellip;":"…","&prime;":"′","&Prime;":"″","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&trade;":"™","&alefsym;":"ℵ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&forall;":"∀","&part;":"∂","&exist;":"∃","&empty;":"∅","&nabla;":"∇","&isin;":"∈","&notin;":"∉","&ni;":"∋","&prod;":"∏","&sum;":"∑","&minus;":"−","&lowast;":"∗","&radic;":"√","&prop;":"∝","&infin;":"∞","&ang;":"∠","&and;":"∧","&or;":"∨","&cap;":"∩","&cup;":"∪","&int;":"∫","&there4;":"∴","&sim;":"∼","&cong;":"≅","&asymp;":"≈","&ne;":"≠","&equiv;":"≡","&le;":"≤","&ge;":"≥","&sub;":"⊂","&sup;":"⊃","&nsub;":"⊄","&sube;":"⊆","&supe;":"⊇","&oplus;":"⊕","&otimes;":"⊗","&perp;":"⊥","&sdot;":"⋅","&lceil;":"⌈","&rceil;":"⌉","&lfloor;":"⌊","&rfloor;":"⌋","&lang;":"〈","&rang;":"〉","&loz;":"◊","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦"};"undefined"!=typeof module?((s.htmlEncode=s).htmlDecode=a,module.exports=s):t&&(t.htmlEncode=s,t.htmlDecode=a)}(this),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Clipboard=t()}}(function(){return function n(o,l,r){function c(s,t){if(!l[s]){if(!o[s]){var e="function"==typeof require&&require;if(!t&&e)return e(s,!0);if(d)return d(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var i=l[s]={exports:{}};o[s][0].call(i.exports,function(t){var e=o[s][1][t];return c(e||t)},i,i.exports,n,o,l,r)}return l[s].exports}for(var d="function"==typeof require&&require,t=0;t<r.length;t++)c(r[t]);return c}({1:[function(t,e,s){var i=t("matches-selector");e.exports=function(t,e,s){for(var a=s?t:t.parentNode;a&&a!==document;){if(i(a,e))return a;a=a.parentNode}}},{"matches-selector":5}],2:[function(t,e,s){var o=t("closest");e.exports=function(t,e,s,a,i){var n=function(e,s,t,a){return function(t){t.delegateTarget=o(t.target,s,!0),t.delegateTarget&&a.call(e,t)}}.apply(this,arguments);return t.addEventListener(s,n,i),{destroy:function(){t.removeEventListener(s,n,i)}}}},{closest:1}],3:[function(t,e,s){s.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},s.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||s.node(t[0]))},s.string=function(t){return"string"==typeof t||t instanceof String},s.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,s){var a=t("./is"),i=t("delegate");e.exports=function(t,e,s){if(!t&&!e&&!s)throw new Error("Missing required arguments");if(!a.string(e))throw new TypeError("Second argument must be a String");if(!a.fn(s))throw new TypeError("Third argument must be a Function");if(a.node(t))return function(t,e,s){return t.addEventListener(e,s),{destroy:function(){t.removeEventListener(e,s)}}}(t,e,s);if(a.nodeList(t))return function(t,e,s){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,s)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,s)})}}}(t,e,s);if(a.string(t))return function(t,e,s){return i(document.body,t,e,s)}(t,e,s);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},{"./is":3,delegate:2}],5:[function(t,e,s){var a=Element.prototype,i=a.matchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;e.exports=function(t,e){if(i)return i.call(t,e);for(var s=t.parentNode.querySelectorAll(e),a=0;a<s.length;++a)if(s[a]==t)return!0;return!1}},{}],6:[function(t,e,s){e.exports=function(t){var e;if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName)t.focus(),t.setSelectionRange(0,t.value.length),e=t.value;else{t.hasAttribute("contenteditable")&&t.focus();var s=window.getSelection(),a=document.createRange();a.selectNodeContents(t),s.removeAllRanges(),s.addRange(a),e=s.toString()}return e}},{}],7:[function(t,e,s){function a(){}a.prototype={on:function(t,e,s){var a=this.e||(this.e={});return(a[t]||(a[t]=[])).push({fn:e,ctx:s}),this},once:function(t,e,s){var a=this;function i(){a.off(t,i),e.apply(s,arguments)}return i._=e,this.on(t,i,s)},emit:function(t){for(var e=[].slice.call(arguments,1),s=((this.e||(this.e={}))[t]||[]).slice(),a=0,i=s.length;a<i;a++)s[a].fn.apply(s[a].ctx,e);return this},off:function(t,e){var s=this.e||(this.e={}),a=s[t],i=[];if(a&&e)for(var n=0,o=a.length;n<o;n++)a[n].fn!==e&&a[n].fn._!==e&&i.push(a[n]);return i.length?s[t]=i:delete s[t],this}},e.exports=a},{}],8:[function(a,i,n){!function(t,e){if(0,void 0!==n)e(i,a("select"));else{var s={exports:{}};e(s,t.select),t.clipboardAction=s.exports}}(this,function(t,e){"use strict";var s,a=(s=e)&&s.__esModule?s:{default:s};var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};var n=function(t,e,s){return e&&o(t.prototype,e),s&&o(t,s),t};function o(t,e){for(var s=0;s<e.length;s++){var a=e[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var l=(r.prototype.resolveOptions=function(t){var e=arguments.length<=0||void 0===t?{}:t;this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""},r.prototype.initSelection=function(){this.text?this.selectFake():this.target&&this.selectTarget()},r.prototype.selectFake=function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()},r.prototype.removeFake=function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},r.prototype.selectTarget=function(){this.selectedText=(0,a.default)(this.target),this.copyText()},r.prototype.copyText=function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)},r.prototype.handleResult=function(t){t?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},r.prototype.clearSelection=function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},r.prototype.destroy=function(){this.removeFake()},n(r,[{key:"action",set:function(t){var e=arguments.length<=0||void 0===t?"copy":t;if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),r);function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.resolveOptions(t),this.initSelection()}t.exports=l})},{select:6}],9:[function(a,i,n){!function(t,e){if(0,void 0!==n)e(i,a("./clipboard-action"),a("tiny-emitter"),a("good-listener"));else{var s={exports:{}};e(s,t.clipboardAction,t.tinyEmitter,t.goodListener),t.clipboard=s.exports}}(this,function(t,e,s,a){"use strict";var i=l(e),n=l(s),o=l(a);function l(t){return t&&t.__esModule?t:{default:t}}var r,c=(function(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)}(d,r=n.default),d.prototype.resolveOptions=function(t){var e=arguments.length<=0||void 0===t?{}:t;this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText},d.prototype.listenClick=function(t){var e=this;this.listener=(0,o.default)(t,"click",function(t){return e.onClick(t)})},d.prototype.onClick=function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(e),target:this.target(e),text:this.text(e),trigger:e,emitter:this})},d.prototype.defaultAction=function(t){return u("action",t)},d.prototype.defaultTarget=function(t){var e=u("target",t);if(e)return document.querySelector(e)},d.prototype.defaultText=function(t){return u("text",t)},d.prototype.destroy=function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},d);function d(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);var s=function(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}(this,r.call(this));return s.resolveOptions(e),s.listenClick(t),s}function u(t,e){var s="data-clipboard-"+t;if(e.hasAttribute(s))return e.getAttribute(s)}t.exports=c})},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(t){var e,s,a,p,n,o,h,m,f,g,v,b,i,l,y;function w(t,e){return i.call(t,e)}function r(t,e){var s,a,i,n,o,l,r,c,d,u,p,h=e&&e.split("/"),m=v.map,f=m&&m["*"]||{};if(t&&"."===t.charAt(0))if(e){for(h=h.slice(0,h.length-1),o=(t=t.split("/")).length-1,v.nodeIdCompat&&y.test(t[o])&&(t[o]=t[o].replace(y,"")),t=h.concat(t),d=0;d<t.length;d+=1)if("."===(p=t[d]))t.splice(d,1),d-=1;else if(".."===p){if(1===d&&(".."===t[2]||".."===t[0]))break;0<d&&(t.splice(d-1,2),d-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((h||f)&&m){for(d=(s=t.split("/")).length;0<d;d-=1){if(a=s.slice(0,d).join("/"),h)for(u=h.length;0<u;u-=1)if(i=(i=m[h.slice(0,u).join("/")])&&i[a]){n=i,l=d;break}if(n)break;!r&&f&&f[a]&&(r=f[a],c=d)}!n&&r&&(n=r,l=c),n&&(s.splice(0,l,n),t=s.join("/"))}return t}function k(t,e){return function(){return o.apply(p,l.call(arguments,0).concat([t,e]))}}function x(e){return function(t){f[e]=t}}function C(t){if(w(g,t)){var e=g[t];delete g[t],b[t]=!0,n.apply(p,e)}if(!w(f,t)&&!w(b,t))throw new Error("No "+t);return f[t]}function c(t){var e,s=t?t.indexOf("!"):-1;return-1<s&&(e=t.substring(0,s),t=t.substring(s+1,t.length)),[e,t]}f={},g={},v={},b={},i=Object.prototype.hasOwnProperty,l=[].slice,y=/\.js#x2F;,h=function(t,e){var s,a=c(t),i=a[0];return t=a[1],i&&(s=C(i=r(i,e))),i?t=s&&s.normalize?s.normalize(t,function(e){return function(t){return r(t,e)}}(e)):r(t,e):(i=(a=c(t=r(t,e)))[0],t=a[1],i&&(s=C(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:s}},m={require:function(t){return k(t)},exports:function(t){var e=f[t];return void 0!==e?e:f[t]={}},module:function(t){return{id:t,uri:"",exports:f[t],config:function(t){return function(){return v&&v.config&&v.config[t]||{}}}(t)}}},n=function(t,e,s,a){var i,n,o,l,r,c,d=[],u=typeof s;if(a=a||t,"undefined"==u||"function"==u){for(e=!e.length&&s.length?["require","exports","module"]:e,r=0;r<e.length;r+=1)if("require"===(n=(l=h(e[r],a)).f))d[r]=m.require(t);else if("exports"===n)d[r]=m.exports(t),c=!0;else if("module"===n)i=d[r]=m.module(t);else if(w(f,n)||w(g,n)||w(b,n))d[r]=C(n);else{if(!l.p)throw new Error(t+" missing "+n);l.p.load(l.n,k(a,!0),x(n),{}),d[r]=f[n]}o=s?s.apply(f[t],d):void 0,t&&(i&&i.exports!==p&&i.exports!==f[t]?f[t]=i.exports:o===p&&c||(f[t]=o))}else t&&(f[t]=s)},e=s=o=function(t,e,s,a,i){if("string"==typeof t)return m[t]?m[t](e):C(h(t,e).f);if(!t.splice){if((v=t).deps&&o(v.deps,v.callback),!e)return;e.splice?(t=e,e=s,s=null):t=p}return e=e||function(){},"function"==typeof s&&(s=a,a=i),a?n(p,t,e,s):setTimeout(function(){n(p,t,e,s)},4),o},o.config=function(t){return o(t)},e._defined=f,(a=function(t,e,s){e.splice||(s=e,e=[]),w(f,t)||w(g,t)||(g[t]=[t,e,s])}).amd={jQuery:!0},a("almond",function(){}),a("visualcaptcha/core",[],function(){"use strict";var i,s,a,n,o,l,r,c;return i=function(t,e,s){return s=s||[],t.namespace&&0<t.namespace.length&&s.push(t.namespaceFieldName+"="+t.namespace),s.push(t.randomParam+"="+t.randomNonce),e+"&"+s.join("&")},s=function(e){var t,s=this;e.applyRandomNonce(),e.isLoading=!0,t=a(e),e._loading(s),e.callbacks.loading&&e.callbacks.loading(s),e.request(t,function(t){t.audioFieldName&&(e.audioFieldName=t.audioFieldName),t.imageFieldName&&(e.imageFieldName=t.imageFieldName),t.imageName&&(e.imageName=t.imageName),t.values&&(e.imageValues=t.values),e.isLoading=!1,e.hasLoaded=!0,e._loaded(s),e.callbacks.loaded&&e.callbacks.loaded(s)})},a=function(t){var e=t.url+t.routes.start+"&_img="+t.numberOfImages;return i(t,e)},n=function(t,e){var s="",a=[];return e<0||e>=t.numberOfImages?s:(this.isRetina()&&a.push("retina=1"),s=t.url+t.routes.image+"&_id="+e,i(t,s,a))},o=function(t,e){var s=t.url+t.routes.audio;return e&&(s+="/ogg"),i(t,s)},l=function(t,e){return 0<=e&&e<t.numberOfImages?t.imageValues[e]:""},r=function(){return void 0!==window.devicePixelRatio&&1<window.devicePixelRatio},c=function(){var t=!1;try{document.createElement("audio").canPlayType&&(t=!0)}catch(t){}return t},function(e){var t;return t={refresh:function(){return s.call(this,e)},isLoading:function(){return e.isLoading},hasLoaded:function(){return e.hasLoaded},numberOfImages:function(){return e.imageValues.length},imageName:function(){return e.imageName},imageValue:function(t){return l.call(this,e,t)},imageUrl:function(t){return n.call(this,e,t)},audioUrl:function(t){return o.call(this,e,t)},imageFieldName:function(){return e.imageFieldName},audioFieldName:function(){return e.audioFieldName},namespace:function(){return e.namespace},namespaceFieldName:function(){return e.namespaceFieldName},isRetina:r,supportsAudio:c},e.autoRefresh&&t.refresh(),t}}),a("visualcaptcha/xhr-request",[],function(){"use strict";var a=window.XMLHttpRequest;return function(t,e){var s=new a;s.open("GET",t,!0),s.onreadystatechange=function(){var t;4===s.readyState&&200===s.status&&(t=JSON.parse(s.responseText),e(t))},s.send()}}),a("visualcaptcha/config",["visualcaptcha/xhr-request"],function(a){"use strict";return function(t){var e=window.location.href.split("/");e[e.length-1]="";var s={request:a,url:e.join("/").slice(0,-1),namespace:"",namespaceFieldName:"namespace",routes:{start:"/start",image:"/image",audio:"/audio"},isLoading:!1,hasLoaded:!1,autoRefresh:!0,numberOfImages:6,randomNonce:"",randomParam:"r",audioFieldName:"",imageFieldName:"",imageName:"",imageValues:[],callbacks:{},_loading:function(){},_loaded:function(){},applyRandomNonce:function(){return s.randomNonce=Math.random().toString(36).substring(2)}};return t.request&&(s.request=t.request),t.url&&(s.url=t.url),t.namespace&&(s.namespace=t.namespace),t.namespaceFieldName&&(s.namespaceFieldName=t.namespaceFieldName),void 0!==t.autoRefresh&&(s.autoRefresh=t.autoRefresh),t.numberOfImages&&(s.numberOfImages=t.numberOfImages),t.routes&&(t.routes.start&&(s.routes.start=t.routes.start),t.routes.image&&(s.routes.image=t.routes.image),t.routes.audio&&(s.routes.audio=t.routes.audio)),t.randomParam&&(s.randomParam=t.randomParam),t.callbacks&&(t.callbacks.loading&&(s.callbacks.loading=t.callbacks.loading),t.callbacks.loaded&&(s.callbacks.loaded=t.callbacks.loaded)),t._loading&&(s._loading=t._loading),t._loaded&&(s._loaded=t._loaded),s}}),a("visualcaptcha",["require","visualcaptcha/core","visualcaptcha/config"],function(t){"use strict";var e=t("visualcaptcha/core"),s=t("visualcaptcha/config");return function(t){return e(s(t=t||{}))}}),a("visualcaptcha/templates",[],function(){"use strict";var l;return l=function(t,e){for(var s in e)t=t.replace(new RegExp("{"+s+"}","g"),e[s]);return t},{buttons:function(t,e,s){var a,i;return'<div class="visualCaptcha-accessibility-button"><a href="#"><img src="{path}accessibility{retinaExtra}.png" title="{accessibilityTitle}" alt="{accessibilityAlt}" /></a></div>','<div class="visualCaptcha-refresh-button"><a href="#"><img src="{path}refresh{retinaExtra}.png" title="{refreshTitle}" alt="{refreshAlt}" /></a></div>',a='<div class="visualCaptcha-button-group"><div class="visualCaptcha-refresh-button"><a href="#"><img src="{path}refresh{retinaExtra}.png" title="{refreshTitle}" alt="{refreshAlt}" /></a></div>'+(t.supportsAudio()?'<div class="visualCaptcha-accessibility-button"><a href="#"><img src="{path}accessibility{retinaExtra}.png" title="{accessibilityTitle}" alt="{accessibilityAlt}" /></a></div>':"")+"</div>",i={path:s||"",refreshTitle:e.refreshTitle,refreshAlt:e.refreshAlt,accessibilityTitle:e.accessibilityTitle,accessibilityAlt:e.accessibilityAlt,retinaExtra:t.isRetina()?"@2x":""},l(a,i)},accessibility:function(t,e){var s;return t.supportsAudio()?('<div class="visualCaptcha-accessibility-wrapper visualCaptcha-hide"><div class="accessibility-description">{accessibilityDescription}</div><audio preload="preload"><source src="{audioURL}" type="audio/ogg" /><source src="{audioURL}" type="audio/mpeg" /></audio></div>',s={accessibilityDescription:e.accessibilityDescription,audioURL:t.audioUrl(),audioFieldName:t.audioFieldName()},l('<div class="visualCaptcha-accessibility-wrapper visualCaptcha-hide"><div class="accessibility-description">{accessibilityDescription}</div><audio preload="preload"><source src="{audioURL}" type="audio/ogg" /><source src="{audioURL}" type="audio/mpeg" /></audio></div>',s)):""},images:function(t,e){for(var s,a,i="",n=0,o=t.numberOfImages();n<o;n++)s='<div class="img"><a href="#"><img src="{imageUrl}" id="visualCaptcha-img-{i}" data-index="{i}" alt="" title="" /></a></div>',a={imageUrl:t.imageUrl(n),i:n},i+=l(s,a);return s='<p class="visualCaptcha-explanation">{explanation}</p><div class="visualCaptcha-possibilities">{images}</div>',a={imageFieldName:t.imageFieldName(),explanation:e.explanation.replace(/ANSWER/,t.imageName()),images:i},l(s,a)},audioInput:function(t){var e;return'<input class="form-control audioField" type="text" name="{audioFieldName}" value="" autocomplete="off" />',e={audioFieldName:t.audioFieldName()},l('<input class="form-control audioField" type="text" name="{audioFieldName}" value="" autocomplete="off" />',e)},imageInput:function(t,e){var s;return'<input class="form-control imageField" type="hidden" name="{imageFieldName}" value="{value}" readonly="readonly" />',s={imageFieldName:t.imageFieldName(),value:t.imageValue(e)},l('<input class="form-control imageField" type="hidden" name="{imageFieldName}" value="{value}" readonly="readonly" />',s)},namespaceInput:function(t){var e,s=t.namespace();return s&&0!==s.length?('<input type="hidden" name="{fieldName}" value="{value}" />',e={fieldName:t.namespaceFieldName(),value:s},l('<input type="hidden" name="{fieldName}" value="{value}" />',e)):""}}}),a("visualcaptcha/language",[],function(){"use strict";return{accessibilityAlt:"Sound icon",accessibilityTitle:"Accessibility option: listen to a question and answer it!",accessibilityDescription:"Type below the <strong>answer</strong> to what you hear. Numbers or words:",explanation:"Click or touch the <strong>ANSWER</strong>",refreshAlt:"Refresh/reload icon",refreshTitle:"Refresh/reload: get new images and accessibility option!"}}),a("visualcaptcha.jquery",["jquery","visualcaptcha","visualcaptcha/templates","visualcaptcha/language"],function(r,i,c,e){"use strict";var s,n,o,l,d,u,p;s=function(t,e){r.get(t,e,"json")},n=function(){},o=function(t,e,s){var a;a=c.namespaceInput(s)+c.accessibility(s,t.language)+c.images(s,t.language)+c.buttons(s,t.language,t.imgPath),e.html(a)},l=function(t){var e,s=r(this).closest(".visualCaptcha"),a=s.find(".visualCaptcha-accessibility-wrapper"),i=s.find(".visualCaptcha-possibilities"),n=s.find(".visualCaptcha-explanation"),o=a.find("audio");a.hasClass("visualCaptcha-hide")?(i.toggleClass("visualCaptcha-hide"),n.toggleClass("visualCaptcha-hide"),i.find(".img").removeClass("visualCaptcha-selected"),n.find("input").val(""),e=c.audioInput(s.data("captcha")),r(e).insertBefore(o),a.toggleClass("visualCaptcha-hide"),o[0].load(),o[0].play()):(o[0].pause(),a.toggleClass("visualCaptcha-hide"),a.find("input").remove(),n.toggleClass("visualCaptcha-hide"),i.toggleClass("visualCaptcha-hide")),t.preventDefault()},d=function(t){var e,s,a,i=r(this),n=i.closest(".visualCaptcha"),o=n.find(".visualCaptcha-possibilities"),l=n.find(".visualCaptcha-explanation");(s=l.find("input"))&&(s.remove(),o.find("a").removeClass("visualCaptcha-selected")),i.addClass("visualCaptcha-selected"),e=i.find("img").data("index"),a=c.imageInput(n.data("captcha"),e),l.append(r(a)),t.preventDefault()},u=function(t){r(this).closest(".visualCaptcha").data("captcha").refresh(),t.preventDefault()},p=function(t){var e=t.find(".imageField"),s=t.find(".audioField"),a=!(!e.val()&&!s.val());return a?{valid:a,name:e.val()?e.attr("name"):s.attr("name"),value:e.val()?e.val():s.val()}:{valid:a}},r.fn.visualCaptcha=function(t){var a;return a=r.extend({imgPath:"/",language:e,captcha:{request:s}},t),this.addClass("visualCaptcha").on("click",".visualCaptcha-accessibility-button",l).on("click",".visualCaptcha-refresh-button",u).on("click",".visualCaptcha-possibilities a",d),this.each(function(){var t,e,s=r(this);e=r.extend(a.captcha,{_loading:n.bind(null,a,s),_loaded:o.bind(null,a,s)}),void 0!==s.data("namespace")&&(e.namespace=s.data("namespace")),(t=i(e)).getCaptchaData=p.bind(null,s),s.data("captcha",t)})}}),a("jquery",function(){return t}),s("visualcaptcha.jquery")}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(l,o){var a={color:"rgba(255, 255, 255, 0.8)",custom:"",fade:!0,fontawesome:"",image:"data:image/gif;base64,R0lGODlhZABkAKUAADQyNJyanGRmZMzOzExOTLS2tISChOzq7ERCRKyqrHR2dNze3FxaXMTCxIyOjPT29Dw6PKSipGxubNTW1FRWVLy+vIyKjPTy9ExKTLSytHx+fOTm5GRiZMzKzJSWlPz+/DQ2NJyenGxqbNTS1FRSVLy6vISGhOzu7ERGRKyurHx6fOTi5FxeXMTGxJSSlPz6/Dw+PKSmpHRydNza3P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IJO1SEEBAosJFSa1ar9jswQQBeAEgyyFLLpvNL893DXC9zvC4XDggsb+EwXzPtyZAd14gCX2FhkQRgIEAIYeOSAMWIgoxY1UpioEpj5xCFx6ZACQVH1QjFIt5nY8PIV1sKCtUaYsOpVcfb6tWM6iBJlUnJqEAJidYKxYaFbq7SSXEXxQPVQ8VEjBQFVNXDypeKCPOSR8ZiwAox50rLF8Z40kV0V7Tqw8WXgQT8EgzDIvAdm1I4WFAM35EPqSAcYeAul25ECZ5EYPAGgH7JGo08mFACAcOChy4tbHkkA8PDppcybKly5cwY8rc8+HEiBYDRs509qKF/goCCAhIaEBy56MBFtcQaGCU04ukbFgsaErlQAQFETZgGbAIRAmqEx0oskDNirlFMcAieWDHCwtZVkqce6fWyAMBXyQ8pHKCYcOMdROOEIBBQIssAQI5KBs44YEWcLGcELvGWONCHyZ40OBhQtHLoEOLHk26tOnTqFOrXs26tevXEj+0MCFDBTPYSi64QPAFhgFLrl8c2HCC5IsUvNeAiMB49YsCFBCwICrkgIRABICvboEBz1QaC7oHmuEa1JdBQhZAZfOdtXlBdE8oCERBa+tTX94KeZ58TYjPqfWkAAsaiDPEcX6B4UFzrV1wAoNCbBCCCSG0h9uFGGao4YYc/nbo4YcghijiiCW9sMEMG6i04QsjKKCICICJ9sACE6wAoRILcMAGBRZe9kIIDKDAQALcWBGCYgDWVcIrACBQQpJHtHOHAHs1dt0aGhRJhZRR2QeaCGwooKUSBgSiwY1qRcBGDCpCkqAgh4l2wpUAKOBlFS9UQIEiBFRQ2gsDFKAHGR8skEAIKSwAJYmMNuroo5BGSkSbHa6wmQEljNnJBzOMUGVJMxCgCAwWfOrIARpggAIFBSw6zgl4sZGAq3uc8M0ag5bUAApT0jrHAG8CoMFKBfQnDZp9tDDlSh3wyoYEvsoxgrNfOLDSA2Uq5ycuKzQAGaVHnOBCJrGwtEKsUwDAEAOyRbyQgQAoIMBBAeAasUEMArBgQq4rndCCB4myWwSwa8DAbzXDPRBtU/M9++E/O35I5xcCfNgAMdt2+EACe4JAAZsgvrBABRUsUK+knAQBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8gk7bNKaVSx2UtJrVqv2CytwgJ4AZTCVEsum7ED0veLaJzfcPhDsV4LTvG83jpR170oLXuDhEQdBH9eMBVXHwcHF4VnLwMJGQtXfYkAKB1VlBoMFAIekZJYLxMUXiAQBitVc5sseEovATB1LBMfp1Yjq3UyD1UtKH8gBVUNIIkSsL5KDxabjFQfBYhfMCljSQ8Cm8m90UgzXYkaVi8LMSoKIVJVExibACbE5Ucj2n8CvsbsScinr8gCBpvUnaJnTwPBgkMeGNhUwtcDdIlSkINI5NyfgdE6NPt4gOORCQJycbKwodyHEMfszDCJ5ESDFClGPLTYwgT+i1EhWtIcKu3AhhMbiSpdyrSp06dQoya5sOKEN6kcTyRQIEBGgFpYC14woRIACAklw+oLkMjATrVJUhWQ16jfGgoT4Fb50AIRCmtWLoysE0gvlRfUvGi4agtCok6GbYX44iApFTr+hEau6YKFAc1WOsT8Mm6zLataXlQIZrYEY9N6PjwYkKLFBcuwc+vezbu379/AgwsfTry48ePIk1950CFFA1PKr6GEQJ1ChdfIcS/gUAdDC9zFHzTI0ILgiwiDv6iAjjxFLgQJhpzQkIhAWuQXEHohkO8C/T8UgGbcA/qBkc956SnG3nHuAcANESuEs0Yg4BH3QgsFlEfEBzP+CNAMCAR8F91eM1QwwVsjpqjiiiy26OKLMMYo44w01gjXBy/kWCGLFxQgAgEsxADWbw9AosUDISCwhgUowvbBBBYoYMEA2CExgZJrwFCRb/l9wcJMV0SQiAm/ZVBHDDsWMdkfGqRpWAJ1hFClEQ0kEsJvE5S1CBYbSFAHAQLq9kIMx4AQQ5NIrKABCiDAIAAmwX1wVBkPTFBBBwvaqOmmnHbq6aegKiHpADrR+EIIBCCAggILuKnHCw1IwIADgQ71QQx1iABNNC806AUFmdJ0QoFfaFTOASLUkUJTE9jlRWXlLMDas01tQKwXIbgKxwEy1KFMUx78mRcWJ0wwwgFZ2grxQQn9CIBoVgqMRIAYjUxgAAkkKNDBnEY80JMGMdRK1AW0FbABv0WcgBEABOy63APpGlbAHx7IKGYdZMZY55kynuDnFwHOeIAHLLDgAKQzvnDCwaEqFQQAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKTwMqtUZheldEqtWq/ClQMDAMBMC6x4TMZeZKCuWnAou9/wGERN93zg+Dz1JaHTWSd6goNEJwJ+ahQrhIxJLxuBVQ8iiF0sG1QPJSYqHhONZh4YIBAsJQ9UEWmIJlQTHH4BkaBSJxZ+MCl3tYd+BItSGwyIICGotEoFMIgos0ozGnQCA1QhlQAUn8hIDwbXBVUnAyEhLSe7Si8s1wAF6NuFMtceoBcE7DEv8EYP0ZUpoD6s+7bPyIcEq+iAaAPKwzUUIwry8+ZHF60TFCqF0CexyAMHLFCgkFDhGK0BAhKC8BClo8EFA0Y4o/VhRQoLCjw04Oiy5/6RDw8u8PRJtKjRo0iTKh304cWDB++W7jtQwoUBFyU2RFXyYUIICwFabJX6TMGyLiAUaJvyogSFOQBQxCBb5YCChGpYmFQyAAGuDHSlvFA1j8otRApaBj5yQt41FoqTwELEIsziIxsGVvo1hRJlTJeNHNCMiABoJTHwdnEwNPQSE+wktD5yoA8dCpZdE/nQAsW1FlRqmlglIbduIg9CqAbA2grQE0+PI+FNAQYIGCwK7JWe58GEFiMicx9Pvrz58+jTq1/Pvr379/B9PtoeX8oFUTAQmFgxtj6RC7BJA4x/MPFHRAtcKJTAbO3NwAEGHMwwxAcxVKIBfe05oIYDRP5UiMiF/mm42oEJ0pECg+zNEJIAEg5xwWFrnFZfgVFdEAMB1zmglX/BncPjj0AGKeSQRBZp5JFIJqnkktx90B+RLyxQQAAVGHjkCw0M0wWL6b2wQgvGUZGZH7KdxxsLBHDQwBUNIALDWuRNEqMVKbgJnHkPZGRJmHyphsKA5L0QQBogOIAhEhf4syGKx52QggYxiDfFfQSgQIAHhwr5wQIj7Mjkp6CGKuqopJZqxQMrMKRkBwJggIEBgNLkaAAdZCrRAmd1IYGqtKiIlgtIueAHCHfS8oIHKvHqk2N0ZPBkHon6USxRDilEDTLJKTRTTyvco4YG23J1gY9XLHCXF08hJNWCCRRQ4IGMU5yQgAIyhKDsFDal0IKtEn1wwQYb8OtRAHCBYICkQq6QaxfXGjkDIhUguYFvaoDAp5AvxHDWSgL790IFJmignakk7xMEACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ik8HVaLU4vpXRKrVqvy4KKRFBkHtiweBxOoABoACxEbrvftMU5jYaN4Pj8NAKipy16gYJDJn5pEoOJeR6GaBpWJy0VM1GKVi8jFiwCMRsfVCMIhiANVCcBcyAsE5WWSh8Vc2giM1UOfXQarUkvFrhpJAOuUjMMhrpUFzEUaCghB1QTv7kXw0kxEKMnVS8bCxMbYFQBjQAEE9ZIjI3oihrlMB3pRzHTaduKDuUEd/NFEwQMsfikaEA5Afj8DfmQIVuac65evPODooXCIxUUsGDhYIG1Aw5kUahwEcmDDQd2uXowIEaMAh5LypxJs6bNmzhz6tzJM8/+hwUNSlRYoHLKiwElOlTrWeVBBhYw1LCIsZTKCg0EYKAQsYLplA8JRNGBwIbKAQl+KGzwqqRDwEbCpjQYFYEtkhchygFwQCXvMYJ2iVwoVA7RnkaPAhd5oK9wtKh0QJBUTORDCntp6k55EAIyGhPiKA9ZIaARCmjJCghAMTWhaCEfOshCA2FylQ8vHrwA/HrhBhMEUBDQsIB3bzgXNrg+zry58+fQo0ufTr269evYsy+ZUCJBgRnGtRtRxgAGBBgMElR90cGABBNEs58wYA+EhW0vEnjGUKGo9AKYAQBCATRMwAwdAqx1XWnliEBDBvbAYJF1L4jVCAw0pOBQGhL+XveCZ4ZgOAAJfrAQk3UMNiIADZz9AkIG/kWXgl4pCPFABQIQIMEAoVl3ggKNKLCceENsYIEsCDigIJFHsBSDByEMEB6TVFZp5ZVYZqnlllx26eWXrlwwQQcjDHnlBi6cAYMGSzrHxJRK4LUhACZAB5IA911xQIrNtNkbXn2A4AKcR6xwIIe1NNdLGirEeMQFKqTVY2+wqEmgFZWmAcKEzj0wQgEjTErFAhpQoICUYKaq6qqsturqq7CyekIMMijQgqOC4KYbTi/IkAYEMeCax1EahWDmRQbRwUJXwyzAILA3zUgHDO240gIGh9zUQYknWrIAC2mUVdMLaKEBQgpXwuLxQQkicHTsRRuEoIAGBVRFxQcTRBDCCOka0YSoND1wwgWEHhEbBRCAQEADBYt3QrloMPAukQccqgZqWV7gaxosTCzewSAoXEHDRC6QQAzFxaqyJUEAACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8jk8HW5vJTQqHRKrQ4/q5jBEFt8rOCwGDzjgAAAEGsybrvftJcETQdwHvC8PjqA1dEgLXuDhEMlZ38gKYWMeg0Qf2gFVl+NYActIQkzeFInFJEoJ1IvAyowICQhF5ZTKxKIKKtTJSh1IJNRHw0EfxajrUovGn8wJZVQLxUKKCgKFZ1QD6CJGcFKAxiREk9SHxcbGyfIUB2RaAqs10cFCJEE3Ywp5wACG+tHLbZ/LPGFDfQkAMNH5AKHSCHIETrhJ5IHfwSFzOhFx8RARh8yNKQj4GLEIQs8KNBQIJqlBxkEwIBBQMW9jzCPfNjQocIEkzFz6tzJs6f+z59AgwodKuXBggkrcE45sAAiUSgzTHCgwMHCBIVKTgSgQIJDCqxPjUxg8YfBjCkXVPyJADaskAMizlFwemQAIjoEDrhF0mBfpAFS5hUDvNeI4HMxpBSIBINN4SIZ6AHIBWUFRTrcHhcZcPnPAlIFLlNwrHnIAwvnNFB5MSGEgxReShfZoOCPgBWUPrQt/SCFAgoSSsoeTry48ePIkytfzry58+fQoxN8sWDECrrSxWpgQIKFhs8FWySoMC76iwLa6pCoUIk2xxHRZ6T/QwH3C9R1FHhcHkFyAhorHFQHAfA9Vxs9qi1A1oCEOSeDZKo9YIJtej3ngWQhSLQgACj+tLDbcX2c05gQM8VgggcbYJfcCyHcBUgKKkp3ngAowIACBxXEmB0NGwxQwQD77SjkkEQWaeSRSCap5JJMjvHCDAM0teQHHQhAAAoYSNCCjkV8cMAKG3zo1gMxQLKWmEtUIAMLEmTAJVEdzFcHBA2WcxkMHRB3AX6poXnaHxIQt8GGkVBQoRIXEFMHC4JScw4BLwkTwh8OEAeXZBQodcQCAuAVaWksSlbpFA8U8FqQj73yqKY7jjBHHQKQduQGKWgggQYphDnlAxc8gGaTwAYr7LDEXkNdASVc8KseH7yJTwJmroHPASkEMICzrVzgFwAOsDrICw6gQYKsOS3wh35d16ywoTU8XWAmGiZ4u8cDagEAQ4E8hdAQC3W2soIJCpQgL0EXVOBBCFeB8QK2XQ4Mk25goMQCC24y2YI7HAqi5AcJ1JHAstA10BAMGiv5QAIEUJCAw0I2W+zLOgUBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ikcslsOp/Q5WOQSAwe0ax2q724SAAQyYPlms9oWggEaIdj6bi8+cC43YTyfM+nLWB3bRAbfYVyB4CBMCeGjUMXAxUtBy9PKoEAGk4fBykqEh4TH45NByqJAh2VTQssdyyErDJsbSgNo6RJLw6BHCubCyEaGjELuEsvFrRuDAu5SQtggQXHTB8XJ9VLF4l3IHDPRx0omCHaewuYbQ7hRxvSdxWOJ8t3Ie1Gu4Gwjh8imDAG4DPywAQMEDAkiCI1gUKgGOcGflhRYYKefhNMUKAgIcXAj0pebFhwISLIkyhTqlzJsqXLlzBjSrlwUaajBxkMqDBQ4UL+lA0BNIQ4YJOOgW4IPPhs8qEFATcIJhQN6aBem3tNTly6I2HVVCMzXGEiYLLICjt3UBD9aqQFWkyMmKx4mjYuWyId6GKqieSBhUCa7hbZ8A8TiyczFNCS8EswkQ8prIKQt2lDixgtNpT9+iDGMhAp+FpznOTDhhgOUmQjzbq169ewY8ueTbu27du4c+vG9+KE193bEkgQoCDFbxovDmygtPvDBAnLIGhYS6OzHRQR7N4+IUOdgzIlusHwmLuD1TYEnL3Y6kbB0tsR1LXpgFxBIAnaaweQD4CyZ3vH0VaBfDBIRcMJVbVhQiy4bSBWIO4N8cAMFYlGW1N6tcHCDMD+KTGDRgRQ4ACDHSaxwgQHbFbiiiy26OKLMMYo44w01mgjEheEIAAFAiSQXxMvPBCgYx8M4NArBjoRjAUhzKCiTSsUFogAFhqxwixtCPCeYy8kcF4bLTAV2R0FtHaBAfyZAGR8d0TQmlb8KeBEBQjcIRBrD/AinwdOeEELGa19UEE3gYwAxQYVaPbaAy6cxyeMJ3hATi1KyThFAh6kYFGNHzx546egXvjAAQesZmkHDgyngY8xfhBBhiAY0FhKQb7gKRoNQKCOCVt+dEAIDCgwwK1cXPCgIregFAEtAsxayACTquPBkOF0Vwt9jRRQp3wmVJmLB26w4EwjLWzrHbVTz2xgAgsCVEDsFiccG4i7KT2wAHWOpCCfBCSyNoMLHoxLhwljLeRaK1n2q8QDFQhAAAoiesvWOOgZCsUDG8xQkmwIA9AsjR+MoIEJBodq8skDBQEAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n9Dla1IqLV7RrHarfUQoMASrhOWaz2haAQJoA2CTtHzuZLndGrp+X8Tc2wJ8gnoCfwB5g4lDHxcbB2VOFWxuMAtPDxMpEQMnik8NKhwiKReXKSwwMAIVkEsXAShtICoHnkwTfm0wEQ9PLwstLRutSh8ZMH8mxLZFGn8EM4oPhX8o0cxHL3Z/A4ovsX8wDdhHHzLhcYkvFIYoI+RHDX8KnYkfAYYCvfBFHykEMFBo2GDrgAYQbggQ5HfkxABL2E4U0KDAw0KGGDNq3Mixo8ePIEOKHEmypMkPExIESLEiy4cBBWYsM3mkAAEIICBwaPHhyf6Kc20UlKKZpASyOyjSMXkRAKGbFESRXFBgCIADJyck/JER9ciCbX8CNTlB9Q6irkRWUAvr5MUxNyBaoC3ywETVGE9OhABDIcbMriMI/GFxscmDBRNW7JtL5MMIsBJm9GQ85/CEYZQza97MubPnz6BDix5NurTp06gZTghgIUZhIYxODD19wgUCWRgKtBqggoWKAZNJvwgxyQ0GnkJWsGvD4hrpDSSqahgaozgIvKVHVAVAYWEIpwBAhDDdYTsFiCNyAXBnegG4PxLqvSjAAAYFVqYfuDAEokLwDydscEJwpa2gAHggBLBYakY8UIACAmggF4MUVmjhhRhmqOGGHP526OGHIG7xwgABmBDBCgReeIBdlHgwmxMrDHBAinNdYAF4skQARQMCECCBUpR1oB5SCyqhlhsy/EXTBzFsB0A3TczAgBssFNnVcE5WgJUBsoSg5EkZ4HgHkEtsEIICMdST2QzLPUMjgwW810ZSGn5QgQAogICCAgN8idoHBwzQwgRqhmjooYiW9sIDfqb2wQoFeOBBAu/U2YEAxZGQQaO2fPDCm3xsIFg1BYCKzQsteJBBoYJ8wGVVArSk0QC5BMCpGSdEVxUME2bUZBscsLrHDEP+UcJGLUyiTF4ZCIAAAjJU8CISom4X10YPZKCAA68pcUBZcFkwrREfqLAdC1QQYWtqgw6IGV4Efk5w1B9+BTmqIectYYycAHhgZVQROAlCAU2YKQALJkBJ2T0CJ3BhwNYSbGEL9z5DZmp1bRfAuqVtAK4bJoxL4QYpCBCQBNJqFAQAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n1Dma3P6RK/YrHZhEYhCB614TB4eOCAAAGS6lN9wZ0RNBwzi+HxRU1cn9IB4Ln0AFYGHRS8XD1EzKHUUJ09TJSUDjIhOKxEaLgMvkxUCKCgKE1ZNLwUUajAumJlKDyJpABQtqE0fGy0Dkk8TJH0xsUsZfQq/gR8hhJHFSSZ9LCuILxaEBAvQSDF9EsqAH97TbtxGJwx0MCm5gQssfSnnSCsmBBK4sR8zIjAwKEKAokcQyYMBAza4K8iwocOHECNKnEixosWLGDPSu9ChxISBUR6E0dhkgQAMMEiYGOnkQgQYAAhkAEnSyAJhdZI5+VABwf66DTWPfPBQiw6IO6k89CkQ1MgDFYQAEEsVoI+hpkReQCU0z8kAdWoomMM6JEXRVtt2ttAgwcQpskROGKgDIgQsJydO3IUr5EAICigEFNjLV8yHDw8OF17MuLHjx5AjS55MubLly5gza05ysMGChZuHvKhAAQYEGAqqEXnQosCnyx8aYPjGkkYEnxhKXD6xlW4GVBcI0OFAU/KG2YRMYApOh0XxyBseJR8bAgIAGEwtn1AQNUauCyVitHge+UUJmHVYACWiOLMq4WoEfA595ESBFANA09/Pv7///wAGKOCABBZo4GMfXDBAATO8oN9mDxTgkxocjBfFCyeQ19QLGf5MSAcBE0CxggYCBBAOWSsIEJUGk0izxm+FNSBdHzA8aMQF3KnhgYYkVYAeIYQh8UEGMBHQgY0aDYBTHwRA8cAIDAYZFI5RheBfin208d8GDgjAggQpnMjfBwcsIOaBaKap5hgYHrCBlKGtEIIMLIjgCY9xKFhABi2cec4IEpxFQAJIlrGBBSRAAAIGMqRV0AqBEgLDCIc8IMNZAHCgGj0vmBUVABLgOcYxUZkgKiAX8PEpCuvpIcOnAmzKzQUifAoACkjpwUpUFIS4kapRoSCrQRMEoIABMSxwKg0SfKoeQZ1iSocAhT4Qg4cAkFBCoTQU8KkDcCJi0qctMEEkIWsYULrECSoyOQNDHyhJSAiFbsDBpxpwu0COaoDILSInOEABAQSokB8TFczYBwWOKvHBBDHE0EG43Hxwwga1LVHAj0yqG5qMn2qzn72fKrCsZOf2gYKv+z2QAHxhXdXfCxN4IIECMazwbyBBAAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IpHLJbDqf0Kh0Sq1CLxmNpfWyer/fiwkGAKBSXbB63RyAymXCgU2vFzNw+MbOp7fyADBzfYRhCm8AICFpTg8HGxcfhU8XLSkle1ArHgIKKSdPHwsuHCwmI5NOLiiBGitRLyegUAcKeRSDqUkLEHAgMZKFDYhwEbpKFYAmD4UfEYAAGsdJM4CLk8nW00gfJnACC6kbAnkoudtFDxUeFSfBzSsKKCgS4ej3ShsbzPj9/v8AAwocSLCgwYMIEyr092LFiFcLC71wQQEDhQCznhyIoCJBxohHXnjLY+LCkxMm3oCIwAhkkQms8oCY8WQCg2/8XBYpQQZQ/oUnKzjAUdBSp5AWPfO0CFWCBQoBE4wauSACEItzTEQN2PBO6pABLOBQaNHVqxVRBTwUWFDW7JcPbd3KnUu3rt27ePPq3cu3r9+/gAMXeXGgqGAiHzaYQACDRIqcQkR1gOh3BjlfASAP4IBBAOW9D0IQizOAiAE4AfxesAUIRAYiGuB4UM1a5ushI5x69hsaGoHSQ7Rmqhw2jwPIh2l8WKEBBogzyJMPcWRYuvXr2LNr3869u/fvgU+MqDAhevIHGRigQNC5Q1ydLy4cePA+5Mg8EBKYj/hhgoReCLjAVRMFQEOaWSPc5IsKHyFBlYFleLBfQg+c1loBTMxAAIQA/gjQYEQzFAeIAkxMsCGEAmAVkU0GSsDEARRwqMGHC50ggYEOMCEShynUh9AHMYwWSFRMnBAjNDOa9UIAMQFAQAM+EjGAAKO5ItcHLXhgQghshbJBASZo4EAFJmn3wQsPvBAleGy22WYs9G2njgcGOJDBgJMkNsAAK1S3zQkuIAAHBBIQSQgWIpBAAAcB+KnLAy70YlWZfDiTVCIWTDjJABhAGAMhKwgZSAn4vBADhwIQkgCEJqxpxwsecEgAIS5AqICmfZiKahMfHNBBBAlMEEkTpxpogqOFDNAkIJ8y0YJQZUCggT1LrHBpGSD8hM8FDohKAI0vHZmHBJQm8UEAWEIu488JDgDCACpL7AgNCCk08UAKR8IQQrn9DOCABBqUgKsQCygIjQKuCqFPwghNQAKKyO61gsEjMmyXvNBgaN0KIg41MF8DHBKtCcNZ98EJA6RA3seEBAEAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n9CodEqtQj+TSGZl7Xq/rwIBAmGNvuj080QCuAGah3pOL67ebtapzp8fMHgKF32EYCkEICAUA1EfFycvhVEXK3tRLwMhMQsfUCcZKioRB5JOByYcEg2lNA8RMG4gGqxMDm8CXJIzbXgTtEoCbwSMkiMQeAAFv0kBIG4CpJILFMi+y0cbLhQKI52SD81vCt7XRi8PD+TfFQoSKZbl8fLz9PX29/j5+vv8/f7/AAMKpPJhgAEOFhZIeTCiwAw5A498SICHQAd1Sz5kgGURY0QaB3i9MQCPyQUFbzxE+khkAAJkLKI1eWHiTQqPEWegQCahJP6TFRoEeBjEksgLFXhAxFj55MUFpkWHLFDgDIUHn1GtnBjQYgLErGDDih1LtqzZs2jTql3Ltq1bGi86RNA0AupbIgc8IAKgKALWtweoIgNggmjaBx0EEBDRYmWEwW+UpX0RA5YbGAnkMIDsRoLaCZvxUJhBwxlnFGorHMMDowSN1ZAJpLb8pjUNFpwByFC7gAMyCgpT5K6gNgxtEAU6ndAA2cRXtC8mBNUwgNwJB3sBEAhh+K7RASliFJiA07v58+jTq1/Pvr379+wvbHie/sMMAxQIMHDw9+OHFwCWh0QBO4lGXlYHRMACARJU0J0SKwAymAQbRLUcHgjEQB8SHv5wBoFkLCUAmxsYKLTEC8FwphJLR0GWARMv+MaZAxsC9ABKg8XQBHOcxSBgPx90OBgxS7TAGQFnFLUAAcgo0J8RDpj2BggvZjUBCyiAgIIJFTpxQQgUmMZCAXaxdEEL4/14xAsLVFBACyuoCd+cdNZp551CzFBAAimMUGMfJ6xQZjkfFMDAaiRcJQkWLsjAgQYd0PNBCRJO6cKgagwQ2mUVyNnHBiJwZiIfD2wqzKjXdFDgYCEQsoCUtaUgj2ozEtIBZ63GM0ClyOjYxAMbzLDCAZgasQBkyMlzgAScdbnEBgGQkAgLCTyIxAfMwuTsNR+0sGpKcl6AFB4QBODEAFi41RbpPJgwGYtfTWQwohsooJrEBwt4wAIFDhxYzwMDvPmnER/gOFgE6D0QKmQeoPcBjzmm1wCs9G7r3QcO0AYADMSp90AGChBAgQaNsffCCRtscIKnhAQBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ikcslsOp/QqHRKrUofL6t2yxVeQiRKKtstm5efAgwAQHTO8PjwFWGzM/K8+VOCsFFveoJbDzEULAVkUC+Kg08vH1SQUi8jMREtD45NDwUqDhubNC0sbBgJoksdCGwmjXknBnYAMK+pRDF2HCeOKwKzAKG3RwMEbB62cReydijJwy8dHgW8jh8DFGwgBcNJH5OiHycFBQuR3ejp6uvs7e7v8PHy7y8PFw/n84MfKykmMhYyCNOnZ4AAP9oUzCAIKxswAAoOMFxyIoGHFs+MfLDw0E6MfBOLzMBgR8JAJQcYdGSjoFrIIhpmgYiRccgMYytZnHxJ4wP+CWAmLjBZ4bCjgJ08f83yoGnJCwUrAThoynNIHzsEBjhpAaIjCq1VibyIIYCCAoxOPnjoOCZskQ8HFpwAyeRFBQEwYCAQMICuWy0PFgxYUfOv4cOIEytezLix48eQI0sOe2JAgwEuJyt50UAEARQkZKDVjITOmlkIEhRG/GJFAAspJAoZgMLrwsgfKuAEIGCFkABRQ0hewQGYgywyoiqQ3KL2LAESoa7UILmDczsCeOVamULyBgnAPES66dU37gGl2Gio9qLA9T8VVh+GWyAG5iITFFAgQEDDbdJK8DPBCn4BaOCBCCao4IIMNujggxBG6MgFJajAggbxLfZNgUr+LCACMAZk5tYHMyTgQAwLyEfDUw+BwNRhIxTFQAUc4tfVQxRMYNgFStnBgmxL1NERCBUYtspDLTQhZIvc/FXBabM0uUQDKwFi2AokyaQjEw/sNosEIvKkFjAaULVEMcBQsABiHxiCAgUehOnNCCbsR4EJSP11glxTBDbBBipKKOighBZqqBEXjFBBBwfUKIejt6ygHwIYSJDhIONooEEEeUbaIxsIFADpFgdocBoIDHS6yQsO3DgLAWbC8QFwwEgQayrfrbSlHC8UZQcGuw6zQHEdFZnHA1DaAUMD6RyQXEfBBnjBBgdcMKoQL6T36n/DtOmqj/I9UCEJDJjQgXxkH6TwLQAmXJtHqcCgkGQTGbyXlRMneAClBECmk69zCowg3wZessGCig9MEEMILciZzq1LqNviCAxGsC4AIDC7YAkXg7Dmghf4yoYE7kKGzSw6OfjCBCEooEEMG5QsmTgXBJpHEAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IpHLJbDqf0Kh0Sq1ar9is9TMwmUYfrXjcXHAAAMGKzG5+LpPNK9pBoAmjth55cbBIFAoND08rLGgCG3uLQlwMaJAgLoROMx4ea4yLGyKQngAFmjQfKxMXokofGRCfkCyniy8FAgwWiqhHDxatkCh5iwOPaDG4RxcKvGgwLYwVKJAaxUa6yQAwE4wLhwAgKdJFHwUgyQKUey8dEhQhsN9DJyrJzJofLw9h7kULyJ4wKfj5Ah6IoYAFCwcD5gRcSOPFiQMnzDGcSLGixYsYxdQDmBHVgxEFQmRI2FHUCRcEIBEI0K6kHgvjPEEIoNClkhcLKhyA0iIZ/ooKNpU8MDAORAiJSnYl81AzaJEGnjDMYyKhmgakToU4+ESsSbxkDrBmjeEJRKgmKar9y2rkwDYAGm4xuUCBVyK2Rj5YMpFiAZQBdT2RwIb3yAexTA6EYEGABbvCkCNLnky5suXLmDNr3sy5s+d8HzZMyPS5yQoLLBiwsEC6tOERb9EwGMCR84URFWaYO8Dvk4ATn1doQAPCA6UBrHgN8PzCRUxrJYQUqNaV84FOnqLRmJ7MW+cDVT2ZEDLBDi/CnD9EeA6jg5ALBngpaLn5RAgYAAisFbJCwfM0C9S22QsbbHBCU6OkoIAACiQAnGtMHCYghBRWaOGFGGao4YYc/nbo4YeofHBACgGkcMCEkaEoVATmcZMCYlmF1kACLez0RAb49RPdZDOIMA4EGrR2U2CfSGAjZC/0xo1xTWzwn0roFbZASp6wIJcSKyRDwHKRLfCMJxRcmcQDX35ipWQPnJEdfUl4wIsHKgbVQo750ebECSb8Z0KcTi3ggAIhiDlXARpIoEEBMFr4wAWJgujoo5BGKukSH5ywwAoIZvhBAjKwIIADM+DywAAVYDrRCwEkhwYLfjHywQgiIIAACi5kKo0zrShg6xjafBICn4t84AIvEDR6hSqtUHDkNy+YkMyybHzg5icoRPmNB09aY+wQb1ywq2FpfRLmQiMQCYkDZ8COskACBpiQwArp0rCAuQB4wJAsdAKggKBIzKAmNyLwe8QLDbylwYMLceGAABKkcEK8SqIxnhOhVVDABAhLdkC+ymzL2QwcWwNthReU2Uu8nE3rSXUZ9vElCkxyOGoMMQzg8aRtBAEAOw==",imagePosition:"center center",maxSize:"100px",minSize:"20px",resizeInterval:50,size:"50%",zIndex:2147483647};function i(t,e){var s=(t=l(t)).is("body"),a=t.data("LoadingOverlayCount");if(a===o&&(a=0),0===a){var i=l("<div>",{class:"loadingoverlay",css:{"background-color":e.color,position:"relative",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}});if(e.zIndex!==o&&i.css("z-index",e.zIndex),e.image&&i.css({"background-image":"url("+e.image+")","background-position":e.imagePosition,"background-repeat":"no-repeat"}),e.fontawesome&&l("<div>",{class:"loadingoverlay_fontawesome "+e.fontawesome}).appendTo(i),e.custom&&l(e.custom).appendTo(i),s?i.css({position:"fixed",top:0,left:0,width:"100%",height:"100%"}):i.css("position","fixed"===t.css("position")?"fixed":"absolute"),r(t,i,e,s),0<e.resizeInterval){var n=setInterval(function(){r(t,i,e,s)},e.resizeInterval);t.data("LoadingOverlayResizeIntervalId",n)}e.fade?!0===e.fade?e.fade=[400,200]:"string"!=typeof e.fade&&"number"!=typeof e.fade||(e.fade=[e.fade,e.fade]):e.fade=[0,0],t.data({LoadingOverlay:i,LoadingOverlayFadeOutDuration:e.fade[1]}),i.hide().appendTo("body").fadeIn(e.fade[0])}a++,t.data("LoadingOverlayCount",a)}function n(t,e){var s=(t=l(t)).data("LoadingOverlayCount");if(s!==o)if(s--,e||s<=0){var a=t.data("LoadingOverlayResizeIntervalId");a&&clearInterval(a),t.data("LoadingOverlay").fadeOut(t.data("LoadingOverlayFadeOutDuration"),function(){l(this).remove()}),t.removeData(["LoadingOverlay","LoadingOverlayCount","LoadingOverlayFadeOutDuration","LoadingOverlayResizeIntervalId"])}else t.data("LoadingOverlayCount",s)}function r(t,e,s,a){if(!a){var i="fixed"===t.css("position")?t.position():t.offset();e.css({top:i.top+parseInt(t.css("border-top-width"),10),left:i.left+parseInt(t.css("border-left-width"),10),width:t.innerWidth(),height:t.innerHeight()})}var n=a?l(window):t,o="auto";s.size&&"auto"!=s.size&&(o=Math.min(n.innerWidth(),n.innerHeight())*parseFloat(s.size)/100,s.maxSize&&o>parseInt(s.maxSize,10)&&(o=parseInt(s.maxSize,10)+"px"),s.minSize&&o<parseInt(s.minSize,10)&&(o=parseInt(s.minSize,10)+"px")),e.css("background-size",o),e.children(".loadingoverlay_fontawesome").css("font-size",o)}l.LoadingOverlaySetup=function(t){l.extend(!0,a,t)},l.LoadingOverlay=function(t,e){switch(t.toLowerCase()){case"show":i("body",l.extend(!0,{},a,e));break;case"hide":n("body",e)}},l.fn.LoadingOverlay=function(t,e){switch(t.toLowerCase()){case"show":var s=l.extend(!0,{},a,e);return this.each(function(){i(this,s)});case"hide":return this.each(function(){n(this,e)})}}}),function(f){f.fn.bootpag=function(t){var p=this,h=f.extend({total:0,page:1,maxVisible:null,leaps:!0,href:"javascript:void(0);",hrefVariable:"{{number}}",next:"&raquo;",prev:"&laquo;",firstLastUse:!1,first:'<span aria-hidden="true">&larr;</span>',last:'<span aria-hidden="true">&rarr;</span>',wrapClass:"pagination",activeClass:"active",disabledClass:"disabled",nextClass:"next",prevClass:"prev",lastClass:"last",firstClass:"first"},p.data("settings")||{},t||{});if(h.total<=0)return this;function n(t,e){e=parseInt(e,10);var s,a=0==h.maxVisible?1:h.maxVisible,i=h.maxVisible,n=Math.floor((e-1)/a)*a,o=t.find("li");h.page=e=e<0?0:e>h.total?h.total:e,o.removeClass(h.activeClass),s=e-1<1?1:h.leaps&&e-1>=h.maxVisible?Math.floor((e-1)/a)*a:e-1,h.firstLastUse&&o.first().toggleClass(h.disabledClass,1===e);var l=o.first();h.firstLastUse&&(l=l.next()),l.toggleClass(h.disabledClass,1===e).attr("data-lp",s).find("a").attr("href",m(s));i=1==h.maxVisible?0:1;s=e+1>h.total?h.total:h.leaps&&e+1<h.total-h.maxVisible?n+h.maxVisible+i:e+1;var r=o.last();h.firstLastUse&&(r=r.prev()),r.toggleClass(h.disabledClass,e===h.total).attr("data-lp",s).find("a").attr("href",m(s)),o.last().toggleClass(h.disabledClass,e===h.total);var c=o.filter("[data-lp="+e+"]"),d="."+[h.nextClass,h.prevClass,h.firstClass,h.lastClass].join(",.");if(!c.not(d).length){var u=e<=n?-h.maxVisible:0;o.not(d).each(function(t){s=t+1+n+u,f(this).attr("data-lp",s).toggle(s<=h.total).find("a").html(s).attr("href",m(s))}),c=o.filter("[data-lp="+e+"]")}c.not(d).addClass(h.activeClass),p.data("settings",h)}function m(t){return h.href.replace(h.hrefVariable,t)}return f.isNumeric(h.maxVisible)||h.maxVisible||(h.maxVisible=parseInt(h.total,10)),p.data("settings",h),this.each(function(){var t,e,s=f(this),a=['<ul class="',h.wrapClass,' bootpag">'];h.firstLastUse&&(a=a.concat(['<li data-lp="1" class="',h.firstClass,'"><a href="',m(1),'">',h.first,"</a></li>"])),h.prev&&(a=a.concat(['<li data-lp="1" class="',h.prevClass,'"><a href="',m(1),'">',h.prev,"</a></li>"]));for(var i=1;i<=Math.min(h.total,h.maxVisible);i++)a=a.concat(['<li data-lp="',i,'"><a href="',m(i),'">',i,"</a></li>"]);h.next&&(e=h.leaps&&h.total>h.maxVisible?Math.min(h.maxVisible+1,h.total):2,a=a.concat(['<li data-lp="',e,'" class="',h.nextClass,'"><a href="',m(e),'">',h.next,"</a></li>"])),h.firstLastUse&&(a=a.concat(['<li data-lp="',h.total,'" class="last"><a href="',m(h.total),'">',h.last,"</a></li>"])),a.push("</ul>"),s.find("ul.bootpag").remove(),s.append(a.join("")),t=s.find("ul.bootpag"),s.find("li").click(function(){var t=f(this);if(!t.hasClass(h.disabledClass)&&!t.hasClass(h.activeClass)){var e=parseInt(t.attr("data-lp"),10);p.find("ul.bootpag").each(function(){n(f(this),e)}),p.trigger("page",e)}}),n(t,h.page)})}}(jQuery,window),function(w){var k="iCheck",x=k+"-helper",C="checkbox",_="radio",P="checked",h="un"+P,A="disabled",m="determinate",M="in"+m,D="update",T="type",S="click",E="touchbegin.i touchend.i",O="addClass",L="removeClass",B="trigger",I="label",f="cursor",j=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);function F(t,e,s){var a=t[0],i=/er/.test(s)?M:/bl/.test(s)?A:P,n=s==D?{checked:a[P],disabled:a[A],indeterminate:"true"==t.attr(M)||"false"==t.attr(m)}:a[i];if(/^(ch|di|in)/.test(s)&&!n)Y(t,i);else if(/^(un|en|de)/.test(s)&&n)R(t,i);else if(s==D)for(var o in n)n[o]?Y(t,o,!0):R(t,o,!0);else e&&"toggle"!=s||(e||t[B]("ifClicked"),n?a[T]!==_&&R(t,i):Y(t,i))}function Y(t,e,s){var a=t[0],i=t.parent(),n=e==P,o=e==M,l=e==A,r=o?m:n?h:"enabled",c=g(t,r+v(a[T])),d=g(t,e+v(a[T]));if(!0!==a[e]){if(!s&&e==P&&a[T]==_&&a.name){var u=t.closest("form"),p='input[name="'+a.name+'"]';(p=u.length?u.find(p):w(p)).each(function(){this!==a&&w(this).data(k)&&R(w(this),e)})}o?(a[e]=!0,a[P]&&R(t,P,"force")):(s||(a[e]=!0),n&&a[M]&&R(t,M,!1)),b(t,n,e,s)}a[A]&&g(t,f,!0)&&i.find("."+x).css(f,"default"),i[O](d||g(t,e)||""),i.attr("role")&&!o&&i.attr("aria-"+(l?A:P),"true"),i[L](c||g(t,r)||"")}function R(t,e,s){var a=t[0],i=t.parent(),n=e==P,o=e==M,l=e==A,r=o?m:n?h:"enabled",c=g(t,r+v(a[T])),d=g(t,e+v(a[T]));!1!==a[e]&&(!o&&s&&"force"!=s||(a[e]=!1),b(t,n,r,s)),!a[A]&&g(t,f,!0)&&i.find("."+x).css(f,"pointer"),i[L](d||g(t,e)||""),i.attr("role")&&!o&&i.attr("aria-"+(l?A:P),"false"),i[O](c||g(t,r)||"")}function z(t,e){t.data(k)&&(t.parent().html(t.attr("style",t.data(k).s||"")),e&&t[B](e),t.off(".i").unwrap(),w(I+'[for="'+t[0].id+'"]').add(t.closest(I)).off(".i"))}function g(t,e,s){if(t.data(k))return t.data(k).o[e+(s?"":"Class")]}function v(t){return t.charAt(0).toUpperCase()+t.slice(1)}function b(t,e,s,a){a||(e&&t[B]("ifToggled"),t[B]("ifChanged")[B]("if"+v(s)))}w.fn[k]=function(e,s){function t(t){t.each(function(){var t=w(this);i=t.is(a)?i.add(t):i.add(t.find(a))})}var a='input[type="'+C+'"], input[type="'+_+'"]',i=w();if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)#x2F;i.test(e))return e=e.toLowerCase(),t(this),i.each(function(){var t=w(this);"destroy"==e?z(t,"ifDestroyed"):F(t,!0,e),w.isFunction(s)&&s()});if("object"!=typeof e&&e)return this;var h=w.extend({checkedClass:P,disabledClass:A,indeterminateClass:M,labelHover:!0},e),n=h.handle,m=h.hoverClass||"hover",f=h.focusClass||"focus",g=h.activeClass||"active",v=!!h.labelHover,b=h.labelHoverClass||"hover",y=0|(""+h.increaseArea).replace("%","");return n!=C&&n!=_||(a='input[type="'+n+'"]'),y<-50&&(y=-50),t(this),i.each(function(){var a=w(this);z(a);var t,i=this,e=i.id,s=-y+"%",n=100+2*y+"%",o={position:"absolute",top:s,left:s,display:"block",width:n,height:n,margin:0,padding:0,background:"#fff",border:0,opacity:0},l=j?{position:"absolute",visibility:"hidden"}:y?o:{position:"absolute",opacity:0},r=i[T]==C?h.checkboxClass||"i"+C:h.radioClass||"i"+_,c=w(I+'[for="'+e+'"]').add(a.closest(I)),d=!!h.aria,u=k+"-"+Math.random().toString(36).substr(2,6),p='<div class="'+r+'" '+(d?'role="'+i[T]+'" ':"");d&&c.each(function(){p+='aria-labelledby="',this.id?p+=this.id:(this.id=u,p+=u),p+='"'}),p=a.wrap(p+"/>")[B]("ifCreated").parent().append(h.insert),t=w('<ins class="'+x+'"/>').css(o).appendTo(p),a.data(k,{o:h,s:a.attr("style")}).css(l),h.inheritClass&&p[O](i.className||""),h.inheritID&&e&&p.attr("id",k+"-"+e),"static"==p.css("position")&&p.css("position","relative"),F(a,!0,D),c.length&&c.on(S+".i mouseover.i mouseout.i "+E,function(t){var e=t[T],s=w(this);if(!i[A]){if(e==S){if(w(t.target).is("a"))return;F(a,!1,!0)}else v&&(/ut|nd/.test(e)?(p[L](m),s[L](b)):(p[O](m),s[O](b)));if(!j)return!1;t.stopPropagation()}}),a.on(S+".i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[T],s=t.keyCode;return e!=S&&("keydown"==e&&32==s?(i[T]==_&&i[P]||(i[P]?R(a,P):Y(a,P)),!1):void("keyup"==e&&i[T]==_?i[P]||Y(a,P):/us|ur/.test(e)&&p["blur"==e?L:O](f)))}),t.on(S+" mousedown mouseup mouseover mouseout "+E,function(t){var e=t[T],s=/wn|up/.test(e)?g:m;if(!i[A]){if(e==S?F(a,!1,!0):(/wn|er|in/.test(e)?p[O](s):p[L](s+" "+g),c.length&&v&&s==m&&c[/ut|nd/.test(e)?L:O](b)),!j)return!1;t.stopPropagation()}})})}}(window.jQuery||window.Zepto),void 0===helper)var helper={};helper.arr={multisort:function(t,s,a){if(void 0===s)for(s=[],x=0;x<t[0].length;x++)s.push(x);if(void 0===a)for(a=[],x=0;x<t[0].length;x++)a.push("ASC");return t.sort(function(t,e){return function t(e,s,a,i,n){var o="DESC"==i[n]?1:0,l=!isNaN(e[a[n]]-s[a[n]]),r=l?+e[a[n]]:e[a[n]].toLowerCase(),c=l?+s[a[n]]:s[a[n]].toLowerCase();return r<c?0==o?-1:1:r==c?a.length-1>n?t(e,s,a,i,n+1):0:0==o?1:-1}(t,e,s,a,0)})}},function(i){"use strict";var n=function(t,e){this.$element=i(t),this.options=i.extend({},n.defaults,e)};n.defaults={transition_delay:300,refresh_speed:50,display_text:"none",use_percentage:!0,percent_format:function(t){return t+"%"},amount_format:function(t,e,s){return t+" / "+e},update:i.noop,done:i.noop,fail:i.noop},n.prototype.transition=function(){var o=this.$element,l=o.parent(),r=this.$back_text,c=this.$front_text,d=this.options,u=parseInt(o.attr("data-transitiongoal")),p=parseInt(o.attr("aria-valuemin"))||0,h=parseInt(o.attr("aria-valuemax"))||100,m=l.hasClass("vertical"),f=d.update&&"function"==typeof d.update?d.update:Progressbar.defaults.update,g=d.done&&"function"==typeof d.done?d.done:Progressbar.defaults.done,t=d.fail&&"function"==typeof d.fail?d.fail:Progressbar.defaults.fail;if(isNaN(u))t("data-transitiongoal not set");else{var e,v=Math.round(100*(u-p)/(h-p));if("center"===d.display_text&&!r&&!c)this.$back_text=r=i("<span>").addClass("progressbar-back-text").prependTo(l),this.$front_text=c=i("<span>").addClass("progressbar-front-text").prependTo(o),m?(e=l.css("height"),r.css({height:e,"line-height":e}),c.css({height:e,"line-height":e}),i(window).resize(function(){e=l.css("height"),r.css({height:e,"line-height":e}),c.css({height:e,"line-height":e})})):(e=l.css("width"),c.css({width:e}),i(window).resize(function(){e=l.css("width"),c.css({width:e})}));setTimeout(function(){var t,e,s,a,i;m?o.css("height",v+"%"):o.css("width",v+"%");var n=setInterval(function(){a=m?(s=o.height(),l.height()):(s=o.width(),l.width()),t=Math.round(100*s/a),e=Math.round(p+s/a*(h-p)),v<=t&&(t=v,e=u,g(o),clearInterval(n)),"none"!==d.display_text&&(i=d.use_percentage?d.percent_format(t):d.amount_format(e,h,p),"fill"===d.display_text?o.text(i):"center"===d.display_text&&(r.text(i),c.text(i))),o.attr("aria-valuenow",e),f(t,o)},d.refresh_speed)},d.transition_delay)}};var t=i.fn.yopprogressbar;i.fn.yopprogressbar=function(a){return this.each(function(){var t=i(this),e=t.data("bs.progressbar"),s="object"==typeof a&&a;e&&s&&i.extend(e.options,s),e||t.data("bs.progressbar",e=new n(this,s)),e.transition()})},i.fn.yopprogressbar.Constructor=n,i.fn.yopprogressbar.noConflict=function(){return i.fn.yopprogressbar=t,this}}(window.jQuery),jQuery(document).ready(function(e){e(".submenu-item").hover(function(t){e(this).closest(".submenu").find(".submenu-item").removeClass("btn-underline"),e(this).addClass("btn-underline"),t.preventDefault()},function(t){e(this).removeClass("btn-underline"),e(this).closest(".submenu").find(".submenu-item-active").addClass("btn-underline"),t.preventDefault()}),e(".submenu-item").click(function(t){e(this).closest(".submenu").find(".submenu-item").removeClass("btn-underline").removeClass("submenu-item-active"),e(this).addClass("btn-underline").addClass("submenu-item-active"),e(this).closest(".tab-pane").find(".submenu-content").addClass("hide"),e(this).closest(".tab-pane").find("."+e(this).attr("data-content")).removeClass("hide"),t.preventDefault()})}),jQuery(document).ready(function(i){var t,e="";toastr.options={closeButton:!1,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-bottom-right",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",escapeHtml:!1},i(".yop-poll-poll-templates").find('.basic-yop-poll-container[data-temp="basic-pretty"] input[type="radio"]').iCheck({checkboxClass:"icheckbox_square-red",radioClass:"iradio_square-red"}),i(".choose-template").click(function(){var t=i(this).attr("data-template-id");i('input[name="poll[template]"]').val(t),e=i(this).attr("data-template-base"),i('input[name="poll[template]"]').attr("data-template-base",e),""!==e&&("basic"===e?(i("#poll-design").find(".skins-no-template").addClass("hide"),i("#poll-design").find(".skins-no-skin").removeClass("hide"),i(document).find(".skins-basic").removeClass("hide"),i(document).find(".skins-basic-pretty").addClass("hide"),i(".yop-poll-poll-templates").find("figure").removeClass("selected"),i(this).closest("figure").addClass("selected"),i("#poll-design").find('a[data-content="content-design-templates"]').removeClass("btn-underline submenu-item-active"),i("#poll-design").find('a[data-content="content-design-predefined-styles"]').addClass("btn-underline submenu-item-active"),i("#poll-design").find(".content-design-templates").addClass("hide"),i("#poll-design").find(".content-design-predefined-styles").removeClass("hide")):showUpgradeToPro("basic-pretty-template"))}),i(".preview-poll").click(function(t){var a=!1;if(""===i('input[name="poll[template]"]').attr("data-template-base")&&(a=!0,toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.noTemplateSelectedLabel)))),!1===a&&""===i('input[name="poll[skin]"]').attr("data-skin-base")&&(a=!0,toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.noSkinSelectedLabel)))),!1===a&&i(".poll-elements").find(".poll-element").each(function(t){var e,s=i(this).attr("data-type");!1===a&&("text-question"!==s&&"media-question"!==s||"columns"===i(this).find(".answers-display").val()&&(""===(e=i(this).find(".answers-columns").val())?(a=!0,i(".poll-steps li").removeClass("active"),i(".poll-steps li:nth-child( 2)").addClass("active"),i(".poll-steps-content .tab-pane").removeClass("active"),i(".poll-steps-content .tab-pane:nth-child(2)").addClass("active"),i(".poll-steps-content .tab-pane:nth-child(2) .submenu-item").removeClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-item").eq(0).addClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-content").addClass("hide"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-content").eq(0).removeClass("hide"),i.scrollTo(i(this).find(".answers-display-section"),1e3,{onAfter:function(){i(this).find(".answers-columns").focus(),i(this).find(".answers-columns").parent().addClass("has-error")}}),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.noNumberOfColumnsDefined)))):12<e&&(a=!0,i(".poll-steps li").removeClass("active"),i(".poll-steps li:nth-child(2)").addClass("active"),i(".poll-steps-content .tab-pane").removeClass("active"),i(".poll-steps-content .tab-pane:nth-child(2)").addClass("active"),i(".poll-steps-content .tab-pane:nth-child(2) .submenu-item").removeClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-item").eq(0).addClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-content").addClass("hide"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-content").eq(0).removeClass("hide"),i.scrollTo(i(this).find(".answers-display-section"),1e3,{onAfter:function(){i(this).find(".answers-columns").focus(),i(this).find(".answers-columns").parent().addClass("has-error")}}),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.numberOfColumnsTooBig))))))}),!1===a)switch(i('input[name="poll[template]"]').attr("data-template-base")){case"basic":YOPPollBasicShowLivePreview();break;case"basic-pretty":YOPPollBasicPrettyShowLivePreview()}t.preventDefault()}),i('input[name="poll[name]"]').change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".edit-poll-status").click(function(t){i(this).addClass("hide"),i("#poll-status-select").removeClass("hide-if-js"),t.preventDefault()}),i(".save-poll-status").click(function(t){var e=i("#poll_status").val();i(".poll-status").text(e.charAt(0).toUpperCase()+e.slice(1)),i("#poll-status-select").addClass("hide-if-js"),i(".edit-poll-status").removeClass("hide"),t.preventDefault()}),i(".cancel-poll-status").click(function(t){i("#poll-status-select").addClass("hide-if-js"),i(".edit-poll-status").removeClass("hide"),t.preventDefault()}),i(".edit-timestamp").click(function(t){i(".poll-steps li").removeClass("active"),i(".poll-steps li:nth-child(3)").addClass("active"),i(".poll-steps-content .tab-pane").removeClass("active"),i(".poll-steps-content .tab-pane:nth-child(3)").addClass("active"),i(".poll-steps-content .tab-pane:nth-child(3) .submenu-item").removeClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(3)").find(".submenu-item").eq(0).addClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(3)").find(".submenu-content").addClass("hide"),i(".poll-steps-content .tab-pane:nth-child(3)").find(".submenu-content").eq(0).removeClass("hide"),i.scrollTo(".start-date-option",1e3,{onAfter:function(){i(".poll-preferences").find(".start-date-option").focus()}}),t.preventDefault()}),i.fn.extend({tooltipExtended:function(t){var e=i(this).data("ui-validate.error-destroy");""!==e&&(e=function(){i(this).tooltip("destroy").removeData("bs.tooltip").next(".tooltip").remove()},i(this).data("ui-validate.error-destroy",e)),i(this).tooltip("destroy").removeData("bs.tooltip").next(".tooltip").remove(),i(this).tooltip({title:t}).on("mouseleave",e).tooltip("show")}}),(t=new Clipboard("#copy-yop-poll-code")).on("success",function(t){i("#copy-yop-poll-code").tooltipExtended(objectL10n.yopPollParams.copyToClipboardSuccess),t.clearSelection()}),t.on("error",function(t){i("#copy-yop-poll-code").tooltipExtended(fallbackMessage(t.action))})}),jQuery(document).ready(function(a){a(".skins-basic-pretty").find(".basic-yop-poll-container").each(function(t){var e=a(this).attr("data-skin"),s=a(this).attr("data-cscheme");s="black"===s?"":"-"+s,a(this).find('input[type="radio"]').iCheck({checkboxClass:"icheckbox_"+e+s,radioClass:"iradio_"+e+s}),a(this).find('input[type="checkbox"]').iCheck({checkboxClass:"icheckbox_"+e+s,radioClass:"iradio_"+e+s})}),a(".skins-select-template").click(function(t){a("#poll-design").find('a[data-content="content-design-templates"]').addClass("btn-underline"),a("#poll-design").find('a[data-content="content-design-predefined-styles"]').removeClass("btn-underline"),a("#poll-design").find(".content-design-templates").removeClass("hide"),a("#poll-design").find(".content-design-predefined-styles").addClass("hide"),t.preventDefault()}),a(".choose-skin").click(function(t){a(this).attr("data-temp");a('input[name="poll[skin]"]').attr("data-skin-base",a(this).attr("data-skin-base")),a("#poll-design").find('input[name="poll[background-color]"]').val(a(this).attr("data-poll-background-color")),a("#poll-design").find('input[name="poll[background-color]"]').minicolors("value",{color:a(this).attr("data-poll-background-color")}),a("#poll-design").find('input[name="poll[border-color]"]').val(a(this).attr("data-poll-border-color")),a("#poll-design").find('input[name="poll[border-color]"]').minicolors("value",{color:a(this).attr("data-poll-border-color")}),a("#poll-design").find('input[name="poll[border-size]"]').val(a(this).attr("data-poll-border-size").replace("px","")),a("#poll-design").find('input[name="poll[border-radius]"]').val(a(this).attr("data-poll-border-radius").replace("px","")),a("#poll-design").find('input[name="poll[padding-left-right]"]').val(a(this).attr("data-poll-padding-left-right").replace("px","")),a("#poll-design").find('input[name="poll[padding-top-bottom]"]').val(a(this).attr("data-poll-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="questions[text-color]"]').val(a(this).attr("data-questions-text-color")),a("#poll-design").find('input[name="questions[text-color]"]').minicolors("value",{color:a(this).attr("data-questions-text-color")}),a("#poll-design").find('input[name="questions[text-size]"]').val(a(this).attr("data-questions-text-size").replace("px","")),a('.questions-text-weight option[value="'+a(this).attr("data-questions-text-weight")+'"]').prop("selected",!0),a('.questions-text-align option[value="'+a(this).attr("data-questions-text-align")+'"]').prop("selected",!0),a("#poll-design").find('input[name="answers[padding-left-right]"]').val(a(this).attr("data-answers-padding-left-right").replace("px","")),a("#poll-design").find('input[name="answers[padding-top-bottom]"]').val(a(this).attr("data-answers-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="answers[text-color]"]').val(a(this).attr("data-answers-text-color")),a("#poll-design").find('input[name="answers[text-color]"]').minicolors("value",{color:a(this).attr("data-answers-text-color")}),a("#poll-design").find('input[name="answers[text-size]"]').val(a(this).attr("data-answers-text-size").replace("px","")),a('.answers-text-weight option[value="'+a(this).attr("data-answers-text-weight")+'"]').prop("select",!0),a("#poll-design").find('input[name="buttons[background-color]"]').val(a(this).attr("data-buttons-background-color")),a("#poll-design").find('input[name="buttons[background-color]"]').minicolors("value",{color:a(this).attr("data-buttons-background-color")}),a("#poll-design").find('input[name="buttons[border-size]"]').val(a(this).attr("data-buttons-border-size").replace("px","")),a("#poll-design").find('input[name="buttons[border-color]"]').val(a(this).attr("data-buttons-border-color")),a("#poll-design").find('input[name="buttons[border-color]"]').minicolors("value",{color:a(this).attr("data-buttons-border-color")}),a("#poll-design").find('input[name="buttons[border-radius]"]').val(a(this).attr("data-buttons-border-radius").replace("px","")),a("#poll-design").find('input[name="buttons[padding-left-right]"]').val(a(this).attr("data-buttons-padding-left-right").replace("px","")),a("#poll-design").find('input[name="buttons[padding-top-bottom]"]').val(a(this).attr("data-buttons-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="buttons[text-color]"]').val(a(this).attr("data-buttons-text-color")),a("#poll-design").find('input[name="buttons[text-color]"]').minicolors("value",{color:a(this).attr("data-buttons-text-color")}),a("#poll-design").find('input[name="buttons[text-size]"]').val(a(this).attr("data-buttons-text-size").replace("px","")),a('.buttons-text-weight option[value="'+a(this).attr("data-buttons-text-weight")+'"]').prop("selected",!0),a("#poll-design").find('textarea[name="custom[css]"]').val(a(this).attr("data-custom-css")),a("#poll-design").find(".skins-no-template").addClass("hide"),a("#poll-design").find(".skins-no-skin").addClass("hide"),a("#poll-design").find(".skin-custom-style").removeClass("hide"),a("#poll-design").removeClass("active"),a("#poll-questions").addClass("active"),a("#yop-main-area").find(".step-design").removeClass("active"),a("#yop-main-area").find(".step-elements").addClass("active"),a("#yop-main-area").find(".step-options").removeClass("active"),a("#yop-main-area").find(".content-qa-elementss").addClass("btn-underline"),a("#yop-main-area").find(".content-design-predefined-styles").removeClass("btn-underline"),a("#yop-main-area").find(".content-qa-elements").removeClass("hide"),a(".content-design-predefined-styles").find("figure").removeClass("selected"),a(this).closest("figure").addClass("selected"),t.preventDefault()}),a(".customize-skin").click(function(t){a(this).attr("data-temp");var e=a(this).closest("figcaption").find(".choose-skin");a('input[name="poll[skin]"]').attr("data-skin-base",a(this).attr("data-skin-base")),a("#poll-design").find('input[name="poll[background-color]"]').val(e.attr("data-poll-background-color")),a("#poll-design").find('input[name="poll[background-color]"]').minicolors("value",{color:e.attr("data-poll-background-color")}),a("#poll-design").find('input[name="poll[border-color]"]').val(e.attr("data-poll-border-color")),a("#poll-design").find('input[name="poll[border-color]"]').minicolors("value",{color:e.attr("data-poll-border-color")}),a("#poll-design").find('input[name="poll[border-size]"]').val(e.attr("data-poll-border-size").replace("px","")),a("#poll-design").find('input[name="poll[border-radius]"]').val(e.attr("data-poll-border-radius").replace("px","")),a("#poll-design").find('input[name="poll[padding-left-right]"]').val(e.attr("data-poll-padding-left-right").replace("px","")),a("#poll-design").find('input[name="poll[padding-top-bottom]"]').val(e.attr("data-poll-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="questions[text-color]"]').val(e.attr("data-questions-text-color")),a("#poll-design").find('input[name="questions[text-color]"]').minicolors("value",{color:e.attr("data-questions-text-color")}),a("#poll-design").find('input[name="questions[text-size]"]').val(e.attr("data-questions-text-size").replace("px","")),a('.questions-text-weight option[value="'+a(this).attr("data-questions-text-weight")+'"]').prop("selected",!0),a('.questions-text-align option[value="'+a(this).attr("data-questions-text-align")+'"]').prop("selected",!0),a("#poll-design").find('input[name="answers[padding-left-right]"]').val(e.attr("data-answers-padding-left-right").replace("px","")),a("#poll-design").find('input[name="answers[padding-top-bottom]"]').val(e.attr("data-answers-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="answers[text-color]"]').val(e.attr("data-answers-text-color")),a("#poll-design").find('input[name="answers[text-color]"]').minicolors("value",{color:e.attr("data-answers-text-color")}),a("#poll-design").find('input[name="answers[text-size]"]').val(e.attr("data-answers-text-size").replace("px","")),a('.answers-text-weight option[value="'+a(this).attr("data-answers-text-weight")+'"]').prop("select",!0),a("#poll-design").find('input[name="buttons[background-color]"]').val(e.attr("data-buttons-background-color")),a("#poll-design").find('input[name="buttons[background-color]"]').minicolors("value",{color:e.attr("data-buttons-background-color")}),a("#poll-design").find('input[name="buttons[border-size]"]').val(e.attr("data-buttons-border-size").replace("px","")),a("#poll-design").find('input[name="buttons[border-color]"]').val(e.attr("data-buttons-border-color")),a("#poll-design").find('input[name="buttons[border-color]"]').minicolors("value",{color:e.attr("data-buttons-border-color")}),a("#poll-design").find('input[name="buttons[border-radius]"]').val(e.attr("data-buttons-border-radius").replace("px","")),a("#poll-design").find('input[name="buttons[padding-left-right]"]').val(e.attr("data-buttons-padding-left-right").replace("px","")),a("#poll-design").find('input[name="buttons[padding-top-bottom]"]').val(e.attr("data-buttons-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="buttons[text-color]"]').val(e.attr("data-buttons-text-color")),a("#poll-design").find('input[name="buttons[text-color]"]').minicolors("value",{color:e.attr("data-buttons-text-color")}),a("#poll-design").find('input[name="buttons[text-size]"]').val(e.attr("data-buttons-text-size").replace("px","")),a('.buttons-text-weight option[value="'+a(this).attr("data-buttons-text-weight")+'"]').prop("selected",!0),a("#poll-design").find('textarea[name="custom[css]"]').val(e.attr("data-custom-css")),a("#poll-design").find(".skins-no-template").addClass("hide"),a("#poll-design").find(".skins-no-skin").addClass("hide"),a("#poll-design").find(".skin-custom-style").removeClass("hide"),a(".content-design-predefined-styles").find("figure").removeClass("selected"),a(this).closest("figure").addClass("selected"),a("#poll-design").find(".skins-no-template").addClass("hide"),a("#poll-design").find(".skins-no-skin").addClass("hide"),a("#poll-design").find(".skin-custom-style").removeClass("hide"),a("#poll-design").find('a[data-content="content-design-predefined-styles"]').removeClass("btn-underline submenu-item-active"),a("#poll-design").find('a[data-content="content-design-custom-style"]').addClass("btn-underline submenu-item-active"),a("#poll-design").find(".content-design-predefined-styles").addClass("hide"),a("#poll-design").find(".content-design-custom-style").removeClass("hide"),t.preventDefault()})}),jQuery(document).ready(function(s){s(".yop-element > .yop-head").first().addClass("collapse-up"),s(".yop-element > .yop-head").click(function(){var t=s(this).parent().children(".content"),e=s(this);s(t).slideToggle(function(){"block"===s(t).css("display")?(s(e).addClass("collapse-up"),s(e).removeClass("collapse-down")):(s(e).addClass("collapse-down"),s(e).removeClass("collapse-up"))})}),s(".poll-style-header").click(function(){var t=s(this).closest(".panel").find(".panel-collapse");s(t).hasClass("in")?s(this).find("a").first().removeClass("collapsed"):s(this).find("a").first().addClass("collapsed"),s(t).collapse("toggle")}),s(".custom-style-select-template").click(function(t){s("#poll-design").find('a[data-content="content-design-templates"]').addClass("btn-underline"),s("#poll-design").find('a[data-content="content-design-custom-style"]').removeClass("btn-underline"),s("#poll-design").find(".content-design-templates").removeClass("hide"),s("#poll-design").find(".content-design-custom-style").addClass("hide"),t.preventDefault()}),s(".custom-style-select-skin").click(function(t){s("#poll-design").find('a[data-content="content-design-custom-style"]').removeClass("btn-underline"),s("#poll-design").find('a[data-content="content-design-predefined-styles"]').addClass("btn-underline"),s("#poll-design").find(".content-design-predefined-styles").removeClass("hide"),s("#poll-design").find(".content-design-custom-style").addClass("hide"),t.preventDefault()}),s(".color-scheme li").click(function(){!1===s(this).hasClass("active")&&(s("li.active").removeClass("active"),s(this).addClass("active"))}),s(".colorpicker-component").each(function(){s(this).find("INPUT").minicolors({position:"bottom right",inline:!1,theme:"bootstrap"})}),s(".poll-background-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-border-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-border-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-border-radius").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-padding-left-right").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-padding-top-bottom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".questions-text-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".questions-text-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".answers-padding-left-right").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".answers-padding-top-bottom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".answers-text-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".answers-text-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-background-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-border-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-border-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-border-radius").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-padding-left-right").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-padding-top-bottom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-text-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-text-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-border-left-color-for-success").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-border-left-color-for-error").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-border-left-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-padding-top-left").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-text-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-text-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")})}),jQuery(document).ready(function(e){e(".vote-permissions").on("click",function(t){!0===e(this).is(":checked")&&-1!==e.inArray(e(this).val(),["facebook","google"])&&(showUpgradeToPro(e(this).val()),t.preventDefault())}),e(".block-voters").on("click",function(t){!0===e(this).is(":checked")?"no-block"===e(this).val()?(e(".block-voters-section").find('.block-voters[value!="no-block"]').prop("checked",!1),e(".block-type-section").addClass("hide"),e(".block-length-section").addClass("hide")):"by-fingerprint"===e(this).val()?(showUpgradeToPro("block-fingerprint"),t.preventDefault()):(e(".block-voters-section").find('.block-voters[value="no-block"]').prop("checked",!1),e(".block-type-section").removeClass("hide")):0===e(".block-voters:checked").length&&(e(".block-type-section").addClass("hide"),e(".block-length-section").addClass("hide"))}),e(".block-length-type").on("change",function(t){"limited-time"===e(this).val()?e(".block-length-section").removeClass("hide"):e(".block-length-section").addClass("hide")}),e(".poll-options-access").on("change",".limit-votes-per-user",function(t){"yes"===e(this).val()?e(this).closest(".poll-options-access").find(".votes-per-user-section").removeClass("hide"):e(this).closest(".poll-options-access").find(".votes-per-user-section").addClass("hide")}),e(".block-for-value").change(function(){""!==e(this).val()&&e(this).parent().removeClass("has-error")})}),jQuery(document).ready(function(i){var s=1,a=1;i("#sortable").sortable({appendTo:document.body,items:"> .answer-block",axis:"y"}),i(".poll-elements-list").sortable({axis:"y",handle:".title-bar",start:function(t,e){i(".poll-elements").find(".poll-element").each(function(t){i(this).find(".content").first().hide()})},stop:function(t,e){}}),i(".poll-elements-list").find(".answers").sortable(),i(".poll-elements").on("click",".poll-element-collapse",function(t){var e=i(this).closest(".poll-element").find(".content-inside").first(),s=i(this);i(e).slideToggle({duration:1e3,complete:function(){var t=i(e).is(":visible");i(this).removeClass("toggle-in-action"),!0===t?(i(s).find("span").addClass("glyphicon-chevron-up"),i(s).find("span").removeClass("glyphicon-chevron-down"),i(s).closest(".title-bar").removeClass("collapsed")):(i(s).find("span").addClass("glyphicon-chevron-down"),i(s).find("span").removeClass("glyphicon-chevron-up"),i(s).closest(".title-bar").addClass("collapsed"),i(s).show())}}),t.preventDefault()}),i(".add-custom-field").draggable({helper:function(t){var e=i(".custom-field-definition").find(".poll-element").clone();return i(e)},connectToSortable:".poll-elements-list",start:function(t,e){e.helper.css("width",""),e.helper.find(".content-inside").hide(),e.helper.find(".custom-field-options").hide(),e.helper.find(".title-bar").addClass("collapsed")},drag:function(t,e){e.helper.css("width",i(".poll-elements").css("width"))},stop:function(t,e){e.helper.css({width:"",height:""}),e.helper.closest('.poll-element[data-type="custom-field"]').attr("data-uid","el-"+s),s++,e.helper.find(".poll-element-collapse").first().trigger("click")}}),i(".add-custom-field").click(function(t){var e=i(".custom-field-definition").find(".poll-element").clone();e.closest('.poll-element[data-type="custom-field"]').attr("data-uid","el-"+s),s++,i(".poll-elements-list").append(e),toastr.success(objectL10n.yopPollParams.elementAdded),t.preventDefault()}),i(".poll-elements").on("click",".custom-field-edit-more",function(t){i(this).closest(".poll-element").find(".custom-field-options").show(),t.preventDefault()}),i(".poll-elements").on("click",".custom-field-edit-clone",function(t){i(this).closest(".poll-element").after(i(this).closest(".poll-element").clone().attr({"data-id":"","data-uid":"el-"+s})),s++,t.preventDefault()}),i(".poll-elements").on("click",".custom-field-edit-delete",function(t){var e,s,a=i(this);BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteCustomFieldMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&(""!==(e=i(a).closest('.poll-element[data-type="custom-field"]').attr("data-id"))&&(""===(s=i(".poll-elements-list").attr("data-remove"))?i(".poll-elements-list").attr("data-remove",e):i(".poll-elements-list").attr("data-remove",s+","+e)),i(a).closest(".poll-element").remove())}}),t.preventDefault()}),i(".poll-elements").on("change",".custom-field-required",function(t){var e=i(this).is(":checked");i(this).closest(".poll-element").find(".custom-field-make-required").prop("checked",e),t.preventDefault()}),i(".poll-elements").on("change",".custom-field-make-required",function(t){var e=i(this).is(":checked");i(this).closest(".poll-element").find(".custom-field-required").prop("checked",e),t.preventDefault()}),i(".poll-elements").on("click",".custom-field-edit-done",function(t){i(this).closest(".poll-element").find(".custom-field-options").hide(),t.preventDefault()}),i(".poll-elements").on("change",".custom-field-type",function(t){"textfield"!==i(this).val()&&(showUpgradeToPro("text-block"),i('.custom-field-type option[value="textfield"]').prop("selected",!0))}),i(".add-text-question").click(function(t){showUpgradeToPro("text-question"),t.preventDefault()}),i(".poll-elements").on("click",".text-question-edit-clone",function(t){showUpgradeToPro("text-question"),t.preventDefault()}),i(".poll-elements").on("click",".text-question-edit-delete",function(t){showUpgradeToPro("text-question"),t.preventDefault()}),i(".poll-elements").find("INPUT.answer-results-color").minicolors({position:"top right",inline:!1,theme:"bootstrap"}),i(".add-media-question").click(function(t){showUpgradeToPro("media-question"),t.preventDefault()}),i(".add-space-separator").click(function(t){showUpgradeToPro("space-separator"),t.preventDefault()}),i(".add-text-block").click(function(t){showUpgradeToPro("text-block"),t.preventDefault()}),i(".poll-elements").on("click",".add-text-answer",function(t){var e=i(".text-answer-definition").find(".answer").clone().attr("data-uid","subEl-"+a);a++,i(e).find(".answer-results-color").minicolors({position:"top right",inline:!1,theme:"bootstrap"}),i(this).closest('.poll-element[data-type="text-question"]').find(".answers").append(i(e)),t.preventDefault()}),i(".poll-elements").on("click",".text-answer-edit-more",function(t){i(this).closest(".answer").find(".answer-options").show(),t.preventDefault()}),i(".poll-elements").on("click",".text-answer-edit-clone",function(t){var e=i(this).closest(".answer"),s=i(e).clone().attr({"data-id":"","data-uid":"subEl-"+a});a++,i(s).find(".answer-results-color").minicolors("destroy"),i(s).find(".answer-results-color").minicolors({position:"top right",inline:!1,theme:"bootstrap"}),i(e).after(i(s)),t.preventDefault()}),i(".poll-elements").on("click",".text-answer-edit-delete",function(t){var e,s,a=i(this);BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteAnswerMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&(""!==(e=i(a).closest(".answer").attr("data-id"))&&(""===(s=i(a).closest('.poll-element[data-type="text-question"]').attr("data-remove"))?i(a).closest('.poll-element[data-type="text-question"]').attr("data-remove",e):i(a).closest('.poll-element[data-type="text-question"]').attr("data-remove",s+","+e)),i(a).closest(".answer").remove())}}),t.preventDefault()}),i(".poll-elements").on("click",".text-answer-edit-done",function(t){i(this).closest(".answer-options").hide(),t.preventDefault()}),i(".poll-elements").on("change",".answer-is-default",function(t){var e=i(this).is(":checked");i(this).closest(".answer").find(".answer-make-default").prop("checked",e),t.preventDefault()}),i(".poll-elements").on("change",".answer-make-default",function(t){var e=i(this).is(":checked");i(this).closest(".answer").find(".answer-is-default").prop("checked",e),t.preventDefault()}),i(".poll-elements").on("change",".answer-make-link",function(t){!0===i(this).is(":checked")?i(this).closest(".answer").find(".answer-link-section").removeClass("hide"):i(this).closest(".answer").find(".answer-link-section").addClass("hide"),t.preventDefault()}),i(".poll-elements").on("change",".allow-other-answers",function(t){"yes"===i(this).val()?i(this).closest(".question-options").find(".other-answers-section").removeClass("hide"):i(this).closest(".question-options").find(".other-answers-section").addClass("hide")}),i(".poll-elements").find("INPUT.other-answers-results-color").minicolors({position:"top right",inline:!1,theme:"bootstrap"}),i(".poll-elements").on("change",".display-other-answers-in-results",function(t){"yes"===i(this).val()?i(this).closest(".other-answers-section").find(".other-answers-results-color-section").removeClass("hide"):i(this).closest(".other-answers-section").find(".other-answers-results-color-section").addClass("hide"),t.preventDefault()}),i(".poll-elements").on("change",".allow-multiple-answers",function(t){"yes"===i(this).val()?i(this).closest(".question-options").find(".multiple-answers-section").removeClass("hide"):i(this).closest(".question-options").find(".multiple-answers-section").addClass("hide")}),i(".poll-elements").on("change",".answers-display",function(t){"columns"===i(this).val()?(i(this).closest(".question-options").find(".answers-display-section").removeClass("hide"),i(this).closest(".question-options").find(".answers-columns").val("2")):i(this).closest(".question-options").find(".answers-display-section").addClass("hide")}),i(".poll-elements").on("change",".other-answers-type",function(t){"textfield"!==i(this).val()&&(showUpgradeToPro("other-answers-type"),i('.answers-sort option[value="as-defined"]').prop("selected",!0))}),i(".poll-elements").on("change",".answers-sort",function(t){"as-defined"!==i(this).val()&&(showUpgradeToPro("sort-answers"),i('.answers-sort option[value="as-defined"]').prop("selected",!0))}),i(".question-text-edit").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".answer-edit-text").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".answers-columns").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".poll-elements").on("input",".question-value",function(){var t="";t=""===i(this).val().trim()?i(this).attr("placeholder"):i(this).val().substring(0,50),i(this).closest(".poll-element").find(".element-title").text(t)}),i(".poll-elements").on("input",".custom-field-name",function(){var t="";t=""===i(this).val().trim()?i(this).attr("placeholder"):i(this).val().substring(0,50),i(this).closest(".poll-element").find(".element-title").text(t)})}),jQuery(document).ready(function(s){s(".start-date-custom-hidden").datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm",onSelect:function(t){var e;e=moment(t,"YYYY-MM-DD HH:mm").unix(),s(".start-date-custom").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,e)).change(),s("#timestamp").text(objectL10n.yopPollParams.publishDateSchedule+":"+date("M d, Y @ H:i",e))},onClose:function(){var t;null!==s(".start-date-custom-hidden").datetimepicker("getDate")&&(t=moment(s(".start-date-custom-hidden").datetimepicker("getDate")).unix(),s(".start-date-custom").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,t)).change(),s("#timestamp").text(objectL10n.yopPollParams.publishDateSchedule+": "),s("#timestamp").text(objectL10n.yopPollParams.publishDateSchedule+": "+date("M d, Y @ H:i",t)))}}),s(".end-date-custom-hidden").datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm",onSelect:function(t){var e;e=moment(t,"YYYY-MM-DD HH:mm").unix(),s(".end-date-custom").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,e)).change()},onClose:function(){var t;null!==s(".end-date-custom-hidden").datetimepicker("getDate")&&(t=moment(s(".end-date-custom-hidden").datetimepicker("getDate")).unix(),s(".end-date-custom").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,t)).change())}}),s(".poll-vote-button").on("change",".show-results-link",function(t){"yes"===s(this).val()?s(".results-link-option").removeClass("hide"):s(".results-link-option").addClass("hide")}),s(".poll-preferences").on("change",".start-date-option",function(t){"custom"===s(this).val()?s(this).closest(".poll-preferences").find(".start-date-section").removeClass("hide"):(s(this).closest(".poll-preferences").find(".start-date-section").addClass("hide"),s("#timestamp").text(objectL10n.yopPollParams.publishDateImmediately))}),s(".poll-preferences").on("click",".show-start-date",function(t){s(".start-date-custom-hidden").datepicker("show"),t.preventDefault()}),s(".poll-preferences").on("click",".show-end-date",function(t){s(".end-date-custom-hidden").datepicker("show"),t.preventDefault()}),s(".poll-preferences").on("change","select.end-date-option",function(t){"custom"===s(this).val()?s(this).closest(".poll-preferences").find(".end-date-section").removeClass("hide"):s(this).closest(".poll-preferences").find(".end-date-section").addClass("hide")}),s(".poll-preferences").on("change",".redirect-after-vote",function(t){"yes"===s(this).val()?s(this).closest(".poll-preferences").find(".redirect-url-section").removeClass("hide"):s(this).closest(".poll-preferences").find(".redirect-url-section").addClass("hide")}),s(".poll-preferences").on("change",".reset-poll-stats-automatically",function(t){"yes"===s(this).val()?s(this).closest(".poll-preferences").find(".reset-poll-stats-section").removeClass("hide"):s(this).closest(".poll-preferences").find(".reset-poll-stats-section").addClass("hide")}),s(".reset-poll-stats-on-hidden").datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm",onSelect:function(t){var e;e=moment(t,"YYYY-MM-DD HH:mm").unix(),s(".reset-poll-stats-on").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,e)).change()},onClose:function(){var t;null!==s(".reset-poll-stats-on-hidden").datetimepicker("getDate")&&(t=moment(s(".reset-poll-stats-on-hidden").datetimepicker("getDate")).unix(),s(".reset-poll-stats-on").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,t)).change())}}),s(".poll-preferences").on("click",".show-reset-poll-stats-on",function(t){s(".reset-poll-stats-on-hidden").datepicker("show"),t.preventDefault()}),s(".poll-notifications").on("change",".send-email-notifications",function(t){"yes"===s(this).val()?s(this).closest(".poll-notifications").find(".send-email-notifications-section").removeClass("hide"):s(this).closest(".poll-notifications").find(".send-email-notifications-section").addClass("hide")}),s(".vote-button-label").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".results-label-text").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".start-date-custom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".end-date-custom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".redirect-url").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-from-name").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-from-email").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-recipients").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-subject").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-message").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-compliance").on("change",".enable-gdpr",function(t){"yes"===s(this).val()?(s(this).closest(".poll-compliance").find(".gdpr-solution-section").removeClass("hide"),"consent"===s(".gdpr-solution").val()?s(this).closest(".poll-compliance").find(".gdpr-consent-section").removeClass("hide"):s(this).closest(".poll-compliance").find(".gdpr-consent-section").addClass("hide")):(s(this).closest(".poll-compliance").find(".gdpr-solution-section").addClass("hide"),s(this).closest(".poll-compliance").find(".gdpr-consent-section").addClass("hide"))}),s(".poll-compliance").on("change",".gdpr-solution",function(t){"consent"===s(this).val()?s(this).closest(".poll-compliance").find(".gdpr-consent-section").removeClass("hide"):s(this).closest(".poll-compliance").find(".gdpr-consent-section").addClass("hide")})}),jQuery(document).ready(function(s){s(".show-results-moment").click(function(t){!0===s(this).is(":checked")?"never"===s(this).val()?(s('.show-results-moment[value!="never"]').prop("checked",!1),s(".show-results-to-section").addClass("hide"),s(".custom-date-results-section").addClass("hide"),s(".show-results-details-section").addClass("hide")):(s('.show-results-moment[value="never"]').prop("checked",!1),"custom-date"===s(this).val()&&s(".custom-date-results-section").removeClass("hide"),s(".show-results-to-section").removeClass("hide"),s(".show-results-details-section").removeClass("hide")):(0===s(".show-results-moment:checked").length&&(s(".show-results-to-section").addClass("hide"),s(".custom-date-results-section").addClass("hide"),s(".show-results-details-section").addClass("hide")),"custom-date"===s(this).val()&&s(".custom-date-results-section").addClass("hide"))}),s(".custom-date-results-hidden").datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm",onSelect:function(t){var e;e=moment(t,"YYYY-MM-DD HH:mm").unix(),s(".custom-date-results").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,e)).change()},onClose:function(){var t;null!==s(".custom-date-results-hidden").datetimepicker("getDate")&&(t=moment(s(".custom-date-results-hidden").datetimepicker("getDate")).unix(),s(".custom-date-results").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,t)).change())}}),s(".custom-date-results-section").on("click",".show-custom-date-results",function(t){s(".custom-date-results-hidden").datepicker("show"),t.preventDefault()}),s(".poll-results-options").on("change",".back-to-vote-option",function(t){"yes"===s(this).val()?s(this).closest(".poll-results-options").find(".back-to-vote-caption-section").removeClass("hide"):s(this).closest(".poll-results-options").find(".back-to-vote-caption-section").addClass("hide")}),s(".poll-results-options").on("change",".sort-results",function(t){"alphabetical"===s(this).val()||"number-of-votes"===s(this).val()?s(this).closest(".poll-results-options").find(".sort-results-rule-section").removeClass("hide"):s(this).closest(".poll-results-options").find(".sort-results-rule-section").addClass("hide")}),s(".custom-date-results").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".back-to-vote-caption").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-results-options").on("change",".display-results-as",function(t){"pie"===s(this).val()&&(showUpgradeToPro("pie-results"),t.preventDefault())})});var YOPPollBasicIsVotingEnded,YOPPollBasicIsVotingStarted,YOPPollBasicIsAllowMultipleAnswers,YOPPollBasicIsAnswerDefault,YOPPollBasicIsAnswerLink,YOPPollBasicGetAnswersCount,YOPPollBasicHasGdpr,YOPPollBasicHasCaptcha,YOPPollBasicFormatVotePermissions,YOPPollBasicGetResultsBeforeVoteSettings,YOPPollBasicDoAnonymousVote,YOPPollBasicGetPollElements,YOPPollBasicDoTextQuestion,YOPPollBasicDoVerticalText,YOPPollBasicDoHorizontalText,YOPPollBasicDoColumnsText,YOPPollBasicDoCustomField,YOPPollBasicCreateMediaAnswer,YOPPollBasicDoMediaQuestion,YOPPollBasicDoVerticalMedia,YOPPollBasicDoHorizontalMedia,YOPPollBasicDoColumnsMedia,YOPPollBasicDoSpaceSeparator,YOPPollBasicDoTextBlock,YOPPollBasicShowResultsLink,YOPPollBasicShowBackToVoteLink,YOPPollBasicDoShowTotalVotesAndAnswers,YOPPollBasicProcessElements,YOPPollBasicDoShowResultsBeforeVote,YOPPollBasicShowLivePreviewFor,YOPPollBasicShowLivePreviewForVoting,YOPPollBasicShowLivePreviewForResults,YOPPollDoPrettyBasic,YOPPollRemovePrettyBasic,YOPPollBasicIsResultsShowPercentages,YOPPollBasicIsResultsShowVotes,YOPPollBasicGetClassForColumns,randomMin=1,randomMax=100;jQuery(document).ready(function(m){var s=[[]];YOPPollBasicIsVotingEnded=function(t,e){var s=strtotime(e);return"custom"===t&&parseInt(s,10)<parseInt(objectL10n.yopPollParams.timeNow,10)},YOPPollBasicIsVotingStarted=function(t,e){var s=strtotime(e);return"custom"!==t||!(parseInt(s,10)>parseInt(objectL10n.yopPollParams.timeNow,10))},YOPPollBasicIsAllowMultipleAnswers=function(t){return"yes"===t?"checkbox":"radio"},YOPPollBasicIsAnswerDefault=function(t){return!0===t.is(":checked")?"checked":""},YOPPollBasicIsAnswerLink=function(t,e,s){return!0===t.is(":checked")&&""!==e?'<a href="'+e+'" target="_blank">'+s+"</a>":s},YOPPollBasicGetAnswersCount=function(t){var e=t.find(".answer").length;return"yes"===t.find(".allow-other-answers").val()&&e++,e.toString()},YOPPollBasicFormatVotePermissions=function(t){var e=0,s=[];for(e in t)s.push(t[e].id);return s},YOPPollBasicGetResultsBeforeVoteSettings=function(t){return resultsBeforeVoteData=' data-show-results-to="'+t["show-results-to"].join()+'" data-show-results-moment="'+t["show-results-moment"].join()+'" data-show-results-only="false" data-show-results-as="'+t["display-results-as"]+'" data-sort-results-by="'+t["sort-results-by"]+'" data-sort-results-rule="'+t["sort-results-rule"]+'" data-resdet="'+t["show-details-as"].join()+'"',resultsBeforeVoteData},YOPPollBasicGetClassForColumns=function(t){var e="";switch(t){case"2":e="col-xs-6 col-sm-6 col-md-6";break;case"3":e="col-xs-6 col-sm-6 col-md-4";break;case"4":e="col-xs-6 col-sm-6 col-md-3";break;case"5":e="col-xs-6 col-sm-6 cols-5";break;case"6":e="col-xs-6 col-sm-6 col-md-2";break;case"7":e="col-xs-6 col-sm-6 cols-7";break;case"8":e="col-xs-6 col-sm-6 cols-8";break;case"9":e="col-xs-6 col-sm-6 cols-9";break;case"10":e="col-xs-6 col-sm-6 cols-10";break;case"11":e="col-xs-6 col-sm-6 cols-11";break;case"12":e="col-xs-6 col-sm-6 col-md-1"}return e},YOPPollBasicDoAnonymousVote=function(t){var e="";return-1<m.inArray("guest",t)&&(e='<div class="basic-anonymous"><button type="button" class="btn btn-default"><i class="fa fa-user-secret" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.annonymousVoteText+"</button></div>"),e},YOPPollBasicGetPollElements=function(){var s="",a=m(".poll-elements-list").find(".poll-element").length;return m(".poll-elements-list").find(".poll-element").each(function(t){var e=t+1;switch(m(this).attr("data-type")){case"text-question":s+=YOPPollBasicDoTextQuestion(m(this),e);break;case"custom-field":s+=YOPPollBasicDoCustomField(m(this),e)}t<a&&(s+='<div class="clearfix"></div>')}),s},YOPPollBasicDoTextQuestion=function(t,e){var s="",a="";switch(t.find(".answers-display").val()){case"vertical":a="basic-question-text-vertical",s=YOPPollBasicDoVerticalText(t,e);break;case"horizontal":a="basic-question-text-horizontal",s=YOPPollBasicDoHorizontalText(t,e);break;case"columns":a="basic-question-text-columns",s=YOPPollBasicDoColumnsText(t,e)}return'<div class="basic-element basic-question '+a+'" data-id="'+e+'" data-type="question" data-question-type="text" data-min="" data-max="" data-display="'+m(t).find(".answers-display").val()+'"><div class="basic-question-title"><h5 style="color:'+m(".questions-style-settings").find(".questions-text-color").val()+"; font-size:"+m(".questions-style-settings").find(".questions-text-size").val()+"px; font-weight:"+m(".questions-style-settings").find(".questions-text-weight").val()+"; text-align:"+m(".questions-style-settings").find(".questions-text-align").val()+';">'+t.find(".question-value").val()+"</h5></div>"+s+"</div>"},YOPPollBasicDoVerticalText=function(t,s){var a,i,n,o='<ul class="basic-answers">';return a=YOPPollBasicIsAllowMultipleAnswers(t.find(".allow-multiple-answers").val()),t.find(".answer").each(function(t){var e=Math.floor(Math.random()*(randomMax-randomMin+1))+randomMin;n=YOPPollBasicIsAnswerDefault(m(this).find(".answer-is-default")),i=YOPPollBasicIsAnswerLink(m(this).find(".answer-make-link"),m(this).find(".answer-link").val(),m(this).find(".answer-value").val()),o+='<li class="basic-answer" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;" data-id="'+t+'" data-type="text" data-vn="'+e+'" data-color="'+m(this).find(".answer-results-color").val()+'"><div class="basic-answer-content basic-text-vertical"><input type="'+a+'" id="answer['+s+"]["+(t+1)+']" name="answer['+s+']" value="'+t+'"'+n+'><label for="answer['+s+"]["+(t+1)+']" class="basic-answer-label"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+i+"</span></label></div></li>"}),"yes"===t.find(".allow-other-answers").val()&&(o+='<li class="basic-answer basic-other-answer" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;""><div class="basic-answer-content basic-text-vertical"><input type="'+a+'" id="answer['+s+'][0]" name="answer['+s+']" value="0"><label for="answer['+s+'][0]" class="basic-answer-label"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+t.find(".other-answers-label").val()+'</span></label></div><div class="col-md-6 col-sm-6 col-xs-12"><input class="basic-input-text form-control" type="text" name="answer['+s+']" data-type="other-answer"></div></li>'),o+="</ul>"},YOPPollBasicDoHorizontalText=function(t,s){var a,i,n,o=YOPPollBasicGetClassForColumns(YOPPollBasicGetAnswersCount(t)),l='<ul class="basic-answers basic-h-answers">';return answersCount=YOPPollBasicGetAnswersCount(t),a=YOPPollBasicIsAllowMultipleAnswers(t.find(".allow-multiple-answers").val()),t.find(".answer").each(function(t){var e=Math.floor(Math.random()*(randomMax-randomMin+1))+randomMin;n=YOPPollBasicIsAnswerDefault(m(this).find(".answer-is-default")),i=YOPPollBasicIsAnswerLink(m(this).find(".answer-make-link"),m(this).find(".answer-link").val(),m(this).find(".answer-value").val()),l+='<li class="basic-answer '+o+'" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;" data-id="'+t+'" data-type="text" data-vn="'+e+'" data-color="'+m(this).find(".answer-results-color").val()+'""><div class="basic-answer-content basic-text-horizontal"><input type="'+a+'" id="answer['+s+"]["+(t+1)+']" name="answer['+s+']" value="'+t+'"'+n+'><label for="answer['+s+"]["+(t+1)+']" class="basic-answer-label"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+i+"</span></label></div></li>"}),"yes"===t.find(".allow-other-answers").val()&&(l+='<li class="basic-answer basic-other-answer '+o+'" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;""><div class="basic-answer-content basic-text-horizontal"><input type="'+a+'" id="answer['+s+'][0]" name="answer['+(answersCount+1)+']" value="0"><label for="answer['+s+'][0]" class="basic-answer-label"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+t.find(".other-answers-label").val()+'</span></label></div><div class="col-xs-12"><input class="basic-input-text form-control" type="text" name="answer['+s+']" data-type="other-answer"></div></li>'),l+="</ul>"},YOPPollBasicDoColumnsText=function(t,s){var a,i,n="",o="",e=YOPPollBasicGetAnswersCount(t),l=YOPPollBasicGetClassForColumns(t.find(".answers-columns").val());return a=YOPPollBasicIsAllowMultipleAnswers(t.find(".allow-multiple-answers").val()),i='<ul class="basic-answers basic-h-answers basic-cols-display">',t.find(".answer").each(function(t){var e=Math.floor(Math.random()*(randomMax-randomMin+1))+randomMin;o=YOPPollBasicIsAnswerDefault(m(this).find(".answer-is-default")),n=YOPPollBasicIsAnswerLink(m(this).find(".answer-make-link"),m(this).find(".answer-link").val(),m(this).find(".answer-value").val()),i+='<li class="basic-answer '+l+'" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;" data-id="'+t+'" data-type="text" data-vn="'+e+'" data-color="'+m(this).find(".answer-results-color").val()+'""><div class="basic-answer-content basic-text-horizontal"><input type="'+a+'" id="answer['+s+"]["+(t+1)+']" name="answer['+s+']" value="'+t+'"'+o+'><label for="answer['+s+"]["+(t+1)+']" class="basic-answer-label"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+n+"</span></label></div></li>"}),"yes"===t.find(".allow-other-answers").val()&&(i+='<li class="basic-answer basic-other-answer '+l+'" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;""><div class="basic-answer-content basic-text-horizontal"><input type="'+a+'" id="answer['+s+'][0]" name="answer['+(e+1)+']" value="0"><label for="answer['+s+'][0]" class="basic-answer-label"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+t.find(".other-answers-label").val()+'</span></label></div><div class="col-xs-12"><input class="basic-input-text form-control" type="text" name="answer['+s+']" data-type="other-answer"></div></li>'),i+="</ul>"},YOPPollBasicDoCustomField=function(t,e){return'<div class="basic-element basic-custom-field" data-id="" data-type="custom-field" data-required=""><div class="basic-custom-field-title"><label>'+t.find(".custom-field-name").val()+'</label></div><div class="col-md-6 col-sm-6 col-xs-12"><input type="text" name="cfield[]" class="basic-input-text form-control" data-type="cfield"></div></div>'},YOPPollBasicProcessElements=function(t){"yes"===m(".enable-gdpr").val()&&"consent"===m(".gdpr-solution").val()?m(t).find(".basic-gdpr").show():m(t).find(".basic-gdpr").hide(),"yes"===m(".show-total-votes").val()||"yes"===m(".show-total-answers").val()?m(t).find(".basic-stats").show():m(t).find(".basic-stats").hide(),"yes"===m(".show-total-votes").val()?(m(t).find(".basic-stats-votes").show(),"yes"===m(".show-total-answers").val()?m(t).find(".basic-stats-separator").show():m(t).find(".basic-stats-separator").hide()):(m(t).find(".basic-stats-votes").hide(),m(t).find(".basic-stats-separator").hide()),"yes"===m(".show-total-answers").val()?m(t).find(".basic-stats-answers").show():m(t).find(".basic-stats-answers").hide(),"yes"===m(".show-results-link").val()?m(t).find(".basic-results-button").css("display","inline-block"):m(t).find(".basic-results-button").css("display","none"),m(t).find(".basic-back-to-vote-button").css("display","none")},YOPPollBasicBuildAnswerResultsDetails=function(t,e,s){var a="";return-1!==t.indexOf("percentages")&&(a=(a=0<s?100*e/s:0)===Math.round(a)?Math.round(a)+"%":Number(Math.round(a+"e2")+"e-2").toFixed(2)+"%"),-1!==t.indexOf("votes-number")&&(a+=" ("+e+" "+(1===parseInt(e,10)?objectL10n.yopPollParams.resultsParams.singleVote:objectL10n.yopPollParams.resultsParams.multipleVotes)+")"),a},YOPPollBasicIsResultsShowPercentages=function(t,e,s){var a=[];return-1!==m(t).attr("data-resdet").indexOf("percentages")?(a.show=!0,a.content=0<s?100*e/s:0,a.content===Math.round(a.content)?a.content=Math.round(a.content)+"%":a.content=Number(Math.round(a.content+"e2")+"e-2").toFixed(2)+"%"):(a.show=!1,a.content=""),a},YOPPollBasicIsResultsShowVotes=function(t,e){var s=[];return-1!==m(t).attr("data-resdet").indexOf("votes-number")?(s.show=!0,votesText=1===parseInt(e,10)?objectL10n.yopPollParams.resultsParams.singleVote:objectL10n.yopPollParams.resultsParams.multipleVotes,s.content=" ("+e+" "+votesText+")"):(s.show=!1,s.content=""),s},YOPPollBasicDoShowResultsBeforeVote=function(c){var d=m(c).attr("data-show-results-as"),u=m(c).attr("data-sort-results-by"),p=m(c).attr("data-sort-results-rule"),h=m(c).attr("data-resdet");s[1]=[],m(c).find(".basic-question").each(function(){m(this).attr("data-id");var s=m(this).attr("data-question-type"),a=[],t=[],e=[],n=[],o=[],l=[],r=0;switch(i=0,m(this).find('.basic-answer:not(".basic-other-answer")').each(function(t){var e={};e.id=m(this).attr("data-id"),e.label="text"===s?m(this).find(".basic-text").text():"pie"===d?m(this).find(".basic-media-text").text():m(this).find(".basic-media-content").html(),e.backgroundColor=m(this).attr("data-color"),e.votes=parseInt(m(this).attr("data-vn"),10),a.push(e),r+=e.votes}),p){case"asc":p="ASC";break;case"desc":p="DESC";break;default:p="ASC"}switch(u){case"alphabetical":l=helper.arr.multisort(a,["label"],[p]);break;case"number-of-votes":l=helper.arr.multisort(a,["votes"],[p]);break;default:l=a}for(i=0;i<l.length;i++)t.push(l[i].id),e.push(l[i].label+" "+YOPPollBasicBuildAnswerResultsDetails(h,l[i].votes,r)),o.push(l[i].votes),n.push(l[i].backgroundColor);switch({labels:e,datasets:[{data:o,backgroundColor:n}]},d){case"bar":for(i=0;i<e.length;i++)answerResultsPercentages=YOPPollBasicIsResultsShowPercentages(c,o[i],r),answerResultsVotes=YOPPollBasicIsResultsShowVotes(c,o[i]),!0===answerResultsPercentages.show&&m(this).find(".basic-answer[data-id="+t[i]+"]").find(".basic-answer-label").append('<span class="basic-answer-results-details">'+answerResultsPercentages.content+"</label>"),!0===answerResultsVotes.show&&m(this).find(".basic-answer[data-id="+t[i]+"]").find(".basic-answer-label").append('<span class="basic-answer-total-votes" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+answerResultsVotes.content+"</span>"),m(this).find(".basic-answer[data-id="+t[i]+"]").append('<div class="progress" style=""><div class="progress-bar six-sec-ease-in-out" role="progressbar" data-transitiongoal="'+o[i]+'" aria-valuemax="'+r+'" style="background-image:none; background-color: '+n[i]+';"></div></div>');m(this).find(".progress .progress-bar").yopprogressbar()}})},YOPPollBasicClearResults=function(t){var e=m(t).attr("data-id");if(void 0!==s[e])for(i=1;i<=s[e].length;i++)s[e][i-1].destroy(),s[e].splice(i-1,1);m(t).find(".basic-answer-results-details").remove(),m(t).find(".basic-answer-total-votes").remove(),m(t).find(".progress").remove(),m(t).find(".basic-answer-results").remove(),m(t).find(".basic-chart-container").remove()},YOPPollBasicShowLivePreviewFor=function(t,e){switch(t){case"voting":YOPPollBasicShowLivePreviewForVoting(e);break;case"results":YOPPollBasicShowLivePreviewForResults(e);break;default:YOPPollBasicShowLivePreviewForVoting(e)}},YOPPollBasicShowLivePreviewForVoting=function(t){m(t).attr("data-temp");var e=m(t).attr("data-show-results-moment");YOPPollBasicClearResults(t),m(t).find(".basic-answers").show(),m(t).find(".basic-results-button").hide(),m(t).find(".basic-vote-button").show(),m(t).find(".basic-element").show(),m(t).find('input[type="radio"]').show(),m(t).find('input[type="checkbox"]').show(),m(t).find(".basic-other-answer").show(),m(t).find(".basic-captcha").show(),YOPPollBasicProcessElements(t),void 0!==e&&-1!==m(t).attr("data-show-results-moment").indexOf("before-vote")&&YOPPollBasicDoShowResultsBeforeVote(t),event.preventDefault()},YOPPollBasicBuildDataForResults=function(t){var a=[];return m(t).find(".basic-question").each(function(){var e={},s=m(this);e.id=m(this).attr("data-id"),e.type=m(this).attr("data-question-type"),e.text=m(this).find(".basic-question-title").text(),e.answers=[],m(this).find(".basic-answers").find(".basic-answer").not(".basic-other-answer").each(function(){var t=[];t.id=m(this).attr("data-id"),"media"===m(s).attr("data-question-type")?t.text=m(this).find(".basic-media-text").text():t.text=m(this).find(".basic-text").text(),t.type=m(this).attr("data-type"),t.color=m(this).attr("data-color"),t.votes=m(this).attr("data-vn"),e.answers.push(t)}),a.push(e)}),a},YOPPollBasicShowLivePreviewForResults=function(t){YOPPollBasicClearResults(t),m(t).find(".basic-answer").find('input[type="radio"]').hide(),m(t).find(".basic-answer").find('input[type="checkbox"]').hide(),m(t).find(".basic-other-answer").hide(),m(t).find(".basic-custom-field").hide(),m(t).find(".basic-gdpr").hide(),m(t).find(".basic-captcha").hide(),m(t).find(".basic-vote-button").hide(),m(t).find(".basic-results-button").hide(),"yes"===m(".back-to-vote-option").val()&&m(t).find(".basic-back-to-vote-button").show(),YOPPollBasicDoShowResultsBeforeVote(t)}}),jQuery(document).ready(function(l){YOPPollBasicShowLivePreview=function(){var t,e,s,a,i,n=[],o={accessibilityAlt:objectL10n.yopPollParams.captchaParams.accessibilityAlt,accessibilityTitle:objectL10n.yopPollParams.captchaParams.accessibilityTitle,accessibilityDescription:objectL10n.yopPollParams.captchaParams.accessibilityDescription,explanation:objectL10n.yopPollParams.captchaParams.explanation,refreshAlt:objectL10n.yopPollParams.captchaParams.refreshAlt,refreshTitle:objectL10n.yopPollParams.captchaParams.refreshTitle};return n["show-results-moment"]=[],n["show-results-to"]=[],n["show-details-as"]=[],n["sort-results-by"]=l(".sort-results").val(),n["sort-results-rule"]=l(".sort-results-rule").val(),n["display-results-as"]=l(".display-results-as").val(),l(".show-results-moment:checked").each(function(t){n["show-results-moment"].push(l(this).val())}),l(".show-results-to:checked").each(function(t){n["show-results-to"].push(l(this).val())}),l(".results-details-option:checked").each(function(t){n["show-details-as"].push(l(this).val())}),e=YOPPollBasicGetResultsBeforeVoteSettings(n),!0===YOPPollBasicIsVotingEnded(l(".end-date-option").val(),l(".end-date-custom-hidden").val())?t='<div class="bootstrap-yop"><div class="basic-yop-poll-container" style="background-color:'+l(".poll-style-settings").find(".poll-background-color").val()+";border:"+l(".poll-style-settings").find(".poll-border-size").val()+"px;border-style:solid;border-color:"+l(".poll-style-settings").find(".poll-border-color").val()+";border-radius:"+l(".poll-style-settings").find(".poll-border-radius").val()+"px;padding:"+l(".poll-style-settings").find(".poll-padding-top-bottom").val()+"px; "+l(".poll-style-settings").find(".poll-padding-left-right").val()+'"><div class="row"><div class="col-md-12"><div class="basic-inner"><div class="basic-message" style="border-left:'+l(".errors-style-settings").find(".errors-border-left-size").val()+"px solid "+l(".errors-style-settings").find(".errors-border-left-color-for-error").val()+"; padding:"+l(".errors-style-settings").find(".errors-padding-top-bottom").val()+'px 10px;"><p style="color:'+l(".errors-style-settings").find(".errors-text-color").val()+"; font-size:"+l(".errors-style-settings").find(".errors-text-size").val()+"px; font-weight:"+l(".errors-style-settings").find(".errors-text-weight").val()+';">'+objectL10n.yopPollParams.votingEnded+"</p></div></div></div></div></div>":(t=!1===YOPPollBasicIsVotingStarted(l(".start-date-option").val(),l(".start-date-custom-hidden").val())?'<div class="bootstrap-yop"><div class="basic-yop-poll-container" style="background-color:'+l(".poll-style-settings").find(".poll-background-color").val()+";border:"+l(".poll-style-settings").find(".poll-border-size").val()+"px;border-style:solid;border-color:"+l(".poll-style-settings").find(".poll-border-color").val()+";border-radius:"+l(".poll-style-settings").find(".poll-border-radius").val()+"px;padding:"+l(".poll-style-settings").find(".poll-padding-top-bottom").val()+"px; "+l(".poll-style-settings").find(".poll-padding-left-right").val()+'"><div class="row"><div class="col-md-12"><div class="basic-inner"><div class="basic-message" style="border-left:'+l(".errors-style-settings").find(".errors-border-left-size").val()+"px solid "+l(".errors-style-settings").find(".errors-border-left-color-for-error").val()+"; padding:"+l(".errors-style-settings").find(".errors-padding-top-bottom").val()+'px 10px;"><p style="color:'+l(".errors-style-settings").find(".errors-text-color").val()+"; font-size:"+l(".errors-style-settings").find(".errors-text-size").val()+"px; font-weight:"+l(".errors-style-settings").find(".errors-text-weight").val()+';">'+objectL10n.yopPollParams.votingNotStarted+"</p></div></div></div></div></div>":(a=YOPPollBasicGetPollElements(),'<div class="bootstrap-yop"><div class="basic-yop-poll-container" style="background-color:'+l(".poll-style-settings").find(".poll-background-color").val()+"; border:"+l(".poll-style-settings").find(".poll-border-size").val()+"px; border-style:solid; border-color:"+l(".poll-style-settings").find(".poll-border-color").val()+"; border-radius:"+l(".poll-style-settings").find(".poll-border-radius").val()+"px; padding:"+l(".poll-style-settings").find(".poll-padding-top-bottom").val()+"px "+l(".poll-style-settings").find(".poll-padding-left-right").val()+'px"'+e+' data-uid="" data-temp="'+l('li[data-template-id="'+l('input[name="poll[template]"]').val()+'"]').attr("data-template-base")+'" data-skin="'+l(".answers-style-settings").find(".answers-skin").val()+'" data-cscheme="'+l(".answers-style-settings").find(".color-scheme").find("li.active").attr("data-id")+'"><div class="row"><div class="col-md-12"><div class="basic-inner"><div class="basic-message hide" style="border-left:'+l(".errors-style-settings").find(".errors-border-left-size").val()+"px solid "+l(".errors-style-settings").find(".errors-border-left-color-for-error").val()+"; padding:"+l(".errors-style-settings").find(".errors-padding-top-bottom").val()+'px 10px;"><p></p></div><div class="basic-overlay hide"><div class="basic-vote-options"><div class="basic-anonymous"><button type="button" class="btn btn-default"><i class="fa fa-user-secret" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.annonymousVoteText+'</button></div><div class="basic-wordpress"><button type="button" class="btn btn-default"><i class="fa fa-wordpress" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.wordpressVoteText+'</button></div><div class="basic-facebook"><button type="button" class="btn btn-default"><i class="fa fa-facebook" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.facebookVoteText+'</button></div><div class="basic-google"><button type="button" class="btn btn-default"><i class="fa fa-google" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.googleVoteText+'</button></div></div><div class="basic-preloader hide"><div class="basic-windows8"><div class="basic-wBall basic-wBall_1"><div class="basic-wInnerBall"></div></div><div class="basic-wBall basic-wBall_2"><div class="basic-wInnerBall"></div></div><div class="basic-wBall basic-wBall_3"><div class="basic-wInnerBall"></div></div><div class="basic-wBall basic-wBall_4"><div class="basic-wInnerBall"></div></div><div class="basic-wBall basic-wBall_5"><div class="basic-wInnerBall"></div></div></div></div></div><form class="basic-form"><div class="basic-elements">'+a+'</div><div class="clearfix"></div><div class="basic-gdpr"><input type="checkbox" name="gdpr-consent"><label>'+l(".gdpr-consent-text").val()+'</label></div><div id="yop-poll-captcha" class="basic-captcha"></div><div class="basic-stats text-center"><span class="basic-stats-votes"><span class="basic-stats-votes-number">10</span><span class="basic-stats-votes-text">&nbsp;'+objectL10n.yopPollParams.previewParams.numberOfVotesPlural+'</span></span><span class="basic-stats-separator">&nbsp;&middot;&nbsp;</span><span class="basic-stats-answers"><span class="basic-stats-answers-number">14</span><span class="basic-stats-answers-text">&nbsp;'+objectL10n.yopPollParams.previewParams.numberOfAnswersPlural+'</span></span></div><div class="basic-vote"><a href="#" class="button basic-vote-button" style="background:'+l(".buttons-style-settings").find(".buttons-background-color").val()+"; border:"+l(".buttons-style-settings").find(".buttons-border-size").val()+"px; border-style: solid; border-color:"+l(".buttons-style-settings").find(".buttons-border-color").val()+"; border-radius:"+l(".buttons-style-settings").find(".buttons-border-radius").val()+"px; padding:"+l(".buttons-style-settings").find(".buttons-padding-top-bottom").val()+"px "+l(".buttons-style-settings").find(".buttons-padding-left-right").val()+"px; color:"+l(".buttons-style-settings").find(".buttons-text-color").val()+"; font-size:"+l(".buttons-style-settings").find(".buttons-text-size").val()+"px; font-weight:"+l(".buttons-style-settings").find(".buttons-text-weight").val()+';">'+l(".vote-button-label").val()+'</a><a href="#" class="button basic-results-button" style="background:'+l(".buttons-style-settings").find(".buttons-background-color").val()+"; border:"+l(".buttons-style-settings").find(".buttons-border-size").val()+"px; border-style: solid; border-color:"+l(".buttons-style-settings").find(".buttons-border-color").val()+"; border-radius:"+l(".buttons-style-settings").find(".buttons-border-radius").val()+"px; padding:"+l(".buttons-style-settings").find(".buttons-padding-top-bottom").val()+"px "+l(".buttons-style-settings").find(".buttons-padding-left-right").val()+"px; color:"+l(".buttons-style-settings").find(".buttons-text-color").val()+"; font-size:"+l(".buttons-style-settings").find(".buttons-text-size").val()+"px; font-weight:"+l(".buttons-style-settings").find(".buttons-text-weight").val()+';">'+l(".results-label-text").val()+'</a><a href="#" class="button basic-back-to-vote-button" style="background:'+l(".buttons-style-settings").find(".buttons-background-color").val()+"; border:"+l(".buttons-style-settings").find(".buttons-border-size").val()+"px; border-style: solid; border-color:"+l(".buttons-style-settings").find(".buttons-border-color").val()+"; border-radius:"+l(".buttons-style-settings").find(".buttons-border-radius").val()+"px; padding:"+l(".buttons-style-settings").find(".buttons-padding-top-bottom").val()+"px "+l(".buttons-style-settings").find(".buttons-padding-left-right").val()+"px; color:"+l(".buttons-style-settings").find(".buttons-text-color").val()+"; font-size:"+l(".buttons-style-settings").find(".buttons-text-size").val()+"px; font-weight:"+l(".buttons-style-settings").find(".buttons-text-weight").val()+';">'+l(".back-to-vote-caption").val()+"</a></div></form></div></div></div>"),""!==l(".custom-styles-custom-css").val()&&(l("#yop-poll-custom-css").remove(),l("head").append('<style type="text/css" id="yop-poll-custom-css">'+l(".custom-styles-custom-css").val()+"</style>"))),modalPreview=BootstrapDialog.show({title:objectL10n.yopPollParams.previewParams.pollPreviewTitle,cssClass:"preview-dialog",message:'<div class="row"><div class="col-md-3">'+objectL10n.yopPollParams.previewParams.choosePreviewText+'</div><div class="col-md-9"><select class="show-preview-for" style="width:100%"><option value="voting" selected>'+objectL10n.yopPollParams.previewParams.votingText+'</option><option value="results">'+objectL10n.yopPollParams.previewParams.resultsText+'</option></select></div></div><div class="row"><div class="col-md-12"><p>&nbsp;</p></div></div>'+t,onshow:function(t){switch(pollContainer=t.getModalBody().find(".basic-yop-poll-container"),void 0!==(s=t.getModalBody().find(".basic-yop-poll-container").attr("data-show-results-moment"))&&-1!==s.indexOf("before-vote")&&YOPPollBasicDoShowResultsBeforeVote(t.getModalBody().find(".basic-yop-poll-container")),l(".use-captcha").val()){case"yes":t.getModalBody().find("#yop-poll-captcha").visualCaptcha({imgPath:objectL10n.yopPollParams.captchaParams.imgPath,captcha:{url:objectL10n.yopPollParams.captchaParams.url,numberOfImages:5,namespace:"yop-poll-captcha",routes:{start:"?_a=start",image:"?_a=image",audio:"?_a=audio"},callbacks:{loading:function(t){},loaded:function(t){}}},language:o});break;case"yes-recaptcha":l(pollContainer).find("#yop-poll-captcha").length&&""!==l("#yop-main-area").attr("data-recaptcha-site-key")&&(reCaptcha=grecaptcha.render(l(pollContainer).find("#yop-poll-captcha")[0],{sitekey:l("#yop-main-area").attr("data-reCaptcha-site-key"),theme:"light"}));break;case"yes-recaptcha-invisible":l(pollContainer).find("#yop-poll-captcha").length&&""!==l("#yop-main-area").attr("data-recaptcha-site-key")&&(reCaptcha=grecaptcha.render(l(pollContainer).find("#yop-poll-captcha")[0],{sitekey:l("#yop-main-area").attr("data-reCaptcha-site-key"),theme:"light",size:"invisible"}),l(pollContainer).find(".grecaptcha-badge").hide())}YOPPollBasicProcessElements(t.getModalBody().find(".basic-yop-poll-container"))}}),i=modalPreview.getModalBody(),l(i).on("change",".show-preview-for",function(t){var e=l(this).val();YOPPollBasicShowLivePreviewFor(e,i.find(".basic-yop-poll-container"))}),i}}),jQuery(document).ready(function(s){YOPPollBasicPrettyShowLivePreview=function(){var t=s(".answers-style-settings").find(".answers-skin").val(),e=s(".answers-style-settings").find(".color-scheme").find("li.active").attr("data-id");e="black"===e?"":"-"+e,modalPreviewBody=YOPPollBasicShowLivePreview(),s(modalPreviewBody).find('input[type="radio"]').iCheck({checkboxClass:"icheckbox_"+t+e,radioClass:"iradio_"+t+e}),s(modalPreviewBody).find('input[type="checkbox"]').iCheck({checkboxClass:"icheckbox_"+t+e,radioClass:"iradio_"+t+e})}}),jQuery(document).ready(function(N){function $(t,e,s,a,i){N(".poll-steps li").removeClass("active"),N(".poll-steps li:nth-child("+t+")").addClass("active"),N(".poll-steps-content .tab-pane").removeClass("active"),N(".poll-steps-content .tab-pane:nth-child("+t+")").addClass("active"),N(".poll-steps-content .tab-pane:nth-child("+t+") .submenu-item").removeClass("btn-underline"),N(".poll-steps-content .tab-pane:nth-child("+t+")").find(".submenu-item").eq(e-1).addClass("btn-underline"),N(".poll-steps-content .tab-pane:nth-child("+t+")").find(".submenu-content").addClass("hide"),N(".poll-steps-content .tab-pane:nth-child("+t+")").find(".submenu-content").eq(e-1).removeClass("hide"),""!==s&&(s.focus(),s.parent().addClass("has-error")),""===i?toastr.warning(htmlEncode(striptags(s.closest(".form-group").find(".field-caption").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage))):toastr.warning(htmlEncode(striptags(i)))}N("#publish-poll").click(function(t){var e,s=N('input[name="poll[template]"]').val(),a=N('input[name="poll[skin]"]').attr("data-skin-base"),i=!1,n=N('input[name="poll[name]"]').val(),o=N(".poll-style-settings").find(".poll-background-color").val(),l=N(".poll-style-settings").find(".poll-border-size").val(),r=N(".poll-style-settings").find(".poll-border-color").val(),c=N(".poll-style-settings").find(".poll-border-radius").val(),d=N(".poll-style-settings").find(".poll-padding-left-right").val(),u=N(".poll-style-settings").find(".poll-padding-top-bottom").val(),p=N(".questions-style-settings").find(".questions-text-color").val(),h=N(".questions-style-settings").find(".questions-text-size").val(),m=N(".questions-style-settings").find(".questions-text-weight").val(),f=N(".questions-style-settings").find(".questions-text-align").val(),g=N(".answers-style-settings").find(".answers-padding-left-right").val(),v=N(".answers-style-settings").find(".answers-padding-top-bottom").val(),b=N(".answers-style-settings").find(".answers-text-color").val(),y=N(".answers-style-settings").find(".answers-text-size").val(),w=N(".answers-style-settings").find(".answers-text-weight").val(),k=N(".buttons-style-settings").find(".buttons-background-color").val(),x=N(".buttons-style-settings").find(".buttons-border-size").val(),C=N(".buttons-style-settings").find(".buttons-border-color").val(),_=N(".buttons-style-settings").find(".buttons-border-radius").val(),P=N(".buttons-style-settings").find(".buttons-padding-left-right").val(),A=N(".buttons-style-settings").find(".buttons-padding-top-bottom").val(),M=N(".buttons-style-settings").find(".buttons-text-color").val(),D=N(".buttons-style-settings").find(".buttons-text-size").val(),T=N(".buttons-style-settings").find(".buttons-text-weight").val(),S=N(".errors-style-settings").find(".errors-border-left-color-for-success").val(),E=N(".errors-style-settings").find(".errors-border-left-color-for-error").val(),O=N(".errors-style-settings").find(".errors-border-left-size").val(),L=N(".errors-style-settings").find(".errors-padding-top-bottom").val(),B=N(".errors-style-settings").find(".errors-text-color").val(),I=N(".errors-style-settings").find(".errors-text-size").val(),j=N(".errors-style-settings").find(".errors-text-weight").val(),F=[],Y=[],R=[],z=[],Q=[],H=[];""===n&&(i=!0,N('input[name="poll[name]"]').focus(),N('input[name="poll[name]"]').parent().addClass("has-error"),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.saveParams.noPollName)))),!1===i&&""===s&&(i=!0,$(1,1,"",0,objectL10n.yopPollParams.saveParams.noTemplateSelected)),!1===i&&""===a&&(i=!0,$(1,2,"",0,objectL10n.yopPollParams.saveParams.noSkinSelected)),!1===i&&""===o.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-background-color"),0,"")),!1===i&&""===l.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-size"),0,"")),!1===i&&""===r.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-color"),0,"")),!1===i&&""===c.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-radius"),0,"")),!1===i&&""===d.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-padding-left-right"),0,"")),!1===i&&""===u.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-padding-top-bottom"),0,"")),!1===i&&""===p.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-color"),0,"")),!1===i&&""===h.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-size"),0,"")),!1===i&&""===m.toString()&&(i=!0,$(1,3,N(".questions-style-settings").find(".questions-text-weight"),0,"")),!1===i&&""===f.toString()&&(i=!0,$(1,3,N(".questions-style-settings").find(".questions-text-align"),0,"")),!1===i&&""===g.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-padding-left-right"),0,"")),!1===i&&""===v.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-padding-top-bottom"),0,"")),!1===i&&""===b.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-color"),0,"")),!1===i&&""===y.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-size"),0,"")),!1===i&&""===w.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-weight"),0,"")),!1===i&&""===k.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-background-color"),0,"")),!1===i&&""===x.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-size"),0,"")),!1===i&&""===C.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-color"),0,"")),!1===i&&""===_.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-radius"),0,"")),!1===i&&""===P.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-padding-left-right"),0,"")),!1===i&&""===A.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-padding-top-bottom"),0,"")),!1===i&&""===M.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-color"),0,"")),!1===i&&""===D.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-size"),0,"")),!1===i&&""===T.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-weight"),0,"")),!1===i&&""===S.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-color-for-success"),0,"")),!1===i&&""===E.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-color-for-error"),0,"")),!1===i&&""===O.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-size"),0,"")),!1===i&&""===L.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-padding-top-bottom"),0,"")),!1===i&&""===B.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-color"),0,"")),!1===i&&""===I.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-size"),0,"")),!1===i&&""===j.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-weight"),0,"")),!1===i&&N(".poll-elements-list").find(".poll-element").each(function(){switch(N(this).attr("data-type")){case"text-question":!1===i&&""===N(this).find(".question-value").val()&&(i=!0,$(2,1,N(this).find(".question-value"),0,objectL10n.yopPollParams.saveParams.noQuestion)),N(this).find(".answer").each(function(t){return!1===i&&""===N(this).find(".answer-value").val().toString()?(i=!0,$(2,1,N(this).find(".answer-value"),0,objectL10n.yopPollParams.saveParams.noAnswerText),!1):!1===i&&N(this).find(".answer-make-link").is(":checked")&&""===N(this).find(".answer-link").val().toString()?(i=!0,$(2,1,N(this).find(".answer-link"),0,objectL10n.yopPollParams.saveParams.noAnswerLink),!1):void 0}),!1===i&&"yes"===N(this).find(".allow-other-answers").val()&&""===N(this).find(".other-answers-label").val().toString()&&(i=!0,$(2,1,N(this).find(".other-answers-label"),0,objectL10n.yopPollParams.saveParams.noOtherLabel)),!1===i&&"yes"===N(this).find(".allow-multiple-answers").val()&&(""===N(this).find(".multiple-answers-minim").val()||parseInt(N(this).find(".multiple-answers-minim").val(),10)<=0?(i=!0,$(2,1,N(this).find(".multiple-answers-minim"),0,objectL10n.yopPollParams.saveParams.noMinAnswers)):""===N(this).find(".multiple-answers-maxim").val()||parseInt(N(this).find(".multiple-answers-maxim").val(),10)<=0?(i=!0,$(2,1,N(this).find(".multiple-answers-maxim"),0,objectL10n.yopPollParams.saveParams.noMaxAnswers)):parseInt(N(this).find(".multiple-answers-minim").val(),10)>parseInt(N(this).find(".multiple-answers-maxim").val(),10)&&(i=!0,$(2,1,N(this).find(".multiple-answers-minim"),0,objectL10n.yopPollParams.saveParams.noMinAnswers))),!1===i&&"columns"===N(this).find(".answers-display").val()&&(""===N(this).find(".answers-columns").val().toString()||parseInt(N(this).find(".answers-columns").val(),10)<1)&&(i=!0,$(2,1,N(this).find(".answers-columns"),0,objectL10n.yopPollParams.noNumberOfColumnsDefined));break;case"custom-field":if(!1===i&&""===N(this).find(".custom-field-name").val().toString())return i=!0,$(2,1,N(this).find(".custom-field-name"),0,objectL10n.yopPollParams.saveParams.noCustomFieldName),!1}}),!1===i&&""===N(".vote-button-label").val()&&(i=!0,$(3,1,N(".vote-button-label"),0,"")),!1===i&&"yes"===N(".show-results-link").val()&&""===N(".results-label-text").val()&&(i=!0,$(3,1,N(".results-label-text"),0,"")),!1===i&&"custom"===N(".start-date-option").val()&&""===N(".start-date-custom").val()&&(i=!0,$(3,1,N(".start-date-custom"),0,objectL10n.yopPollParams.saveParams.noStartDate)),!1===i&&"custom"===N(".end-date-option").val()&&""===N(".end-date-custom").val()&&(i=!0,$(3,1,N(".end-date-custom"),0,objectL10n.yopPollParams.saveParams.noEndDate)),!1===i&&"yes"===N(".redirect-after-vote").val()&&""===N(".redirect-url").val()&&(i=!0,$(3,1,N(".redirect-url"),0,"")),!1===i&&"yes"===N(".send-email-notifications").val()&&(!1===i&&""===N(".email-notifications-from-name").val()&&(i=!0,$(3,1,N(".email-notifications-from-name"),0,"")),!1===i&&""===N(".email-notifications-from-email").val()&&(i=!0,$(3,1,N(".email-notifications-from-email"),0,"")),!1===i&&""===N(".email-notifications-recipients").val()&&(i=!0,$(3,1,N(".email-notifications-recipients"),0,"")),!1===i&&""===N(".email-notifications-subject").val()&&(i=!0,$(3,1,N(".email-notifications-subject"),0,"")),!1===i&&""===N(".email-notifications-message").val()&&(i=!0,$(3,1,N(".email-notifications-message"),0,""))),!1===i&&"yes"===N(".enable-gdpr").val()&&"consent"===N(".gdpr-solution").val()&&""===N(".gdpr-consent-text").val()&&(i=!0,$(3,1,N(".gdpr-consent-text"),0,"")),N(".vote-permissions:checked").each(function(t){Y.push(N(this).val())}),!1===i&&0===Y.length&&(i=!0,$(3,2,N(".vote-permissions"),0,"")),N(".block-voters:checked").each(function(t){R.push(N(this).val())}),!1===i&&0<R.length&&-1===N.inArray("no-block",R)&&"limited-time"===N(".block-length-type").val()&&""===N(".block-length-1").val()&&(i=!0,$(3,2,N(".block-length-1"),0,"")),!1===i&&"yes"===N(".limit-votes-per-user").val()&&""===N(".votes-per-user-allowed").val()&&(i=!0,$(3,2,N(".votes-per-user-allowed"),0,"")),N(".show-results-moment:checked").each(function(t){z.push(N(this).val())}),!1===i&&0===z.length&&(i=!0,$(3,3,N(".show-results-moment"),0,objectL10n.yopPollParams.saveParams.noShowResultsMoment)),!1===i&&-1<N.inArray("custom-date",z)&&""===N(".custom-date-results").val()&&(i=!0,$(3,3,N(".custom-date-results"),0,objectL10n.yopPollParams.saveParams.noCustomDate)),N(".show-results-to:checked").each(function(t){Q.push(N(this).val())}),N(".results-details-option:checked").each(function(t){H.push(N(this).val())}),!1===i&&-1===N.inArray("never",z)&&(0===Q.length&&(i=!0,$(3,3,N(".show-results-to"),0,objectL10n.yopPollParams.saveParams.noShowResultsTo)),!1===i&&0===H.length&&(i=!0,$(3,3,N(".results-details-option"),0,objectL10n.yopPollParams.saveParams.noShowResultsDetails))),!1===i&&"yes"===N(".back-to-vote-option").val()&&""===N(".back-to-vote-caption").val()&&(i=!0,$(3,3,N(".back-to-vote-caption"),0,"")),!1===i&&!0===N('input.vote-permissions[value="registered"]').is(":checked")&&"no"===N(".allow-wordpress-votes").val()&&(i=!0,$(3,3,N(".allow-wordpress-votes"),0,objectL10n.yopPollParams.saveParams.noVoteAsWordpress)),!1===i&&(N(".poll-elements-list").find(".poll-element").each(function(t){var e=N(this).attr("data-type"),s=[];switch(e){case"text-question":N(this).find(".answer").each(function(t){s[t]={type:"text",text:N(this).find(".answer-value").val(),options:{makeDefault:N(this).find(".answer-make-default").is(":checked")?"yes":"no",makeLink:N(this).find(".answer-make-link").is(":checked")?"yes":"no",link:N(this).find(".answer-link").val(),resultsColor:N(this).find(".answer-results-color").val()}}}),F.push({type:"text-question",text:N(this).find(".question-value").val(),answers:s,options:{allowOtherAnswers:N(this).find(".allow-other-answers").val(),otherAnswersLabel:N(this).find(".other-answers-label").val(),addOtherAnswers:N(this).find(".add-other-answers").val(),displayOtherAnswersInResults:N(this).find(".display-other-answers-in-results").val(),resultsColorForOtherAnswers:N(this).find(".other-answers-results-color").val(),allowMultipleAnswers:N(this).find(".allow-multiple-answers").val(),multipleAnswersMinim:N(this).find(".multiple-answers-minim").val(),multipleAnswersMaxim:N(this).find(".multiple-answers-maxim").val(),answersDisplay:N(this).find(".answers-display").val(),answersColumns:N(this).find(".answers-columns").val(),answersSort:N(this).find(".answers-sort").val()}});break;case"custom-field":F.push({type:"custom-field",text:N(this).find(".custom-field-name").val(),options:{makeRequired:N(this).find(".custom-field-make-required").is(":checked")?"yes":"no",cType:N(this).find(".custom-field-type").val()}})}}),e={name:N('input[name="poll[name]"]').val(),status:N("#poll_status").val(),design:{template:N('input[name="poll[template]"]').val(),templateBase:N('input[name="poll[template]"]').attr("data-template-base"),skinBase:N('input[name="poll[skin]"]').attr("data-skin-base"),style:{poll:{backgroundColor:N(".poll-background-color").val(),borderSize:N(".poll-border-size").val(),borderColor:N(".poll-border-color").val(),borderRadius:N(".poll-border-radius").val(),paddingLeftRight:N(".poll-padding-left-right").val(),paddingTopBottom:N(".poll-padding-top-bottom").val()},questions:{textColor:N(".questions-text-color").val(),textSize:N(".questions-text-size").val(),textWeight:N(".questions-text-weight").val(),textAlign:N(".questions-text-align").val()},answers:{paddingLeftRight:N(".answers-padding-left-right").val(),paddingTopBottom:N(".answers-padding-top-bottom").val(),textColor:N(".answers-text-color").val(),textSize:N(".answers-text-size").val(),textWeight:N(".answers-text-weight").val(),skin:N(".answers-style-settings").find(".answers-skin").val(),colorScheme:N(".answers-style-settings").find(".color-scheme").find("li.active").attr("data-id")},buttons:{backgroundColor:N(".buttons-background-color").val(),borderSize:N(".buttons-border-size").val(),borderColor:N(".buttons-border-color").val(),borderRadius:N(".buttons-border-radius").val(),paddingLeftRight:N(".buttons-padding-left-right").val(),paddingTopBottom:N(".buttons-padding-top-bottom").val(),textColor:N(".buttons-text-color").val(),textSize:N(".buttons-text-size").val(),textWeight:N(".buttons-text-weight").val()},captcha:{},errors:{borderLeftColorForSuccess:N(".errors-border-left-color-for-success").val(),borderLeftColorForError:N(".errors-border-left-color-for-error").val(),borderLeftSize:N(".errors-border-left-size").val(),paddingTopBottom:N(".errors-padding-top-bottom").val(),textColor:N(".errors-text-color").val(),textSize:N(".errors-text-size").val(),textWeight:N(".errors-text-weight").val()},custom:{css:N(".custom-styles-custom-css").val()}}},options:{poll:{voteButtonLabel:N(".vote-button-label").val(),showResultsLink:N(".show-results-link").val(),resultsLabelText:N(".results-label-text").val(),showTotalVotes:N(".show-total-votes").val(),showTotalAnswers:N(".show-total-answers").val(),startDateOption:N(".start-date-option").val(),startDateCustom:N(".start-date-custom-hidden").val(),endDateOption:N(".end-date-option").val(),endDateCustom:N(".end-date-custom-hidden").val(),redirectAfterVote:N(".redirect-after-vote").val(),redirectUrl:N(".redirect-url").val(),resetPollStatsAutomatically:N(".reset-poll-stats-automatically").val(),resetPollStatsOn:N(".reset-poll-stats-on-hidden").val(),resetPollStatsEvery:N(".reset-poll-stats-every").val(),resetPollStatsEveryPeriod:N(".reset-poll-stats-every-period").val(),autoGeneratePollPage:N(".auto-generate-poll-page").val(),pageId:"",pageLink:"",useCaptcha:N(".use-captcha").val(),sendEmailNotifications:N(".send-email-notifications").val(),emailNotificationsFromName:N(".email-notifications-from-name").val(),emailNotificationsFromEmail:N(".email-notifications-from-email").val(),emailNotificationsRecipients:N(".email-notifications-recipients").val(),emailNotificationsSubject:N(".email-notifications-subject").val(),emailNotificationsMessage:N(".email-notifications-message").val(),enableGdpr:N(".enable-gdpr").val(),gdprSolution:N(".gdpr-solution").val(),gdprConsentText:N(".gdpr-consent-text").val(),loadWithAjax:N(".load-with-ajax").val()},access:{votePermissions:Y,allowWordpressVotes:N(".allow-wordpress-votes").val(),blockVoters:R,blockLengthType:N(".block-length-type").val(),blockForValue:N(".block-length-1").val(),blockForPeriod:N(".block-length-2").val(),limitVotesPerUser:N(".limit-votes-per-user").val(),votesPerUserAllowed:N(".votes-per-user-allowed").val()},results:{showResultsMoment:z,customDateResults:N(".custom-date-results-hidden").val(),showResultsTo:Q,resultsDetails:H,backToVoteOption:N(".back-to-vote-option").val(),backToVoteCaption:N(".back-to-vote-caption").val(),sortResults:N(".sort-results").val(),sortResultsRule:N(".sort-results-rule").val(),displayResultsAs:N(".display-results-as").val(),barColor:N(".bar-color").val(),barHeight:N(".bar-height").val()}},elements:F},N(".spinner.publish").addClass("is-active"),N("#publish-poll").attr("disabled",!0),N.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"create_yop_poll",_token:N("#_token").val(),poll:JSON.stringify(e)}}).done(function(t){N(".spinner.publish").removeClass("is-active"),!0===t.success?toastr.success(htmlEncode(striptags(t.data.message)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls&show-code=yes&poll-id="+t.data.pollId)}}):(N("#publish-poll").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()}),N("#update-poll").click(function(t){var e,s=N('input[name="poll[template]"]').val(),a=N('input[name="poll[skin]"]').attr("data-skin-base"),i=!1,n=N('input[name="poll[name]"]').val(),o=N(".poll-style-settings").find(".poll-background-color").val(),l=N(".poll-style-settings").find(".poll-border-size").val(),r=N(".poll-style-settings").find(".poll-border-color").val(),c=N(".poll-style-settings").find(".poll-border-radius").val(),d=N(".poll-style-settings").find(".poll-padding-left-right").val(),u=N(".poll-style-settings").find(".poll-padding-top-bottom").val(),p=N(".questions-style-settings").find(".questions-text-color").val(),h=N(".questions-style-settings").find(".questions-text-size").val(),m=N(".questions-style-settings").find(".questions-text-weight").val(),f=N(".questions-style-settings").find(".questions-text-align").val(),g=N(".answers-style-settings").find(".answers-padding-left-right").val(),v=N(".answers-style-settings").find(".answers-padding-top-bottom").val(),b=N(".answers-style-settings").find(".answers-text-color").val(),y=N(".answers-style-settings").find(".answers-text-size").val(),w=N(".answers-style-settings").find(".answers-text-weight").val(),k=N(".buttons-style-settings").find(".buttons-background-color").val(),x=N(".buttons-style-settings").find(".buttons-border-size").val(),C=N(".buttons-style-settings").find(".buttons-border-color").val(),_=N(".buttons-style-settings").find(".buttons-border-radius").val(),P=N(".buttons-style-settings").find(".buttons-padding-left-right").val(),A=N(".buttons-style-settings").find(".buttons-padding-top-bottom").val(),M=N(".buttons-style-settings").find(".buttons-text-color").val(),D=N(".buttons-style-settings").find(".buttons-text-size").val(),T=N(".buttons-style-settings").find(".buttons-text-weight").val(),S=N(".errors-style-settings").find(".errors-border-left-color-for-success").val(),E=N(".errors-style-settings").find(".errors-border-left-color-for-error").val(),O=N(".errors-style-settings").find(".errors-border-left-size").val(),L=N(".errors-style-settings").find(".errors-padding-top-bottom").val(),B=N(".errors-style-settings").find(".errors-text-color").val(),I=N(".errors-style-settings").find(".errors-text-size").val(),j=N(".errors-style-settings").find(".errors-text-weight").val(),F=[],Y=[],R=[],z=[],Q=[],H=[];""===n&&(i=!0,N('input[name="poll[name]"]').focus(),N('input[name="poll[name]"]').parent().addClass("has-error"),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.saveParams.noPollName)))),!1===i&&""===s&&(i=!0,$(1,1,"",0,objectL10n.yopPollParams.saveParams.noTemplateSelected)),!1===i&&""===a&&(i=!0,$(1,2,"",0,objectL10n.yopPollParams.saveParams.noSkinSelected)),!1===i&&""===o.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-background-color"),0,"")),!1===i&&""===l.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-size"),0,"")),!1===i&&""===r.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-color"),0,"")),!1===i&&""===c.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-radius"),0,"")),!1===i&&""===d.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-padding-left-right"),0,"")),!1===i&&""===u.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-padding-top-bottom"),0,"")),!1===i&&""===p.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-color"),0,"")),!1===i&&""===h.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-size"),0,"")),!1===i&&""===m.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-weight"),0,"")),!1===i&&""===f.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-align"),0,"")),!1===i&&""===g.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-padding-left-right"),0,"")),!1===i&&""===v.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-padding-top-bottom"),0,"")),!1===i&&""===b.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-color"),0,"")),!1===i&&""===y.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-size"),0,"")),!1===i&&""===w.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-weight"),0,"")),!1===i&&""===k.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-background-color"),0,"")),!1===i&&""===x.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-size"),0,"")),!1===i&&""===C.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-color"),0,"")),!1===i&&""===_.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-radius"),0,"")),!1===i&&""===P.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-padding-left-right"),0,"")),!1===i&&""===A.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-padding-top-bottom"),0,"")),!1===i&&""===M.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-color"),0,"")),!1===i&&""===D.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-size"),0,"")),!1===i&&""===T.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-weight"),0,"")),!1===i&&""===S.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-color-for-success"),0,"")),!1===i&&""===E.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-color-for-error"),0,"")),!1===i&&""===O.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-size"),0,"")),!1===i&&""===L.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-padding-top-bottom"),0,"")),!1===i&&""===B.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-color"),0,"")),!1===i&&""===I.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-size"),0,"")),!1===i&&""===j.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-weight"),0,"")),!1===i&&N(".poll-elements-list").find(".poll-element").each(function(){switch(N(this).attr("data-type")){case"text-question":!1===i&&""===N(this).find(".question-value").val()&&(i=!0,$(2,1,N(this).find(".question-value"),0,objectL10n.yopPollParams.saveParams.noQuestion)),N(this).find(".answer").each(function(t){return!1===i&&""===N(this).find(".answer-value").val().toString()?(i=!0,$(2,1,N(this).find(".answer-value"),0,objectL10n.yopPollParams.saveParams.noAnswerText),!1):!1===i&&N(this).find(".answer-make-link").is(":checked")&&""===N(this).find(".answer-link").val().toString()?(i=!0,$(2,1,N(this).find(".answer-link"),0,objectL10n.yopPollParams.saveParams.noAnswerLink),!1):void 0}),!1===i&&"yes"===N(this).find(".allow-other-answers").val()&&""===N(this).find(".other-answers-label").val().toString()&&(i=!0,$(2,1,N(this).find(".other-answers-label"),0,objectL10n.yopPollParams.saveParams.noOtherLabel)),!1===i&&"yes"===N(this).find(".allow-multiple-answers").val()&&(""===N(this).find(".multiple-answers-minim").val()||parseInt(N(this).find(".multiple-answers-minim").val(),10)<=0?(i=!0,$(2,1,N(this).find(".multiple-answers-minim"),0,objectL10n.yopPollParams.saveParams.noMinAnswers)):""===N(this).find(".multiple-answers-maxim").val()||parseInt(N(this).find(".multiple-answers-maxim").val(),10)<=0?(i=!0,$(2,1,N(this).find(".multiple-answers-maxim"),0,objectL10n.yopPollParams.saveParams.noMaxAnswers)):parseInt(N(this).find(".multiple-answers-minim").val(),10)>parseInt(N(this).find(".multiple-answers-maxim").val(),10)&&(i=!0,$(2,1,N(this).find(".multiple-answers-minim"),0,objectL10n.yopPollParams.saveParams.noMinAnswers))),!1===i&&"columns"===N(this).find(".answers-display").val()&&(""===N(this).find(".answers-columns").val().toString()||parseInt(N(this).find(".answers-columns").val(),10)<1)&&(i=!0,$(2,1,N(this).find(".answers-columns"),0,objectL10n.yopPollParams.noNumberOfColumnsDefined));break;case"custom-field":if(!1===i&&""===N(this).find(".custom-field-name").val().toString())return i=!0,$(2,1,N(this).find(".custom-field-name"),0,objectL10n.yopPollParams.saveParams.noCustomFieldName),!1}}),!1===i&&""===N(".vote-button-label").val()&&(i=!0,$(3,1,N(".vote-button-label"),0,"")),!1===i&&"yes"===N(".show-results-link").val()&&""===N(".results-label-text").val()&&(i=!0,$(3,1,N(".results-label-text"),0,"")),!1===i&&"custom"===N(".start-date-option").val()&&""===N(".start-date-custom").val()&&(i=!0,$(3,1,N(".start-date-custom"),0,objectL10n.yopPollParams.saveParams.noStartDate)),!1===i&&"custom"===N(".end-date-option").val()&&""===N(".end-date-custom").val()&&(i=!0,$(3,1,N(".end-date-custom"),0,objectL10n.yopPollParams.saveParams.noEndDate)),!1===i&&"yes"===N(".redirect-after-vote").val()&&""===N(".redirect-url").val()&&(i=!0,$(3,1,N(".redirect-url"),0,"")),!1===i&&"yes"===N(".send-email-notifications").val()&&(!1===i&&""===N(".email-notifications-from-name").val()&&(i=!0,$(3,1,N(".email-notifications-from-name"),0,"")),!1===i&&""===N(".email-notifications-from-email").val()&&(i=!0,$(3,1,N(".email-notifications-from-email"),0,"")),!1===i&&""===N(".email-notifications-recipients").val()&&(i=!0,$(3,1,N(".email-notifications-recipients"),0,"")),!1===i&&""===N(".email-notifications-subject").val()&&(i=!0,$(3,1,N(".email-notifications-subject"),0,"")),!1===i&&""===N(".email-notifications-message").val()&&(i=!0,$(3,1,N(".email-notifications-message"),0,""))),!1===i&&"yes"===N(".enable-gdpr").val()&&"consent"===N(".gdpr-solution").val()&&""===N(".gdpr-consent-text").val()&&(i=!0,$(3,1,N(".gdpr-consent-text"),0,"")),N(".vote-permissions:checked").each(function(t){Y.push(N(this).val())}),!1===i&&0===Y.length&&(i=!0,$(3,2,N(".vote-permissions"),0,"")),N(".block-voters:checked").each(function(t){R.push(N(this).val())}),!1===i&&0<R.length&&-1===N.inArray("no-block",R)&&"limited-time"===N(".block-length-type").val()&&""===N(".block-length-1").val()&&(i=!0,$(3,2,N(".block-length-1"),0,"")),!1===i&&"yes"===N(".limit-votes-per-user").val()&&""===N(".votes-per-user-allowed").val()&&(i=!0,$(3,2,N(".votes-per-user-allowed"),0,"")),N(".show-results-moment:checked").each(function(t){z.push(N(this).val())}),!1===i&&0===z.length&&(i=!0,$(3,3,N(".show-results-moment"),0,objectL10n.yopPollParams.saveParams.noShowResultsMoment)),!1===i&&-1<N.inArray("custom-date",z)&&""===N(".custom-date-results").val()&&(i=!0,$(3,3,N(".custom-date-results"),0,objectL10n.yopPollParams.saveParams.noCustomDate)),N(".show-results-to:checked").each(function(t){Q.push(N(this).val())}),N(".results-details-option:checked").each(function(t){H.push(N(this).val())}),!1===i&&-1===N.inArray("never",z)&&(0===Q.length&&(i=!0,$(3,3,N(".show-results-to"),0,objectL10n.yopPollParams.saveParams.noShowResultsTo)),!1===i&&0===H.length&&(i=!0,$(3,3,N(".results-details-option"),0,objectL10n.yopPollParams.saveParams.noShowResultsDetails))),!1===i&&"yes"===N(".back-to-vote-option").val()&&""===N(".back-to-vote-caption").val()&&(i=!0,$(3,3,N(".back-to-vote-caption"),0,"")),!1===i&&!0===N('input.vote-permissions[value="registered"]').is(":checked")&&"no"===N(".allow-wordpress-votes").val()&&(i=!0,$(3,3,N(".allow-wordpress-votes"),0,objectL10n.yopPollParams.saveParams.noVoteAsWordpress)),!1===i&&(N(".poll-elements-list").find(".poll-element").each(function(t){var e=N(this).attr("data-type"),s=[];switch(e){case"text-question":N(this).find(".answer").each(function(t){s[t]={id:N(this).attr("data-id"),uid:void 0!==N(this).attr("data-uid")?N(this).attr("data-uid"):"",type:"text",text:N(this).find(".answer-value").val(),options:{makeDefault:N(this).find(".answer-make-default").is(":checked")?"yes":"no",makeLink:N(this).find(".answer-make-link").is(":checked")?"yes":"no",link:N(this).find(".answer-link").val(),resultsColor:N(this).find(".answer-results-color").val()}}}),F.push({id:N(this).attr("data-id"),uid:void 0!==N(this).attr("data-uid")?N(this).attr("data-uid"):"",type:"text-question",text:N(this).find(".question-value").val(),answers:s,answersRemoved:N(this).attr("data-remove"),options:{allowOtherAnswers:N(this).find(".allow-other-answers").val(),otherAnswersLabel:N(this).find(".other-answers-label").val(),addOtherAnswers:N(this).find(".add-other-answers").val(),displayOtherAnswersInResults:N(this).find(".display-other-answers-in-results").val(),resultsColorForOtherAnswers:N(this).find(".other-answers-results-color").val(),allowMultipleAnswers:N(this).find(".allow-multiple-answers").val(),multipleAnswersMinim:N(this).find(".multiple-answers-minim").val(),multipleAnswersMaxim:N(this).find(".multiple-answers-maxim").val(),answersDisplay:N(this).find(".answers-display").val(),answersColumns:N(this).find(".answers-columns").val(),answersSort:N(this).find(".answers-sort").val()}});break;case"custom-field":F.push({id:N(this).attr("data-id"),uid:void 0!==N(this).attr("data-uid")?N(this).attr("data-uid"):"",type:"custom-field",text:N(this).find(".custom-field-name").val(),options:{makeRequired:N(this).find(".custom-field-make-required").is(":checked")?"yes":"no",cType:N(this).find(".custom-field-type").val()}})}}),e={id:N('input[name="poll[id]"]').val(),name:N('input[name="poll[name]"]').val(),status:N("#poll_status").val(),design:{template:N('input[name="poll[template]"]').val(),templateBase:N('input[name="poll[template]"]').attr("data-template-base"),skinBase:N('input[name="poll[skin]"]').attr("data-skin-base"),style:{poll:{backgroundColor:N(".poll-background-color").val(),borderSize:N(".poll-border-size").val(),borderColor:N(".poll-border-color").val(),borderRadius:N(".poll-border-radius").val(),paddingLeftRight:N(".poll-padding-left-right").val(),paddingTopBottom:N(".poll-padding-top-bottom").val()},questions:{textColor:N(".questions-text-color").val(),textSize:N(".questions-text-size").val(),textWeight:N(".questions-text-weight").val(),textAlign:N(".questions-text-align").val()},answers:{paddingLeftRight:N(".answers-padding-left-right").val(),paddingTopBottom:N(".answers-padding-top-bottom").val(),textColor:N(".answers-text-color").val(),textSize:N(".answers-text-size").val(),textWeight:N(".answers-text-weight").val(),skin:N(".answers-style-settings").find(".answers-skin").val(),colorScheme:N(".answers-style-settings").find(".color-scheme").find("li.active").attr("data-id")},buttons:{backgroundColor:N(".buttons-background-color").val(),borderSize:N(".buttons-border-size").val(),borderColor:N(".buttons-border-color").val(),borderRadius:N(".buttons-border-radius").val(),paddingLeftRight:N(".buttons-padding-left-right").val(),paddingTopBottom:N(".buttons-padding-top-bottom").val(),textColor:N(".buttons-text-color").val(),textSize:N(".buttons-text-size").val(),textWeight:N(".buttons-text-weight").val()},captcha:{},errors:{borderLeftColorForSuccess:N(".errors-border-left-color-for-success").val(),borderLeftColorForError:N(".errors-border-left-color-for-error").val(),borderLeftSize:N(".errors-border-left-size").val(),paddingTopBottom:N(".errors-padding-top-bottom").val(),textColor:N(".errors-text-color").val(),textSize:N(".errors-text-size").val(),textWeight:N(".errors-text-weight").val()},custom:{css:N(".custom-styles-custom-css").val()}}},options:{poll:{voteButtonLabel:N(".vote-button-label").val(),showResultsLink:N(".show-results-link").val(),resultsLabelText:N(".results-label-text").val(),showTotalVotes:N(".show-total-votes").val(),showTotalAnswers:N(".show-total-answers").val(),startDateOption:N(".start-date-option").val(),startDateCustom:N(".start-date-custom-hidden").val(),endDateOption:N(".end-date-option").val(),endDateCustom:N(".end-date-custom-hidden").val(),redirectAfterVote:N(".redirect-after-vote").val(),redirectUrl:N(".redirect-url").val(),resetPollStatsAutomatically:N(".reset-poll-stats-automatically").val(),resetPollStatsOn:N(".reset-poll-stats-on-hidden").val(),resetPollStatsEvery:N(".reset-poll-stats-every").val(),resetPollStatsEveryPeriod:N(".reset-poll-stats-every-period").val(),autoGeneratePollPage:N(".auto-generate-poll-page").val(),pageId:"",pageLink:"",useCaptcha:N(".use-captcha").val(),sendEmailNotifications:N(".send-email-notifications").val(),emailNotificationsFromName:N(".email-notifications-from-name").val(),emailNotificationsFromEmail:N(".email-notifications-from-email").val(),emailNotificationsRecipients:N(".email-notifications-recipients").val(),emailNotificationsSubject:N(".email-notifications-subject").val(),emailNotificationsMessage:N(".email-notifications-message").val(),enableGdpr:N(".enable-gdpr").val(),gdprSolution:N(".gdpr-solution").val(),gdprConsentText:N(".gdpr-consent-text").val(),loadWithAjax:N(".load-with-ajax").val()},access:{votePermissions:Y,allowWordpressVotes:N(".allow-wordpress-votes").val(),blockVoters:R,blockLengthType:N(".block-length-type").val(),blockForValue:N(".block-length-1").val(),blockForPeriod:N(".block-length-2").val(),limitVotesPerUser:N(".limit-votes-per-user").val(),votesPerUserAllowed:N(".votes-per-user-allowed").val()},results:{showResultsMoment:z,customDateResults:N(".custom-date-results-hidden").val(),showResultsTo:Q,resultsDetails:H,backToVoteOption:N(".back-to-vote-option").val(),backToVoteCaption:N(".back-to-vote-caption").val(),sortResults:N(".sort-results").val(),sortResultsRule:N(".sort-results-rule").val(),displayResultsAs:N(".display-results-as").val(),barColor:N(".bar-color").val(),barHeight:N(".bar-height").val()}},elements:F,elementsRemoved:N(".poll-elements-list").attr("data-remove")},N(".spinner.publish").addClass("is-active"),N("#publish-poll").attr("disabled",!0),N.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"update_yop_poll",_token:N("#_token").val(),poll:JSON.stringify(e)}}).done(function(t){N(".spinner.publish").removeClass("is-active"),!0===t.success?(N(".poll-elements-list").attr("data-remove",""),N(".poll-element").attr("data-remove",""),N(t.data.newElements).each(function(t,e){N(".poll-elements").find('.poll-element[data-uid="'+e.uid+'"]').attr({"data-id":e.id,"data-uid":""})}),N(t.data.newSubElements).each(function(t,e){N(".poll-elements").find('.answer[data-uid="'+e.uid+'"]').attr({"data-id":e.id,"data-uid":""})}),toastr.success(htmlEncode(striptags(t.data.message)),"",{progressBar:!0,onHidden:function(){N("#publish-poll").attr("disabled",!1)}})):(N("#publish-poll").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()})}),jQuery(document).ready(function(o){function t(t){var e,s,a=window.location.search.substring(1).split("&");for(s=0;s<a.length;s++)if((e=a[s].split("="))[0]===t)return void 0===e[1]||decodeURIComponent(e[1])}var e,s=new Date;"yes"===t("show-code")?(pollId=t("poll-id"),o("#shortcode-popup").find(".generate-yop-poll-code").attr("data-id",pollId),o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+pollId+'"]'),o("#shortcode-popup").modal()):"yop-polls"===t("page")&&o("#yop-poll-guide-modal").length&&(e=s.getFullYear().toString()+s.getMonth().toString()+s.getDate().toString(),null!==localStorage.getItem("ypguide")&&e===localStorage.getItem("ypguide")||(o("#yop-poll-guide-modal").modal("show"),localStorage.setItem("ypguide",e))),o(".delete-poll").click(function(t){var e=o(this).attr("data-id");""!==e&&BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deletePollMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_single_yop_poll",_token:o('input[name="_token"]').val(),poll_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),o(".clone-poll").click(function(t){var e=o(this).attr("data-id");BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.clonePollMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"clone_single_yop_poll",_token:o('input[name="_token"]').val(),poll_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),o("#current-poll-page-selector").keypress(function(t){var e,s,a,i,n=document.URL.split("?");if(13===t.which){if(void 0!==n[1])for(q=n[1].split("&"),s=0;s<q.length;s++)a=0===s?"?":"&","page_no"===(e=q[s].split("="))[0]?(i=e[1],n[0]+=a+e[0]+"="+o(this).val()):(e[1]=void 0!==e[1]?e[1]:"",n[0]+=a+e[0]+"="+e[1]);i!==o(this).val()&&window.location.assign(n[0])}}),o(".bulk-action").click(function(t){var e,s=o(".bulk-action-"+o(this).attr("data-position")).val(),a=[];switch(o('input[name="polls[]"]:checked').each(function(t){a.push(o(this).val())}),s){case"trash":formAction="delete_bulk_yop_poll",e=1<a.length?objectL10n.yopPollParams.deleteBulkPollsMultiMessage:objectL10n.yopPollParams.deleteBulkPollsSingleMessage;break;case"clone":formAction="clone_bulk_yop_poll",e=1<a.length?objectL10n.yopPollParams.cloneBulkPollsMultiMessage:objectL10n.yopPollParams.cloneBulkPollsSingleMessage;break;case"reset-votes":formAction="reset_bulk_yop_poll",e=1<a.length?objectL10n.yopPollParams.resetBulkPollsMultiMessage:objectL10n.yopPollParams.resetBulkPollsSingleMessage;break;default:formAction=""}""!==formAction?0<a.length?BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:e,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:formAction,_token:o('input[name="_bulk_token"]').val(),polls:JSON.stringify(a)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noPollsSelectedForBulk,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBulkActionSelected,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]}),t.preventDefault()}),o(".get-poll-code").click(function(){var t=o(this).attr("data-id");o("#shortcode-popup").find(".generate-yop-poll-code").attr("data-id",t),o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+t+'"]'),o("#shortcode-popup").modal()}),o(".generate-yop-poll-code").click(function(t){var e=o(this).attr("data-id"),s=o("#shortcode-popup").find(".shortcode-tracking-id").val();"no"===o("#shortcode-popup").find(".shortcode-show-results").val()?""!==s?o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+e+'" tracking_id="'+s+'"]'):o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+e+'"]'):o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+e+'" show_results="1"]'),t.preventDefault()}),o(".send-poll-guide").click(function(t){var e=o(".guide-email").val();""!==e.trim()?(o.LoadingOverlay("show"),o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_send_guide",input:e}}).done(function(t){o.LoadingOverlay("hide"),o("#yop-poll-guide-modal").modal("hide"),toastr.success("Guide sent. Please check your inbox.")})):o(".email-container").addClass("has-error"),t.preventDefault()}),o(".stop-showing-guide").click(function(t){o.LoadingOverlay("show"),o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_stop_showing_guide",stop:"no"}}).done(function(t){o.LoadingOverlay("hide"),o("#yop-poll-guide-modal").modal("hide")}),t.preventDefault()})}),jQuery(document).ready(function(i){i(".add-ban").click(function(t){var e,s=!1;e=i(".ban-value").val(),!1===s&&""===e&&(s=!0,i(".ban-value").focus(),i(".ban-value").parent().addClass("has-error"),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.saveBanParams.noBanValue)))),!1===s&&(formData={ban:{poll_id:i(".ban-poll").val(),b_by:i(".ban-by").val(),b_value:i(".ban-value").val()}},i(".add-ban").attr("disabled",!0),i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"create_yop_poll_ban",_token:i("#_token").val(),ban:JSON.stringify(formData)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-bans")}}):(i(".add-ban").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()}),i(".ban-for").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".ban-value").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".delete-ban").click(function(t){var e=i(this).attr("data-id");""!==e&&BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteBanMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_yop_poll_ban",_token:i('input[name="_token"]').val(),ban_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-bans")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),i(".update-ban").click(function(t){var e,s,a=!1;banFor=i(".ban-for").val(),e=i(".ban-value").val(),!1===a&&""===e&&(a=!0,i(".ban-value").focus(),i(".ban-value").parent().addClass("has-error"),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.saveBanParams.noBanValue)))),!1===a&&(s={ban:{id:i(this).attr("data-id"),poll_id:i(".ban-poll").val(),b_by:i(".ban-by").val(),b_value:i(".ban-value").val()}},i(".update-ban").attr("disabled",!0),i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"update_yop_poll_ban",_token:i("#_token").val(),ban:JSON.stringify(s)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-bans")}}):(i(".add-ban").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()}),i(".bans-bulk-action").click(function(t){var e,s=[];i('input[name="bans[]"]:checked').each(function(t){s.push(i(this).val())}),"trash"===i(".bans-bulk-action-"+i(this).attr("data-position")).val()?(e=1<s.length?objectL10n.yopPollParams.deleteBulkBansMultiMessage:objectL10n.yopPollParams.deleteBulkBansSingleMessage,0<s.length?BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:e,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_bulk_yop_poll_ban",_token:i('input[name="_bulk_token"]').val(),bans:JSON.stringify(s)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-bans")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBansSelectedForBulk,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBulkActionSelected,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})})}),jQuery(document).ready(function(a){a(".delete-log").click(function(t){var e=a(this).attr("data-id");""!==e&&BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteLogMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&a.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_yop_poll_log",_token:a('input[name="_token"]').val(),log_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-logs")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),a(".logs-bulk-action").click(function(t){var e,s=[];a('input[name="logs[]"]:checked').each(function(t){s.push(a(this).val())}),"trash"===a(".logs-bulk-action-"+a(this).attr("data-position")).val()?(e=1<s.length?objectL10n.yopPollParams.deleteBulkLogsMultiMessage:objectL10n.yopPollParams.deleteBulkLogsSingleMessage,0<s.length?BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:e,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&a.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_bulk_yop_poll_log",_token:a('input[name="_bulk_token"]').val(),logs:JSON.stringify(s)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-logs")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noLogsSelectedForBulk,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBulkActionSelected,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})}),a(".view-log-details").click(function(t){var e=a(this).data("id"),s=a(this).parent().parent().next(".log-details-div");a(s).is(":visible")?(a(s).fadeOut("slow"),a(this).text(objectL10n.yopPollParams.showLogDetailsLinkText)):(a(this).text(objectL10n.yopPollParams.hideLogDetailsLinkText),"yes"===a(s).data("ajax_sent")?a(s).fadeIn("slow"):(a.LoadingOverlay("show"),a.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"get_yop_poll_log_details",_token:a('input[name="_token"]').val(),log_id:e}}).done(function(t){!0===t.success?(strDetails=t.data.details,a(s).html(strDetails).fadeIn("slow"),a(s).data("ajax_sent","yes")):toastr.warning(htmlEncode(striptags(t.data))),a.LoadingOverlay("hide")}))),t.preventDefault()}),a(".export-logs-button").click(function(t){a("#doExport").val("true"),a("#searchForm").submit()}),a("#search-submit").click(function(t){a("#doExport").val("false")})}),jQuery(document).ready(function(d){d(".progress-bar").each(function(){d(this).yopprogressbar({})}),d(".element-results-header").click(function(t){var e=d(this).closest(".panel").find(".panel-collapse");d(e).hasClass("in")?d(this).find("a").first().removeClass("collapsed"):d(this).find("a").first().addClass("collapsed"),d(e).collapse("toggle"),t.preventDefault()}),d(".answers-chart-type").on("change",function(t){var e,s,a,i,n,o,l,r,c;if(function(){return"rgb("+Math.floor(255*Math.random())+","+Math.floor(255*Math.random())+","+Math.floor(255*Math.random())+")"},e=d(this).val(),s=d(this).closest(".panel-body").find(".chart-canvas"),a=d(this).closest(".panel-body").find(".bar-chart-div"),"pie"===e){for(d(s).show(),d(a).hide(),i=d(s).data("jsondata"),n=d(s).data("jsonlabels"),o=d(s).data("resultscolor"),r=d(s).data("icons"),l=[],c=0;c<r.length;c++)"other"===r[c]?(l.push(""),n[c]+=" "):l.push("");new Chart(s,{type:"pie",responsive:!0,maintainAspectRatio:!0,data:{labels:n,icons:l,datasets:[{label:objectL10n.yopPollParams.numberOfVotesText,data:i,backgroundColor:o,icons:l,datalabels:{anchor:"end"}}]},pointLabelFontFamily:"'FontAwesome'",scaleFontFamily:"'FontAwesome'",options:{legend:{display:!0,labels:{fontFamily:"'FontAwesome'",fontSize:12}},tooltips:{enabled:!0,titleFontFamily:"'FontAwesome'",bodyFontFamily:"'FontAwesome'",footerFontFamily:"'FontAwesome'"},tooltipTitleFontFamily:"'FontAwesome'",plugins:{datalabels:{anchor:"end",borderColor:"red",borderRadius:5,borderWidth:0,color:"#387cb7",font:{family:"FontAwesome",size:20},display:!0,formatter:function(t,e){return e.chart.data.icons[e.dataIndex]}}}}})}else"bar"===e&&(d(s).hide(),d(a).show())}),d(".voters-chart-type").on("change",function(t){var e,s,a,i,n,o;e=d(this).val(),s=d(this).closest(".panel-body").find(".chart-voters-canvas"),a=d(this).closest(".panel-body").find(".bar-chart-voters-div"),"pie"===e?(d(s).show(),d(a).hide(),i=d(s).data("jsondata"),n=d(s).data("jsonlabels"),o=d(s).data("resultscolor"),new Chart(s,{type:"pie",responsive:!0,maintainAspectRatio:!0,data:{labels:n,datasets:[{label:"Number of Votes",data:i,backgroundColor:o}]}})):"bar"===e&&(d(s).hide(),d(a).show())}),d("#cf-pagination").bootpag({total:d("#cf-total-pages").val()}).on("page",function(t,e){d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"get_yop_poll_votes_customs",_token:d('input[name="_token"]').val(),page:e,poll_id:d("#poll_id").val()}}).done(function(t){!0===t.success?d("#cf-table tbody").html(t.data):toastr.warning(htmlEncode(striptags(t.data)))})}),d(".details-operation").click(function(t){var e,s,a,i;e=d(this).data("vote-id"),s=d(this).data("ajax-sent"),a=d("#vote-details-div-"+e),i=d(this),d(a).is(":visible")?d(a).fadeOut("slow"):"yes"===s?d("#vote-details-div-"+e).fadeIn("slow"):(d.LoadingOverlay("show"),d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop-poll-get-vote-details",_token:d('input[name="_token"]').val(),voteid:e}}).done(function(t){!0===t.success?(d(a).html(t.data.details),d(a).fadeIn("slow"),d(i).data("ajax-sent","yes")):toastr.warning(htmlEncode(striptags(t.data))),d.LoadingOverlay("hide")})),t.preventDefault()}),d(".delete-vote").click(function(t){var e=d(this).attr("data-id"),s=d('input[name="poll_id"]').val();""!==e&&BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteBulkVotesSingleMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_delete_vote",_token:d('input[name="_token"]').val(),poll_id:s,vote_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls&action=view-votes&poll_id="+s)}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),d(".votes-bulk-action").click(function(t){var e,s=[],a=d('input[name="poll_id"]').val(),i=d("#votes-search-input").val();d('input[name="votes[]"]:checked').each(function(t){s.push(d(this).val())}),"trash"===d(".logs-bulk-action-"+d(this).attr("data-position")).val()?(e=1<s.length?objectL10n.yopPollParams.deleteBulkVotessMultiMessage:objectL10n.yopPollParams.deleteBulkVotesSingleMessage,0<s.length?BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:e,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_delete_votes_bulk",_token:d('input[name="_bulk_token"]').val(),poll_id:a,votes:JSON.stringify(s)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls&action=view-votes&poll_id="+a+"&q="+i)}}):toastr.warning(htmlEncode(striptags(t.data)))})}}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noVotesSelectedForBulk,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBulkActionSelected,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})}),d(".btn-submit-add-votes-manually").click(function(){var e=d(this).attr("data-poll-id"),s=[];d(".section-main-add-votes-manually .question-section").each(function(t){var e=[];d(this).find(".answer-element").each(function(t){e[t]={id:d(this).attr("data-id"),votes:d(this).val()}}),s[t]={id:d(this).attr("data-id"),answers:e}}),d(".section-footer-add-votes-manually .btn-submit-add-votes-manually").attr("disabled",!0),d(".section-footer-add-votes-manually .spinner").removeClass("hide").addClass("is-active"),d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll-add-votes-manually",_token:d('input[name="_token-add-votes-manually"]').val(),id:e,data:JSON.stringify(s)}}).done(function(t){d(".section-footer-add-votes-manually .spinner").removeClass("is-active").addClass("hide"),!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls&action=view-votes&poll_id="+e)}}):(d(".section-footer-add-votes-manually .btn-submit-add-votes-manually").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})}),d(".btn-cancel-add-votes-manually").click(function(){d(".section-footer-add-votes-manually .spinner").removeClass("is-active").addClass("hide"),d("#modal-add-votes-manually").modal("hide")})}),jQuery(document).ready(function(i){function s(t,e,s,a){switch(t){case"tab-notifications":i("#tab-notifications").addClass("active"),i("#settings-notifications").addClass("active"),i("#tab-integrations").removeClass("active"),i("#settings-integrations").removeClass("active"),i("#tab-messages").removeClass("active"),i("#settings-messages").removeClass("active");break;case"tab-integrations":i("#tab-integrations").addClass("active"),i("#settings-integrations").addClass("active"),i("#tab-notifications").removeClass("active"),i("#settings-notifications").removeClass("active"),i("#tab-messages").removeClass("active"),i("#settings-messages").removeClass("active");break;case"tab-messages":switch(i("#tab-messages").addClass("active"),i("#settings-messages").addClass("active"),i("#tab-notifications").removeClass("active"),i("#settings-notifications").removeClass("active"),i("#tab-integrations").removeClass("active"),i("#settings-integrations").removeClass("active"),e){case 1:i("#settings-messages").find('a[data-content="settings-messages-buttons"]').addClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-voting"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-results"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-captcha"]').removeClass("btn-underline"),i("#settings-messages .settings-messages-buttons").removeClass("hide"),i("#settings-messages .settings-messages-voting").addClass("hide"),i("#settings-messages .settings-messages-results").addClass("hide"),i("#settings-messages .settings-messages-captcha").addClass("hide");break;case 2:i("#settings-messages").find('a[data-content="settings-messages-buttons"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-voting"]').addClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-results"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-captcha"]').removeClass("btn-underline"),i("#settings-messages .settings-messages-buttons").addClass("hide"),i("#settings-messages .settings-messages-voting").removeClass("hide"),i("#settings-messages .settings-messages-results").addClass("hide"),i("#settings-messages .settings-messages-captcha").addClass("hide");break;case 3:i("#settings-messages").find('a[data-content="settings-messages-buttons"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-voting"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-results"]').addClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-captcha"]').removeClass("btn-underline"),i("#settings-messages .settings-messages-buttons").addClass("hide"),i("#settings-messages .settings-messages-voting").addClass("hide"),i("#settings-messages .settings-messages-results").removeClass("hide"),i("#settings-messages .settings-messages-captcha").addClass("hide");break;case 4:i("#settings-messages").find('a[data-content="settings-messages-buttons"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-voting"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-results"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-captcha"]').addClass("btn-underline"),i("#settings-messages .settings-messages-buttons").addClass("hide"),i("#settings-messages .settings-messages-voting").addClass("hide"),i("#settings-messages .settings-messages-results").addClass("hide"),i("#settings-messages .settings-messages-captcha").removeClass("hide")}}i("#"+s).css("borderColor","#f00"),""!==a&&toastr.warning(htmlEncode(striptags(a)))}var a;i(".settings-required-field").focusout(function(t){""!==i.trim(i(this).val())&&i(this).css("borderColor","#ccc")}),i(".save-settings").click(function(t){var e=!1;!1===e&&""===i.trim(i("#email-from-name").val())&&(e=!0,s("tab-notifications",0,"email-from-name",i("#email-from-name").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#email-from-email").val())&&(e=!0,s("tab-notifications",0,"email-from-email",i("#email-from-email").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#email-recipients").val())&&(e=!0,s("tab-notifications",0,"email-recipients",i("#email-recipients").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#email-subject").val())&&(e=!0,s("tab-notifications",0,"email-subject",i("#email-subject").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#email-message").val())&&(e=!0,s("tab-notifications",0,"email-message",i("#email-message").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),"yes"===i(".integrations-reCaptcha-enabled").val()&&!1===e&&""===i.trim(i("#integrations-reCaptcha-site-key").val())&&(e=!0,s("tab-integrations",0,"integrations-reCaptcha-site-key",i("#integrations-reCaptcha-site-key").closest(".integrations-reCaptcha-section").find(".input-caption:first").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),"yes"===i(".integrations-reCaptcha-enabled").val()&&!1===e&&""===i.trim(i("#integrations-reCaptcha-secret-key").val())&&(e=!0,s("tab-integrations",0,"integrations-reCaptcha-secret-key",i("#integrations-reCaptcha-secret-key").closest(".integrations-reCaptcha-section").find(".input-caption").eq(1).text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),"yes"===i(".integrations-reCaptchaV2Invisible-enabled").val()&&!1===e&&""===i.trim(i("#integrations-reCaptchaV2Invisible-site-key").val())&&(e=!0,s("tab-integrations",0,"integrations-reCaptchaV2Invisible-site-key",i("#integrations-reCaptchaV2Invisible-site-key").closest(".integrations-reCaptchaV2Invisible-section").find(".input-caption:first").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),"yes"===i("#integrations-reCaptchaV2Invisible-enabled").val()&&!1===e&&""===i.trim(i("#integrations-reCaptchaV2Invisible-secret-key").val())&&(e=!0,s("tab-integrations",0,"integrations-reCaptchaV2Invisible-secret-key",i("#integrations-reCaptchaV2Invisible-secret-key").closest(".integrations-reCaptchaV2Invisible-section").find(".input-caption").eq(1).text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-buttons-anonymous").val())&&(e=!0,s("tab-messages",1,"messages-buttons-anonymous",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-buttons-anonymous").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-buttons-wordpress").val())&&(e=!0,s("tab-messages",1,"messages-buttons-wordpress",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-buttons-wordpress").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-buttons-facebook").val())&&(e=!0,s("tab-messages",1,"messages-buttons-facebook",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-buttons-facebook").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-buttons-google").val())&&(e=!0,s("tab-messages",1,"messages-buttons-google",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-buttons-google").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-poll-ended").val())&&(e=!0,s("tab-messages",2,"messages-voting-poll-ended",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-poll-ended").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-poll-not-started").val())&&(e=!0,s("tab-messages",2,"messages-voting-poll-not-started",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-poll-not-started").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-already-voted-on-poll").val())&&(e=!0,s("tab-messages",2,"messages-voting-already-voted-on-poll",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-already-voted-on-poll").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-invalid-poll").val())&&(e=!0,s("tab-messages",2,"messages-voting-invalid-poll",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-invalid-poll").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-no-answer-selected").val())&&(e=!0,s("tab-messages",2,"messages-voting-no-answer-selected",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-no-answer-selected").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-min-answers-required").val())&&(e=!0,s("tab-messages",2,"messages-voting-min-answers-required",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-min-answers-required").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-max-answers-required").val())&&(e=!0,s("tab-messages",2,"messages-voting-max-answers-required",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-max-answers-required").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-no-value-for-other").val())&&(e=!0,s("tab-messages",2,"messages-voting-no-value-for-other",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-no-value-for-other").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-no-value-for-custom-field").val())&&(e=!0,s("tab-messages",2,"messages-voting-no-value-for-custom-field",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-no-value-for-custom-field").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-consent-not-checked").val())&&(e=!0,s("tab-messages",2,"messages-voting-consent-not-checked",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-consent-not-checked").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-captcha-not-checked").val())&&(e=!0,s("tab-messages",2,"messages-voting-captcha-not-checked",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-captcha-not-checked").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-vote-not-allowed-by-ban").val())&&(e=!0,s("tab-messages",2,"messages-voting-vote-not-allowed-by-ban",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-vote-not-allowed-by-ban").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-vote-not-allowed-by-block").val())&&(e=!0,s("tab-messages",2,"messages-voting-vote-not-allowed-by-block",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-vote-not-allowed-by-block").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-vote-not-allowed-by-limit").val())&&(e=!0,s("tab-messages",2,"messages-voting-vote-not-allowed-by-limit",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-vote-not-allowed-by-limit").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-thank-you").val())&&(e=!0,s("tab-messages",2,"messages-voting-thank-you",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-thank-you").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-results-single-vote").val())&&(e=!0,s("tab-messages",3,"messages-results-single-vote",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-results-single-vote").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-results-multiple-votes").val())&&(e=!0,s("tab-messages",3,"messages-results-multiple-votes",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-results-multiple-votes").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-results-single-answer").val())&&(e=!0,s("tab-messages",3,"messages-results-single-answer",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-results-single-answer").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-results-multiple-answers").val())&&(e=!0,s("tab-messages",3,"messages-results-multiple-answers",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-results-multiple-answers").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-accessibility-alt").val())&&(e=!0,s("tab-messages",4,"messages-captcha-accessibility-alt",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-accessibility-alt").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-accessibility-title").val())&&(e=!0,s("tab-messages",4,"messages-captcha-accessibility-title",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-accessibility-title").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-accessibility-description").val())&&(e=!0,s("tab-messages",4,"messages-captcha-accessibility-description",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-accessibility-description").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-accessibility-explanation").val())&&(e=!0,s("tab-messages",4,"messages-captcha-accessibility-explanation",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-accessibility-explanation").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-refresh-alt").val())&&(e=!0,s("tab-messages",4,"messages-captcha-refresh-alt",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-refresh-alt").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-refresh-title").val())&&(e=!0,s("tab-messages",4,"messages-captcha-refresh-title",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-refresh-title").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&(a={email:{"from-name":i("#email-from-name").val(),"from-email":i("#email-from-email").val(),subject:i("#email-subject").val(),recipients:i("#email-recipients").val(),message:i("#email-message").val()},integrations:{reCaptcha:{enabled:i("#integrations-reCaptcha-enabled").val(),"site-key":i("#integrations-reCaptcha-site-key").val(),"secret-key":i("#integrations-reCaptcha-secret-key").val()},reCaptchaV2Invisible:{enabled:i("#integrations-reCaptchaV2Invisible-enabled").val(),"site-key":i("#integrations-reCaptchaV2Invisible-site-key").val(),"secret-key":i("#integrations-reCaptchaV2Invisible-secret-key").val()},facebook:{enabled:i("#integrations-facebook-enabled").val(),"app-id":i("#integrations-facebook-app-id").val()},google:{enabled:i("#integrations-google-enabled").val(),"app-id":i("#integrations-google-app-id").val(),"app-secret":i("#integrations-google-app-secret").val()}},messages:{captcha:{"accessibility-alt":i("#messages-captcha-accessibility-alt").val(),"accessibility-title":i("#messages-captcha-accessibility-title").val(),"accessibility-description":i("#messages-captcha-accessibility-description").val(),explanation:i("#messages-captcha-accessibility-explanation").val(),"refresh-alt":i("#messages-captcha-refresh-alt").val(),"refresh-title":i("#messages-captcha-refresh-title").val()},buttons:{anonymous:i("#messages-buttons-anonymous").val(),wordpress:i("#messages-buttons-wordpress").val(),facebook:i("#messages-buttons-facebook").val(),google:i("#messages-buttons-google").val()},voting:{"poll-ended":i("#messages-voting-poll-ended").val(),"poll-not-started":i("#messages-voting-poll-not-started").val(),"already-voted-on-poll":i("#messages-voting-already-voted-on-poll").val(),"invalid-poll":i("#messages-voting-invalid-poll").val(),"no-answers-selected":i("#messages-voting-no-answer-selected").val(),"min-answers-required":i("#messages-voting-min-answers-required").val(),"max-answers-required":i("#messages-voting-max-answers-required").val(),"no-answer-for-other":i("#messages-voting-no-value-for-other").val(),"no-value-for-custom-field":i("#messages-voting-no-value-for-custom-field").val(),"consent-not-checked":i("#messages-voting-consent-not-checked").val(),"no-captcha-selected":i("#messages-voting-captcha-not-checked").val(),"not-allowed-by-ban":i("#messages-voting-vote-not-allowed-by-ban").val(),"not-allowed-by-block":i("#messages-voting-vote-not-allowed-by-block").val(),"not-allowed-by-limit":i("#messages-voting-vote-not-allowed-by-limit").val(),"thank-you":i("#messages-voting-thank-you").val()},results:{"single-vote":i("#messages-results-single-vote").val(),"multiple-votes":i("#messages-results-multiple-votes").val(),"single-answer":i("#messages-results-single-answer").val(),"multiple-answers":i("#messages-results-multiple-answers").val()}}},i(".spinner.publish").addClass("is-active"),i(this).attr("disabled",!0),i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_save_settings",_token:i("#_token").val(),settings:JSON.stringify(a)}}).done(function(t){i(".spinner.publish").removeClass("is-active"),!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){i(".save-settings").attr("disabled",!1)}}):(i(".save-settings").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()}),i(".integrations-reCaptcha-enabled").on("change",function(t){"yes"===i(this).val()?i(".integrations-reCaptcha-section").removeClass("hide"):i(".integrations-reCaptcha-section").addClass("hide")}),i(".integrations-reCaptchaV2Invisible-enabled").on("change",function(t){"yes"===i(this).val()?i(".integrations-reCaptchaV2Invisible-section").removeClass("hide"):i(".integrations-reCaptchaV2Invisible-section").addClass("hide")}),i(".integrations-facebook-enabled").on("change",function(t){"yes"===i(this).val()&&(i('.integrations-facebook-enabled option[value="no"]').prop("selected",!0),showUpgradeToPro("facebook"),t.preventDefault())}),i(".integrations-google-enabled").on("change",function(t){"yes"===i(this).val()&&(i('.integrations-google-enabled option[value="no"]').prop("selected",!0),showUpgradeToPro("google"),t.preventDefault())})});var getParameterFromUrl=getUrlParameter=function(t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(location.search);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))},showUpgradeToPro=function(t){jQuery("#yop-poll-upgrade-modal-short").modal("show"),jQuery("#yop-poll-upgrade-modal-long").modal("show")};jQuery(document).ready(function(a){var i;a(".migrate-section").on("change",function(t){"yes"===a(this).val()?a(".migrate-section").find(".migrate-gdpr-solution-section").removeClass("hide"):a(".migrate-section").find(".migrate-gdpr-solution-section").addClass("hide")}),i=function(t,e,s){a.ajax({type:"POST",url:ajaxurl,data:{table:t,action:"yop_ajax_migrate",_csrf_token:a("#_csrf_token").val(),enableGdpr:a(".migrate-section").find(".migrate-enable-gdpr").val(),gdprSolution:a(".migrate-section").find(".migrate-gdpr-solution").val(),response_code:e,skip_table_check:s},dataType:"json",success:function(t){"done"===t.data.response_code?(a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.response+" "+t.data.message+"</p>"),a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.allDone+"</p>")):(a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.response+" "+t.data.message+"</p>"),i(t.data.table,t.data.response_code,t.data.skip_table_check))},error:function(t){}}).fail(function(t){})},a(".send-request").click(function(){var t,e=a(".migrate-section").find(".migrate-enable-gdpr").val(),s=a(".migrate-section").find(".migrate-gdpr-solution").val();if("yes"===e){switch(s){case"consent":t=objectL10n.yopPollParams.importOld.gdprEnabledMigrateAsIs;break;case"anonymize":t=objectL10n.yopPollParams.importOld.gdprEnabledAnonymizeIp;break;case"nostore":t=objectL10n.yopPollParams.importOld.gdprEnabledNoStore}t=objectL10n.yopPollParams.importOld.gdprEnabledGeneral+"<br><br>"+objectL10n.yopPollParams.importOld.gdprEnabledChoice+": <b>"+a(".migrate-section").find(".migrate-gdpr-solution").find("option:selected").text()+"</b><br><br>"+t,BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:t,btnCancelLabel:objectL10n.yopPollParams.importOld.gdprEnabledStop,btnOKLabel:objectL10n.yopPollParams.importOld.gdprEnabledContinue,callback:function(t){t&&(a(".migrate-output").html(""),a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.importStarted+"</p>"),i("bans",1,!1))}})}else a(".migrate-output").html(""),a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.importStarted+"</p>"),i("bans",1,!1)})});
1
+ if(!function(t){"function"==typeof define&&define.amd?define(["jquery","jquery-ui"],t):t(jQuery)}(function($){if($.ui.timepicker=$.ui.timepicker||{},!$.ui.timepicker.version){$.extend($.ui,{timepicker:{version:"1.6.3"}});var Timepicker=function(){this.regional=[],this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:!1},this._defaults={showButtonPanel:!0,timeOnly:!1,timeOnlyShowDate:!1,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:!0,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:!0,separator:" ",altFieldTimeOnly:!0,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:!0,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:!0,timezoneList:null,addSliderAccess:!1,sliderAccessArgs:null,controlType:"slider",oneLine:!1,defaultValue:null,parse:"strict",afterInject:null},$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(t){return extendRemove(this._defaults,t||{}),this},_newInst:function($input,opts){var tp_inst=new Timepicker,inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults)if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue)try{inlineSettings[attrName]=eval(attrValue)}catch(t){inlineSettings[attrName]=attrValue}}for(i in overrides={beforeShow:function(t,e){if($.isFunction(tp_inst._defaults.evnts.beforeShow))return tp_inst._defaults.evnts.beforeShow.call($input[0],t,e,tp_inst)},onChangeMonthYear:function(t,e,s){$.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)&&tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],t,e,s,tp_inst)},onClose:function(t,e){!0===tp_inst.timeDefined&&""!==$input.val()&&tp_inst._updateDateTime(e),$.isFunction(tp_inst._defaults.evnts.onClose)&&tp_inst._defaults.evnts.onClose.call($input[0],t,e,tp_inst)}},overrides)overrides.hasOwnProperty(i)&&(fns[i]=opts[i]||this._defaults[i]||null);tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst}),tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(t){return t.toUpperCase()}),tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(t){return t.toUpperCase()}),tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:"")),"string"==typeof tp_inst._defaults.controlType?("slider"===tp_inst._defaults.controlType&&void 0===$.ui.slider&&(tp_inst._defaults.controlType="select"),tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]):tp_inst.control=tp_inst._defaults.controlType;var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];null!==tp_inst._defaults.timezoneList&&(timezoneList=tp_inst._defaults.timezoneList);var tzl=timezoneList.length,tzi=0,tzv=null;if(0<tzl&&"object"!=typeof timezoneList[0])for(;tzi<tzl;tzi++)tzv=timezoneList[tzi],timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};return tp_inst._defaults.timezoneList=timezoneList,tp_inst.timezone=null!==tp_inst._defaults.timezone?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):-1*(new Date).getTimezoneOffset(),tp_inst.hour=tp_inst._defaults.hour<tp_inst._defaults.hourMin?tp_inst._defaults.hourMin:tp_inst._defaults.hour>tp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour,tp_inst.minute=tp_inst._defaults.minute<tp_inst._defaults.minuteMin?tp_inst._defaults.minuteMin:tp_inst._defaults.minute>tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute,tp_inst.second=tp_inst._defaults.second<tp_inst._defaults.secondMin?tp_inst._defaults.secondMin:tp_inst._defaults.second>tp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second,tp_inst.millisec=tp_inst._defaults.millisec<tp_inst._defaults.millisecMin?tp_inst._defaults.millisecMin:tp_inst._defaults.millisec>tp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec,tp_inst.microsec=tp_inst._defaults.microsec<tp_inst._defaults.microsecMin?tp_inst._defaults.microsecMin:tp_inst._defaults.microsec>tp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec,tp_inst.ampm="",tp_inst.$input=$input,tp_inst._defaults.altField&&(tp_inst.$altInput=$(tp_inst._defaults.altField),!0===tp_inst._defaults.altRedirectFocus&&tp_inst.$altInput.css({cursor:"pointer"}).focus(function(){$input.trigger("focus")})),0!==tp_inst._defaults.minDate&&0!==tp_inst._defaults.minDateTime||(tp_inst._defaults.minDate=new Date),0!==tp_inst._defaults.maxDate&&0!==tp_inst._defaults.maxDateTime||(tp_inst._defaults.maxDate=new Date),void 0!==tp_inst._defaults.minDate&&tp_inst._defaults.minDate instanceof Date&&(tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime())),void 0!==tp_inst._defaults.minDateTime&&tp_inst._defaults.minDateTime instanceof Date&&(tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime())),void 0!==tp_inst._defaults.maxDate&&tp_inst._defaults.maxDate instanceof Date&&(tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime())),void 0!==tp_inst._defaults.maxDateTime&&tp_inst._defaults.maxDateTime instanceof Date&&(tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime())),tp_inst.$input.bind("focus",function(){tp_inst._onFocus()}),tp_inst},_addTimePicker:function(t){var e=$.trim(this.$altInput&&this._defaults.altFieldTimeOnly?this.$input.val()+" "+this.$altInput.val():this.$input.val());this.timeDefined=this._parseTime(e),this._limitMinMaxDateTime(t,!1),this._injectTimePicker(),this._afterInject()},_parseTime:function(e,t){if(this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),t||!this._defaults.timeOnly){var s=$.datepicker._get(this.inst,"dateFormat");try{var a=parseDateTimeInternal(s,this._defaults.timeFormat,e,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!a.timeObj)return!1;$.extend(this,a.timeObj)}catch(t){return $.timepicker.log("Error parsing the date/time string: "+t+"\ndate/time string = "+e+"\ntimeFormat = "+this._defaults.timeFormat+"\ndateFormat = "+s),!1}return!0}var i=$.datepicker.parseTime(this._defaults.timeFormat,e,this._defaults);return!!i&&($.extend(this,i),!0)},_afterInject:function(){var t=this.inst.settings;$.isFunction(t.afterInject)&&t.afterInject.call(this)},_injectTimePicker:function(){var t=this.inst.dpDiv,e=this.inst.settings,o=this,l="",s="",a=null,i={},n={},r=null,c=0,d=0;if(0===t.find("div.ui-timepicker-div").length&&e.showTimepicker){var u=" ui_tpicker_unit_hide",p='<div class="ui-timepicker-div'+(e.isRTL?" ui-timepicker-rtl":"")+(e.oneLine&&"select"===e.controlType?" ui-timepicker-oneLine":"")+'"><dl><dt class="ui_tpicker_time_label'+(e.showTime?"":u)+'">'+e.timeText+'</dt><dd class="ui_tpicker_time '+(e.showTime?"":u)+'"><input class="ui_tpicker_time_input" '+(e.timeInput?"":"disabled")+"/></dd>";for(c=0,d=this.units.length;c<d;c++){if(a=null!==e["show"+(s=(l=this.units[c]).substr(0,1).toUpperCase()+l.substr(1))]?e["show"+s]:this.support[l],i[l]=parseInt(e[l+"Max"]-(e[l+"Max"]-e[l+"Min"])%e["step"+s],10),n[l]=0,p+='<dt class="ui_tpicker_'+l+"_label"+(a?"":u)+'">'+e[l+"Text"]+'</dt><dd class="ui_tpicker_'+l+(a?"":u)+'"><div class="ui_tpicker_'+l+"_slider"+(a?"":u)+'"></div>',a&&0<e[l+"Grid"]){if(p+='<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>',"hour"===l)for(var h=e[l+"Min"];h<=i[l];h+=parseInt(e[l+"Grid"],10)){n[l]++;var m=$.datepicker.formatTime(this.support.ampm?"hht":"HH",{hour:h},e);p+='<td data-for="'+l+'">'+m+"</td>"}else for(var f=e[l+"Min"];f<=i[l];f+=parseInt(e[l+"Grid"],10))n[l]++,p+='<td data-for="'+l+'">'+(f<10?"0":"")+f+"</td>";p+="</tr></table></div>"}p+="</dd>"}var g=null!==e.showTimezone?e.showTimezone:this.support.timezone;p+='<dt class="ui_tpicker_timezone_label'+(g?"":u)+'">'+e.timezoneText+"</dt>",p+='<dd class="ui_tpicker_timezone'+(g?"":u)+'"></dd>';var v=$(p+="</dl></div>");for(!0===e.timeOnly&&(v.prepend('<div class="ui-widget-header ui-helper-clearfix ui-corner-all"><div class="ui-datepicker-title">'+e.timeOnlyTitle+"</div></div>"),t.find(".ui-datepicker-header, .ui-datepicker-calendar").hide()),c=0,d=o.units.length;c<d;c++)a=null!==e["show"+(s=(l=o.units[c]).substr(0,1).toUpperCase()+l.substr(1))]?e["show"+s]:this.support[l],o[l+"_slider"]=o.control.create(o,v.find(".ui_tpicker_"+l+"_slider"),l,o[l],e[l+"Min"],i[l],e["step"+s]),a&&0<e[l+"Grid"]&&(r=100*n[l]*e[l+"Grid"]/(i[l]-e[l+"Min"]),v.find(".ui_tpicker_"+l+" table").css({width:r+"%",marginLeft:e.isRTL?"0":r/(-2*n[l])+"%",marginRight:e.isRTL?r/(-2*n[l])+"%":"0",borderCollapse:"collapse"}).find("td").click(function(t){var e=$(this),s=e.html(),a=parseInt(s.replace(/[^0-9]/g),10),i=s.replace(/[^apm]/gi),n=e.data("for");"hour"===n&&(-1!==i.indexOf("p")&&a<12?a+=12:-1!==i.indexOf("a")&&12===a&&(a=0)),o.control.value(o,o[n+"_slider"],l,a),o._onTimeChange(),o._onSelectHandler()}).css({cursor:"pointer",width:100/n[l]+"%",textAlign:"center",overflow:"hidden"}));if(this.timezone_select=v.find(".ui_tpicker_timezone").append("<select></select>").find("select"),$.fn.append.apply(this.timezone_select,$.map(e.timezoneList,function(t,e){return $("<option />").val("object"==typeof t?t.value:t).text("object"==typeof t?t.label:t)})),void 0!==this.timezone&&null!==this.timezone&&""!==this.timezone)-1*new Date(this.inst.selectedYear,this.inst.selectedMonth,this.inst.selectedDay,12).getTimezoneOffset()===this.timezone?selectLocalTimezone(o):this.timezone_select.val(this.timezone);else void 0!==this.hour&&null!==this.hour&&""!==this.hour?this.timezone_select.val(e.timezone):selectLocalTimezone(o);this.timezone_select.change(function(){o._onTimeChange(),o._onSelectHandler(),o._afterInject()});var b=t.find(".ui-datepicker-buttonpane");if(b.length?b.before(v):t.append(v),this.$timeObj=v.find(".ui_tpicker_time_input"),this.$timeObj.change(function(){var t=o.inst.settings.timeFormat,e=$.datepicker.parseTime(t,this.value),s=new Date;e?(s.setHours(e.hour),s.setMinutes(e.minute),s.setSeconds(e.second),$.datepicker._setTime(o.inst,s)):(this.value=o.formattedTime,this.blur())}),null!==this.inst){var y=this.timeDefined;this._onTimeChange(),this.timeDefined=y}if(this._defaults.addSliderAccess){var w=this._defaults.sliderAccessArgs,k=this._defaults.isRTL;w.isRTL=k,setTimeout(function(){if(0===v.find(".ui-slider-access").length){v.find(".ui-slider:visible").sliderAccess(w);var o=v.find(".ui-slider-access:eq(0)").outerWidth(!0);o&&v.find("table:visible").each(function(){var t=$(this),e=t.outerWidth(),s=t.css(k?"marginRight":"marginLeft").toString().replace("%",""),a=e-o,i=s*a/e+"%",n={width:a,marginRight:0,marginLeft:0};n[k?"marginRight":"marginLeft"]=i,t.css(n)})}},10)}o._limitMinMaxDateTime(this.inst,!0)}},_limitMinMaxDateTime:function(t,e){var s=this._defaults,a=new Date(t.selectedYear,t.selectedMonth,t.selectedDay);if(this._defaults.showTimepicker){if(null!==$.datepicker._get(t,"minDateTime")&&void 0!==$.datepicker._get(t,"minDateTime")&&a){var i=$.datepicker._get(t,"minDateTime"),n=new Date(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0,0);null!==this.hourMinOriginal&&null!==this.minuteMinOriginal&&null!==this.secondMinOriginal&&null!==this.millisecMinOriginal&&null!==this.microsecMinOriginal||(this.hourMinOriginal=s.hourMin,this.minuteMinOriginal=s.minuteMin,this.secondMinOriginal=s.secondMin,this.millisecMinOriginal=s.millisecMin,this.microsecMinOriginal=s.microsecMin),t.settings.timeOnly||n.getTime()===a.getTime()?(this._defaults.hourMin=i.getHours(),this.hour<=this._defaults.hourMin?(this.hour=this._defaults.hourMin,this._defaults.minuteMin=i.getMinutes(),this.minute<=this._defaults.minuteMin?(this.minute=this._defaults.minuteMin,this._defaults.secondMin=i.getSeconds(),this.second<=this._defaults.secondMin?(this.second=this._defaults.secondMin,this._defaults.millisecMin=i.getMilliseconds(),this.millisec<=this._defaults.millisecMin?(this.millisec=this._defaults.millisecMin,this._defaults.microsecMin=i.getMicroseconds()):(this.microsec<this._defaults.microsecMin&&(this.microsec=this._defaults.microsecMin),this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.minuteMin=this.minuteMinOriginal,this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)):(this._defaults.hourMin=this.hourMinOriginal,this._defaults.minuteMin=this.minuteMinOriginal,this._defaults.secondMin=this.secondMinOriginal,this._defaults.millisecMin=this.millisecMinOriginal,this._defaults.microsecMin=this.microsecMinOriginal)}if(null!==$.datepicker._get(t,"maxDateTime")&&void 0!==$.datepicker._get(t,"maxDateTime")&&a){var o=$.datepicker._get(t,"maxDateTime"),l=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0,0);null!==this.hourMaxOriginal&&null!==this.minuteMaxOriginal&&null!==this.secondMaxOriginal&&null!==this.millisecMaxOriginal||(this.hourMaxOriginal=s.hourMax,this.minuteMaxOriginal=s.minuteMax,this.secondMaxOriginal=s.secondMax,this.millisecMaxOriginal=s.millisecMax,this.microsecMaxOriginal=s.microsecMax),t.settings.timeOnly||l.getTime()===a.getTime()?(this._defaults.hourMax=o.getHours(),this.hour>=this._defaults.hourMax?(this.hour=this._defaults.hourMax,this._defaults.minuteMax=o.getMinutes(),this.minute>=this._defaults.minuteMax?(this.minute=this._defaults.minuteMax,this._defaults.secondMax=o.getSeconds(),this.second>=this._defaults.secondMax?(this.second=this._defaults.secondMax,this._defaults.millisecMax=o.getMilliseconds(),this.millisec>=this._defaults.millisecMax?(this.millisec=this._defaults.millisecMax,this._defaults.microsecMax=o.getMicroseconds()):(this.microsec>this._defaults.microsecMax&&(this.microsec=this._defaults.microsecMax),this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.minuteMax=this.minuteMaxOriginal,this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)):(this._defaults.hourMax=this.hourMaxOriginal,this._defaults.minuteMax=this.minuteMaxOriginal,this._defaults.secondMax=this.secondMaxOriginal,this._defaults.millisecMax=this.millisecMaxOriginal,this._defaults.microsecMax=this.microsecMaxOriginal)}if(null!==t.settings.minTime){var r=new Date("01/01/1970 "+t.settings.minTime);this.hour<r.getHours()?(this.hour=this._defaults.hourMin=r.getHours(),this.minute=this._defaults.minuteMin=r.getMinutes()):this.hour===r.getHours()&&this.minute<r.getMinutes()?this.minute=this._defaults.minuteMin=r.getMinutes():this._defaults.hourMin<r.getHours()?(this._defaults.hourMin=r.getHours(),this._defaults.minuteMin=r.getMinutes()):this._defaults.hourMin===r.getHours()===this.hour&&this._defaults.minuteMin<r.getMinutes()?this._defaults.minuteMin=r.getMinutes():this._defaults.minuteMin=0}if(null!==t.settings.maxTime){var c=new Date("01/01/1970 "+t.settings.maxTime);this.hour>c.getHours()?(this.hour=this._defaults.hourMax=c.getHours(),this.minute=this._defaults.minuteMax=c.getMinutes()):this.hour===c.getHours()&&this.minute>c.getMinutes()?this.minute=this._defaults.minuteMax=c.getMinutes():this._defaults.hourMax>c.getHours()?(this._defaults.hourMax=c.getHours(),this._defaults.minuteMax=c.getMinutes()):this._defaults.hourMax===c.getHours()===this.hour&&this._defaults.minuteMax>c.getMinutes()?this._defaults.minuteMax=c.getMinutes():this._defaults.minuteMax=59}if(void 0!==e&&!0===e){var d=parseInt(this._defaults.hourMax-(this._defaults.hourMax-this._defaults.hourMin)%this._defaults.stepHour,10),u=parseInt(this._defaults.minuteMax-(this._defaults.minuteMax-this._defaults.minuteMin)%this._defaults.stepMinute,10),p=parseInt(this._defaults.secondMax-(this._defaults.secondMax-this._defaults.secondMin)%this._defaults.stepSecond,10),h=parseInt(this._defaults.millisecMax-(this._defaults.millisecMax-this._defaults.millisecMin)%this._defaults.stepMillisec,10),m=parseInt(this._defaults.microsecMax-(this._defaults.microsecMax-this._defaults.microsecMin)%this._defaults.stepMicrosec,10);this.hour_slider&&(this.control.options(this,this.hour_slider,"hour",{min:this._defaults.hourMin,max:d,step:this._defaults.stepHour}),this.control.value(this,this.hour_slider,"hour",this.hour-this.hour%this._defaults.stepHour)),this.minute_slider&&(this.control.options(this,this.minute_slider,"minute",{min:this._defaults.minuteMin,max:u,step:this._defaults.stepMinute}),this.control.value(this,this.minute_slider,"minute",this.minute-this.minute%this._defaults.stepMinute)),this.second_slider&&(this.control.options(this,this.second_slider,"second",{min:this._defaults.secondMin,max:p,step:this._defaults.stepSecond}),this.control.value(this,this.second_slider,"second",this.second-this.second%this._defaults.stepSecond)),this.millisec_slider&&(this.control.options(this,this.millisec_slider,"millisec",{min:this._defaults.millisecMin,max:h,step:this._defaults.stepMillisec}),this.control.value(this,this.millisec_slider,"millisec",this.millisec-this.millisec%this._defaults.stepMillisec)),this.microsec_slider&&(this.control.options(this,this.microsec_slider,"microsec",{min:this._defaults.microsecMin,max:m,step:this._defaults.stepMicrosec}),this.control.value(this,this.microsec_slider,"microsec",this.microsec-this.microsec%this._defaults.stepMicrosec))}}},_onTimeChange:function(){if(this._defaults.showTimepicker){var t=!!this.hour_slider&&this.control.value(this,this.hour_slider,"hour"),e=!!this.minute_slider&&this.control.value(this,this.minute_slider,"minute"),s=!!this.second_slider&&this.control.value(this,this.second_slider,"second"),a=!!this.millisec_slider&&this.control.value(this,this.millisec_slider,"millisec"),i=!!this.microsec_slider&&this.control.value(this,this.microsec_slider,"microsec"),n=!!this.timezone_select&&this.timezone_select.val(),o=this._defaults,l=o.pickerTimeFormat||o.timeFormat,r=o.pickerTimeSuffix||o.timeSuffix;"object"==typeof t&&(t=!1),"object"==typeof e&&(e=!1),"object"==typeof s&&(s=!1),"object"==typeof a&&(a=!1),"object"==typeof i&&(i=!1),"object"==typeof n&&(n=!1),!1!==t&&(t=parseInt(t,10)),!1!==e&&(e=parseInt(e,10)),!1!==s&&(s=parseInt(s,10)),!1!==a&&(a=parseInt(a,10)),!1!==i&&(i=parseInt(i,10)),!1!==n&&(n=n.toString());var c=o[t<12?"amNames":"pmNames"][0],d=t!==parseInt(this.hour,10)||e!==parseInt(this.minute,10)||s!==parseInt(this.second,10)||a!==parseInt(this.millisec,10)||i!==parseInt(this.microsec,10)||0<this.ampm.length&&t<12!=(-1!==$.inArray(this.ampm.toUpperCase(),this.amNames))||null!==this.timezone&&n!==this.timezone.toString();if(d&&(!1!==t&&(this.hour=t),!1!==e&&(this.minute=e),!1!==s&&(this.second=s),!1!==a&&(this.millisec=a),!1!==i&&(this.microsec=i),!1!==n&&(this.timezone=n),this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),this._limitMinMaxDateTime(this.inst,!0)),this.support.ampm&&(this.ampm=c),this.formattedTime=$.datepicker.formatTime(o.timeFormat,this,o),this.$timeObj&&(l===o.timeFormat?this.$timeObj.val(this.formattedTime+r):this.$timeObj.val($.datepicker.formatTime(l,this,o)+r),this.$timeObj[0].setSelectionRange)){var u=this.$timeObj[0].selectionStart,p=this.$timeObj[0].selectionEnd;this.$timeObj[0].setSelectionRange(u,p)}this.timeDefined=!0,d&&this._updateDateTime()}},_onSelectHandler:function(){var t=this._defaults.onSelect||this.inst.settings.onSelect,e=this.$input?this.$input[0]:null;t&&e&&t.apply(e,[this.formattedDateTime,this])},_updateDateTime:function(t){var e=0<(t=this.inst||t).currentYear?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(t.selectedYear,t.selectedMonth,t.selectedDay),s=$.datepicker._daylightSavingAdjust(e),a=$.datepicker._get(t,"dateFormat"),i=$.datepicker._getFormatConfig(t),n=null!==s&&this.timeDefined;this.formattedDate=$.datepicker.formatDate(a,null===s?new Date:s,i);var o=this.formattedDate;if(""===t.lastVal&&(t.currentYear=t.selectedYear,t.currentMonth=t.selectedMonth,t.currentDay=t.selectedDay),!0===this._defaults.timeOnly&&!1===this._defaults.timeOnlyShowDate?o=this.formattedTime:(!0!==this._defaults.timeOnly&&(this._defaults.alwaysSetTime||n)||!0===this._defaults.timeOnly&&!0===this._defaults.timeOnlyShowDate)&&(o+=this._defaults.separator+this.formattedTime+this._defaults.timeSuffix),this.formattedDateTime=o,this._defaults.showTimepicker)if(this.$altInput&&!1===this._defaults.timeOnly&&!0===this._defaults.altFieldTimeOnly)this.$altInput.val(this.formattedTime),this.$input.val(this.formattedDate);else if(this.$altInput){this.$input.val(o);var l="",r=null!==this._defaults.altSeparator?this._defaults.altSeparator:this._defaults.separator,c=null!==this._defaults.altTimeSuffix?this._defaults.altTimeSuffix:this._defaults.timeSuffix;this._defaults.timeOnly||(l=this._defaults.altFormat?$.datepicker.formatDate(this._defaults.altFormat,null===s?new Date:s,i):this.formattedDate)&&(l+=r),null!==this._defaults.altTimeFormat?l+=$.datepicker.formatTime(this._defaults.altTimeFormat,this,this._defaults)+c:l+=this.formattedTime+c,this.$altInput.val(l)}else this.$input.val(o);else this.$input.val(this.formattedDate);this.$input.trigger("change")},_onFocus:function(){if(!this.$input.val()&&this._defaults.defaultValue){this.$input.val(this._defaults.defaultValue);var t=$.datepicker._getInst(this.$input.get(0)),e=$.datepicker._get(t,"timepicker");if(e&&e._defaults.timeOnly&&t.input.val()!==t.lastVal)try{$.datepicker._updateDatepicker(t)}catch(t){$.timepicker.log(t)}}},_controls:{slider:{create:function(s,t,a,e,i,n,o){var l=s._defaults.isRTL;return t.prop("slide",null).slider({orientation:"horizontal",value:l?-1*e:e,min:l?-1*n:i,max:l?-1*i:n,step:o,slide:function(t,e){s.control.value(s,$(this),a,l?-1*e.value:e.value),s._onTimeChange()},stop:function(t,e){s._onSelectHandler()}})},options:function(t,e,s,a,i){if(t._defaults.isRTL){if("string"==typeof a)return"min"===a||"max"===a?void 0!==i?e.slider(a,-1*i):Math.abs(e.slider(a)):e.slider(a);var n=a.min,o=a.max;return a.min=a.max=null,void 0!==n&&(a.max=-1*n),void 0!==o&&(a.min=-1*o),e.slider(a)}return"string"==typeof a&&void 0!==i?e.slider(a,i):e.slider(a)},value:function(t,e,s,a){return t._defaults.isRTL?void 0!==a?e.slider("value",-1*a):Math.abs(e.slider("value")):void 0!==a?e.slider("value",a):e.slider("value")}},select:{create:function(e,t,s,a,i,n,o){for(var l='<select class="ui-timepicker-select ui-state-default ui-corner-all" data-unit="'+s+'" data-min="'+i+'" data-max="'+n+'" data-step="'+o+'">',r=e._defaults.pickerTimeFormat||e._defaults.timeFormat,c=i;c<=n;c+=o)l+='<option value="'+c+'"'+(c===a?" selected":"")+">",l+="hour"===s?$.datepicker.formatTime($.trim(r.replace(/[^ht ]/gi,"")),{hour:c},e._defaults):"millisec"===s||"microsec"===s||10<=c?c:"0"+c.toString(),l+="</option>";return l+="</select>",t.children("select").remove(),$(l).appendTo(t).change(function(t){e._onTimeChange(),e._onSelectHandler(),e._afterInject()}),t},options:function(t,e,s,a,i){var n={},o=e.children("select");if("string"==typeof a){if(void 0===i)return o.data(a);n[a]=i}else n=a;return t.control.create(t,e,o.data("unit"),o.val(),0<=n.min?n.min:o.data("min"),n.max||o.data("max"),n.step||o.data("step"))},value:function(t,e,s,a){var i=e.children("select");return void 0!==a?i.val(a):i.val()}}}}),$.fn.extend({timepicker:function(t){t=t||{};var e=Array.prototype.slice.call(arguments);return"object"==typeof t&&(e[0]=$.extend(t,{timeOnly:!0})),$(this).each(function(){$.fn.datetimepicker.apply($(this),e)})},datetimepicker:function(e){var s=arguments;return"string"==typeof(e=e||{})?"getDate"===e||"option"===e&&2===s.length&&"string"==typeof s[1]?$.fn.datepicker.apply($(this[0]),s):this.each(function(){var t=$(this);t.datepicker.apply(t,s)}):this.each(function(){var t=$(this);t.datepicker($.timepicker._newInst(t,e)._defaults)})}}),$.datepicker.parseDateTime=function(t,e,s,a,i){var n=parseDateTimeInternal(t,e,s,a,i);if(n.timeObj){var o=n.timeObj;n.date.setHours(o.hour,o.minute,o.second,o.millisec),n.date.setMicroseconds(o.microsec)}return n.date},$.datepicker.parseTime=function(t,e,s){function i(t,e,s){var a,i="^"+t.toString().replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(t){var e=t.length;switch(t.charAt(0).toLowerCase()){case"h":case"m":case"s":return 1===e?"(\\d?\\d)":"(\\d{"+e+"})";case"l":case"c":return"(\\d?\\d?\\d)";case"z":return"(z|[-+]\\d\\d:?\\d\\d|\\S+)?";case"t":return function(t,e){var s=[];return t&&$.merge(s,t),e&&$.merge(s,e),"("+(s=$.map(s,function(t){return t.replace(/[.*+?|()\[\]{}\\]/g,"\\amp;")})).join("|")+")?"}(s.amNames,s.pmNames);default:return"("+t.replace(/\'/g,"").replace(/(\.|\$|\^|\\|\/|\(|\)|\[|\]|\?|\+|\*)/g,function(t){return"\\"+t})+")?"}}).replace(/\s/g,"\\s?")+s.timeSuffix+"quot;,n=function(t){var e=t.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),s={h:-1,m:-1,s:-1,l:-1,c:-1,t:-1,z:-1};if(e)for(var a=0;a<e.length;a++)-1===s[e[a].toString().charAt(0)]&&(s[e[a].toString().charAt(0)]=a+1);return s}(t),o="",l={hour:0,minute:0,second:0,millisec:0,microsec:0};return!!(a=e.match(new RegExp(i,"i")))&&(-1!==n.t&&(void 0===a[n.t]||0===a[n.t].length?(o="",l.ampm=""):(o=-1!==$.inArray(a[n.t].toUpperCase(),$.map(s.amNames,function(t,e){return t.toUpperCase()}))?"AM":"PM",l.ampm=s["AM"===o?"amNames":"pmNames"][0])),-1!==n.h&&("AM"===o&&"12"===a[n.h]?l.hour=0:"PM"===o&&"12"!==a[n.h]?l.hour=parseInt(a[n.h],10)+12:l.hour=Number(a[n.h])),-1!==n.m&&(l.minute=Number(a[n.m])),-1!==n.s&&(l.second=Number(a[n.s])),-1!==n.l&&(l.millisec=Number(a[n.l])),-1!==n.c&&(l.microsec=Number(a[n.c])),-1!==n.z&&void 0!==a[n.z]&&(l.timezone=$.timepicker.timezoneOffsetNumber(a[n.z])),l)}var a=extendRemove(extendRemove({},$.timepicker._defaults),s||{});t.replace(/\'.*?\'/g,"").indexOf("Z");return"function"==typeof a.parse?a.parse(t,e,a):"loose"===a.parse?function(e,s,a){try{var t=new Date("2012-01-01 "+s);if(isNaN(t.getTime())&&(t=new Date("2012-01-01T"+s),isNaN(t.getTime())&&(t=new Date("01/01/2012 "+s),isNaN(t.getTime()))))throw"Unable to parse time with native Date: "+s;return{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisec:t.getMilliseconds(),microsec:t.getMicroseconds(),timezone:-1*t.getTimezoneOffset()}}catch(t){try{return i(e,s,a)}catch(t){$.timepicker.log("Unable to parse \ntimeString: "+s+"\ntimeFormat: "+e)}}return!1}(t,e,a):i(t,e,a)},$.datepicker.formatTime=function(t,e,s){s=s||{},s=$.extend({},$.timepicker._defaults,s),e=$.extend({hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null},e);var a=t,i=s.amNames[0],n=parseInt(e.hour,10);return 11<n&&(i=s.pmNames[0]),a=a.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g,function(t){switch(t){case"HH":return("0"+n).slice(-2);case"H":return n;case"hh":return("0"+convert24to12(n)).slice(-2);case"h":return convert24to12(n);case"mm":return("0"+e.minute).slice(-2);case"m":return e.minute;case"ss":return("0"+e.second).slice(-2);case"s":return e.second;case"l":return("00"+e.millisec).slice(-3);case"c":return("00"+e.microsec).slice(-3);case"z":return $.timepicker.timezoneOffsetString(null===e.timezone?s.timezone:e.timezone,!1);case"Z":return $.timepicker.timezoneOffsetString(null===e.timezone?s.timezone:e.timezone,!0);case"T":return i.charAt(0).toUpperCase();case"TT":return i.toUpperCase();case"t":return i.charAt(0).toLowerCase();case"tt":return i.toLowerCase();default:return t.replace(/'/g,"")}})},$.datepicker._base_selectDate=$.datepicker._selectDate,$.datepicker._selectDate=function(t,e){var s,a=this._getInst($(t)[0]),i=this._get(a,"timepicker");i&&a.settings.showTimepicker?(i._limitMinMaxDateTime(a,!0),s=a.inline,a.inline=a.stay_open=!0,this._base_selectDate(t,e),a.inline=s,a.stay_open=!1,this._notifyChange(a),this._updateDatepicker(a)):this._base_selectDate(t,e)},$.datepicker._base_updateDatepicker=$.datepicker._updateDatepicker,$.datepicker._updateDatepicker=function(t){var e=t.input[0];if(!($.datepicker._curInst&&$.datepicker._curInst!==t&&$.datepicker._datepickerShowing&&$.datepicker._lastInput!==e||"boolean"==typeof t.stay_open&&!1!==t.stay_open)){this._base_updateDatepicker(t);var s=this._get(t,"timepicker");s&&s._addTimePicker(t)}},$.datepicker._base_doKeyPress=$.datepicker._doKeyPress,$.datepicker._doKeyPress=function(t){var e=$.datepicker._getInst(t.target),s=$.datepicker._get(e,"timepicker");if(s&&$.datepicker._get(e,"constrainInput")){var a=s.support.ampm,i=null!==s._defaults.showTimezone?s._defaults.showTimezone:s.support.timezone,n=$.datepicker._possibleChars($.datepicker._get(e,"dateFormat")),o=s._defaults.timeFormat.toString().replace(/[hms]/g,"").replace(/TT/g,a?"APM":"").replace(/Tt/g,a?"AaPpMm":"").replace(/tT/g,a?"AaPpMm":"").replace(/T/g,a?"AP":"").replace(/tt/g,a?"apm":"").replace(/t/g,a?"ap":"")+" "+s._defaults.separator+s._defaults.timeSuffix+(i?s._defaults.timezoneList.join(""):"")+s._defaults.amNames.join("")+s._defaults.pmNames.join("")+n,l=String.fromCharCode(void 0===t.charCode?t.keyCode:t.charCode);return t.ctrlKey||l<" "||!n||-1<o.indexOf(l)}return $.datepicker._base_doKeyPress(t)},$.datepicker._base_updateAlternate=$.datepicker._updateAlternate,$.datepicker._updateAlternate=function(t){var e=this._get(t,"timepicker");if(e){var s=e._defaults.altField;if(s){e._defaults.altFormat||e._defaults.dateFormat;var a=this._getDate(t),i=$.datepicker._getFormatConfig(t),n="",o=e._defaults.altSeparator?e._defaults.altSeparator:e._defaults.separator,l=e._defaults.altTimeSuffix?e._defaults.altTimeSuffix:e._defaults.timeSuffix,r=null!==e._defaults.altTimeFormat?e._defaults.altTimeFormat:e._defaults.timeFormat;n+=$.datepicker.formatTime(r,e,e._defaults)+l,e._defaults.timeOnly||e._defaults.altFieldTimeOnly||null===a||(n=e._defaults.altFormat?$.datepicker.formatDate(e._defaults.altFormat,a,i)+o+n:e.formattedDate+o+n),$(s).val(t.input.val()?n:"")}}else $.datepicker._base_updateAlternate(t)},$.datepicker._base_doKeyUp=$.datepicker._doKeyUp,$.datepicker._doKeyUp=function(t){var e=$.datepicker._getInst(t.target),s=$.datepicker._get(e,"timepicker");if(s&&s._defaults.timeOnly&&e.input.val()!==e.lastVal)try{$.datepicker._updateDatepicker(e)}catch(t){$.timepicker.log(t)}return $.datepicker._base_doKeyUp(t)},$.datepicker._base_gotoToday=$.datepicker._gotoToday,$.datepicker._gotoToday=function(t){var e=this._getInst($(t)[0]);this._base_gotoToday(t);var s=this._get(e,"timepicker");if(s){var a=$.timepicker.timezoneOffsetNumber(s.timezone),i=new Date;i.setMinutes(i.getMinutes()+i.getTimezoneOffset()+parseInt(a,10)),this._setTime(e,i),this._setDate(e,i),s._onSelectHandler()}},$.datepicker._disableTimepickerDatepicker=function(t){var e=this._getInst(t);if(e){var s=this._get(e,"timepicker");$(t).datepicker("getDate"),s&&(e.settings.showTimepicker=!1,s._defaults.showTimepicker=!1,s._updateDateTime(e))}},$.datepicker._enableTimepickerDatepicker=function(t){var e=this._getInst(t);if(e){var s=this._get(e,"timepicker");$(t).datepicker("getDate"),s&&(e.settings.showTimepicker=!0,s._defaults.showTimepicker=!0,s._addTimePicker(e),s._updateDateTime(e))}},$.datepicker._setTime=function(t,e){var s=this._get(t,"timepicker");if(s){var a=s._defaults;s.hour=e?e.getHours():a.hour,s.minute=e?e.getMinutes():a.minute,s.second=e?e.getSeconds():a.second,s.millisec=e?e.getMilliseconds():a.millisec,s.microsec=e?e.getMicroseconds():a.microsec,s._limitMinMaxDateTime(t,!0),s._onTimeChange(),s._updateDateTime(t)}},$.datepicker._setTimeDatepicker=function(t,e,s){var a=this._getInst(t);if(a){var i,n=this._get(a,"timepicker");if(n)this._setDateFromField(a),e&&("string"==typeof e?(n._parseTime(e,s),(i=new Date).setHours(n.hour,n.minute,n.second,n.millisec),i.setMicroseconds(n.microsec)):(i=new Date(e.getTime())).setMicroseconds(e.getMicroseconds()),"Invalid Date"===i.toString()&&(i=void 0),this._setTime(a,i))}},$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker,$.datepicker._setDateDatepicker=function(t,e){var s=this._getInst(t),a=e;if(s){"string"==typeof e&&((a=new Date(e)).getTime()||(this._base_setDateDatepicker.apply(this,arguments),a=$(t).datepicker("getDate")));var i,n=this._get(s,"timepicker");a instanceof Date?(i=new Date(a.getTime())).setMicroseconds(a.getMicroseconds()):i=a,n&&i&&(n.support.timezone||null!==n._defaults.timezone||(n.timezone=-1*i.getTimezoneOffset()),a=$.timepicker.timezoneAdjust(a,$.timepicker.timezoneOffsetString(-a.getTimezoneOffset()),n.timezone),i=$.timepicker.timezoneAdjust(i,$.timepicker.timezoneOffsetString(-i.getTimezoneOffset()),n.timezone)),this._updateDatepicker(s),this._base_setDateDatepicker.apply(this,arguments),this._setTimeDatepicker(t,i,!0)}},$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker,$.datepicker._getDateDatepicker=function(t,e){var s=this._getInst(t);if(s){var a=this._get(s,"timepicker");if(a){void 0===s.lastVal&&this._setDateFromField(s,e);var i=this._getDate(s),n=null;return n=a.$altInput&&a._defaults.altFieldTimeOnly?a.$input.val()+" "+a.$altInput.val():"INPUT"!==a.$input.get(0).tagName&&a.$altInput?a.$altInput.val():a.$input.val(),i&&a._parseTime(n,!s.settings.timeOnly)&&(i.setHours(a.hour,a.minute,a.second,a.millisec),i.setMicroseconds(a.microsec),null!=a.timezone&&(a.support.timezone||null!==a._defaults.timezone||(a.timezone=-1*i.getTimezoneOffset()),i=$.timepicker.timezoneAdjust(i,a.timezone,$.timepicker.timezoneOffsetString(-i.getTimezoneOffset())))),i}return this._base_getDateDatepicker(t,e)}},$.datepicker._base_parseDate=$.datepicker.parseDate,$.datepicker.parseDate=function(e,s,a){var i;try{i=this._base_parseDate(e,s,a)}catch(t){if(!(0<=t.indexOf(":")))throw t;i=this._base_parseDate(e,s.substring(0,s.length-(t.length-t.indexOf(":")-2)),a),$.timepicker.log("Error parsing the date string: "+t+"\ndate string = "+s+"\ndate format = "+e)}return i},$.datepicker._base_formatDate=$.datepicker._formatDate,$.datepicker._formatDate=function(t,e,s,a){var i=this._get(t,"timepicker");return i?(i._updateDateTime(t),i.$input.val()):this._base_formatDate(t)},$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker,$.datepicker._optionDatepicker=function(t,e,s){var a,i=this._getInst(t);if(!i)return null;var n=this._get(i,"timepicker");if(n){var o,l,r,c,d=null,u=null,p=null,h=n._defaults.evnts,m={};if("string"==typeof e){if("minDate"===e||"minDateTime"===e)d=s;else if("maxDate"===e||"maxDateTime"===e)u=s;else if("onSelect"===e)p=s;else if(h.hasOwnProperty(e)){if(void 0===s)return h[e];m[e]=s,a={}}}else if("object"==typeof e)for(o in e.minDate?d=e.minDate:e.minDateTime?d=e.minDateTime:e.maxDate?u=e.maxDate:e.maxDateTime&&(u=e.maxDateTime),h)h.hasOwnProperty(o)&&e[o]&&(m[o]=e[o]);for(o in m)m.hasOwnProperty(o)&&(h[o]=m[o],delete(a=a||$.extend({},e))[o]);if(a&&isEmptyObject(a))return;if(d?(d=0===d?new Date:new Date(d),n._defaults.minDate=d,n._defaults.minDateTime=d):u?(u=0===u?new Date:new Date(u),n._defaults.maxDate=u,n._defaults.maxDateTime=u):p&&(n._defaults.onSelect=p),d||u)return r=(c=$(t)).datetimepicker("getDate"),l=this._base_optionDatepicker.call($.datepicker,t,a||e,s),c.datetimepicker("setDate",r),l}return void 0===s?this._base_optionDatepicker.call($.datepicker,t,e):this._base_optionDatepicker.call($.datepicker,t,a||e,s)};var isEmptyObject=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},extendRemove=function(t,e){for(var s in $.extend(t,e),e)null!==e[s]&&void 0!==e[s]||(t[s]=e[s]);return t},detectSupport=function(t){function e(t,e){return-1!==t.indexOf(e)}var s=t.replace(/'.*?'/g,"").toLowerCase();return{hour:e(s,"h"),minute:e(s,"m"),second:e(s,"s"),millisec:e(s,"l"),microsec:e(s,"c"),timezone:e(s,"z"),ampm:e(s,"t")&&e(t,"h"),iso8601:e(t,"Z")}},convert24to12=function(t){return 0===(t%=12)&&(t=12),String(t)},computeEffectiveSetting=function(t,e){return t&&t[e]?t[e]:$.timepicker._defaults[e]},splitDateTime=function(t,e){var s=computeEffectiveSetting(e,"separator"),a=computeEffectiveSetting(e,"timeFormat").split(s).length,i=t.split(s),n=i.length;return 1<n?{dateString:i.splice(0,n-a).join(s),timeString:i.splice(0,a).join(s)}:{dateString:t,timeString:""}},parseDateTimeInternal=function(t,e,s,a,i){var n,o,l;if(o=splitDateTime(s,i),n=$.datepicker._base_parseDate(t,o.dateString,a),""===o.timeString)return{date:n};if(!(l=$.datepicker.parseTime(e,o.timeString,i)))throw"Wrong time format";return{date:n,timeObj:l}},selectLocalTimezone=function(t,e){if(t&&t.timezone_select){var s=e||new Date;t.timezone_select.val(-s.getTimezoneOffset())}};$.timepicker=new Timepicker,$.timepicker.timezoneOffsetString=function(t,e){if(isNaN(t)||840<t||t<-720)return t;var s=t%60,a=(t-s)/60,i=e?":":"",n=(0<=t?"+":"-")+("0"+Math.abs(a)).slice(-2)+i+("0"+Math.abs(s)).slice(-2);return"+00:00"==n?"Z":n},$.timepicker.timezoneOffsetNumber=function(t){var e=t.toString().replace(":","");return"Z"===e.toUpperCase()?0:/^(\-|\+)\d{4}#x2F;.test(e)?("-"===e.substr(0,1)?-1:1)*(60*parseInt(e.substr(1,2),10)+parseInt(e.substr(3,2),10)):parseInt(t,10)},$.timepicker.timezoneAdjust=function(t,e,s){var a=$.timepicker.timezoneOffsetNumber(e),i=$.timepicker.timezoneOffsetNumber(s);return isNaN(i)||t.setMinutes(t.getMinutes()+-a- -i),t},$.timepicker.timeRange=function(t,e,s){return $.timepicker.handleRange("timepicker",t,e,s)},$.timepicker.datetimeRange=function(t,e,s){$.timepicker.handleRange("datetimepicker",t,e,s)},$.timepicker.dateRange=function(t,e,s){$.timepicker.handleRange("datepicker",t,e,s)},$.timepicker.handleRange=function(l,r,c,d){d=$.extend({},{minInterval:0,maxInterval:0,start:{},end:{}},d);var t=!1;function s(t,e){var s=r[l]("getDate"),a=c[l]("getDate"),i=t[l]("getDate");if(null!==s){var n=new Date(s.getTime()),o=new Date(s.getTime());n.setMilliseconds(n.getMilliseconds()+d.minInterval),o.setMilliseconds(o.getMilliseconds()+d.maxInterval),0<d.minInterval&&a<n?c[l]("setDate",n):0<d.maxInterval&&o<a?c[l]("setDate",o):a<s&&e[l]("setDate",i)}}function e(t,e,s){if(t.val()){var a=t[l].call(t,"getDate");null!==a&&0<d.minInterval&&("minDate"===s&&a.setMilliseconds(a.getMilliseconds()+d.minInterval),"maxDate"===s&&a.setMilliseconds(a.getMilliseconds()-d.minInterval)),a.getTime&&e[l].call(e,"option",s,a)}}return"timepicker"===l&&(t=!0,l="datetimepicker"),$.fn[l].call(r,$.extend({timeOnly:t,onClose:function(t,e){s($(this),c)},onSelect:function(t){e($(this),c,"minDate")}},d,d.start)),$.fn[l].call(c,$.extend({timeOnly:t,onClose:function(t,e){s($(this),r)},onSelect:function(t){e($(this),r,"maxDate")}},d,d.end)),s(r,c),e(r,c,"minDate"),e(c,r,"maxDate"),$([r.get(0),c.get(0)])},$.timepicker.log=function(){window.console&&window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,Array.prototype.slice.call(arguments))},$.timepicker._util={_extendRemove:extendRemove,_isEmptyObject:isEmptyObject,_convert24to12:convert24to12,_detectSupport:detectSupport,_selectLocalTimezone:selectLocalTimezone,_computeEffectiveSetting:computeEffectiveSetting,_splitDateTime:splitDateTime,_parseDateTimeInternal:parseDateTimeInternal},Date.prototype.getMicroseconds||(Date.prototype.microseconds=0,Date.prototype.getMicroseconds=function(){return this.microseconds},Date.prototype.setMicroseconds=function(t){return this.setMilliseconds(this.getMilliseconds()+Math.floor(t/1e3)),this.microseconds=t%1e3,this}),$.timepicker.version="1.6.3"}}),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");function date(t,e){function s(t,e){return n[t]?n[t]():e}function a(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}var i,n,o=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"],l=/\\?(.?)/gi;n={d:function(){return a(n.j(),2)},D:function(){return n.l().slice(0,3)},j:function(){return i.getDate()},l:function(){return o[n.w()]+"day"},N:function(){return n.w()||7},S:function(){var t=n.j(),e=t%10;return e<=3&&1===parseInt(t%100/10,10)&&(e=0),["st","nd","rd"][e-1]||"th"},w:function(){return i.getDay()},z:function(){var t=new Date(n.Y(),n.n()-1,n.j()),e=new Date(n.Y(),0,1);return Math.round((t-e)/864e5)},W:function(){var t=new Date(n.Y(),n.n()-1,n.j()-n.N()+3),e=new Date(t.getFullYear(),0,4);return a(1+Math.round((t-e)/864e5/7),2)},F:function(){return o[6+n.n()]},m:function(){return a(n.n(),2)},M:function(){return n.F().slice(0,3)},n:function(){return i.getMonth()+1},t:function(){return new Date(n.Y(),n.n(),0).getDate()},L:function(){var t=n.Y();return t%4==0&t%100!=0|t%400==0},o:function(){var t=n.n(),e=n.W();return n.Y()+(12===t&&e<9?1:1===t&&9<e?-1:0)},Y:function(){return i.getFullYear()},y:function(){return n.Y().toString().slice(-2)},a:function(){return 11<i.getHours()?"pm":"am"},A:function(){return n.a().toUpperCase()},B:function(){var t=3600*i.getUTCHours(),e=60*i.getUTCMinutes(),s=i.getUTCSeconds();return a(Math.floor((t+e+s+3600)/86.4)%1e3,3)},g:function(){return n.G()%12||12},G:function(){return i.getHours()},h:function(){return a(n.g(),2)},H:function(){return a(n.G(),2)},i:function(){return a(i.getMinutes(),2)},s:function(){return a(i.getSeconds(),2)},u:function(){return a(1e3*i.getMilliseconds(),6)},e:function(){throw new Error("Not supported (see source code of date() for timezone on how to add support)")},I:function(){return new Date(n.Y(),0)-Date.UTC(n.Y(),0)!=new Date(n.Y(),6)-Date.UTC(n.Y(),6)?1:0},O:function(){var t=i.getTimezoneOffset(),e=Math.abs(t);return(0<t?"-":"+")+a(100*Math.floor(e/60)+e%60,4)},P:function(){var t=n.O();return t.substr(0,3)+":"+t.substr(3,2)},T:function(){return"UTC"},Z:function(){return 60*-i.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(l,s)},r:function(){return"D, d M Y H:i:s O".replace(l,s)},U:function(){return i/1e3|0}};var r,c;return r=t,i=void 0===(c=e)?new Date:c instanceof Date?new Date(c):new Date(1e3*c),r.replace(l,s)}function strtotime(t,e){var s,a,i,n,o,l,r,c,d,u;if(!t)return!1;t=t.replace(/^\s+|\s+#x2F;g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase();var p=new RegExp(["^(\\d{1,4})","([\\-\\.\\/:])","(\\d{1,2})","([\\-\\.\\/:])","(\\d{1,4})","(?:\\s(\\d{1,2}):(\\d{2})?:?(\\d{2})?)?","(?:\\s([A-Z]+)?)?quot;].join(""));if((a=t.match(p))&&a[2]===a[4])if(1901<a[1])switch(a[2]){case"-":return!(12<a[3]||31<a[5])&&new Date(a[1],parseInt(a[3],10)-1,a[5],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3;case".":return!1;case"/":return!(12<a[3]||31<a[5])&&new Date(a[1],parseInt(a[3],10)-1,a[5],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3}else if(1901<a[5])switch(a[2]){case"-":case".":return!(12<a[3]||31<a[1])&&new Date(a[5],parseInt(a[3],10)-1,a[1],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3;case"/":return!(12<a[1]||31<a[3])&&new Date(a[5],parseInt(a[1],10)-1,a[3],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3}else switch(a[2]){case"-":return!(12<a[3]||31<a[5]||a[1]<70&&38<a[1])&&(n=0<=a[1]&&a[1]<=38?+a[1]+2e3:a[1],new Date(n,parseInt(a[3],10)-1,a[5],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3);case".":return 70<=a[5]?!(12<a[3]||31<a[1])&&new Date(a[5],parseInt(a[3],10)-1,a[1],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3:a[5]<60&&!a[6]&&(!(23<a[1]||59<a[3])&&(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),a[1]||0,a[3]||0,a[5]||0,a[9]||0)/1e3));case"/":return!(12<a[1]||31<a[3]||a[5]<70&&38<a[5])&&(n=0<=a[5]&&a[5]<=38?+a[5]+2e3:a[5],new Date(n,parseInt(a[1],10)-1,a[3],a[6]||0,a[7]||0,a[8]||0,a[9]||0)/1e3);case":":return!(23<a[1]||59<a[3]||59<a[5])&&(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),a[1]||0,a[3]||0,a[5]||0)/1e3)}if("now"===t)return null===e||isNaN(e)?(new Date).getTime()/1e3|0:0|e;if(!isNaN(s=Date.parse(t)))return s/1e3|0;if(p=new RegExp(["^([0-9]{4}-[0-9]{2}-[0-9]{2})","[ t]","([0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?)","([\\+-][0-9]{2}(:[0-9]{2})?|z)"].join("")),(a=t.match(p))&&("z"===a[4]?a[4]="Z":a[4].match(/^([\+-][0-9]{2})#x2F;)&&(a[4]=a[4]+":00"),!isNaN(s=Date.parse(a[1]+"T"+a[2]+a[4]))))return s/1e3|0;function h(t){var e=t.split(" "),s=e[0],a=e[1].substring(0,3),i=/\d+/.test(s),n=("last"===s?-1:1)*("ago"===e[2]?-1:1);if(i&&(n*=parseInt(s,10)),r.hasOwnProperty(a)&&!e[1].match(/^mon(day|\.)?#x2F;i))return o["set"+r[a]](o["get"+r[a]]()+n);if("wee"===a)return o.setDate(o.getDate()+7*n);if("next"===s||"last"===s)!function(t,e,s){var a,i=l[e];void 0!==i&&(0===(a=i-o.getDay())?a=7*s:0<a&&"last"===t?a-=7:a<0&&"next"===t&&(a+=7),o.setDate(o.getDate()+a))}(s,a,n);else if(!i)return!1;return!0}if(o=e?new Date(1e3*e):new Date,l={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},r={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},"([+-]?\\d+\\s"+(d="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)")+"|(last|next)\\s"+d+")(\\sago)?",!(a=t.match(new RegExp("([+-]?\\d+\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)|(last|next)\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?))(\\sago)?","gi"))))return!1;for(u=0,c=a.length;u<c;u++)if(!h(a[u]))return!1;return o.getTime()/1e3}function fallbackMessage(t){var e="cut"===t?"X":"C";return/iPhone|iPad/i.test(navigator.userAgent)?objectL10n.yopPollParams.copyToClipboardError.noSupport:/Mac/i.test(navigator.userAgent)?objectL10n.yopPollParams.copyToClipboardError.press+" ⌘-"+e+objectL10n.yopPollParams.copyToClipboardError.copy:objectL10n.yopPollParams.copyToClipboardError.press+" Ctrl-"+e+objectL10n.yopPollParams.copyToClipboardError.copy}if(!function(a){"use strict";a.fn.emulateTransitionEnd=function(t){var e=!1,s=this;a(this).one(a.support.transition.end,function(){e=!0});return setTimeout(function(){e||a(s).trigger(a.support.transition.end)},t),this},a(function(){a.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var s in e)if(void 0!==t.style[s])return{end:e[s]}}()})}(jQuery),function(n){"use strict";function a(t){n(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';a.prototype.close=function(t){var e=n(this),s=e.attr("data-target");s=s||(s=e.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"");var a=n(s);function i(){a.trigger("closed.bs.alert").remove()}t&&t.preventDefault(),a.length||(a=e.hasClass("alert")?e:e.parent()),a.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),n.support.transition&&a.hasClass("fade")?a.one(n.support.transition.end,i).emulateTransitionEnd(150):i())};var t=n.fn.alert;n.fn.alert=function(s){return this.each(function(){var t=n(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof s&&e[s].call(t)})},n.fn.alert.Constructor=a,n.fn.alert.noConflict=function(){return n.fn.alert=t,this},n(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(i){"use strict";var n=function(t,e){this.$element=i(t),this.options=i.extend({},n.DEFAULTS,e)};n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var e="disabled",s=this.$element,a=s.is("input")?"val":"html",i=s.data();t+="Text",i.resetText||s.data("resetText",s[a]()),s[a](i[t]||this.options[t]),setTimeout(function(){"loadingText"==t?s.addClass(e).attr(e,e):s.removeClass(e).removeAttr(e)},0)},n.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons"]'),e=!0;if(t.length){var s=this.$element.find("input");"radio"===s.prop("type")&&(s.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&s.prop("checked",!this.$element.hasClass("active")).trigger("change")}e&&this.$element.toggleClass("active")};var t=i.fn.button;i.fn.button=function(a){return this.each(function(){var t=i(this),e=t.data("bs.button"),s="object"==typeof a&&a;e||t.data("bs.button",e=new n(this,s)),"toggle"==a?e.toggle():a&&e.setState(a)})},i.fn.button.Constructor=n,i.fn.button.noConflict=function(){return i.fn.button=t,this},i(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var e=i(t.target);e.hasClass("btn")||(e=e.closest(".btn")),e.button("toggle"),t.preventDefault()})}(jQuery),function(c){"use strict";function n(t,e){this.$element=c(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",c.proxy(this.pause,this)).on("mouseleave",c.proxy(this.cycle,this))}n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval)),this},n.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},n.prototype.to=function(t){var e=this,s=this.getActiveIndex();if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):s==t?this.pause().cycle():this.slide(s<t?"next":"prev",c(this.$items[t]))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&c.support.transition.end&&(this.$element.trigger(c.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,e){var s=this.$element.find(".item.active"),a=e||s[t](),i=this.interval,n="next"==t?"left":"right",o="next"==t?"first":"last",l=this;if(!a.length){if(!this.options.wrap)return;a=this.$element.find(".item")[o]()}this.sliding=!0,i&&this.pause();var r=c.Event("slide.bs.carousel",{relatedTarget:a[0],direction:n});if(!a.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var t=c(l.$indicators.children()[l.getActiveIndex()]);t&&t.addClass("active")})),c.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(r),r.isDefaultPrevented())return;a.addClass(t),a[0].offsetWidth,s.addClass(n),a.addClass(n),s.one(c.support.transition.end,function(){a.removeClass([t,n].join(" ")).addClass("active"),s.removeClass(["active",n].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(r),r.isDefaultPrevented())return;s.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return i&&this.cycle(),this}};var t=c.fn.carousel;c.fn.carousel=function(i){return this.each(function(){var t=c(this),e=t.data("bs.carousel"),s=c.extend({},n.DEFAULTS,t.data(),"object"==typeof i&&i),a="string"==typeof i?i:s.slide;e||t.data("bs.carousel",e=new n(this,s)),"number"==typeof i?e.to(i):a?e[a]():s.interval&&e.pause().cycle()})},c.fn.carousel.Constructor=n,c.fn.carousel.noConflict=function(){return c.fn.carousel=t,this},c(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var e,s=c(this),a=c(s.attr("data-target")||(e=s.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")),i=c.extend({},a.data(),s.data()),n=s.attr("data-slide-to");n&&(i.interval=!1),a.carousel(i),(n=s.attr("data-slide-to"))&&a.data("bs.carousel").to(n),t.preventDefault()}),c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var t=c(this);t.carousel(t.data())})})}(jQuery),function(c){"use strict";var i=function(t,e){this.$element=c(t),this.options=c.extend({},i.DEFAULTS,e),this.transitioning=null,this.options.parent&&(this.$parent=c(this.options.parent)),this.options.toggle&&this.toggle()};i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=c.Event("show.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.$parent&&this.$parent.find("> .panel > .in");if(e&&e.length){var s=e.data("bs.collapse");if(s&&s.transitioning)return;e.collapse("hide"),s||e.data("bs.collapse",null)}var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("in")[a]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!c.support.transition)return i.call(this);var n=c.camelCase(["scroll",a].join("-"));this.$element.one(c.support.transition.end,c.proxy(i,this)).emulateTransitionEnd(350)[a](this.$element[0][n])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=c.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!c.support.transition)return s.call(this);this.$element[e](0).one(c.support.transition.end,c.proxy(s,this)).emulateTransitionEnd(350)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var t=c.fn.collapse;c.fn.collapse=function(a){return this.each(function(){var t=c(this),e=t.data("bs.collapse"),s=c.extend({},i.DEFAULTS,t.data(),"object"==typeof a&&a);e||t.data("bs.collapse",e=new i(this,s)),"string"==typeof a&&e[a]()})},c.fn.collapse.Constructor=i,c.fn.collapse.noConflict=function(){return c.fn.collapse=t,this},c(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var e,s=c(this),a=s.attr("data-target")||t.preventDefault()||(e=s.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),i=c(a),n=i.data("bs.collapse"),o=n?"toggle":s.data(),l=s.attr("data-parent"),r=l&&c(l);n&&n.transitioning||(r&&r.find('[data-toggle=collapse][data-parent="'+l+'"]').not(s).addClass("collapsed"),s[i.hasClass("in")?"addClass":"removeClass"]("collapsed")),i.collapse(o)})}(jQuery),function(o){"use strict";function a(t){o(t).on("click.bs.dropdown",this.toggle)}var l="[data-toggle=dropdown]";function i(){o(".dropdown-backdrop").remove(),o(l).each(function(t){var e=r(o(this));e.hasClass("open")&&(e.trigger(t=o.Event("hide.bs.dropdown")),t.isDefaultPrevented()||e.removeClass("open").trigger("hidden.bs.dropdown"))})}function r(t){var e=t.attr("data-target"),s=(e=e||(e=t.attr("href"))&&/#/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&o(e);return s&&s.length?s:t.parent()}a.prototype.toggle=function(t){var e=o(this);if(!e.is(".disabled, :disabled")){var s=r(e),a=s.hasClass("open");if(i(),!a){if("ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&o('<div class="dropdown-backdrop"/>').insertAfter(o(this)).on("click",i),s.trigger(t=o.Event("show.bs.dropdown")),t.isDefaultPrevented())return;s.toggleClass("open").trigger("shown.bs.dropdown"),e.focus()}return!1}},a.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=o(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var s=r(e),a=s.hasClass("open");if(!a||a&&27==t.keyCode)return 27==t.which&&s.find(l).focus(),e.click();var i=o("[role=menu] li:not(.divider):visible a",s);if(i.length){var n=i.index(i.filter(":focus"));38==t.keyCode&&0<n&&n--,40==t.keyCode&&n<i.length-1&&n++,~n||(n=0),i.eq(n).focus()}}}};var t=o.fn.dropdown;o.fn.dropdown=function(s){return this.each(function(){var t=o(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new a(this)),"string"==typeof s&&e[s].call(t)})},o.fn.dropdown.Constructor=a,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=t,this},o(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",l,a.prototype.toggle).on("keydown.bs.dropdown.data-api",l+", [role=menu]",a.prototype.keydown)}(jQuery),function(n){"use strict";function o(t,e){this.options=e,this.$element=n(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)}o.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},o.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},o.prototype.show=function(s){var a=this,t=n.Event("show.bs.modal",{relatedTarget:s});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var t=n.support.transition&&a.$element.hasClass("fade");a.$element.parent().length||a.$element.appendTo("#yop-main-area"),a.$element.show(),t&&a.$element[0].offsetWidth,a.$element.addClass("in").attr("aria-hidden",!1),a.enforceFocus();var e=n.Event("shown.bs.modal",{relatedTarget:s});t?a.$element.find(".modal-dialog").one(n.support.transition.end,function(){a.$element.focus().trigger(e)}).emulateTransitionEnd(300):a.$element.focus().trigger(e)}))},o.prototype.hide=function(t){t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},o.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},o.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},o.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bs.modal")})},o.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},o.prototype.backdrop=function(t){var e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=n.support.transition&&e;if(this.$backdrop=n('<div class="modal-backdrop '+e+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",n.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;s?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var t=n.fn.modal;n.fn.modal=function(a,i){return this.each(function(){var t=n(this),e=t.data("bs.modal"),s=n.extend({},o.DEFAULTS,t.data(),"object"==typeof a&&a);e||t.data("bs.modal",e=new o(this,s)),"string"==typeof a?e[a](i):s.show&&e.show(i)})},n.fn.modal.Constructor=o,n.fn.modal.noConflict=function(){return n.fn.modal=t,this},n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=n(this),s=e.attr("href"),a=n(e.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),i=a.data("modal")?"toggle":n.extend({remote:!/#/.test(s)&&s},a.data(),e.data());t.preventDefault(),a.modal(i,this).one("hide",function(){e.is(":visible")&&e.focus()})}),n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(jQuery),function(f){"use strict";function i(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)}i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},i.prototype.init=function(t,e,s){this.enabled=!0,this.type=t,this.$element=f(e),this.options=this.getOptions(s);for(var a=this.options.trigger.split(" "),i=a.length;i--;){var n=a[i];if("click"==n)this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this));else if("manual"!=n){var o="hover"==n?"mouseenter":"focus",l="hover"==n?"mouseleave":"blur";this.$element.on(o+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,f.proxy(this.leave,this))}}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(t){return(t=f.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},i.prototype.getDelegateOptions=function(){var s={},a=this.getDefaults();return this._options&&f.each(this._options,function(t,e){a[t]!=e&&(s[t]=e)}),s},i.prototype.enter=function(t){var e=t instanceof this.constructor?t:f(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},i.prototype.leave=function(t){var e=t instanceof this.constructor?t:f(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},i.prototype.show=function(){var t=f.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(t),t.isDefaultPrevented())return;var e=this.tip();this.setContent(),this.options.animation&&e.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,i=a.test(s);i&&(s=s.replace(a,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addClass(s),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element);var n=this.getPosition(),o=e[0].offsetWidth,l=e[0].offsetHeight;if(i){var r=this.$element.parent(),c=s,d=document.documentElement.scrollTop||document.body.scrollTop,u="body"==this.options.container?window.innerWidth:r.outerWidth(),p="body"==this.options.container?window.innerHeight:r.outerHeight(),h="body"==this.options.container?0:r.offset().left;s="bottom"==s&&n.top+n.height+l-d>p?"top":"top"==s&&n.top-d-l<0?"bottom":"right"==s&&n.right+o>u?"left":"left"==s&&n.left-o<h?"right":s,e.removeClass(c).addClass(s)}var m=this.getCalculatedOffset(s,n,o,l);this.applyPlacement(m,s),this.$element.trigger("shown.bs."+this.type)}},i.prototype.applyPlacement=function(t,e){var s,a=this.tip(),i=a[0].offsetWidth,n=a[0].offsetHeight,o=parseInt(a.css("margin-top"),10),l=parseInt(a.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(l)&&(l=0),t.top=t.top+o,t.left=t.left+l,a.offset(t).addClass("in");var r=a[0].offsetWidth,c=a[0].offsetHeight;if("top"==e&&c!=n&&(s=!0,t.top=t.top+n-c),/bottom|top/.test(e)){var d=0;t.left<0&&(d=-2*t.left,t.left=0,a.offset(t),r=a[0].offsetWidth,c=a[0].offsetHeight),this.replaceArrow(d-i+r,r,"left")}else this.replaceArrow(c-n,c,"top");s&&a.offset(t)},i.prototype.replaceArrow=function(t,e,s){this.arrow().css(s,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){var t=this,e=this.tip(),s=f.Event("hide.bs."+this.type);function a(){"in"!=t.hoverState&&e.detach()}if(this.$element.trigger(s),!s.isDefaultPrevented())return e.removeClass("in"),f.support.transition&&this.$tip.hasClass("fade")?e.one(f.support.transition.end,a).emulateTransitionEnd(150):a(),this.$element.trigger("hidden.bs."+this.type),this},i.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(){var t=this.$element[0];return f.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},i.prototype.getCalculatedOffset=function(t,e,s,a){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-s/2}:"top"==t?{top:e.top-a,left:e.left+e.width/2-s/2}:"left"==t?{top:e.top+e.height/2-a/2,left:e.left-s}:{top:e.top+e.height/2-a/2,left:e.left+e.width}},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.tip=function(){return this.$tip=this.$tip||f(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(t){var e=t?f(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;e.tip().hasClass("in")?e.leave(e):e.enter(e)},i.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var t=f.fn.tooltip;f.fn.tooltip=function(a){return this.each(function(){var t=f(this),e=t.data("bs.tooltip"),s="object"==typeof a&&a;e||t.data("bs.tooltip",e=new i(this,s)),"string"==typeof a&&e[a]()})},f.fn.tooltip.Constructor=i,f.fn.tooltip.noConflict=function(){return f.fn.tooltip=t,this}}(jQuery),function(i){"use strict";function n(t,e){this.init("popover",t,e)}if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");n.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((n.prototype=i.extend({},i.fn.tooltip.Constructor.prototype)).constructor=n).prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),s=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](s),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},n.prototype.tip=function(){return this.$tip||(this.$tip=i(this.options.template)),this.$tip};var t=i.fn.popover;i.fn.popover=function(a){return this.each(function(){var t=i(this),e=t.data("bs.popover"),s="object"==typeof a&&a;e||t.data("bs.popover",e=new n(this,s)),"string"==typeof a&&e[a]()})},i.fn.popover.Constructor=n,i.fn.popover.noConflict=function(){return i.fn.popover=t,this}}(jQuery),function(n){"use strict";function i(t,e){var s,a=n.proxy(this.process,this);this.$element=n(t).is("body")?n(window):n(t),this.$body=n("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",a),this.options=n.extend({},i.DEFAULTS,e),this.selector=(this.options.target||(s=n(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=n([]),this.targets=n([]),this.activeTarget=null,this.refresh(),this.process()}i.DEFAULTS={offset:10},i.prototype.refresh=function(){var a=this.$element[0]==window?"offset":"position";this.offsets=n([]),this.targets=n([]);var i=this;this.$body.find(this.selector).map(function(){var t=n(this),e=t.data("target")||t.attr("href"),s=/^#\w/.test(e)&&n(e);return s&&s.length&&[[s[a]().top+(!n.isWindow(i.$scrollElement.get(0))&&i.$scrollElement.scrollTop()),e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,s=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),a=this.offsets,i=this.targets,n=this.activeTarget;if(s<=e)return n!=(t=i.last()[0])&&this.activate(t);for(t=a.length;t--;)n!=i[t]&&e>=a[t]&&(!a[t+1]||e<=a[t+1])&&this.activate(i[t])},i.prototype.activate=function(t){this.activeTarget=t,n(this.selector).parents(".active").removeClass("active");var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',s=n(e).parents("li").addClass("active");s.parent(".dropdown-menu").length&&(s=s.closest("li.dropdown").addClass("active")),s.trigger("activate.bs.scrollspy")};var t=n.fn.scrollspy;n.fn.scrollspy=function(a){return this.each(function(){var t=n(this),e=t.data("bs.scrollspy"),s="object"==typeof a&&a;e||t.data("bs.scrollspy",e=new i(this,s)),"string"==typeof a&&e[a]()})},n.fn.scrollspy.Constructor=i,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=t,this},n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(jQuery),function(o){"use strict";function a(t){this.element=o(t)}a.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),s=t.data("target");if(s=s||(s=t.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,""),!t.parent("li").hasClass("active")){var a=e.find(".active:last a")[0],i=o.Event("show.bs.tab",{relatedTarget:a});if(t.trigger(i),!i.isDefaultPrevented()){var n=o(s);this.activate(t.parent("li"),e),this.activate(n,n.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:a})})}}},a.prototype.activate=function(t,e,s){var a=e.find("> .active"),i=s&&o.support.transition&&a.hasClass("fade");function n(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),i?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),s&&s()}i?a.one(o.support.transition.end,n).emulateTransitionEnd(150):n(),a.removeClass("in")};var t=o.fn.tab;o.fn.tab=function(s){return this.each(function(){var t=o(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof s&&e[s]()})},o.fn.tab.Constructor=a,o.fn.tab.noConflict=function(){return o.fn.tab=t,this},o(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),o(this).tab("show")})}(jQuery),function(l){"use strict";var r=function(t,e){this.options=l.extend({},r.DEFAULTS,e),this.$window=l(window).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=this.unpin=null,this.checkPosition()};r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0},r.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=l(document).height(),e=this.$window.scrollTop(),s=this.$element.offset(),a=this.options.offset,i=a.top,n=a.bottom;"object"!=typeof a&&(n=i=a),"function"==typeof i&&(i=a.top()),"function"==typeof n&&(n=a.bottom());var o=!(null!=this.unpin&&e+this.unpin<=s.top)&&(null!=n&&s.top+this.$element.height()>=t-n?"bottom":null!=i&&e<=i&&"top");this.affixed!==o&&(this.unpin&&this.$element.css("top",""),this.affixed=o,this.unpin="bottom"==o?s.top-e:null,this.$element.removeClass(r.RESET).addClass("affix"+(o?"-"+o:"")),"bottom"==o&&this.$element.offset({top:document.body.offsetHeight-n-this.$element.height()}))}};var t=l.fn.affix;l.fn.affix=function(a){return this.each(function(){var t=l(this),e=t.data("bs.affix"),s="object"==typeof a&&a;e||t.data("bs.affix",e=new r(this,s)),"string"==typeof a&&e[a]()})},l.fn.affix.Constructor=r,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),t.affix(e)})})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(k){"use strict";function s(t){var e=t.parent();t.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),e.before(t).remove()}function a(t){var e=t.parent(),s=e.find(".minicolors-panel"),a=t.data("minicolors-settings");!t.data("minicolors-initialized")||t.prop("disabled")||e.hasClass("minicolors-inline")||e.hasClass("minicolors-focus")||(i(),e.addClass("minicolors-focus"),s.stop(!0,!0).fadeIn(a.showSpeed,function(){a.show&&a.show.call(t.get(0))}))}function i(){k(".minicolors-focus").each(function(){var t=k(this),e=t.find(".minicolors-input"),s=t.find(".minicolors-panel"),a=e.data("minicolors-settings");s.fadeOut(a.hideSpeed,function(){a.hide&&a.hide.call(e.get(0)),t.removeClass("minicolors-focus")})})}function n(t,e,s){var a,i,n,o,l=t.parents(".minicolors").find(".minicolors-input"),r=l.data("minicolors-settings"),c=t.find("[class$=-picker]"),d=t.offset().left,u=t.offset().top,p=Math.round(e.pageX-d),h=Math.round(e.pageY-u),m=s?r.animationSpeed:0;e.originalEvent.changedTouches&&(p=e.originalEvent.changedTouches[0].pageX-d,h=e.originalEvent.changedTouches[0].pageY-u),p<0&&(p=0),h<0&&(h=0),p>t.width()&&(p=t.width()),h>t.height()&&(h=t.height()),t.parent().is(".minicolors-slider-wheel")&&c.parent().is(".minicolors-grid")&&(a=75-p,i=75-h,n=Math.sqrt(a*a+i*i),(o=Math.atan2(i,a))<0&&(o+=2*Math.PI),75<n&&(p=(n=75)-75*Math.cos(o),h=75-75*Math.sin(o)),p=Math.round(p),h=Math.round(h)),t.is(".minicolors-grid")?c.stop(!0).animate({top:h+"px",left:p+"px"},m,r.animationEasing,function(){f(l,t)}):c.stop(!0).animate({top:h+"px"},m,r.animationEasing,function(){f(l,t)})}function f(t,e){function s(t,e){var s,a;return t.length&&e?(s=t.offset().left,a=t.offset().top,{x:s-e.offset().left+t.outerWidth()/2,y:a-e.offset().top+t.outerHeight()/2}):null}var a,i,n,o,l,r,c,d=t.val(),u=t.attr("data-opacity"),p=t.parent(),h=t.data("minicolors-settings"),m=p.find(".minicolors-input-swatch"),f=p.find(".minicolors-grid"),g=p.find(".minicolors-slider"),v=p.find(".minicolors-opacity-slider"),b=f.find("[class$=-picker]"),y=g.find("[class$=-picker]"),w=v.find("[class$=-picker]"),k=s(b,f),x=s(y,g),C=s(w,v);if(e.is(".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider")){switch(h.control){case"wheel":o=f.width()/2-k.x,l=f.height()/2-k.y,r=Math.sqrt(o*o+l*l),(c=Math.atan2(l,o))<0&&(c+=2*Math.PI),75<r&&(r=75,k.x=69-75*Math.cos(c),k.y=69-75*Math.sin(c)),i=D(r/.75,0,100),d=O({h:a=D(180*c/Math.PI,0,360),s:i,b:n=D(100-Math.floor(x.y*(100/g.height())),0,100)}),g.css("backgroundColor",O({h:a,s:i,b:100}));break;case"saturation":d=O({h:a=D(parseInt(k.x*(360/f.width()),10),0,360),s:i=D(100-Math.floor(x.y*(100/g.height())),0,100),b:n=D(100-Math.floor(k.y*(100/f.height())),0,100)}),g.css("backgroundColor",O({h:a,s:100,b:n})),p.find(".minicolors-grid-inner").css("opacity",i/100);break;case"brightness":d=O({h:a=D(parseInt(k.x*(360/f.width()),10),0,360),s:i=D(100-Math.floor(k.y*(100/f.height())),0,100),b:n=D(100-Math.floor(x.y*(100/g.height())),0,100)}),g.css("backgroundColor",O({h:a,s:i,b:100})),p.find(".minicolors-grid-inner").css("opacity",1-n/100);break;default:d=O({h:a=D(360-parseInt(x.y*(360/g.height()),10),0,360),s:i=D(Math.floor(k.x*(100/f.width())),0,100),b:n=D(100-Math.floor(k.y*(100/f.height())),0,100)}),f.css("backgroundColor",O({h:a,s:100,b:100}))}_(t,d,u=h.opacity?parseFloat(1-C.y/v.height()).toFixed(2):1)}else m.find("span").css({backgroundColor:d,opacity:u}),P(t,d,u)}function _(t,e,s){var a,i=t.parent(),n=t.data("minicolors-settings"),o=i.find(".minicolors-input-swatch");n.opacity&&t.attr("data-opacity",s),e="rgb"===n.format?(a=T(e)?A(e,!0):L(C(e,!0)),s=""===t.attr("data-opacity")?1:D(parseFloat(t.attr("data-opacity")).toFixed(2),0,1),!isNaN(s)&&n.opacity||(s=1),t.minicolors("rgbObject").a<=1&&a&&n.opacity?"rgba("+a.r+", "+a.g+", "+a.b+", "+parseFloat(s)+")":"rgb("+a.r+", "+a.g+", "+a.b+")"):(T(e)&&(e=E(e)),x(e,n.letterCase)),t.val(e),o.find("span").css({backgroundColor:e,opacity:s}),P(t,e,s)}function c(t,e){var s,a,i,n,o,l,r,c,d,u,p=t.parent(),h=t.data("minicolors-settings"),m=p.find(".minicolors-input-swatch"),f=p.find(".minicolors-grid"),g=p.find(".minicolors-slider"),v=p.find(".minicolors-opacity-slider"),b=f.find("[class$=-picker]"),y=g.find("[class$=-picker]"),w=v.find("[class$=-picker]");switch(T(t.val())?(s=E(t.val()),(o=D(parseFloat(S(t.val())).toFixed(2),0,1))&&t.attr("data-opacity",o)):s=x(C(t.val(),!0),h.letterCase),a=function(t){var e=function(t){var e={h:0,s:0,b:0},s=Math.min(t.r,t.g,t.b),a=Math.max(t.r,t.g,t.b),i=a-s;e.b=a,e.s=0!==a?255*i/a:0,0!==e.s?t.r===a?e.h=(t.g-t.b)/i:t.g===a?e.h=2+(t.b-t.r)/i:e.h=4+(t.r-t.g)/i:e.h=-1;e.h*=60,e.h<0&&(e.h+=360);return e.s*=100/255,e.b*=100/255,e}(L(t));0===e.s&&(e.h=360);return e}(s=s||x(M(h.defaultValue,!0),h.letterCase)),n=h.keywords?k.map(h.keywords.split(","),function(t){return k.trim(t.toLowerCase())}):[],l=""!==t.val()&&-1<k.inArray(t.val().toLowerCase(),n)?x(t.val()):T(t.val())?A(t.val()):s,e||t.val(l),h.opacity&&(i=""===t.attr("data-opacity")?1:D(parseFloat(t.attr("data-opacity")).toFixed(2),0,1),isNaN(i)&&(i=1),t.attr("data-opacity",i),m.find("span").css("opacity",i),c=D(v.height()-v.height()*i,0,v.height()),w.css("top",c+"px")),"transparent"===t.val().toLowerCase()&&m.find("span").css("opacity",0),m.find("span").css("backgroundColor",s),h.control){case"wheel":d=D(Math.ceil(.75*a.s),0,f.height()/2),u=a.h*Math.PI/180,r=D(75-Math.cos(u)*d,0,f.width()),c=D(75-Math.sin(u)*d,0,f.height()),b.css({top:c+"px",left:r+"px"}),c=150-a.b/(100/f.height()),""===s&&(c=0),y.css("top",c+"px"),g.css("backgroundColor",O({h:a.h,s:a.s,b:100}));break;case"saturation":r=D(5*a.h/12,0,150),c=D(f.height()-Math.ceil(a.b/(100/f.height())),0,f.height()),b.css({top:c+"px",left:r+"px"}),c=D(g.height()-a.s*(g.height()/100),0,g.height()),y.css("top",c+"px"),g.css("backgroundColor",O({h:a.h,s:100,b:a.b})),p.find(".minicolors-grid-inner").css("opacity",a.s/100);break;case"brightness":r=D(5*a.h/12,0,150),c=D(f.height()-Math.ceil(a.s/(100/f.height())),0,f.height()),b.css({top:c+"px",left:r+"px"}),c=D(g.height()-a.b*(g.height()/100),0,g.height()),y.css("top",c+"px"),g.css("backgroundColor",O({h:a.h,s:a.s,b:100})),p.find(".minicolors-grid-inner").css("opacity",1-a.b/100);break;default:r=D(Math.ceil(a.s/(100/f.width())),0,f.width()),c=D(f.height()-Math.ceil(a.b/(100/f.height())),0,f.height()),b.css({top:c+"px",left:r+"px"}),c=D(g.height()-a.h/(360/g.height()),0,g.height()),y.css("top",c+"px"),f.css("backgroundColor",O({h:a.h,s:100,b:100}))}t.data("minicolors-initialized")&&P(t,l,i)}function P(t,e,s){var a,i,n=t.data("minicolors-settings"),o=t.data("minicolors-lastChange");if(!o||o.value!==e||o.opacity!==s){if(t.data("minicolors-lastChange",{value:e,opacity:s}),n.swatches&&0!==n.swatches.length){for(a=T(e)?A(e,!0):L(e),-1,i=0;i<n.swatches.length;++i)if(a.r===n.swatches[i].r&&a.g===n.swatches[i].g&&a.b===n.swatches[i].b&&a.a===n.swatches[i].a){i;break}t.parent().find(".minicolors-swatches .minicolors-swatch").removeClass("selected"),-1!==i&&t.parent().find(".minicolors-swatches .minicolors-swatch").eq(i).addClass("selected")}n.change&&(n.changeDelay?(clearTimeout(t.data("minicolors-changeTimeout")),t.data("minicolors-changeTimeout",setTimeout(function(){n.change.call(t.get(0),e,s)},n.changeDelay))):n.change.call(t.get(0),e,s)),t.trigger("change").trigger("input")}}function x(t,e){return"uppercase"===e?t.toUpperCase():t.toLowerCase()}function C(t,e){return(t=t.replace(/^#/g,"")).match(/^[A-F0-9]{3,6}/gi)?3!==t.length&&6!==t.length?"":(3===t.length&&e&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),"#"+t):""}function A(t,e){var s=t.replace(/[^\d,.]/g,"").split(",");return s[0]=D(parseInt(s[0],10),0,255),s[1]=D(parseInt(s[1],10),0,255),s[2]=D(parseInt(s[2],10),0,255),s[3]&&(s[3]=D(parseFloat(s[3],10),0,1)),e?{r:s[0],g:s[1],b:s[2],a:s[3]?s[3]:null}:void 0!==s[3]&&s[3]<=1?"rgba("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+")":"rgb("+s[0]+", "+s[1]+", "+s[2]+")"}function M(t,e){return T(t)?A(t):C(t,e)}function D(t,e,s){return t<e&&(t=e),s<t&&(t=s),t}function T(t){var e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return!(!e||4!==e.length)}function S(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d{1,2})?|\.\d{1,2})[\s+]?/i))&&6===t.length?t[4]:"1"}function E(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}function d(t){var s=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];return k.each(s,function(t,e){1===e.length&&(s[t]="0"+e)}),"#"+s.join("")}function O(t){return d(function(t){var e={},s=Math.round(t.h),a=Math.round(255*t.s/100),i=Math.round(255*t.b/100);if(0===a)e.r=e.g=e.b=i;else{var n=i,o=(255-a)*i/255,l=s%60*(n-o)/60;360===s&&(s=0),s<60?(e.r=n,e.b=o,e.g=o+l):s<120?(e.g=n,e.b=o,e.r=n-l):s<180?(e.g=n,e.r=o,e.b=o+l):s<240?(e.b=n,e.r=o,e.g=n-l):s<300?(e.b=n,e.g=o,e.r=o+l):s<360?(e.r=n,e.g=o,e.b=n-l):(e.r=0,e.g=0,e.b=0)}return{r:Math.round(e.r),g:Math.round(e.g),b:Math.round(e.b)}}(t))}function L(t){return{r:(t=parseInt(-1<t.indexOf("#")?t.substring(1):t,16))>>16,g:(65280&t)>>8,b:255&t}}k.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",dataUris:!0,defaultValue:"",format:"hex",hide:null,hideSpeed:100,inline:!1,keywords:"",letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default",swatches:[]}},k.extend(k.fn,{minicolors:function(t,e){switch(t){case"destroy":return k(this).each(function(){s(k(this))}),k(this);case"hide":return i(),k(this);case"opacity":return void 0===e?k(this).attr("data-opacity"):(k(this).each(function(){c(k(this).attr("data-opacity",e))}),k(this));case"rgbObject":return function(t){var e=L(C(k(t).val(),!0)),s=k(t).attr("data-opacity");if(!e)return null;void 0!==s&&k.extend(e,{a:parseFloat(s)});return e}(k(this));case"rgbString":case"rgbaString":return function(t,e){var s=L(C(k(t).val(),!0)),a=k(t).attr("data-opacity");if(!s)return null;void 0===a&&(a=1);return e?"rgba("+s.r+", "+s.g+", "+s.b+", "+parseFloat(a)+")":"rgb("+s.r+", "+s.g+", "+s.b+")"}(k(this),"rgbaString"===t);case"settings":return void 0===e?k(this).data("minicolors-settings"):(k(this).each(function(){var t=k(this).data("minicolors-settings")||{};s(k(this)),k(this).minicolors(k.extend(!0,t,e))}),k(this));case"show":return a(k(this).eq(0)),k(this);case"value":return void 0===e?k(this).val():(k(this).each(function(){"object"==typeof e&&null!==typeof e?(e.opacity&&k(this).attr("data-opacity",D(e.opacity,0,1)),e.color&&k(this).val(e.color)):k(this).val(e),c(k(this))}),k(this));default:return"create"!==t&&(e=t),k(this).each(function(){!function(e,t){var s,a,i,n,o,l=k('<div class="minicolors" />'),r=k.minicolors.defaults;if(e.data("minicolors-initialized"))return;t=k.extend(!0,{},r,t),l.addClass("minicolors-theme-"+t.theme).toggleClass("minicolors-with-opacity",t.opacity).toggleClass("minicolors-no-data-uris",!0!==t.dataUris),void 0!==t.position&&k.each(t.position.split(" "),function(){l.addClass("minicolors-position-"+this)});s="rgb"===t.format?t.opacity?"25":"20":t.keywords?"11":"7";e.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",t).prop("size",s).wrap(l).after('<div class="minicolors-panel minicolors-slider-'+t.control+'"><div class="minicolors-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-grid minicolors-sprite"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>'),t.inline||(e.after('<span class="minicolors-swatch minicolors-sprite minicolors-input-swatch"><span class="minicolors-swatch-color"></span></span>'),e.next(".minicolors-input-swatch").on("click",function(t){t.preventDefault(),e.focus()}));if((n=e.parent().find(".minicolors-panel")).on("selectstart",function(){return!1}).end(),t.swatches&&0!==t.swatches.length)for(7<t.swatches.length&&(t.swatches.length=7),n.addClass("minicolors-with-swatches"),a=k('<ul class="minicolors-swatches"></ul>').appendTo(n),o=0;o<t.swatches.length;++o)i=T(i=t.swatches[o])?A(i,!0):L(C(i,!0)),k('<li class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color"></span></li>').appendTo(a).data("swatch-color",t.swatches[o]).find(".minicolors-swatch-color").css({backgroundColor:d(i),opacity:i.a}),t.swatches[o]=i;t.inline&&e.parent().addClass("minicolors-inline");c(e,!1),e.data("minicolors-initialized",!0)}(k(this),e)}),k(this)}}}),k(document).on("mousedown.minicolors touchstart.minicolors",function(t){k(t.target).parents().add(t.target).hasClass("minicolors")||i()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(t){var e=k(this);t.preventDefault(),k(document).data("minicolors-target",e),n(e,t,!0)}).on("mousemove.minicolors touchmove.minicolors",function(t){var e=k(document).data("minicolors-target");e&&n(e,t)}).on("mouseup.minicolors touchend.minicolors",function(){k(this).removeData("minicolors-target")}).on("click.minicolors",".minicolors-swatches li",function(t){t.preventDefault();var e=k(this),s=e.parents(".minicolors").find(".minicolors-input"),a=e.data("swatch-color");_(s,a,S(a)),c(s)}).on("mousedown.minicolors touchstart.minicolors",".minicolors-input-swatch",function(t){var e=k(this).parent().find(".minicolors-input");t.preventDefault(),a(e)}).on("focus.minicolors",".minicolors-input",function(){var t=k(this);t.data("minicolors-initialized")&&a(t)}).on("blur.minicolors",".minicolors-input",function(){var t,e,s,a,i,n=k(this),o=n.data("minicolors-settings");n.data("minicolors-initialized")&&(t=o.keywords?k.map(o.keywords.split(","),function(t){return k.trim(t.toLowerCase())}):[],i=""!==n.val()&&-1<k.inArray(n.val().toLowerCase(),t)?n.val():null===(s=T(n.val())?A(n.val(),!0):(e=C(n.val(),!0))?L(e):null)?o.defaultValue:"rgb"===o.format?o.opacity?A("rgba("+s.r+","+s.g+","+s.b+","+n.attr("data-opacity")+")"):A("rgb("+s.r+","+s.g+","+s.b+")"):d(s),a=o.opacity?n.attr("data-opacity"):1,"transparent"===i.toLowerCase()&&(a=0),n.closest(".minicolors").find(".minicolors-input-swatch > span").css("opacity",a),n.val(i),""===n.val()&&n.val(M(o.defaultValue,!0)),n.val(x(n.val(),o.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(t){var e=k(this);if(e.data("minicolors-initialized"))switch(t.keyCode){case 9:i();break;case 13:case 27:i(),e.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var t=k(this);t.data("minicolors-initialized")&&c(t,!0)}).on("paste.minicolors",".minicolors-input",function(){var t=k(this);t.data("minicolors-initialized")&&setTimeout(function(){c(t,!0)},1)})}),function(t,e){"use strict";"undefined"!=typeof module&&module.exports?"undefined"!=typeof process&&"electron"in process.versions?t.BootstrapDialog=e(t.jQuery):module.exports=e(require("jquery"),require("bootstrap")):"function"==typeof define&&define.amd?define("bootstrap-dialog",["jquery","bootstrap"],function(t){return e(t)}):t.BootstrapDialog=e(t.jQuery)}(this,function(l){"use strict";function e(t,e){s.call(this,t,e)}var s=l.fn.modal.Constructor;e.getModalVersion=function(){return void 0===l.fn.modal.Constructor.VERSION?"v3.1":/3\.2\.\d+/.test(l.fn.modal.Constructor.VERSION)?"v3.2":/3\.3\.[1,2]/.test(l.fn.modal.Constructor.VERSION)?"v3.3":"v3.3.4"},e.ORIGINAL_BODY_PADDING=parseInt(l("body").css("padding-right")||0,10),(e.METHODS_TO_OVERRIDE={})["v3.1"]={},e.METHODS_TO_OVERRIDE["v3.2"]={hide:function(t){t&&t.preventDefault(),t=l.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),l(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),l.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",l.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())}},e.METHODS_TO_OVERRIDE["v3.3"]={setScrollbar:function(){var t=e.ORIGINAL_BODY_PADDING;this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},resetScrollbar:function(){0===this.getGlobalOpenedDialogs().length&&this.$body.css("padding-right",e.ORIGINAL_BODY_PADDING)},hideModal:function(){this.$element.hide(),this.backdrop(l.proxy(function(){0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetAdjustments(),this.resetScrollbar(),this.$element.trigger("hidden.bs.modal")},this))}},e.METHODS_TO_OVERRIDE["v3.3.4"]=l.extend({},e.METHODS_TO_OVERRIDE["v3.3"]),e.prototype={constructor:e,getGlobalOpenedDialogs:function(){var s=[];return l.each(n.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&s.push(e)}),s}},e.prototype=l.extend(e.prototype,s.prototype,e.METHODS_TO_OVERRIDE[e.getModalVersion()]);var n=function(t){this.defaultOptions=l.extend(!0,{id:n.newGuid(),buttons:[],data:{},onshow:null,onshown:null,onhide:null,onhidden:null},n.defaultOptions),this.indexedButtons={},this.registeredButtonHotkeys={},this.draggableData={isMouseDown:!1,mouseOffset:{}},this.realized=!1,this.opened=!1,this.initOptions(t),this.holdThisInstance()};return n.BootstrapDialogModal=e,n.NAMESPACE="bootstrap-dialog",n.TYPE_DEFAULT="type-default",n.TYPE_INFO="type-info",n.TYPE_PRIMARY="type-primary",n.TYPE_SUCCESS="type-success",n.TYPE_WARNING="type-warning",n.TYPE_DANGER="type-danger",n.DEFAULT_TEXTS={},n.DEFAULT_TEXTS[n.TYPE_DEFAULT]="Information",n.DEFAULT_TEXTS[n.TYPE_INFO]="Information",n.DEFAULT_TEXTS[n.TYPE_PRIMARY]="Information",n.DEFAULT_TEXTS[n.TYPE_SUCCESS]="Success",n.DEFAULT_TEXTS[n.TYPE_WARNING]="Warning",n.DEFAULT_TEXTS[n.TYPE_DANGER]="Danger",n.DEFAULT_TEXTS.OK="OK",n.DEFAULT_TEXTS.CANCEL="Cancel",n.DEFAULT_TEXTS.CONFIRM="Confirmation",n.SIZE_NORMAL="size-normal",n.SIZE_SMALL="size-small",n.SIZE_WIDE="size-wide",n.SIZE_LARGE="size-large",n.BUTTON_SIZES={},n.BUTTON_SIZES[n.SIZE_NORMAL]="",n.BUTTON_SIZES[n.SIZE_SMALL]="",n.BUTTON_SIZES[n.SIZE_WIDE]="",n.BUTTON_SIZES[n.SIZE_LARGE]="btn-lg",n.ICON_SPINNER="glyphicon glyphicon-asterisk",n.defaultOptions={type:n.TYPE_PRIMARY,size:n.SIZE_NORMAL,cssClass:"",title:null,message:null,nl2br:!0,closable:!0,closeByBackdrop:!0,closeByKeyboard:!0,closeIcon:"&#215;",spinicon:n.ICON_SPINNER,autodestroy:!0,draggable:!1,animate:!0,description:"",tabindex:-1},n.configDefaultOptions=function(t){n.defaultOptions=l.extend(!0,n.defaultOptions,t)},n.dialogs={},n.openAll=function(){l.each(n.dialogs,function(t,e){e.open()})},n.closeAll=function(){l.each(n.dialogs,function(t,e){e.close()})},n.getDialog=function(t){var e=null;return void 0!==n.dialogs[t]&&(e=n.dialogs[t]),e},n.setDialog=function(t){return n.dialogs[t.getId()]=t},n.addDialog=function(t){return n.setDialog(t)},n.moveFocus=function(){var s=null;l.each(n.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&(s=e)}),null!==s&&s.getModal().focus()},n.METHODS_TO_OVERRIDE={},n.METHODS_TO_OVERRIDE["v3.1"]={handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},function(t){t.target===this&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByBackdrop()&&t.data.dialog.close()}),this},updateZIndex:function(){if(this.isOpened()){var s=0;l.each(n.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&s++});var t=this.getModal(),e=t.data("bs.modal").$backdrop;t.css("z-index",1050+20*(s-1)),e.css("z-index",1040+20*(s-1))}return this},open:function(){return this.isRealized()||this.realize(),this.getModal().modal("show"),this.updateZIndex(),this}},n.METHODS_TO_OVERRIDE["v3.2"]={handleModalBackdropEvent:n.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:n.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:n.METHODS_TO_OVERRIDE["v3.1"].open},n.METHODS_TO_OVERRIDE["v3.3"]={},n.METHODS_TO_OVERRIDE["v3.3.4"]=l.extend({},n.METHODS_TO_OVERRIDE["v3.1"]),n.prototype={constructor:n,initOptions:function(t){return this.options=l.extend(!0,this.defaultOptions,t),this},holdThisInstance:function(){return n.addDialog(this),this},initModalStuff:function(){return this.setModal(this.createModal()).setModalDialog(this.createModalDialog()).setModalContent(this.createModalContent()).setModalHeader(this.createModalHeader()).setModalBody(this.createModalBody()).setModalFooter(this.createModalFooter()),this.getModal().append(this.getModalDialog()),this.getModalDialog().append(this.getModalContent()),this.getModalContent().append(this.getModalHeader()).append(this.getModalBody()).append(this.getModalFooter()),this},createModal:function(){var t=l('<div class="modal" role="dialog" aria-hidden="true"></div>');return t.prop("id",this.getId()),t.attr("aria-labelledby",this.getId()+"_title"),t},getModal:function(){return this.$modal},setModal:function(t){return this.$modal=t,this},createModalDialog:function(){return l('<div class="modal-dialog"></div>')},getModalDialog:function(){return this.$modalDialog},setModalDialog:function(t){return this.$modalDialog=t,this},createModalContent:function(){return l('<div class="modal-content"></div>')},getModalContent:function(){return this.$modalContent},setModalContent:function(t){return this.$modalContent=t,this},createModalHeader:function(){return l('<div class="modal-header"></div>')},getModalHeader:function(){return this.$modalHeader},setModalHeader:function(t){return this.$modalHeader=t,this},createModalBody:function(){return l('<div class="modal-body"></div>')},getModalBody:function(){return this.$modalBody},setModalBody:function(t){return this.$modalBody=t,this},createModalFooter:function(){return l('<div class="modal-footer"></div>')},getModalFooter:function(){return this.$modalFooter},setModalFooter:function(t){return this.$modalFooter=t,this},createDynamicContent:function(t){var e=null;return"string"==typeof(e="function"==typeof t?t.call(t,this):t)&&(e=this.formatStringContent(e)),e},formatStringContent:function(t){return this.options.nl2br?t.replace(/\r\n/g,"<br />").replace(/[\r\n]/g,"<br />"):t},setData:function(t,e){return this.options.data[t]=e,this},getData:function(t){return this.options.data[t]},setId:function(t){return this.options.id=t,this},getId:function(){return this.options.id},getType:function(){return this.options.type},setType:function(t){return this.options.type=t,this.updateType(),this},updateType:function(){if(this.isRealized()){var t=[n.TYPE_DEFAULT,n.TYPE_INFO,n.TYPE_PRIMARY,n.TYPE_SUCCESS,n.TYPE_WARNING,n.TYPE_DANGER];this.getModal().removeClass(t.join(" ")).addClass(this.getType())}return this},getSize:function(){return this.options.size},setSize:function(t){return this.options.size=t,this.updateSize(),this},updateSize:function(){if(this.isRealized()){var o=this;this.getModal().removeClass(n.SIZE_NORMAL).removeClass(n.SIZE_SMALL).removeClass(n.SIZE_WIDE).removeClass(n.SIZE_LARGE),this.getModal().addClass(this.getSize()),this.getModalDialog().removeClass("modal-sm"),this.getSize()===n.SIZE_SMALL&&this.getModalDialog().addClass("modal-sm"),this.getModalDialog().removeClass("modal-lg"),this.getSize()===n.SIZE_WIDE&&this.getModalDialog().addClass("modal-lg"),l.each(this.options.buttons,function(t,e){var s=o.getButton(e.id),a=["btn-lg","btn-sm","btn-xs"],i=!1;if("string"==typeof e.cssClass){var n=e.cssClass.split(" ");l.each(n,function(t,e){-1!==l.inArray(e,a)&&(i=!0)})}i||(s.removeClass(a.join(" ")),s.addClass(o.getButtonSize()))})}return this},getCssClass:function(){return this.options.cssClass},setCssClass:function(t){return this.options.cssClass=t,this},getTitle:function(){return this.options.title},setTitle:function(t){return this.options.title=t,this.updateTitle(),this},updateTitle:function(){if(this.isRealized()){var t=null!==this.getTitle()?this.createDynamicContent(this.getTitle()):this.getDefaultText();this.getModalHeader().find("."+this.getNamespace("title")).html("").append(t).prop("id",this.getId()+"_title")}return this},getMessage:function(){return this.options.message},setMessage:function(t){return this.options.message=t,this.updateMessage(),this},updateMessage:function(){if(this.isRealized()){var t=this.createDynamicContent(this.getMessage());this.getModalBody().find("."+this.getNamespace("message")).html("").append(t)}return this},isClosable:function(){return this.options.closable},setClosable:function(t){return this.options.closable=t,this.updateClosable(),this},setCloseByBackdrop:function(t){return this.options.closeByBackdrop=t,this},canCloseByBackdrop:function(){return this.options.closeByBackdrop},setCloseByKeyboard:function(t){return this.options.closeByKeyboard=t,this},canCloseByKeyboard:function(){return this.options.closeByKeyboard},isAnimate:function(){return this.options.animate},setAnimate:function(t){return this.options.animate=t,this},updateAnimate:function(){return this.isRealized()&&this.getModal().toggleClass("fade",this.isAnimate()),this},getSpinicon:function(){return this.options.spinicon},setSpinicon:function(t){return this.options.spinicon=t,this},addButton:function(t){return this.options.buttons.push(t),this},addButtons:function(t){var s=this;return l.each(t,function(t,e){s.addButton(e)}),this},getButtons:function(){return this.options.buttons},setButtons:function(t){return this.options.buttons=t,this.updateButtons(),this},getButton:function(t){return void 0!==this.indexedButtons[t]?this.indexedButtons[t]:null},getButtonSize:function(){return void 0!==n.BUTTON_SIZES[this.getSize()]?n.BUTTON_SIZES[this.getSize()]:""},updateButtons:function(){return this.isRealized()&&(0===this.getButtons().length?this.getModalFooter().hide():this.getModalFooter().show().find("."+this.getNamespace("footer")).html("").append(this.createFooterButtons())),this},isAutodestroy:function(){return this.options.autodestroy},setAutodestroy:function(t){this.options.autodestroy=t},getDescription:function(){return this.options.description},setDescription:function(t){return this.options.description=t,this},setTabindex:function(t){return this.options.tabindex=t,this},getTabindex:function(){return this.options.tabindex},updateTabindex:function(){return this.isRealized()&&this.getModal().attr("tabindex",this.getTabindex()),this},getDefaultText:function(){return n.DEFAULT_TEXTS[this.getType()]},getNamespace:function(t){return n.NAMESPACE+"-"+t},createHeaderContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("header")),t.append(this.createTitleContent()),t.prepend(this.createCloseButton()),t},createTitleContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("title")),t},createCloseButton:function(){var t=l("<div></div>");t.addClass(this.getNamespace("close-button"));var e=l('<button class="close"></button>');return e.append(this.options.closeIcon),t.append(e),t.on("click",{dialog:this},function(t){t.data.dialog.close()}),t},createBodyContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("body")),t.append(this.createMessageContent()),t},createMessageContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("message")),t},createFooterContent:function(){var t=l("<div></div>");return t.addClass(this.getNamespace("footer")),t},createFooterButtons:function(){var a=this,i=l("<div></div>");return i.addClass(this.getNamespace("footer-buttons")),this.indexedButtons={},l.each(this.options.buttons,function(t,e){e.id||(e.id=n.newGuid());var s=a.createButton(e);a.indexedButtons[e.id]=s,i.append(s)}),i},createButton:function(t){var e=l('<button class="btn"></button>');return e.prop("id",t.id),e.data("button",t),void 0!==t.icon&&""!==l.trim(t.icon)&&e.append(this.createButtonIcon(t.icon)),void 0!==t.label&&e.append(t.label),void 0!==t.cssClass&&""!==l.trim(t.cssClass)?e.addClass(t.cssClass):e.addClass("btn-default"),void 0!==t.hotkey&&(this.registeredButtonHotkeys[t.hotkey]=e),e.on("click",{dialog:this,$button:e,button:t},function(t){var e=t.data.dialog,s=t.data.$button,a=s.data("button");if(a.autospin&&s.toggleSpin(!0),"function"==typeof a.action)return a.action.call(s,e,t)}),this.enhanceButton(e),void 0!==t.enabled&&e.toggleEnable(t.enabled),e},enhanceButton:function(a){return a.dialog=this,a.toggleEnable=function(t){return void 0!==t?this.prop("disabled",!t).toggleClass("disabled",!t):this.prop("disabled",!this.prop("disabled")),this},a.enable=function(){return this.toggleEnable(!0),this},a.disable=function(){return this.toggleEnable(!1),this},a.toggleSpin=function(t){var e=this.dialog,s=this.find("."+e.getNamespace("button-icon"));return void 0===t&&(t=!(0<a.find(".icon-spin").length)),t?(s.hide(),a.prepend(e.createButtonIcon(e.getSpinicon()).addClass("icon-spin"))):(s.show(),a.find(".icon-spin").remove()),this},a.spin=function(){return this.toggleSpin(!0),this},a.stopSpin=function(){return this.toggleSpin(!1),this},this},createButtonIcon:function(t){var e=l("<span></span>");return e.addClass(this.getNamespace("button-icon")).addClass(t),e},enableButtons:function(s){return l.each(this.indexedButtons,function(t,e){e.toggleEnable(s)}),this},updateClosable:function(){return this.isRealized()&&this.getModalHeader().find("."+this.getNamespace("close-button")).toggle(this.isClosable()),this},onShow:function(t){return this.options.onshow=t,this},onShown:function(t){return this.options.onshown=t,this},onHide:function(t){return this.options.onhide=t,this},onHidden:function(t){return this.options.onhidden=t,this},isRealized:function(){return this.realized},setRealized:function(t){return this.realized=t,this},isOpened:function(){return this.opened},setOpened:function(t){return this.opened=t,this},handleModalEvents:function(){return this.getModal().on("show.bs.modal",{dialog:this},function(t){var e=t.data.dialog;if(e.setOpened(!0),e.isModalEvent(t)&&"function"==typeof e.options.onshow){var s=e.options.onshow(e);return!1===s&&e.setOpened(!1),s}}),this.getModal().on("shown.bs.modal",{dialog:this},function(t){var e=t.data.dialog;e.isModalEvent(t)&&"function"==typeof e.options.onshown&&e.options.onshown(e)}),this.getModal().on("hide.bs.modal",{dialog:this},function(t){var e=t.data.dialog;if(e.setOpened(!1),e.isModalEvent(t)&&"function"==typeof e.options.onhide){var s=e.options.onhide(e);return!1===s&&e.setOpened(!0),s}}),this.getModal().on("hidden.bs.modal",{dialog:this},function(t){var e=t.data.dialog;e.isModalEvent(t)&&"function"==typeof e.options.onhidden&&e.options.onhidden(e),e.isAutodestroy()&&(e.setRealized(!1),delete n.dialogs[e.getId()],l(this).remove()),n.moveFocus()}),this.handleModalBackdropEvent(),this.getModal().on("keyup",{dialog:this},function(t){27===t.which&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByKeyboard()&&t.data.dialog.close()}),this.getModal().on("keyup",{dialog:this},function(t){var e=t.data.dialog;if(void 0!==e.registeredButtonHotkeys[t.which]){var s=l(e.registeredButtonHotkeys[t.which]);s.prop("disabled")||s.focus().trigger("click")}}),this},handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},function(t){l(t.target).hasClass("modal-backdrop")&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByBackdrop()&&t.data.dialog.close()}),this},isModalEvent:function(t){return void 0!==t.namespace&&"bs.modal"===t.namespace},makeModalDraggable:function(){return this.options.draggable&&(this.getModalHeader().addClass(this.getNamespace("draggable")).on("mousedown",{dialog:this},function(t){var e=t.data.dialog;e.draggableData.isMouseDown=!0;var s=e.getModalDialog().offset();e.draggableData.mouseOffset={top:t.clientY-s.top,left:t.clientX-s.left}}),this.getModal().on("mouseup mouseleave",{dialog:this},function(t){t.data.dialog.draggableData.isMouseDown=!1}),l("body").on("mousemove",{dialog:this},function(t){var e=t.data.dialog;e.draggableData.isMouseDown&&e.getModalDialog().offset({top:t.clientY-e.draggableData.mouseOffset.top,left:t.clientX-e.draggableData.mouseOffset.left})})),this},realize:function(){return this.initModalStuff(),this.getModal().addClass(n.NAMESPACE).addClass(this.getCssClass()),this.updateSize(),this.getDescription()&&this.getModal().attr("aria-describedby",this.getDescription()),this.getModalFooter().append(this.createFooterContent()),this.getModalHeader().append(this.createHeaderContent()),this.getModalBody().append(this.createBodyContent()),this.getModal().data("bs.modal",new e(this.getModal(),{backdrop:"static",keyboard:!1,show:!1})),this.makeModalDraggable(),this.handleModalEvents(),this.setRealized(!0),this.updateButtons(),this.updateType(),this.updateTitle(),this.updateMessage(),this.updateClosable(),this.updateAnimate(),this.updateSize(),this.updateTabindex(),this},open:function(){return this.isRealized()||this.realize(),this.getModal().modal("show"),this},close:function(){return this.isRealized()||this.realize(),this.getModal().modal("hide"),this}},n.prototype=l.extend(n.prototype,n.METHODS_TO_OVERRIDE[e.getModalVersion()]),n.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},n.show=function(t){return new n(t).open()},n.alert=function(){var t={},e={type:n.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,buttonLabel:n.DEFAULT_TEXTS.OK,callback:null};t="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?l.extend(!0,e,arguments[0]):l.extend(!0,e,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null});var s=new n(t);return s.setData("callback",t.callback),s.addButton({label:t.buttonLabel,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!0))&&(t.setData("btnClicked",!0),t.close())}}),"function"==typeof s.options.onhide?s.onHide(function(t){var e=!0;return!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&(e=t.getData("callback")(!1)),!1!==e&&(e=this.onhide(t))}.bind({onhide:s.options.onhide})):s.onHide(function(t){var e=!0;return!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&(e=t.getData("callback")(!1)),e}),s.open()},n.confirm=function(){var t={},e={type:n.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,btnCancelLabel:n.DEFAULT_TEXTS.CANCEL,btnCancelClass:null,btnOKLabel:n.DEFAULT_TEXTS.OK,btnOKClass:null,callback:null};null===(t="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?l.extend(!0,e,arguments[0]):l.extend(!0,e,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null})).btnOKClass&&(t.btnOKClass=["btn",t.type.split("-")[1]].join("-"));var s=new n(t);return s.setData("callback",t.callback),s.addButton({label:t.btnCancelLabel,cssClass:t.btnCancelClass,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!1))&&t.close()}}),s.addButton({label:t.btnOKLabel,cssClass:t.btnOKClass,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!0))&&t.close()}}),s.open()},n.warning=function(t,e){return new n({type:n.TYPE_WARNING,message:t}).open()},n.danger=function(t,e){return new n({type:n.TYPE_DANGER,message:t}).open()},n.success=function(t,e){return new n({type:n.TYPE_SUCCESS,message:t}).open()},n}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t,a;function p(){return t.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function o(t,e){var s,a=[];for(s=0;s<t.length;++s)a.push(e(t[s],s));return a}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var s in e)h(e,s)&&(t[s]=e[s]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,s,a){return le(t,e,s,a,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}),t._pf}function r(t){if(null==t._isValid){var e=m(t),s=a.call(e.parsedDateParts,function(t){return null!=t});t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&s),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function c(t){var e=d(NaN);return null!=t?l(m(e),t):m(e).userInvalidated=!0,e}function u(t){return void 0===t}a=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),s=e.length>>>0,a=0;a<s;a++)if(a in e&&t.call(this,e[a],a,e))return!0;return!1};var f=p.momentProperties=[];function g(t,e){var s,a,i;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=m(e)),u(e._locale)||(t._locale=e._locale),0<f.length)for(s in f)u(i=e[a=f[s]])||(t[a]=i);return t}var e=!1;function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===e&&(e=!0,p.updateOffset(this),e=!1)}function b(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function y(t){return t<0?Math.ceil(t):Math.floor(t)}function w(t){var e=+t,s=0;return 0!=e&&isFinite(e)&&(s=y(e)),s}function k(t,e,s){var a,i=Math.min(t.length,e.length),n=Math.abs(t.length-e.length),o=0;for(a=0;a<i;a++)(s&&t[a]!==e[a]||!s&&w(t[a])!==w(e[a]))&&o++;return o+n}function x(t){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function s(t,e){var s=!0;return l(function(){return null!=p.deprecationHandler&&p.deprecationHandler(null,t),s&&(x(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),s=!1),e.apply(this,arguments)},e)}var C,_={};function P(t,e){null!=p.deprecationHandler&&p.deprecationHandler(t,e),_[t]||(x(e),_[t]=!0)}function A(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){return"[object Object]"===Object.prototype.toString.call(t)}function D(t,e){var s,a=l({},t);for(s in e)h(e,s)&&(M(t[s])&&M(e[s])?(a[s]={},l(a[s],t[s]),l(a[s],e[s])):null!=e[s]?a[s]=e[s]:delete a[s]);return a}function T(t){null!=t&&this.set(t)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,s=[];for(e in t)h(t,e)&&s.push(e);return s};var S,E={};function O(t){return t?t.toLowerCase().replace("_","-"):t}function L(t){var e=null;if(!E[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=S._abbr,require("./locale/"+t),B(e)}catch(t){}return E[t]}function B(t,e){var s;return t&&(s=u(e)?j(t):I(t,e))&&(S=s),S._abbr}function I(t,e){return null!==e?(e.abbr=t,null!=E[t]?(P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),e=D(E[t]._config,e)):null!=e.parentLocale&&(null!=E[e.parentLocale]?e=D(E[e.parentLocale]._config,e):P("parentLocaleUndefined","specified parentLocale is not defined yet")),E[t]=new T(e),B(t),E[t]):(delete E[t],null)}function j(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return S;if(!i(t)){if(e=L(t))return e;t=[t]}return function(t){for(var e,s,a,i,n=0;n<t.length;){for(e=(i=O(t[n]).split("-")).length,s=(s=O(t[n+1]))?s.split("-"):null;0<e;){if(a=L(i.slice(0,e).join("-")))return a;if(s&&s.length>=e&&k(i,s,!0)>=e-1)break;e--}n++}return null}(t)}var F={};function Y(t,e){var s=t.toLowerCase();F[s]=F[s+"s"]=F[e]=t}function R(t){return"string"==typeof t?F[t]||F[t.toLowerCase()]:void 0}function z(t){var e,s,a={};for(s in t)h(t,s)&&(e=R(s))&&(a[e]=t[s]);return a}function Q(e,s){return function(t){return null!=t?(N(this,e,t),p.updateOffset(this,s),this):H(this,e)}}function H(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function N(t,e,s){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](s)}function $(t,e){var s;if("object"==typeof t)for(s in t)this.set(s,t[s]);else if(A(this[t=R(t)]))return this[t](e);return this}function U(t,e,s){var a=""+Math.abs(t),i=e-a.length;return(0<=t?s?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+a}var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},K={};function W(t,e,s,a){var i=a;"string"==typeof a&&(i=function(){return this[a]()}),t&&(K[t]=i),e&&(K[e[0]]=function(){return U(i.apply(this,arguments),e[1],e[2])}),s&&(K[s]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function J(t,e){return t.isValid()?(e=Z(e,t.localeData()),V[e]=V[e]||function(a){var t,i,e,n=a.match(G);for(t=0,i=n.length;t<i;t++)K[n[t]]?n[t]=K[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]#x2F;g,""):e.replace(/\\/g,"");return function(t){var e,s="";for(e=0;e<i;e++)s+=n[e]instanceof Function?n[e].call(t,a):n[e];return s}}(e),V[e](t)):t.localeData().invalidDate()}function Z(t,e){var s=5;function a(t){return e.longDateFormat(t)||t}for(q.lastIndex=0;0<=s&&q.test(t);)t=t.replace(q,a),q.lastIndex=0,s-=1;return t}var X=/\d/,tt=/\d\d/,et=/\d{3}/,st=/\d{4}/,at=/[+-]?\d{6}/,it=/\d\d?/,nt=/\d\d\d\d?/,ot=/\d\d\d\d\d\d?/,lt=/\d{1,3}/,rt=/\d{1,4}/,ct=/[+-]?\d{1,6}/,dt=/\d+/,ut=/[+-]?\d+/,pt=/Z|[+-]\d\d:?\d\d/gi,ht=/Z|[+-]\d\d(?::?\d\d)?/gi,mt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ft={};function gt(t,s,a){ft[t]=A(s)?s:function(t,e){return t&&a?a:s}}function vt(t,e){return h(ft,t)?ft[t](e._strict,e._locale):new RegExp(function(t){return bt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,s,a,i){return e||s||a||i}))}(t))}function bt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\amp;")}var yt={};function wt(t,s){var e,a=s;for("string"==typeof t&&(t=[t]),"number"==typeof s&&(a=function(t,e){e[s]=w(t)}),e=0;e<t.length;e++)yt[t[e]]=a}function kt(t,i){wt(t,function(t,e,s,a){s._w=s._w||{},i(t,s._w,s,a)})}var xt,Ct=0,_t=1,Pt=2,At=3,Mt=4,Dt=5,Tt=6,St=7,Et=8;function Ot(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}xt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),W("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),gt("M",it),gt("MM",it,tt),gt("MMM",function(t,e){return e.monthsShortRegex(t)}),gt("MMMM",function(t,e){return e.monthsRegex(t)}),wt(["M","MM"],function(t,e){e[_t]=w(t)-1}),wt(["MMM","MMMM"],function(t,e,s,a){var i=s._locale.monthsParse(t,a,s._strict);null!=i?e[_t]=i:m(s).invalidMonth=t});var Lt=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Bt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var It="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function jt(t,e){var s;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+#x2F;.test(e))e=w(e);else if("number"!=typeof(e=t.localeData().monthsParse(e)))return t;return s=Math.min(t.date(),Ot(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,s),t}function Ft(t){return null!=t?(jt(this,t),p.updateOffset(this,!0),this):H(this,"Month")}var Yt=mt;var Rt=mt;function zt(){function t(t,e){return e.length-t.length}var e,s,a=[],i=[],n=[];for(e=0;e<12;e++)s=d([2e3,e]),a.push(this.monthsShort(s,"")),i.push(this.months(s,"")),n.push(this.months(s,"")),n.push(this.monthsShort(s,""));for(a.sort(t),i.sort(t),n.sort(t),e=0;e<12;e++)a[e]=bt(a[e]),i[e]=bt(i[e]),n[e]=bt(n[e]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(t){var e,s=t._a;return s&&-2===m(t).overflow&&(e=s[_t]<0||11<s[_t]?_t:s[Pt]<1||s[Pt]>Ot(s[Ct],s[_t])?Pt:s[At]<0||24<s[At]||24===s[At]&&(0!==s[Mt]||0!==s[Dt]||0!==s[Tt])?At:s[Mt]<0||59<s[Mt]?Mt:s[Dt]<0||59<s[Dt]?Dt:s[Tt]<0||999<s[Tt]?Tt:-1,m(t)._overflowDayOfYear&&(e<Ct||Pt<e)&&(e=Pt),m(t)._overflowWeeks&&-1===e&&(e=St),m(t)._overflowWeekday&&-1===e&&(e=Et),m(t).overflow=e),t}var Ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Nt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,$t=/Z|[+-]\d\d(?::?\d\d)?/,Ut=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qt=/^\/?Date\((\-?\d+)/i;function Vt(t){var e,s,a,i,n,o,l=t._i,r=Ht.exec(l)||Nt.exec(l);if(r){for(m(t).iso=!0,e=0,s=Ut.length;e<s;e++)if(Ut[e][1].exec(r[1])){i=Ut[e][0],a=!1!==Ut[e][2];break}if(null==i)return void(t._isValid=!1);if(r[3]){for(e=0,s=Gt.length;e<s;e++)if(Gt[e][1].exec(r[3])){n=(r[2]||" ")+Gt[e][0];break}if(null==n)return void(t._isValid=!1)}if(!a&&null!=n)return void(t._isValid=!1);if(r[4]){if(!$t.exec(r[4]))return void(t._isValid=!1);o="Z"}t._f=i+(n||"")+(o||""),ne(t)}else t._isValid=!1}function Kt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Wt(t){return Jt(t)?366:365}function Jt(t){return t%4==0&&t%100!=0||t%400==0}p.createFromInputFallback=s("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),W("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),gt("Y",ut),gt("YY",it,tt),gt("YYYY",rt,st),gt("YYYYY",ct,at),gt("YYYYYY",ct,at),wt(["YYYYY","YYYYYY"],Ct),wt("YYYY",function(t,e){e[Ct]=2===t.length?p.parseTwoDigitYear(t):w(t)}),wt("YY",function(t,e){e[Ct]=p.parseTwoDigitYear(t)}),wt("Y",function(t,e){e[Ct]=parseInt(t,10)}),p.parseTwoDigitYear=function(t){return w(t)+(68<w(t)?1900:2e3)};var Zt=Q("FullYear",!0);function Xt(t,e,s){var a=7+e-s;return a-(7+Kt(t,0,a).getUTCDay()-e)%7-1}function te(t,e,s,a,i){var n,o,l=1+7*(e-1)+(7+s-a)%7+Xt(t,a,i);return o=l<=0?Wt(n=t-1)+l:l>Wt(t)?(n=t+1,l-Wt(t)):(n=t,l),{year:n,dayOfYear:o}}function ee(t,e,s){var a,i,n=Xt(t.year(),e,s),o=Math.floor((t.dayOfYear()-n-1)/7)+1;return o<1?a=o+se(i=t.year()-1,e,s):o>se(t.year(),e,s)?(a=o-se(t.year(),e,s),i=t.year()+1):(i=t.year(),a=o),{week:a,year:i}}function se(t,e,s){var a=Xt(t,e,s),i=Xt(t+1,e,s);return(Wt(t)-a+i)/7}function ae(t,e,s){return null!=t?t:null!=e?e:s}function ie(t){var e,s,a,i,n=[];if(!t._d){for(a=function(t){var e=new Date(p.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Pt]&&null==t._a[_t]&&function(t){var e,s,a,i,n,o,l,r;null!=(e=t._w).GG||null!=e.W||null!=e.E?(n=1,o=4,s=ae(e.GG,t._a[Ct],ee(re(),1,4).year),a=ae(e.W,1),((i=ae(e.E,1))<1||7<i)&&(r=!0)):(n=t._locale._week.dow,o=t._locale._week.doy,s=ae(e.gg,t._a[Ct],ee(re(),n,o).year),a=ae(e.w,1),null!=e.d?((i=e.d)<0||6<i)&&(r=!0):null!=e.e?(i=e.e+n,(e.e<0||6<e.e)&&(r=!0)):i=n);a<1||a>se(s,n,o)?m(t)._overflowWeeks=!0:null!=r?m(t)._overflowWeekday=!0:(l=te(s,a,i,n,o),t._a[Ct]=l.year,t._dayOfYear=l.dayOfYear)}(t),t._dayOfYear&&(i=ae(t._a[Ct],a[Ct]),t._dayOfYear>Wt(i)&&(m(t)._overflowDayOfYear=!0),s=Kt(i,0,t._dayOfYear),t._a[_t]=s.getUTCMonth(),t._a[Pt]=s.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=n[e]=a[e];for(;e<7;e++)t._a[e]=n[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[At]&&0===t._a[Mt]&&0===t._a[Dt]&&0===t._a[Tt]&&(t._nextDay=!0,t._a[At]=0),t._d=(t._useUTC?Kt:function(t,e,s,a,i,n,o){var l=new Date(t,e,s,a,i,n,o);return t<100&&0<=t&&isFinite(l.getFullYear())&&l.setFullYear(t),l}).apply(null,n),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[At]=24)}}function ne(t){if(t._f!==p.ISO_8601){t._a=[],m(t).empty=!0;var e,s,a,i,n,o,l,r,c=""+t._i,d=c.length,u=0;for(a=Z(t._f,t._locale).match(G)||[],e=0;e<a.length;e++)i=a[e],(s=(c.match(vt(i,t))||[])[0])&&(0<(n=c.substr(0,c.indexOf(s))).length&&m(t).unusedInput.push(n),c=c.slice(c.indexOf(s)+s.length),u+=s.length),K[i]?(s?m(t).empty=!1:m(t).unusedTokens.push(i),o=i,r=t,null!=(l=s)&&h(yt,o)&&yt[o](l,r._a,r,o)):t._strict&&!s&&m(t).unusedTokens.push(i);m(t).charsLeftOver=d-u,0<c.length&&m(t).unusedInput.push(c),!0===m(t).bigHour&&t._a[At]<=12&&0<t._a[At]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[At]=function(t,e,s){var a;if(null==s)return e;return null!=t.meridiemHour?t.meridiemHour(e,s):(null!=t.isPM&&((a=t.isPM(s))&&e<12&&(e+=12),a||12!==e||(e=0)),e)}(t._locale,t._a[At],t._meridiem),ie(t),Qt(t)}else Vt(t)}function oe(t){var e=t._i,s=t._f;return t._locale=t._locale||j(t._l),null===e||void 0===s&&""===e?c({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new v(Qt(e)):(i(s)?function(t){var e,s,a,i,n;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)n=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],ne(e),r(e)&&(n+=m(e).charsLeftOver,n+=10*m(e).unusedTokens.length,m(e).score=n,(null==a||n<a)&&(a=n,s=e));l(t,s||e)}(t):s?ne(t):n(e)?t._d=e:function(t){var e=t._i;void 0===e?t._d=new Date(p.now()):n(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=qt.exec(t._i);null===e?(Vt(t),!1===t._isValid&&(delete t._isValid,p.createFromInputFallback(t))):t._d=new Date(+e[1])}(t):i(e)?(t._a=o(e.slice(0),function(t){return parseInt(t,10)}),ie(t)):"object"==typeof e?function(t){if(!t._d){var e=z(t._i);t._a=o([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ie(t)}}(t):"number"==typeof e?t._d=new Date(e):p.createFromInputFallback(t)}(t),r(t)||(t._d=null),t))}function le(t,e,s,a,i){var n={};return"boolean"==typeof s&&(a=s,s=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=i,n._l=s,n._i=t,n._f=e,n._strict=a,function(t){var e=new v(Qt(oe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(n)}function re(t,e,s,a){return le(t,e,s,a,!1)}p.ISO_8601=function(){};var ce=s("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=re.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:c()}),de=s("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=re.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:c()});function ue(t,e){var s,a;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return re();for(s=e[0],a=1;a<e.length;++a)e[a].isValid()&&!e[a][t](s)||(s=e[a]);return s}function pe(t){var e=z(t),s=e.year||0,a=e.quarter||0,i=e.month||0,n=e.week||0,o=e.day||0,l=e.hour||0,r=e.minute||0,c=e.second||0,d=e.millisecond||0;this._milliseconds=+d+1e3*c+6e4*r+1e3*l*60*60,this._days=+o+7*n,this._months=+i+3*a+12*s,this._data={},this._locale=j(),this._bubble()}function he(t){return t instanceof pe}function me(t,s){W(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+U(~~(t/60),2)+s+U(~~t%60,2)})}me("Z",":"),me("ZZ",""),gt("Z",ht),gt("ZZ",ht),wt(["Z","ZZ"],function(t,e,s){s._useUTC=!0,s._tzm=ge(ht,t)});var fe=/([\+\-]|\d\d)/gi;function ge(t,e){var s=(e||"").match(t)||[],a=((s[s.length-1]||[])+"").match(fe)||["-",0,0],i=60*a[1]+w(a[2]);return"+"===a[0]?i:-i}function ve(t,e){var s,a;return e._isUTC?(s=e.clone(),a=(b(t)||n(t)?t.valueOf():re(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+a),p.updateOffset(s,!1),s):re(t).local()}function be(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function ye(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}p.updateOffset=function(){};var we=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?#x2F;,ke=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?#x2F;;function xe(t,e){var s,a,i,n=t,o=null;return he(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(n={},e?n[e]=t:n.milliseconds=t):(o=we.exec(t))?(s="-"===o[1]?-1:1,n={y:0,d:w(o[Pt])*s,h:w(o[At])*s,m:w(o[Mt])*s,s:w(o[Dt])*s,ms:w(o[Tt])*s}):(o=ke.exec(t))?(s="-"===o[1]?-1:1,n={y:Ce(o[2],s),M:Ce(o[3],s),w:Ce(o[4],s),d:Ce(o[5],s),h:Ce(o[6],s),m:Ce(o[7],s),s:Ce(o[8],s)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(i=function(t,e){var s;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ve(e,t),t.isBefore(e)?s=_e(t,e):((s=_e(e,t)).milliseconds=-s.milliseconds,s.months=-s.months);return s}(re(n.from),re(n.to)),(n={}).ms=i.milliseconds,n.M=i.months),a=new pe(n),he(t)&&h(t,"_locale")&&(a._locale=t._locale),a}function Ce(t,e){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*e}function _e(t,e){var s={milliseconds:0,months:0};return s.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(s.months,"M").isAfter(e)&&--s.months,s.milliseconds=e-t.clone().add(s.months,"M"),s}function Pe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ae(a,i){return function(t,e){var s;return null===e||isNaN(+e)||(P(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period)."),s=t,t=e,e=s),Me(this,xe(t="string"==typeof t?+t:t,e),a),this}}function Me(t,e,s,a){var i=e._milliseconds,n=Pe(e._days),o=Pe(e._months);t.isValid()&&(a=null==a||a,i&&t._d.setTime(t._d.valueOf()+i*s),n&&N(t,"Date",H(t,"Date")+n*s),o&&jt(t,H(t,"Month")+o*s),a&&p.updateOffset(t,n||o))}xe.fn=pe.prototype;var De=Ae(1,"add"),Te=Ae(-1,"subtract");function Se(t){var e;return void 0===t?this._locale._abbr:(null!=(e=j(t))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ee=s("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Oe(){return this._locale}function Le(t,e){W(0,[t,t.length],0,e)}function Be(t,e,s,a,i){var n;return null==t?ee(this,a,i).year:((n=se(t,a,i))<e&&(e=n),function(t,e,s,a,i){var n=te(t,e,s,a,i),o=Kt(n.year,0,n.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,s,a,i))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Le("gggg","weekYear"),Le("ggggg","weekYear"),Le("GGGG","isoWeekYear"),Le("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),gt("G",ut),gt("g",ut),gt("GG",it,tt),gt("gg",it,tt),gt("GGGG",rt,st),gt("gggg",rt,st),gt("GGGGG",ct,at),gt("ggggg",ct,at),kt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,s,a){e[a.substr(0,2)]=w(t)}),kt(["gg","GG"],function(t,e,s,a){e[a]=p.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),Y("quarter","Q"),gt("Q",X),wt("Q",function(t,e){e[_t]=3*(w(t)-1)}),W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),gt("w",it),gt("ww",it,tt),gt("W",it),gt("WW",it,tt),kt(["w","ww","W","WW"],function(t,e,s,a){e[a.substr(0,1)]=w(t)});W("D",["DD",2],"Do","date"),Y("date","D"),gt("D",it),gt("DD",it,tt),gt("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),wt(["D","DD"],Pt),wt("Do",function(t,e){e[Pt]=w(t.match(it)[0])});var Ie=Q("Date",!0);W("d",0,"do","day"),W("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),W("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),W("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),gt("d",it),gt("e",it),gt("E",it),gt("dd",function(t,e){return e.weekdaysMinRegex(t)}),gt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),gt("dddd",function(t,e){return e.weekdaysRegex(t)}),kt(["dd","ddd","dddd"],function(t,e,s,a){var i=s._locale.weekdaysParse(t,a,s._strict);null!=i?e.d=i:m(s).invalidWeekday=t}),kt(["d","e","E"],function(t,e,s,a){e[a]=w(t)});var je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Fe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Re=mt;var ze=mt;var Qe=mt;function He(){function t(t,e){return e.length-t.length}var e,s,a,i,n,o=[],l=[],r=[],c=[];for(e=0;e<7;e++)s=d([2e3,1]).day(e),a=this.weekdaysMin(s,""),i=this.weekdaysShort(s,""),n=this.weekdays(s,""),o.push(a),l.push(i),r.push(n),c.push(a),c.push(i),c.push(n);for(o.sort(t),l.sort(t),r.sort(t),c.sort(t),e=0;e<7;e++)l[e]=bt(l[e]),r[e]=bt(r[e]),c[e]=bt(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ne(){return this.hours()%12||12}function $e(t,e){W(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Ue(t,e){return e._meridiemParse}W("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),gt("DDD",lt),gt("DDDD",et),wt(["DDD","DDDD"],function(t,e,s){s._dayOfYear=w(t)}),W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Ne),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Ne.apply(this)+U(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Ne.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),$e("a",!0),$e("A",!1),Y("hour","h"),gt("a",Ue),gt("A",Ue),gt("H",it),gt("h",it),gt("HH",it,tt),gt("hh",it,tt),gt("hmm",nt),gt("hmmss",ot),gt("Hmm",nt),gt("Hmmss",ot),wt(["H","HH"],At),wt(["a","A"],function(t,e,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),wt(["h","hh"],function(t,e,s){e[At]=w(t),m(s).bigHour=!0}),wt("hmm",function(t,e,s){var a=t.length-2;e[At]=w(t.substr(0,a)),e[Mt]=w(t.substr(a)),m(s).bigHour=!0}),wt("hmmss",function(t,e,s){var a=t.length-4,i=t.length-2;e[At]=w(t.substr(0,a)),e[Mt]=w(t.substr(a,2)),e[Dt]=w(t.substr(i)),m(s).bigHour=!0}),wt("Hmm",function(t,e,s){var a=t.length-2;e[At]=w(t.substr(0,a)),e[Mt]=w(t.substr(a))}),wt("Hmmss",function(t,e,s){var a=t.length-4,i=t.length-2;e[At]=w(t.substr(0,a)),e[Mt]=w(t.substr(a,2)),e[Dt]=w(t.substr(i))});var Ge=Q("Hours",!0);W("m",["mm",2],0,"minute"),Y("minute","m"),gt("m",it),gt("mm",it,tt),wt(["m","mm"],Mt);var qe=Q("Minutes",!1);W("s",["ss",2],0,"second"),Y("second","s"),gt("s",it),gt("ss",it,tt),wt(["s","ss"],Dt);var Ve,Ke=Q("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),gt("S",lt,X),gt("SS",lt,tt),gt("SSS",lt,et),Ve="SSSS";Ve.length<=9;Ve+="S")gt(Ve,dt);function We(t,e){e[Tt]=w(1e3*("0."+t))}for(Ve="S";Ve.length<=9;Ve+="S")wt(Ve,We);var Je=Q("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var Ze=v.prototype;Ze.add=De,Ze.calendar=function(t,e){var s=t||re(),a=ve(s,this).startOf("day"),i=this.diff(a,"days",!0),n=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse",o=e&&(A(e[n])?e[n]():e[n]);return this.format(o||this.localeData().calendar(n,this,re(s)))},Ze.clone=function(){return new v(this)},Ze.diff=function(t,e,s){var a,i,n,o;return this.isValid()&&(a=ve(t,this)).isValid()?(i=6e4*(a.utcOffset()-this.utcOffset()),"year"===(e=R(e))||"month"===e||"quarter"===e?(o=function(t,e){var s,a,i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");a=e-n<0?(s=t.clone().add(i-1,"months"),(e-n)/(n-s)):(s=t.clone().add(1+i,"months"),(e-n)/(s-n));return-(i+a)||0}(this,a),"quarter"===e?o/=3:"year"===e&&(o/=12)):(n=this-a,o="second"===e?n/1e3:"minute"===e?n/6e4:"hour"===e?n/36e5:"day"===e?(n-i)/864e5:"week"===e?(n-i)/6048e5:n),s?o:y(o)):NaN},Ze.endOf=function(t){return void 0===(t=R(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},Ze.format=function(t){t=t||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var e=J(this,t);return this.localeData().postformat(e)},Ze.from=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||re(t).isValid())?xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ze.fromNow=function(t){return this.from(re(),t)},Ze.to=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||re(t).isValid())?xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ze.toNow=function(t){return this.to(re(),t)},Ze.get=$,Ze.invalidAt=function(){return m(this).overflow},Ze.isAfter=function(t,e){var s=b(t)?t:re(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=R(u(e)?"millisecond":e))?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(e).valueOf())},Ze.isBefore=function(t,e){var s=b(t)?t:re(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=R(u(e)?"millisecond":e))?this.valueOf()<s.valueOf():this.clone().endOf(e).valueOf()<s.valueOf())},Ze.isBetween=function(t,e,s,a){return("("===(a=a||"()")[0]?this.isAfter(t,s):!this.isBefore(t,s))&&(")"===a[1]?this.isBefore(e,s):!this.isAfter(e,s))},Ze.isSame=function(t,e){var s,a=b(t)?t:re(t);return!(!this.isValid()||!a.isValid())&&("millisecond"===(e=R(e||"millisecond"))?this.valueOf()===a.valueOf():(s=a.valueOf(),this.clone().startOf(e).valueOf()<=s&&s<=this.clone().endOf(e).valueOf()))},Ze.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ze.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ze.isValid=function(){return r(this)},Ze.lang=Ee,Ze.locale=Se,Ze.localeData=Oe,Ze.max=de,Ze.min=ce,Ze.parsingFlags=function(){return l({},m(this))},Ze.set=$,Ze.startOf=function(t){switch(t=R(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},Ze.subtract=Te,Ze.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ze.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Ze.toDate=function(){return this._offset?new Date(this.valueOf()):this._d},Ze.toISOString=function(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?A(Date.prototype.toISOString)?this.toDate().toISOString():J(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):J(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},Ze.toJSON=function(){return this.isValid()?this.toISOString():null},Ze.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ze.unix=function(){return Math.floor(this.valueOf()/1e3)},Ze.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ze.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ze.year=Zt,Ze.isLeapYear=function(){return Jt(this.year())},Ze.weekYear=function(t){return Be.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ze.isoWeekYear=function(t){return Be.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ze.quarter=Ze.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ze.month=Ft,Ze.daysInMonth=function(){return Ot(this.year(),this.month())},Ze.week=Ze.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ze.isoWeek=Ze.isoWeeks=function(t){var e=ee(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ze.weeksInYear=function(){var t=this.localeData()._week;return se(this.year(),t.dow,t.doy)},Ze.isoWeeksInYear=function(){return se(this.year(),1,4)},Ze.date=Ie,Ze.day=Ze.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Ze.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Ze.isoWeekday=function(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:NaN},Ze.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Ze.hour=Ze.hours=Ge,Ze.minute=Ze.minutes=qe,Ze.second=Ze.seconds=Ke,Ze.millisecond=Ze.milliseconds=Je,Ze.utcOffset=function(t,e){var s,a=this._offset||0;return this.isValid()?null!=t?("string"==typeof t?t=ge(ht,t):Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(s=be(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),a!==t&&(!e||this._changeInProgress?Me(this,xe(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?a:be(this):null!=t?this:NaN},Ze.utc=function(t){return this.utcOffset(0,t)},Ze.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(be(this),"m")),this},Ze.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ge(pt,this._i)),this},Ze.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?re(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ze.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ze.isDSTShifted=function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=oe(t))._a){var e=t._isUTC?d(t._a):re(t._a);this._isDSTShifted=this.isValid()&&0<k(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted},Ze.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ze.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ze.isUtc=ye,Ze.isUTC=ye,Ze.zoneAbbr=function(){return this._isUTC?"UTC":""},Ze.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ze.dates=s("dates accessor is deprecated. Use date instead.",Ie),Ze.months=s("months accessor is deprecated. Use month instead",Ft),Ze.years=s("years accessor is deprecated. Use year instead",Zt),Ze.zone=s("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()});var Xe=Ze;function ts(t){return t}var es=T.prototype;function ss(t,e,s,a){var i=j(),n=d().set(a,e);return i[s](n,t)}function as(t,e,s){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return ss(t,e,s,"month");var a,i=[];for(a=0;a<12;a++)i[a]=ss(t,a,s,"month");return i}function is(t,e,s,a){e=("boolean"==typeof t?"number"==typeof e&&(s=e,e=void 0):(e=t,t=!1,"number"==typeof(s=e)&&(s=e,e=void 0)),e||"");var i,n=j(),o=t?n._week.dow:0;if(null!=s)return ss(e,(s+o)%7,a,"day");var l=[];for(i=0;i<7;i++)l[i]=ss(e,(i+o)%7,a,"day");return l}es._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},es.calendar=function(t,e,s){var a=this._calendar[t];return A(a)?a.call(e,s):a},es._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},es.longDateFormat=function(t){var e=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return e||!s?e:(this._longDateFormat[t]=s.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},es._invalidDate="Invalid date",es.invalidDate=function(){return this._invalidDate},es._ordinal="%d",es.ordinal=function(t){return this._ordinal.replace("%d",t)},es._ordinalParse=/\d{1,2}/,es.preparse=ts,es.postformat=ts,es._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},es.relativeTime=function(t,e,s,a){var i=this._relativeTime[s];return A(i)?i(t,e,s,a):i.replace(/%d/i,t)},es.pastFuture=function(t,e){var s=this._relativeTime[0<t?"future":"past"];return A(s)?s(e):s.replace(/%s/i,e)},es.set=function(t){var e,s;for(s in t)A(e=t[s])?this[s]=e:this["_"+s]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},es.months=function(t,e){return i(this._months)?this._months[t.month()]:this._months[Lt.test(e)?"format":"standalone"][t.month()]},es._months=Bt,es.monthsShort=function(t,e){return i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Lt.test(e)?"format":"standalone"][t.month()]},es._monthsShort=It,es.monthsParse=function(t,e,s){var a,i,n;if(this._monthsParseExact)return function(t,e,s){var a,i,n,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)n=d([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(n,"").toLocaleLowerCase();return s?"MMM"===e?-1!==(i=xt.call(this._shortMonthsParse,o))?i:null:-1!==(i=xt.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=xt.call(this._shortMonthsParse,o))?i:-1!==(i=xt.call(this._longMonthsParse,o))?i:null:-1!==(i=xt.call(this._longMonthsParse,o))?i:-1!==(i=xt.call(this._shortMonthsParse,o))?i:null}.call(this,t,e,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(i=d([2e3,a]),s&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(i,"").replace(".","")+"quot;,"i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"quot;,"i")),s||this._monthsParse[a]||(n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[a]=new RegExp(n.replace(".",""),"i")),s&&"MMMM"===e&&this._longMonthsParse[a].test(t))return a;if(s&&"MMM"===e&&this._shortMonthsParse[a].test(t))return a;if(!s&&this._monthsParse[a].test(t))return a}},es._monthsRegex=Rt,es.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||zt.call(this),t?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex},es._monthsShortRegex=Yt,es.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||zt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex},es.week=function(t){return ee(t,this._week.dow,this._week.doy).week},es._week={dow:0,doy:6},es.firstDayOfYear=function(){return this._week.doy},es.firstDayOfWeek=function(){return this._week.dow},es.weekdays=function(t,e){return i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]},es._weekdays=je,es.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},es._weekdaysMin=Ye,es.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},es._weekdaysShort=Fe,es.weekdaysParse=function(t,e,s){var a,i,n;if(this._weekdaysParseExact)return function(t,e,s){var a,i,n,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)n=d([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(n,"").toLocaleLowerCase();return s?"dddd"===e?-1!==(i=xt.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=xt.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=xt.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=xt.call(this._weekdaysParse,o))?i:-1!==(i=xt.call(this._shortWeekdaysParse,o))?i:-1!==(i=xt.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=xt.call(this._shortWeekdaysParse,o))?i:-1!==(i=xt.call(this._weekdaysParse,o))?i:-1!==(i=xt.call(this._minWeekdaysParse,o))?i:null:-1!==(i=xt.call(this._minWeekdaysParse,o))?i:-1!==(i=xt.call(this._weekdaysParse,o))?i:-1!==(i=xt.call(this._shortWeekdaysParse,o))?i:null}.call(this,t,e,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(i=d([2e3,1]).day(a),s&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"quot;,"i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"quot;,"i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"quot;,"i")),this._weekdaysParse[a]||(n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[a]=new RegExp(n.replace(".",""),"i")),s&&"dddd"===e&&this._fullWeekdaysParse[a].test(t))return a;if(s&&"ddd"===e&&this._shortWeekdaysParse[a].test(t))return a;if(s&&"dd"===e&&this._minWeekdaysParse[a].test(t))return a;if(!s&&this._weekdaysParse[a].test(t))return a}},es._weekdaysRegex=Re,es.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||He.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex},es._weekdaysShortRegex=ze,es.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||He.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex},es._weekdaysMinRegex=Qe,es.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||He.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex},es.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},es._meridiemParse=/[ap]\.?m?\.?/i,es.meridiem=function(t,e,s){return 11<t?s?"pm":"PM":s?"am":"AM"},B("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),p.lang=s("moment.lang is deprecated. Use moment.locale instead.",B),p.langData=s("moment.langData is deprecated. Use moment.localeData instead.",j);var ns=Math.abs;function os(t,e,s,a){var i=xe(e,s);return t._milliseconds+=a*i._milliseconds,t._days+=a*i._days,t._months+=a*i._months,t._bubble()}function ls(t){return t<0?Math.floor(t):Math.ceil(t)}function rs(t){return 4800*t/146097}function cs(t){return 146097*t/4800}function ds(t){return function(){return this.as(t)}}var us=ds("ms"),ps=ds("s"),hs=ds("m"),ms=ds("h"),fs=ds("d"),gs=ds("w"),vs=ds("M"),bs=ds("y");function ys(t){return function(){return this._data[t]}}var ws=ys("milliseconds"),ks=ys("seconds"),xs=ys("minutes"),Cs=ys("hours"),_s=ys("days"),Ps=ys("months"),As=ys("years");var Ms=Math.round,Ds={s:45,m:45,h:22,d:26,M:11};function Ts(t,e,s){var a=xe(t).abs(),i=Ms(a.as("s")),n=Ms(a.as("m")),o=Ms(a.as("h")),l=Ms(a.as("d")),r=Ms(a.as("M")),c=Ms(a.as("y")),d=i<Ds.s&&["s",i]||n<=1&&["m"]||n<Ds.m&&["mm",n]||o<=1&&["h"]||o<Ds.h&&["hh",o]||l<=1&&["d"]||l<Ds.d&&["dd",l]||r<=1&&["M"]||r<Ds.M&&["MM",r]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=0<+t,d[4]=s,function(t,e,s,a,i){return i.relativeTime(e||1,!!s,t,a)}.apply(null,d)}var Ss=Math.abs;function Es(){var t,e,s=Ss(this._milliseconds)/1e3,a=Ss(this._days),i=Ss(this._months);t=y(s/60),e=y(t/60),s%=60,t%=60;var n=y(i/12),o=i%=12,l=a,r=e,c=t,d=s,u=this.asSeconds();return u?(u<0?"-":"")+"P"+(n?n+"Y":"")+(o?o+"M":"")+(l?l+"D":"")+(r||c||d?"T":"")+(r?r+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var Os=pe.prototype;return Os.abs=function(){var t=this._data;return this._milliseconds=ns(this._milliseconds),this._days=ns(this._days),this._months=ns(this._months),t.milliseconds=ns(t.milliseconds),t.seconds=ns(t.seconds),t.minutes=ns(t.minutes),t.hours=ns(t.hours),t.months=ns(t.months),t.years=ns(t.years),this},Os.add=function(t,e){return os(this,t,e,1)},Os.subtract=function(t,e){return os(this,t,e,-1)},Os.as=function(t){var e,s,a=this._milliseconds;if("month"===(t=R(t))||"year"===t)return e=this._days+a/864e5,s=this._months+rs(e),"month"===t?s:s/12;switch(e=this._days+Math.round(cs(this._months)),t){case"week":return e/7+a/6048e5;case"day":return e+a/864e5;case"hour":return 24*e+a/36e5;case"minute":return 1440*e+a/6e4;case"second":return 86400*e+a/1e3;case"millisecond":return Math.floor(864e5*e)+a;default:throw new Error("Unknown unit "+t)}},Os.asMilliseconds=us,Os.asSeconds=ps,Os.asMinutes=hs,Os.asHours=ms,Os.asDays=fs,Os.asWeeks=gs,Os.asMonths=vs,Os.asYears=bs,Os.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)},Os._bubble=function(){var t,e,s,a,i,n=this._milliseconds,o=this._days,l=this._months,r=this._data;return 0<=n&&0<=o&&0<=l||n<=0&&o<=0&&l<=0||(n+=864e5*ls(cs(l)+o),l=o=0),r.milliseconds=n%1e3,t=y(n/1e3),r.seconds=t%60,e=y(t/60),r.minutes=e%60,s=y(e/60),r.hours=s%24,o+=y(s/24),l+=i=y(rs(o)),o-=ls(cs(i)),a=y(l/12),l%=12,r.days=o,r.months=l,r.years=a,this},Os.get=function(t){return this[(t=R(t))+"s"]()},Os.milliseconds=ws,Os.seconds=ks,Os.minutes=xs,Os.hours=Cs,Os.days=_s,Os.weeks=function(){return y(this.days()/7)},Os.months=Ps,Os.years=As,Os.humanize=function(t){var e=this.localeData(),s=Ts(this,!t,e);return t&&(s=e.pastFuture(+this,s)),e.postformat(s)},Os.toISOString=Es,Os.toString=Es,Os.toJSON=Es,Os.locale=Se,Os.localeData=Oe,Os.toIsoString=s("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Es),Os.lang=Ee,W("X",0,0,"unix"),W("x",0,0,"valueOf"),gt("x",ut),gt("X",/[+-]?\d+(\.\d{1,3})?/),wt("X",function(t,e,s){s._d=new Date(1e3*parseFloat(t,10))}),wt("x",function(t,e,s){s._d=new Date(w(t))}),p.version="2.13.0",t=re,p.fn=Xe,p.min=function(){return ue("isBefore",[].slice.call(arguments,0))},p.max=function(){return ue("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=d,p.unix=function(t){return re(1e3*t)},p.months=function(t,e){return as(t,e,"months")},p.isDate=n,p.locale=B,p.invalid=c,p.duration=xe,p.isMoment=b,p.weekdays=function(t,e,s){return is(t,e,s,"weekdays")},p.parseZone=function(){return re.apply(null,arguments).parseZone()},p.localeData=j,p.isDuration=he,p.monthsShort=function(t,e){return as(t,e,"monthsShort")},p.weekdaysMin=function(t,e,s){return is(t,e,s,"weekdaysMin")},p.defineLocale=I,p.updateLocale=function(t,e){var s;return null!=e?(null!=E[t]&&(e=D(E[t]._config,e)),(s=new T(e)).parentLocale=E[t],E[t]=s,B(t)):null!=E[t]&&(null!=E[t].parentLocale?E[t]=E[t].parentLocale:null!=E[t]&&delete E[t]),E[t]},p.locales=function(){return C(E)},p.weekdaysShort=function(t,e,s){return is(t,e,s,"weekdaysShort")},p.normalizeUnits=R,p.relativeTimeThreshold=function(t,e){return void 0!==Ds[t]&&(void 0===e?Ds[t]:(Ds[t]=e,!0))},p.prototype=Xe,p}),(typeof define==="function"&&define.amd?define:function(t,e){if(typeof module!=="undefined"&&module.exports){module.exports=e(require("jquery"))}else{window.toastr=e(window.jQuery)}})(["jquery"],function(g){return C=0,n="error",o="info",l="success",r="warning",t={clear:function(t,e){var s=y();k||v(s);a(t,s,e)||function(t){for(var e=k.children(),s=e.length-1;0<=s;s--)a(g(e[s]),t)}(s)},remove:function(t){var e=y();k||v(e);if(t&&0===g(":focus",t).length)return void w(t);k.children().length&&k.remove()},error:function(t,e,s){return i({type:n,iconClass:y().iconClasses.error,message:t,optionsOverride:s,title:e})},getContainer:v,info:function(t,e,s){return i({type:o,iconClass:y().iconClasses.info,message:t,optionsOverride:s,title:e})},options:{},subscribe:function(t){e=t},success:function(t,e,s){return i({type:l,iconClass:y().iconClasses.success,message:t,optionsOverride:s,title:e})},version:"2.1.3",warning:function(t,e,s){return i({type:r,iconClass:y().iconClasses.warning,message:t,optionsOverride:s,title:e})}};function v(t,e){return t=t||y(),(k=g("#"+t.containerId)).length||e&&(k=function(t){return(k=g("<div/>").attr("id",t.containerId).addClass(t.positionClass)).appendTo(g(t.target)),k}(t)),k}function a(t,e,s){var a=!(!s||!s.force)&&s.force;return!(!t||!a&&0!==g(":focus",t).length)&&(t[e.hideMethod]({duration:e.hideDuration,easing:e.hideEasing,complete:function(){w(t)}}),!0)}function b(t){e&&e(t)}function i(e){var i=y(),t=e.iconClass||i.iconClass;if(void 0!==e.optionsOverride&&(i=g.extend(i,e.optionsOverride),t=e.optionsOverride.iconClass||t),!function(t,e){if(t.preventDuplicates){if(e.message===x)return!0;x=e.message}return!1}(i,e)){C++,k=v(i,!0);var n=null,o=g("<div/>"),s=g("<div/>"),a=g("<div/>"),l=g("<div/>"),r=g(i.closeHtml),c={intervalId:null,hideEta:null,maxHideTime:null},d={toastId:C,state:"visible",startTime:new Date,options:i,map:e};return e.iconClass&&o.addClass(i.toastClass).addClass(t),function(){if(e.title){var t=e.title;i.escapeHtml&&(t=u(e.title)),s.append(t).addClass(i.titleClass),o.append(s)}}(),function(){if(e.message){var t=e.message;i.escapeHtml&&(t=u(e.message)),a.append(t).addClass(i.messageClass),o.append(a)}}(),i.closeButton&&(r.addClass(i.closeClass).attr("role","button"),o.prepend(r)),i.progressBar&&(l.addClass(i.progressClass),o.prepend(l)),i.rtl&&o.addClass("rtl"),i.newestOnTop?k.prepend(o):k.append(o),function(){var t="";switch(e.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}o.attr("aria-live",t)}(),o.hide(),o[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),0<i.timeOut&&(n=setTimeout(p,i.timeOut),c.maxHideTime=parseFloat(i.timeOut),c.hideEta=(new Date).getTime()+c.maxHideTime,i.progressBar&&(c.intervalId=setInterval(f,10))),function(){i.closeOnHover&&o.hover(m,h);!i.onclick&&i.tapToDismiss&&o.click(p);i.closeButton&&r&&r.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(t),p(!0)});i.onclick&&o.click(function(t){i.onclick(t),p()})}(),b(d),i.debug&&console&&console.log(d),o}function u(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function p(t){var e=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,s=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,a=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!g(":focus",o).length||t)return clearTimeout(c.intervalId),o[e]({duration:s,easing:a,complete:function(){w(o),clearTimeout(n),i.onHidden&&"hidden"!==d.state&&i.onHidden(),d.state="hidden",d.endTime=new Date,b(d)}})}function h(){(0<i.timeOut||0<i.extendedTimeOut)&&(n=setTimeout(p,i.extendedTimeOut),c.maxHideTime=parseFloat(i.extendedTimeOut),c.hideEta=(new Date).getTime()+c.maxHideTime)}function m(){clearTimeout(n),c.hideEta=0,o.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function f(){var t=(c.hideEta-(new Date).getTime())/c.maxHideTime*100;l.width(t+"%")}}function y(){return g.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},t.options)}function w(t){k=k||v(),t.is(":visible")||(t.remove(),t=null,0===k.children().length&&(k.remove(),x=void 0))}var k,e,x,C,n,o,l,r,t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(b){"use strict";var y=b.scrollTo=function(t,e,s){return b(window).scrollTo(t,e,s)};function w(t){return!t.nodeName||-1!==b.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function e(t){return b.isFunction(t)||b.isPlainObject(t)?t:{top:t,left:t}}return y.defaults={axis:"xy",duration:0,limit:!0},b.fn.scrollTo=function(t,s,g){"object"==typeof s&&(g=s,s=0),"function"==typeof g&&(g={onAfter:g}),"max"===t&&(t=9e9),g=b.extend({},y.defaults,g),s=s||g.duration;var v=g.queue&&1<g.axis.length;return v&&(s/=2),g.offset=e(g.offset),g.over=e(g.over),this.each(function(){if(null!==t){var r,c=w(this),d=c?this.contentWindow||window:this,u=b(d),p=t,h={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?#x2F;.test(p)){p=e(p);break}p=c?b(p):b(p,d);case"object":if(0===p.length)return;(p.is||p.style)&&(r=(p=b(p)).offset())}var m=b.isFunction(g.offset)&&g.offset(d,p)||g.offset;b.each(g.axis.split(""),function(t,e){var s="x"===e?"Left":"Top",a=s.toLowerCase(),i="scroll"+s,n=u[i](),o=y.max(d,e);if(r)h[i]=r[a]+(c?0:n-u.offset()[a]),g.margin&&(h[i]-=parseInt(p.css("margin"+s),10)||0,h[i]-=parseInt(p.css("border"+s+"Width"),10)||0),h[i]+=m[a]||0,g.over[a]&&(h[i]+=p["x"===e?"width":"height"]()*g.over[a]);else{var l=p[a];h[i]=l.slice&&"%"===l.slice(-1)?parseFloat(l)/100*o:l}g.limit&&/^\d+#x2F;.test(h[i])&&(h[i]=h[i]<=0?0:Math.min(h[i],o)),!t&&1<g.axis.length&&(n===h[i]?h={}:v&&(f(g.onAfterFirst),h={}))}),f(g.onAfter)}function f(t){var e=b.extend({},g,{queue:!0,duration:s,complete:t&&function(){t.call(d,p,g)}});u.animate(h,e)}})},y.max=function(t,e){var s="x"===e?"Width":"Height",a="scroll"+s;if(!w(t))return t[a]-b(t)[s.toLowerCase()]();var i="client"+s,n=t.ownerDocument||t.document,o=n.documentElement,l=n.body;return Math.max(o[a],l[a])-Math.min(o[i],l[i])},b.Tween.propHooks.scrollLeft=b.Tween.propHooks.scrollTop={get:function(t){return b(t.elem)[t.prop]()},set:function(t){var e=this.get(t);if(t.options.interrupt&&t._last&&t._last!==e)return b(t.elem).stop();var s=Math.round(t.now);e!==s&&(b(t.elem)[t.prop](s),t._last=this.get(t))}},y}),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.striptags=e()}(this,function(){var p=/\s/,h=/<(\w*)>/g;return function(t,n){t=t||"";var e,s,a,i=0,o=0,l="",r="",c=!1;for("string"==typeof n?n=function(t){var e,s=[];for(;null!==(e=h.exec(t));)s.push(e[1]);return 0!==s.length?s:null}(n):Array.isArray(n)||(n=null),e=0,s=t.length;e<s;e++)switch(a=t[e]){case"<":if(c)break;if(" "==t[e+1]){d(a);break}if(0==i){i=1,d(a);break}if(1==i){o++;break}d(a);break;case">":if(o){o--;break}if(c)break;if(1==i){c=i=0,n&&(r+=">",u());break}if(2==i){c=i=0,r="";break}if(3==i&&"-"==t[e-1]&&"-"==t[e-2]){c=i=0,r="";break}d(a);break;case'"':case"'":1==i&&(c=c!=a&&(c||a)),d(a);break;case"!":if(1==i&&"<"==t[e-1]){i=2;break}d(a);break;case"-":if(2==i&&"-"==t[e-1]&&"!"==t[e-2]){i=3;break}d(a);break;case"E":case"e":if(2==i&&"doctype"==t.substr(e-6,7).toLowerCase()){i=1;break}d(a);break;default:d(a)}function d(t){0==i?l+=t:n&&1==i&&(r+=t)}function u(){var t,e,s,a="",i=!1;t:for(t=0,e=r.length;t<e;t++)switch(s=r[t].toLowerCase()){case"<":break;case">":break t;case"/":i=!0;break;default:if(s.match(p)){if(i)break t}else i=!0,a+=s}-1!==n.indexOf(a)&&(l+=r),r=""}return l}}),function(t){"use strict";function e(t){if("#"!=t.charAt(1))return i[t]||t;var e,s=t.charAt(2);return e="x"==s||"X"==s?(s=t.substring(3,t.length-1),parseInt(s,16)):(s=t.substring(2,t.length-1),parseInt(s)),isNaN(e)?t:String.fromCharCode(e)}function s(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(t){return t.replace(/&#?\w+;/g,e)}var i={"&nbsp;":" ","&iexcl;":"¡","&cent;":"¢","&pound;":"£","&curren;":"¤","&yen;":"¥","&brvbar;":"¦","&sect;":"§","&uml;":"¨","&copy;":"©","&ordf;":"ª","&laquo;":"«","&not;":"¬","&shy;":"­","&reg;":"®","&macr;":"¯","&deg;":"°","&plusmn;":"±","&sup2;":"²","&sup3;":"³","&acute;":"´","&micro;":"µ","&para;":"¶","&middot;":"·","&cedil;":"¸","&sup1;":"¹","&ordm;":"º","&raquo;":"»","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&iquest;":"¿","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&times;":"×","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&divide;":"÷","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&quot;":'"',"&amp;":"&","&lt;":"<","&gt;":">","&apos;":"'","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&circ;":"ˆ","&tilde;":"˜","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&zwnj;":"‌","&zwj;":"‍","&lrm;":"‎","&rlm;":"‏","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&permil;":"‰","&lsaquo;":"‹","&rsaquo;":"›","&euro;":"€","&fnof;":"ƒ","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigmaf;":"ς","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&thetasym;":"ϑ","&upsih;":"ϒ","&piv;":"ϖ","&bull;":"•","&hellip;":"…","&prime;":"′","&Prime;":"″","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&trade;":"™","&alefsym;":"ℵ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&forall;":"∀","&part;":"∂","&exist;":"∃","&empty;":"∅","&nabla;":"∇","&isin;":"∈","&notin;":"∉","&ni;":"∋","&prod;":"∏","&sum;":"∑","&minus;":"−","&lowast;":"∗","&radic;":"√","&prop;":"∝","&infin;":"∞","&ang;":"∠","&and;":"∧","&or;":"∨","&cap;":"∩","&cup;":"∪","&int;":"∫","&there4;":"∴","&sim;":"∼","&cong;":"≅","&asymp;":"≈","&ne;":"≠","&equiv;":"≡","&le;":"≤","&ge;":"≥","&sub;":"⊂","&sup;":"⊃","&nsub;":"⊄","&sube;":"⊆","&supe;":"⊇","&oplus;":"⊕","&otimes;":"⊗","&perp;":"⊥","&sdot;":"⋅","&lceil;":"⌈","&rceil;":"⌉","&lfloor;":"⌊","&rfloor;":"⌋","&lang;":"〈","&rang;":"〉","&loz;":"◊","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦"};"undefined"!=typeof module?((s.htmlEncode=s).htmlDecode=a,module.exports=s):t&&(t.htmlEncode=s,t.htmlDecode=a)}(this),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Clipboard=t()}}(function(){return function n(o,l,r){function c(s,t){if(!l[s]){if(!o[s]){var e="function"==typeof require&&require;if(!t&&e)return e(s,!0);if(d)return d(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var i=l[s]={exports:{}};o[s][0].call(i.exports,function(t){var e=o[s][1][t];return c(e||t)},i,i.exports,n,o,l,r)}return l[s].exports}for(var d="function"==typeof require&&require,t=0;t<r.length;t++)c(r[t]);return c}({1:[function(t,e,s){var i=t("matches-selector");e.exports=function(t,e,s){for(var a=s?t:t.parentNode;a&&a!==document;){if(i(a,e))return a;a=a.parentNode}}},{"matches-selector":5}],2:[function(t,e,s){var o=t("closest");e.exports=function(t,e,s,a,i){var n=function(e,s,t,a){return function(t){t.delegateTarget=o(t.target,s,!0),t.delegateTarget&&a.call(e,t)}}.apply(this,arguments);return t.addEventListener(s,n,i),{destroy:function(){t.removeEventListener(s,n,i)}}}},{closest:1}],3:[function(t,e,s){s.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},s.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||s.node(t[0]))},s.string=function(t){return"string"==typeof t||t instanceof String},s.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,s){var a=t("./is"),i=t("delegate");e.exports=function(t,e,s){if(!t&&!e&&!s)throw new Error("Missing required arguments");if(!a.string(e))throw new TypeError("Second argument must be a String");if(!a.fn(s))throw new TypeError("Third argument must be a Function");if(a.node(t))return function(t,e,s){return t.addEventListener(e,s),{destroy:function(){t.removeEventListener(e,s)}}}(t,e,s);if(a.nodeList(t))return function(t,e,s){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,s)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,s)})}}}(t,e,s);if(a.string(t))return function(t,e,s){return i(document.body,t,e,s)}(t,e,s);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},{"./is":3,delegate:2}],5:[function(t,e,s){var a=Element.prototype,i=a.matchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;e.exports=function(t,e){if(i)return i.call(t,e);for(var s=t.parentNode.querySelectorAll(e),a=0;a<s.length;++a)if(s[a]==t)return!0;return!1}},{}],6:[function(t,e,s){e.exports=function(t){var e;if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName)t.focus(),t.setSelectionRange(0,t.value.length),e=t.value;else{t.hasAttribute("contenteditable")&&t.focus();var s=window.getSelection(),a=document.createRange();a.selectNodeContents(t),s.removeAllRanges(),s.addRange(a),e=s.toString()}return e}},{}],7:[function(t,e,s){function a(){}a.prototype={on:function(t,e,s){var a=this.e||(this.e={});return(a[t]||(a[t]=[])).push({fn:e,ctx:s}),this},once:function(t,e,s){var a=this;function i(){a.off(t,i),e.apply(s,arguments)}return i._=e,this.on(t,i,s)},emit:function(t){for(var e=[].slice.call(arguments,1),s=((this.e||(this.e={}))[t]||[]).slice(),a=0,i=s.length;a<i;a++)s[a].fn.apply(s[a].ctx,e);return this},off:function(t,e){var s=this.e||(this.e={}),a=s[t],i=[];if(a&&e)for(var n=0,o=a.length;n<o;n++)a[n].fn!==e&&a[n].fn._!==e&&i.push(a[n]);return i.length?s[t]=i:delete s[t],this}},e.exports=a},{}],8:[function(a,i,n){!function(t,e){if(0,void 0!==n)e(i,a("select"));else{var s={exports:{}};e(s,t.select),t.clipboardAction=s.exports}}(this,function(t,e){"use strict";var s,a=(s=e)&&s.__esModule?s:{default:s};var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};var n=function(t,e,s){return e&&o(t.prototype,e),s&&o(t,s),t};function o(t,e){for(var s=0;s<e.length;s++){var a=e[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var l=(r.prototype.resolveOptions=function(t){var e=arguments.length<=0||void 0===t?{}:t;this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""},r.prototype.initSelection=function(){this.text?this.selectFake():this.target&&this.selectTarget()},r.prototype.selectFake=function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()},r.prototype.removeFake=function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},r.prototype.selectTarget=function(){this.selectedText=(0,a.default)(this.target),this.copyText()},r.prototype.copyText=function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)},r.prototype.handleResult=function(t){t?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},r.prototype.clearSelection=function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},r.prototype.destroy=function(){this.removeFake()},n(r,[{key:"action",set:function(t){var e=arguments.length<=0||void 0===t?"copy":t;if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),r);function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.resolveOptions(t),this.initSelection()}t.exports=l})},{select:6}],9:[function(a,i,n){!function(t,e){if(0,void 0!==n)e(i,a("./clipboard-action"),a("tiny-emitter"),a("good-listener"));else{var s={exports:{}};e(s,t.clipboardAction,t.tinyEmitter,t.goodListener),t.clipboard=s.exports}}(this,function(t,e,s,a){"use strict";var i=l(e),n=l(s),o=l(a);function l(t){return t&&t.__esModule?t:{default:t}}var r,c=(function(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)}(d,r=n.default),d.prototype.resolveOptions=function(t){var e=arguments.length<=0||void 0===t?{}:t;this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText},d.prototype.listenClick=function(t){var e=this;this.listener=(0,o.default)(t,"click",function(t){return e.onClick(t)})},d.prototype.onClick=function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(e),target:this.target(e),text:this.text(e),trigger:e,emitter:this})},d.prototype.defaultAction=function(t){return u("action",t)},d.prototype.defaultTarget=function(t){var e=u("target",t);if(e)return document.querySelector(e)},d.prototype.defaultText=function(t){return u("text",t)},d.prototype.destroy=function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},d);function d(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);var s=function(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}(this,r.call(this));return s.resolveOptions(e),s.listenClick(t),s}function u(t,e){var s="data-clipboard-"+t;if(e.hasAttribute(s))return e.getAttribute(s)}t.exports=c})},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(t){var e,s,a,p,n,o,h,m,f,g,v,b,i,l,y;function w(t,e){return i.call(t,e)}function r(t,e){var s,a,i,n,o,l,r,c,d,u,p,h=e&&e.split("/"),m=v.map,f=m&&m["*"]||{};if(t&&"."===t.charAt(0))if(e){for(h=h.slice(0,h.length-1),o=(t=t.split("/")).length-1,v.nodeIdCompat&&y.test(t[o])&&(t[o]=t[o].replace(y,"")),t=h.concat(t),d=0;d<t.length;d+=1)if("."===(p=t[d]))t.splice(d,1),d-=1;else if(".."===p){if(1===d&&(".."===t[2]||".."===t[0]))break;0<d&&(t.splice(d-1,2),d-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((h||f)&&m){for(d=(s=t.split("/")).length;0<d;d-=1){if(a=s.slice(0,d).join("/"),h)for(u=h.length;0<u;u-=1)if(i=(i=m[h.slice(0,u).join("/")])&&i[a]){n=i,l=d;break}if(n)break;!r&&f&&f[a]&&(r=f[a],c=d)}!n&&r&&(n=r,l=c),n&&(s.splice(0,l,n),t=s.join("/"))}return t}function k(t,e){return function(){return o.apply(p,l.call(arguments,0).concat([t,e]))}}function x(e){return function(t){f[e]=t}}function C(t){if(w(g,t)){var e=g[t];delete g[t],b[t]=!0,n.apply(p,e)}if(!w(f,t)&&!w(b,t))throw new Error("No "+t);return f[t]}function c(t){var e,s=t?t.indexOf("!"):-1;return-1<s&&(e=t.substring(0,s),t=t.substring(s+1,t.length)),[e,t]}f={},g={},v={},b={},i=Object.prototype.hasOwnProperty,l=[].slice,y=/\.js#x2F;,h=function(t,e){var s,a=c(t),i=a[0];return t=a[1],i&&(s=C(i=r(i,e))),i?t=s&&s.normalize?s.normalize(t,function(e){return function(t){return r(t,e)}}(e)):r(t,e):(i=(a=c(t=r(t,e)))[0],t=a[1],i&&(s=C(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:s}},m={require:function(t){return k(t)},exports:function(t){var e=f[t];return void 0!==e?e:f[t]={}},module:function(t){return{id:t,uri:"",exports:f[t],config:function(t){return function(){return v&&v.config&&v.config[t]||{}}}(t)}}},n=function(t,e,s,a){var i,n,o,l,r,c,d=[],u=typeof s;if(a=a||t,"undefined"==u||"function"==u){for(e=!e.length&&s.length?["require","exports","module"]:e,r=0;r<e.length;r+=1)if("require"===(n=(l=h(e[r],a)).f))d[r]=m.require(t);else if("exports"===n)d[r]=m.exports(t),c=!0;else if("module"===n)i=d[r]=m.module(t);else if(w(f,n)||w(g,n)||w(b,n))d[r]=C(n);else{if(!l.p)throw new Error(t+" missing "+n);l.p.load(l.n,k(a,!0),x(n),{}),d[r]=f[n]}o=s?s.apply(f[t],d):void 0,t&&(i&&i.exports!==p&&i.exports!==f[t]?f[t]=i.exports:o===p&&c||(f[t]=o))}else t&&(f[t]=s)},e=s=o=function(t,e,s,a,i){if("string"==typeof t)return m[t]?m[t](e):C(h(t,e).f);if(!t.splice){if((v=t).deps&&o(v.deps,v.callback),!e)return;e.splice?(t=e,e=s,s=null):t=p}return e=e||function(){},"function"==typeof s&&(s=a,a=i),a?n(p,t,e,s):setTimeout(function(){n(p,t,e,s)},4),o},o.config=function(t){return o(t)},e._defined=f,(a=function(t,e,s){e.splice||(s=e,e=[]),w(f,t)||w(g,t)||(g[t]=[t,e,s])}).amd={jQuery:!0},a("almond",function(){}),a("visualcaptcha/core",[],function(){"use strict";var i,s,a,n,o,l,r,c;return i=function(t,e,s){return s=s||[],t.namespace&&0<t.namespace.length&&s.push(t.namespaceFieldName+"="+t.namespace),s.push(t.randomParam+"="+t.randomNonce),e+"&"+s.join("&")},s=function(e){var t,s=this;e.applyRandomNonce(),e.isLoading=!0,t=a(e),e._loading(s),e.callbacks.loading&&e.callbacks.loading(s),e.request(t,function(t){t.audioFieldName&&(e.audioFieldName=t.audioFieldName),t.imageFieldName&&(e.imageFieldName=t.imageFieldName),t.imageName&&(e.imageName=t.imageName),t.values&&(e.imageValues=t.values),e.isLoading=!1,e.hasLoaded=!0,e._loaded(s),e.callbacks.loaded&&e.callbacks.loaded(s)})},a=function(t){var e=t.url+t.routes.start+"&_img="+t.numberOfImages;return i(t,e)},n=function(t,e){var s="",a=[];return e<0||e>=t.numberOfImages?s:(this.isRetina()&&a.push("retina=1"),s=t.url+t.routes.image+"&_id="+e,i(t,s,a))},o=function(t,e){var s=t.url+t.routes.audio;return e&&(s+="/ogg"),i(t,s)},l=function(t,e){return 0<=e&&e<t.numberOfImages?t.imageValues[e]:""},r=function(){return void 0!==window.devicePixelRatio&&1<window.devicePixelRatio},c=function(){var t=!1;try{document.createElement("audio").canPlayType&&(t=!0)}catch(t){}return t},function(e){var t;return t={refresh:function(){return s.call(this,e)},isLoading:function(){return e.isLoading},hasLoaded:function(){return e.hasLoaded},numberOfImages:function(){return e.imageValues.length},imageName:function(){return e.imageName},imageValue:function(t){return l.call(this,e,t)},imageUrl:function(t){return n.call(this,e,t)},audioUrl:function(t){return o.call(this,e,t)},imageFieldName:function(){return e.imageFieldName},audioFieldName:function(){return e.audioFieldName},namespace:function(){return e.namespace},namespaceFieldName:function(){return e.namespaceFieldName},isRetina:r,supportsAudio:c},e.autoRefresh&&t.refresh(),t}}),a("visualcaptcha/xhr-request",[],function(){"use strict";var a=window.XMLHttpRequest;return function(t,e){var s=new a;s.open("GET",t,!0),s.onreadystatechange=function(){var t;4===s.readyState&&200===s.status&&(t=JSON.parse(s.responseText),e(t))},s.send()}}),a("visualcaptcha/config",["visualcaptcha/xhr-request"],function(a){"use strict";return function(t){var e=window.location.href.split("/");e[e.length-1]="";var s={request:a,url:e.join("/").slice(0,-1),namespace:"",namespaceFieldName:"namespace",routes:{start:"/start",image:"/image",audio:"/audio"},isLoading:!1,hasLoaded:!1,autoRefresh:!0,numberOfImages:6,randomNonce:"",randomParam:"r",audioFieldName:"",imageFieldName:"",imageName:"",imageValues:[],callbacks:{},_loading:function(){},_loaded:function(){},applyRandomNonce:function(){return s.randomNonce=Math.random().toString(36).substring(2)}};return t.request&&(s.request=t.request),t.url&&(s.url=t.url),t.namespace&&(s.namespace=t.namespace),t.namespaceFieldName&&(s.namespaceFieldName=t.namespaceFieldName),void 0!==t.autoRefresh&&(s.autoRefresh=t.autoRefresh),t.numberOfImages&&(s.numberOfImages=t.numberOfImages),t.routes&&(t.routes.start&&(s.routes.start=t.routes.start),t.routes.image&&(s.routes.image=t.routes.image),t.routes.audio&&(s.routes.audio=t.routes.audio)),t.randomParam&&(s.randomParam=t.randomParam),t.callbacks&&(t.callbacks.loading&&(s.callbacks.loading=t.callbacks.loading),t.callbacks.loaded&&(s.callbacks.loaded=t.callbacks.loaded)),t._loading&&(s._loading=t._loading),t._loaded&&(s._loaded=t._loaded),s}}),a("visualcaptcha",["require","visualcaptcha/core","visualcaptcha/config"],function(t){"use strict";var e=t("visualcaptcha/core"),s=t("visualcaptcha/config");return function(t){return e(s(t=t||{}))}}),a("visualcaptcha/templates",[],function(){"use strict";var l;return l=function(t,e){for(var s in e)t=t.replace(new RegExp("{"+s+"}","g"),e[s]);return t},{buttons:function(t,e,s){var a,i;return'<div class="visualCaptcha-accessibility-button"><a href="#"><img src="{path}accessibility{retinaExtra}.png" title="{accessibilityTitle}" alt="{accessibilityAlt}" /></a></div>','<div class="visualCaptcha-refresh-button"><a href="#"><img src="{path}refresh{retinaExtra}.png" title="{refreshTitle}" alt="{refreshAlt}" /></a></div>',a='<div class="visualCaptcha-button-group"><div class="visualCaptcha-refresh-button"><a href="#"><img src="{path}refresh{retinaExtra}.png" title="{refreshTitle}" alt="{refreshAlt}" /></a></div>'+(t.supportsAudio()?'<div class="visualCaptcha-accessibility-button"><a href="#"><img src="{path}accessibility{retinaExtra}.png" title="{accessibilityTitle}" alt="{accessibilityAlt}" /></a></div>':"")+"</div>",i={path:s||"",refreshTitle:e.refreshTitle,refreshAlt:e.refreshAlt,accessibilityTitle:e.accessibilityTitle,accessibilityAlt:e.accessibilityAlt,retinaExtra:t.isRetina()?"@2x":""},l(a,i)},accessibility:function(t,e){var s;return t.supportsAudio()?('<div class="visualCaptcha-accessibility-wrapper visualCaptcha-hide"><div class="accessibility-description">{accessibilityDescription}</div><audio preload="preload"><source src="{audioURL}" type="audio/ogg" /><source src="{audioURL}" type="audio/mpeg" /></audio></div>',s={accessibilityDescription:e.accessibilityDescription,audioURL:t.audioUrl(),audioFieldName:t.audioFieldName()},l('<div class="visualCaptcha-accessibility-wrapper visualCaptcha-hide"><div class="accessibility-description">{accessibilityDescription}</div><audio preload="preload"><source src="{audioURL}" type="audio/ogg" /><source src="{audioURL}" type="audio/mpeg" /></audio></div>',s)):""},images:function(t,e){for(var s,a,i="",n=0,o=t.numberOfImages();n<o;n++)s='<div class="img"><a href="#"><img src="{imageUrl}" id="visualCaptcha-img-{i}" data-index="{i}" alt="" title="" /></a></div>',a={imageUrl:t.imageUrl(n),i:n},i+=l(s,a);return s='<p class="visualCaptcha-explanation">{explanation}</p><div class="visualCaptcha-possibilities">{images}</div>',a={imageFieldName:t.imageFieldName(),explanation:e.explanation.replace(/ANSWER/,t.imageName()),images:i},l(s,a)},audioInput:function(t){var e;return'<input class="form-control audioField" type="text" name="{audioFieldName}" value="" autocomplete="off" />',e={audioFieldName:t.audioFieldName()},l('<input class="form-control audioField" type="text" name="{audioFieldName}" value="" autocomplete="off" />',e)},imageInput:function(t,e){var s;return'<input class="form-control imageField" type="hidden" name="{imageFieldName}" value="{value}" readonly="readonly" />',s={imageFieldName:t.imageFieldName(),value:t.imageValue(e)},l('<input class="form-control imageField" type="hidden" name="{imageFieldName}" value="{value}" readonly="readonly" />',s)},namespaceInput:function(t){var e,s=t.namespace();return s&&0!==s.length?('<input type="hidden" name="{fieldName}" value="{value}" />',e={fieldName:t.namespaceFieldName(),value:s},l('<input type="hidden" name="{fieldName}" value="{value}" />',e)):""}}}),a("visualcaptcha/language",[],function(){"use strict";return{accessibilityAlt:"Sound icon",accessibilityTitle:"Accessibility option: listen to a question and answer it!",accessibilityDescription:"Type below the <strong>answer</strong> to what you hear. Numbers or words:",explanation:"Click or touch the <strong>ANSWER</strong>",refreshAlt:"Refresh/reload icon",refreshTitle:"Refresh/reload: get new images and accessibility option!"}}),a("visualcaptcha.jquery",["jquery","visualcaptcha","visualcaptcha/templates","visualcaptcha/language"],function(r,i,c,e){"use strict";var s,n,o,l,d,u,p;s=function(t,e){r.get(t,e,"json")},n=function(){},o=function(t,e,s){var a;a=c.namespaceInput(s)+c.accessibility(s,t.language)+c.images(s,t.language)+c.buttons(s,t.language,t.imgPath),e.html(a)},l=function(t){var e,s=r(this).closest(".visualCaptcha"),a=s.find(".visualCaptcha-accessibility-wrapper"),i=s.find(".visualCaptcha-possibilities"),n=s.find(".visualCaptcha-explanation"),o=a.find("audio");a.hasClass("visualCaptcha-hide")?(i.toggleClass("visualCaptcha-hide"),n.toggleClass("visualCaptcha-hide"),i.find(".img").removeClass("visualCaptcha-selected"),n.find("input").val(""),e=c.audioInput(s.data("captcha")),r(e).insertBefore(o),a.toggleClass("visualCaptcha-hide"),o[0].load(),o[0].play()):(o[0].pause(),a.toggleClass("visualCaptcha-hide"),a.find("input").remove(),n.toggleClass("visualCaptcha-hide"),i.toggleClass("visualCaptcha-hide")),t.preventDefault()},d=function(t){var e,s,a,i=r(this),n=i.closest(".visualCaptcha"),o=n.find(".visualCaptcha-possibilities"),l=n.find(".visualCaptcha-explanation");(s=l.find("input"))&&(s.remove(),o.find("a").removeClass("visualCaptcha-selected")),i.addClass("visualCaptcha-selected"),e=i.find("img").data("index"),a=c.imageInput(n.data("captcha"),e),l.append(r(a)),t.preventDefault()},u=function(t){r(this).closest(".visualCaptcha").data("captcha").refresh(),t.preventDefault()},p=function(t){var e=t.find(".imageField"),s=t.find(".audioField"),a=!(!e.val()&&!s.val());return a?{valid:a,name:e.val()?e.attr("name"):s.attr("name"),value:e.val()?e.val():s.val()}:{valid:a}},r.fn.visualCaptcha=function(t){var a;return a=r.extend({imgPath:"/",language:e,captcha:{request:s}},t),this.addClass("visualCaptcha").on("click",".visualCaptcha-accessibility-button",l).on("click",".visualCaptcha-refresh-button",u).on("click",".visualCaptcha-possibilities a",d),this.each(function(){var t,e,s=r(this);e=r.extend(a.captcha,{_loading:n.bind(null,a,s),_loaded:o.bind(null,a,s)}),void 0!==s.data("namespace")&&(e.namespace=s.data("namespace")),(t=i(e)).getCaptchaData=p.bind(null,s),s.data("captcha",t)})}}),a("jquery",function(){return t}),s("visualcaptcha.jquery")}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(l,o){var a={color:"rgba(255, 255, 255, 0.8)",custom:"",fade:!0,fontawesome:"",image:"data:image/gif;base64,R0lGODlhZABkAKUAADQyNJyanGRmZMzOzExOTLS2tISChOzq7ERCRKyqrHR2dNze3FxaXMTCxIyOjPT29Dw6PKSipGxubNTW1FRWVLy+vIyKjPTy9ExKTLSytHx+fOTm5GRiZMzKzJSWlPz+/DQ2NJyenGxqbNTS1FRSVLy6vISGhOzu7ERGRKyurHx6fOTi5FxeXMTGxJSSlPz6/Dw+PKSmpHRydNza3P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IJO1SEEBAosJFSa1ar9jswQQBeAEgyyFLLpvNL893DXC9zvC4XDggsb+EwXzPtyZAd14gCX2FhkQRgIEAIYeOSAMWIgoxY1UpioEpj5xCFx6ZACQVH1QjFIt5nY8PIV1sKCtUaYsOpVcfb6tWM6iBJlUnJqEAJidYKxYaFbq7SSXEXxQPVQ8VEjBQFVNXDypeKCPOSR8ZiwAox50rLF8Z40kV0V7Tqw8WXgQT8EgzDIvAdm1I4WFAM35EPqSAcYeAul25ECZ5EYPAGgH7JGo08mFACAcOChy4tbHkkA8PDppcybKly5cwY8rc8+HEiBYDRs509qKF/goCCAhIaEBy56MBFtcQaGCU04ukbFgsaErlQAQFETZgGbAIRAmqEx0oskDNirlFMcAieWDHCwtZVkqce6fWyAMBXyQ8pHKCYcOMdROOEIBBQIssAQI5KBs44YEWcLGcELvGWONCHyZ40OBhQtHLoEOLHk26tOnTqFOrXs26tevXEj+0MCFDBTPYSi64QPAFhgFLrl8c2HCC5IsUvNeAiMB49YsCFBCwICrkgIRABICvboEBz1QaC7oHmuEa1JdBQhZAZfOdtXlBdE8oCERBa+tTX94KeZ58TYjPqfWkAAsaiDPEcX6B4UFzrV1wAoNCbBCCCSG0h9uFGGao4YYc/nbo4YcghijiiCW9sMEMG6i04QsjKKCICICJ9sACE6wAoRILcMAGBRZe9kIIDKDAQALcWBGCYgDWVcIrACBQQpJHtHOHAHs1dt0aGhRJhZRR2QeaCGwooKUSBgSiwY1qRcBGDCpCkqAgh4l2wpUAKOBlFS9UQIEiBFRQ2gsDFKAHGR8skEAIKSwAJYmMNuroo5BGSkSbHa6wmQEljNnJBzOMUGVJMxCgCAwWfOrIARpggAIFBSw6zgl4sZGAq3uc8M0ag5bUAApT0jrHAG8CoMFKBfQnDZp9tDDlSh3wyoYEvsoxgrNfOLDSA2Uq5ycuKzQAGaVHnOBCJrGwtEKsUwDAEAOyRbyQgQAoIMBBAeAasUEMArBgQq4rndCCB4myWwSwa8DAbzXDPRBtU/M9++E/O35I5xcCfNgAMdt2+EACe4JAAZsgvrBABRUsUK+knAQBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8gk7bNKaVSx2UtJrVqv2CytwgJ4AZTCVEsum7ED0veLaJzfcPhDsV4LTvG83jpR170oLXuDhEQdBH9eMBVXHwcHF4VnLwMJGQtXfYkAKB1VlBoMFAIekZJYLxMUXiAQBitVc5sseEovATB1LBMfp1Yjq3UyD1UtKH8gBVUNIIkSsL5KDxabjFQfBYhfMCljSQ8Cm8m90UgzXYkaVi8LMSoKIVJVExibACbE5Ucj2n8CvsbsScinr8gCBpvUnaJnTwPBgkMeGNhUwtcDdIlSkINI5NyfgdE6NPt4gOORCQJycbKwodyHEMfszDCJ5ESDFClGPLTYwgT+i1EhWtIcKu3AhhMbiSpdyrSp06dQoya5sOKEN6kcTyRQIEBGgFpYC14woRIACAklw+oLkMjATrVJUhWQ16jfGgoT4Fb50AIRCmtWLoysE0gvlRfUvGi4agtCok6GbYX44iApFTr+hEau6YKFAc1WOsT8Mm6zLataXlQIZrYEY9N6PjwYkKLFBcuwc+vezbu379/AgwsfTry48ePIk1950CFFA1PKr6GEQJ1ChdfIcS/gUAdDC9zFHzTI0ILgiwiDv6iAjjxFLgQJhpzQkIhAWuQXEHohkO8C/T8UgGbcA/qBkc956SnG3nHuAcANESuEs0Yg4BH3QgsFlEfEBzP+CNAMCAR8F91eM1QwwVsjpqjiiiy26OKLMMYo44w01gjXBy/kWCGLFxQgAgEsxADWbw9AosUDISCwhgUowvbBBBYoYMEA2CExgZJrwFCRb/l9wcJMV0SQiAm/ZVBHDDsWMdkfGqRpWAJ1hFClEQ0kEsJvE5S1CBYbSFAHAQLq9kIMx4AQQ5NIrKABCiDAIAAmwX1wVBkPTFBBBwvaqOmmnHbq6aegKiHpADrR+EIIBCCAggILuKnHCw1IwIADgQ71QQx1iABNNC806AUFmdJ0QoFfaFTOASLUkUJTE9jlRWXlLMDas01tQKwXIbgKxwEy1KFMUx78mRcWJ0wwwgFZ2grxQQn9CIBoVgqMRIAYjUxgAAkkKNDBnEY80JMGMdRK1AW0FbABv0WcgBEABOy63APpGlbAHx7IKGYdZMZY55kynuDnFwHOeIAHLLDgAKQzvnDCwaEqFQQAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKTwMqtUZheldEqtWq/ClQMDAMBMC6x4TMZeZKCuWnAou9/wGERN93zg+Dz1JaHTWSd6goNEJwJ+ahQrhIxJLxuBVQ8iiF0sG1QPJSYqHhONZh4YIBAsJQ9UEWmIJlQTHH4BkaBSJxZ+MCl3tYd+BItSGwyIICGotEoFMIgos0ozGnQCA1QhlQAUn8hIDwbXBVUnAyEhLSe7Si8s1wAF6NuFMtceoBcE7DEv8EYP0ZUpoD6s+7bPyIcEq+iAaAPKwzUUIwry8+ZHF60TFCqF0CexyAMHLFCgkFDhGK0BAhKC8BClo8EFA0Y4o/VhRQoLCjw04Oiy5/6RDw8u8PRJtKjRo0iTKh304cWDB++W7jtQwoUBFyU2RFXyYUIICwFabJX6TMGyLiAUaJvyogSFOQBQxCBb5YCChGpYmFQyAAGuDHSlvFA1j8otRApaBj5yQt41FoqTwELEIsziIxsGVvo1hRJlTJeNHNCMiABoJTHwdnEwNPQSE+wktD5yoA8dCpZdE/nQAsW1FlRqmlglIbduIg9CqAbA2grQE0+PI+FNAQYIGCwK7JWe58GEFiMicx9Pvrz58+jTq1/Pvr379/B9PtoeX8oFUTAQmFgxtj6RC7BJA4x/MPFHRAtcKJTAbO3NwAEGHMwwxAcxVKIBfe05oIYDRP5UiMiF/mm42oEJ0pECg+zNEJIAEg5xwWFrnFZfgVFdEAMB1zmglX/BncPjj0AGKeSQRBZp5JFIJqnkktx90B+RLyxQQAAVGHjkCw0M0wWL6b2wQgvGUZGZH7KdxxsLBHDQwBUNIALDWuRNEqMVKbgJnHkPZGRJmHyphsKA5L0QQBogOIAhEhf4syGKx52QggYxiDfFfQSgQIAHhwr5wQIj7Mjkp6CGKuqopJZqxQMrMKRkBwJggIEBgNLkaAAdZCrRAmd1IYGqtKiIlgtIueAHCHfS8oIHKvHqk2N0ZPBkHon6USxRDilEDTLJKTRTTyvco4YG23J1gY9XLHCXF08hJNWCCRRQ4IGMU5yQgAIyhKDsFDal0IKtEn1wwQYb8OtRAHCBYICkQq6QaxfXGjkDIhUguYFvaoDAp5AvxHDWSgL790IFJmignakk7xMEACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ik8HVaLU4vpXRKrVqvy4KKRFBkHtiweBxOoABoACxEbrvftMU5jYaN4Pj8NAKipy16gYJDJn5pEoOJeR6GaBpWJy0VM1GKVi8jFiwCMRsfVCMIhiANVCcBcyAsE5WWSh8Vc2giM1UOfXQarUkvFrhpJAOuUjMMhrpUFzEUaCghB1QTv7kXw0kxEKMnVS8bCxMbYFQBjQAEE9ZIjI3oihrlMB3pRzHTaduKDuUEd/NFEwQMsfikaEA5Afj8DfmQIVuac65evPODooXCIxUUsGDhYIG1Aw5kUahwEcmDDQd2uXowIEaMAh5LypxJs6bNmzhz6tzJM8/+hwUNSlRYoHLKiwElOlTrWeVBBhYw1LCIsZTKCg0EYKAQsYLplA8JRNGBwIbKAQl+KGzwqqRDwEbCpjQYFYEtkhchygFwQCXvMYJ2iVwoVA7RnkaPAhd5oK9wtKh0QJBUTORDCntp6k55EAIyGhPiKA9ZIaARCmjJCghAMTWhaCEfOshCA2FylQ8vHrwA/HrhBhMEUBDQsIB3bzgXNrg+zry58+fQo0ufTr269evYsy+ZUCJBgRnGtRtRxgAGBBgMElR90cGABBNEs58wYA+EhW0vEnjGUKGo9AKYAQBCATRMwAwdAqx1XWnliEBDBvbAYJF1L4jVCAw0pOBQGhL+XveCZ4ZgOAAJfrAQk3UMNiIADZz9AkIG/kWXgl4pCPFABQIQIMEAoVl3ggKNKLCceENsYIEsCDigIJFHsBSDByEMEB6TVFZp5ZVYZqnlllx26eWXrlwwQQcjDHnlBi6cAYMGSzrHxJRK4LUhACZAB5IA911xQIrNtNkbXn2A4AKcR6xwIIe1NNdLGirEeMQFKqTVY2+wqEmgFZWmAcKEzj0wQgEjTErFAhpQoICUYKaq6qqsturqq7CyekIMMijQgqOC4KYbTi/IkAYEMeCax1EahWDmRQbRwUJXwyzAILA3zUgHDO240gIGh9zUQYknWrIAC2mUVdMLaKEBQgpXwuLxQQkicHTsRRuEoIAGBVRFxQcTRBDCCOka0YSoND1wwgWEHhEbBRCAQEADBYt3QrloMPAukQccqgZqWV7gaxosTCzewSAoXEHDRC6QQAzFxaqyJUEAACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8jk8HW5vJTQqHRKrQ4/q5jBEFt8rOCwGDzjgAAAEGsybrvftJcETQdwHvC8PjqA1dEgLXuDhEMlZ38gKYWMeg0Qf2gFVl+NYActIQkzeFInFJEoJ1IvAyowICQhF5ZTKxKIKKtTJSh1IJNRHw0EfxajrUovGn8wJZVQLxUKKCgKFZ1QD6CJGcFKAxiREk9SHxcbGyfIUB2RaAqs10cFCJEE3Ywp5wACG+tHLbZ/LPGFDfQkAMNH5AKHSCHIETrhJ5IHfwSFzOhFx8RARh8yNKQj4GLEIQs8KNBQIJqlBxkEwIBBQMW9jzCPfNjQocIEkzFz6tzJs6f+z59AgwodKuXBggkrcE45sAAiUSgzTHCgwMHCBIVKTgSgQIJDCqxPjUxg8YfBjCkXVPyJADaskAMizlFwemQAIjoEDrhF0mBfpAFS5hUDvNeI4HMxpBSIBINN4SIZ6AHIBWUFRTrcHhcZcPnPAlIFLlNwrHnIAwvnNFB5MSGEgxReShfZoOCPgBWUPrQt/SCFAgoSSsoeTry48ePIkytfzry58+fQoxN8sWDECrrSxWpgQIKFhs8FWySoMC76iwLa6pCoUIk2xxHRZ6T/QwH3C9R1FHhcHkFyAhorHFQHAfA9Vxs9qi1A1oCEOSeDZKo9YIJtej3ngWQhSLQgACj+tLDbcX2c05gQM8VgggcbYJfcCyHcBUgKKkp3ngAowIACBxXEmB0NGwxQwQD77SjkkEQWaeSRSCap5JJMjvHCDAM0teQHHQhAAAoYSNCCjkV8cMAKG3zo1gMxQLKWmEtUIAMLEmTAJVEdzFcHBA2WcxkMHRB3AX6poXnaHxIQt8GGkVBQoRIXEFMHC4JScw4BLwkTwh8OEAeXZBQodcQCAuAVaWksSlbpFA8U8FqQj73yqKY7jjBHHQKQduQGKWgggQYphDnlAxc8gGaTwAYr7LDEXkNdASVc8KseH7yJTwJmroHPASkEMICzrVzgFwAOsDrICw6gQYKsOS3wh35d16ywoTU8XWAmGiZ4u8cDagEAQ4E8hdAQC3W2soIJCpQgL0EXVOBBCFeB8QK2XQ4Mk25goMQCC24y2YI7HAqi5AcJ1JHAstA10BAMGiv5QAIEUJCAw0I2W+zLOgUBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ikcslsOp/Q5WOQSAwe0ax2q724SAAQyYPlms9oWggEaIdj6bi8+cC43YTyfM+nLWB3bRAbfYVyB4CBMCeGjUMXAxUtBy9PKoEAGk4fBykqEh4TH45NByqJAh2VTQssdyyErDJsbSgNo6RJLw6BHCubCyEaGjELuEsvFrRuDAu5SQtggQXHTB8XJ9VLF4l3IHDPRx0omCHaewuYbQ7hRxvSdxWOJ8t3Ie1Gu4Gwjh8imDAG4DPywAQMEDAkiCI1gUKgGOcGflhRYYKefhNMUKAgIcXAj0pebFhwISLIkyhTqlzJsqXLlzBjSrlwUaajBxkMqDBQ4UL+lA0BNIQ4YJOOgW4IPPhs8qEFATcIJhQN6aBem3tNTly6I2HVVCMzXGEiYLLICjt3UBD9aqQFWkyMmKx4mjYuWyId6GKqieSBhUCa7hbZ8A8TiyczFNCS8EswkQ8prIKQt2lDixgtNpT9+iDGMhAp+FpznOTDhhgOUmQjzbq169ewY8ueTbu27du4c+vG9+KE193bEkgQoCDFbxovDmygtPvDBAnLIGhYS6OzHRQR7N4+IUOdgzIlusHwmLuD1TYEnL3Y6kbB0tsR1LXpgFxBIAnaaweQD4CyZ3vH0VaBfDBIRcMJVbVhQiy4bSBWIO4N8cAMFYlGW1N6tcHCDMD+KTGDRgRQ4ACDHSaxwgQHbFbiiiy26OKLMMYo44w01mgjEheEIAAFAiSQXxMvPBCgYx8M4NArBjoRjAUhzKCiTSsUFogAFhqxwixtCPCeYy8kcF4bLTAV2R0FtHaBAfyZAGR8d0TQmlb8KeBEBQjcIRBrD/AinwdOeEELGa19UEE3gYwAxQYVaPbaAy6cxyeMJ3hATi1KyThFAh6kYFGNHzx546egXvjAAQesZmkHDgyngY8xfhBBhiAY0FhKQb7gKRoNQKCOCVt+dEAIDCgwwK1cXPCgIregFAEtAsxayACTquPBkOF0Vwt9jRRQp3wmVJmLB26w4EwjLWzrHbVTz2xgAgsCVEDsFiccG4i7KT2wAHWOpCCfBCSyNoMLHoxLhwljLeRaK1n2q8QDFQhAAAoiesvWOOgZCsUDG8xQkmwIA9AsjR+MoIEJBodq8skDBQEAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n9Dla1IqLV7RrHarfUQoMASrhOWaz2haAQJoA2CTtHzuZLndGrp+X8Tc2wJ8gnoCfwB5g4lDHxcbB2VOFWxuMAtPDxMpEQMnik8NKhwiKReXKSwwMAIVkEsXAShtICoHnkwTfm0wEQ9PLwstLRutSh8ZMH8mxLZFGn8EM4oPhX8o0cxHL3Z/A4ovsX8wDdhHHzLhcYkvFIYoI+RHDX8KnYkfAYYCvfBFHykEMFBo2GDrgAYQbggQ5HfkxABL2E4U0KDAw0KGGDNq3Mixo8ePIEOKHEmypMkPExIESLEiy4cBBWYsM3mkAAEIICBwaPHhyf6Kc20UlKKZpASyOyjSMXkRAKGbFESRXFBgCIADJyck/JER9ciCbX8CNTlB9Q6irkRWUAvr5MUxNyBaoC3ywETVGE9OhABDIcbMriMI/GFxscmDBRNW7JtL5MMIsBJm9GQ85/CEYZQza97MubPnz6BDix5NurTp06gZTghgIUZhIYxODD19wgUCWRgKtBqggoWKAZNJvwgxyQ0GnkJWsGvD4hrpDSSqahgaozgIvKVHVAVAYWEIpwBAhDDdYTsFiCNyAXBnegG4PxLqvSjAAAYFVqYfuDAEokLwDydscEJwpa2gAHggBLBYakY8UIACAmggF4MUVmjhhRhmqOGGHP526OGHIG7xwgABmBDBCgReeIBdlHgwmxMrDHBAinNdYAF4skQARQMCECCBUpR1oB5SCyqhlhsy/EXTBzFsB0A3TczAgBssFNnVcE5WgJUBsoSg5EkZ4HgHkEtsEIICMdST2QzLPUMjgwW810ZSGn5QgQAogICCAgN8idoHBwzQwgRqhmjooYiW9sIDfqb2wQoFeOBBAu/U2YEAxZGQQaO2fPDCm3xsIFg1BYCKzQsteJBBoYJ8wGVVArSk0QC5BMCpGSdEVxUME2bUZBscsLrHDEP+UcJGLUyiTF4ZCIAAAjJU8CISom4X10YPZKCAA68pcUBZcFkwrREfqLAdC1QQYWtqgw6IGV4Efk5w1B9+BTmqIectYYycAHhgZVQROAlCAU2YKQALJkBJ2T0CJ3BhwNYSbGEL9z5DZmp1bRfAuqVtAK4bJoxL4QYpCBCQBNJqFAQAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n1Dma3P6RK/YrHZhEYhCB614TB4eOCAAAGS6lN9wZ0RNBwzi+HxRU1cn9IB4Ln0AFYGHRS8XD1EzKHUUJ09TJSUDjIhOKxEaLgMvkxUCKCgKE1ZNLwUUajAumJlKDyJpABQtqE0fGy0Dkk8TJH0xsUsZfQq/gR8hhJHFSSZ9LCuILxaEBAvQSDF9EsqAH97TbtxGJwx0MCm5gQssfSnnSCsmBBK4sR8zIjAwKEKAokcQyYMBAza4K8iwocOHECNKnEixosWLGDPSu9ChxISBUR6E0dhkgQAMMEiYGOnkQgQYAAhkAEnSyAJhdZI5+VABwf66DTWPfPBQiw6IO6k89CkQ1MgDFYQAEEsVoI+hpkReQCU0z8kAdWoomMM6JEXRVtt2ttAgwcQpskROGKgDIgQsJydO3IUr5EAICigEFNjLV8yHDw8OF17MuLHjx5AjS55MubLly5gza05ysMGChZuHvKhAAQYEGAqqEXnQosCnyx8aYPjGkkYEnxhKXD6xlW4GVBcI0OFAU/KG2YRMYApOh0XxyBseJR8bAgIAGEwtn1AQNUauCyVitHge+UUJmHVYACWiOLMq4WoEfA595ESBFANA09/Pv7///wAGKOCABBZo4GMfXDBAATO8oN9mDxTgkxocjBfFCyeQ19QLGf5MSAcBE0CxggYCBBAOWSsIEJUGk0izxm+FNSBdHzA8aMQF3KnhgYYkVYAeIYQh8UEGMBHQgY0aDYBTHwRA8cAIDAYZFI5RheBfin208d8GDgjAggQpnMjfBwcsIOaBaKap5hgYHrCBlKGtEIIMLIjgCY9xKFhABi2cec4IEpxFQAJIlrGBBSRAAAIGMqRV0AqBEgLDCIc8IMNZAHCgGj0vmBUVABLgOcYxUZkgKiAX8PEpCuvpIcOnAmzKzQUifAoACkjpwUpUFIS4kapRoSCrQRMEoIABMSxwKg0SfKoeQZ1iSocAhT4Qg4cAkFBCoTQU8KkDcCJi0qctMEEkIWsYULrECSoyOQNDHyhJSAiFbsDBpxpwu0COaoDILSInOEABAQSokB8TFczYBwWOKvHBBDHE0EG43Hxwwga1LVHAj0yqG5qMn2qzn72fKrCsZOf2gYKv+z2QAHxhXdXfCxN4IIECMazwbyBBAAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IpHLJbDqf0Kh0Sq1CLxmNpfWyer/fiwkGAKBSXbB63RyAymXCgU2vFzNw+MbOp7fyADBzfYRhCm8AICFpTg8HGxcfhU8XLSkle1ArHgIKKSdPHwsuHCwmI5NOLiiBGitRLyegUAcKeRSDqUkLEHAgMZKFDYhwEbpKFYAmD4UfEYAAGsdJM4CLk8nW00gfJnACC6kbAnkoudtFDxUeFSfBzSsKKCgS4ej3ShsbzPj9/v8AAwocSLCgwYMIEyr092LFiFcLC71wQQEDhQCznhyIoCJBxohHXnjLY+LCkxMm3oCIwAhkkQms8oCY8WQCg2/8XBYpQQZQ/oUnKzjAUdBSp5AWPfO0CFWCBQoBE4wauSACEItzTEQN2PBO6pABLOBQaNHVqxVRBTwUWFDW7JcPbd3KnUu3rt27ePPq3cu3r9+/gAMXeXGgqGAiHzaYQACDRIqcQkR1gOh3BjlfASAP4IBBAOW9D0IQizOAiAE4AfxesAUIRAYiGuB4UM1a5ushI5x69hsaGoHSQ7Rmqhw2jwPIh2l8WKEBBogzyJMPcWRYuvXr2LNr3869u/fvgU+MqDAhevIHGRigQNC5Q1ydLy4cePA+5Mg8EBKYj/hhgoReCLjAVRMFQEOaWSPc5IsKHyFBlYFleLBfQg+c1loBTMxAAIQA/gjQYEQzFAeIAkxMsCGEAmAVkU0GSsDEARRwqMGHC50ggYEOMCEShynUh9AHMYwWSFRMnBAjNDOa9UIAMQFAQAM+EjGAAKO5ItcHLXhgQghshbJBASZo4EAFJmn3wQsPvBAleGy22WYs9G2njgcGOJDBgJMkNsAAK1S3zQkuIAAHBBIQSQgWIpBAAAcB+KnLAy70YlWZfDiTVCIWTDjJABhAGAMhKwgZSAn4vBADhwIQkgCEJqxpxwsecEgAIS5AqICmfZiKahMfHNBBBAlMEEkTpxpogqOFDNAkIJ8y0YJQZUCggT1LrHBpGSD8hM8FDohKAI0vHZmHBJQm8UEAWEIu488JDgDCACpL7AgNCCk08UAKR8IQQrn9DOCABBqUgKsQCygIjQKuCqFPwghNQAKKyO61gsEjMmyXvNBgaN0KIg41MF8DHBKtCcNZ98EJA6RA3seEBAEAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n9CodEqtQj+TSGZl7Xq/rwIBAmGNvuj080QCuAGah3pOL67ebtapzp8fMHgKF32EYCkEICAUA1EfFycvhVEXK3tRLwMhMQsfUCcZKioRB5JOByYcEg2lNA8RMG4gGqxMDm8CXJIzbXgTtEoCbwSMkiMQeAAFv0kBIG4CpJILFMi+y0cbLhQKI52SD81vCt7XRi8PD+TfFQoSKZbl8fLz9PX29/j5+vv8/f7/AAMKpPJhgAEOFhZIeTCiwAw5A498SICHQAd1Sz5kgGURY0QaB3i9MQCPyQUFbzxE+khkAAJkLKI1eWHiTQqPEWegQCahJP6TFRoEeBjEksgLFXhAxFj55MUFpkWHLFDgDIUHn1GtnBjQYgLErGDDih1LtqzZs2jTql3Ltq1bGi86RNA0AupbIgc8IAKgKALWtweoIgNggmjaBx0EEBDRYmWEwW+UpX0RA5YbGAnkMIDsRoLaCZvxUJhBwxlnFGorHMMDowSN1ZAJpLb8pjUNFpwByFC7gAMyCgpT5K6gNgxtEAU6ndAA2cRXtC8mBNUwgNwJB3sBEAhh+K7RASliFJiA07v58+jTq1/Pvr379+wvbHie/sMMAxQIMHDw9+OHFwCWh0QBO4lGXlYHRMACARJU0J0SKwAymAQbRLUcHgjEQB8SHv5wBoFkLCUAmxsYKLTEC8FwphJLR0GWARMv+MaZAxsC9ABKg8XQBHOcxSBgPx90OBgxS7TAGQFnFLUAAcgo0J8RDpj2BggvZjUBCyiAgIIJFTpxQQgUmMZCAXaxdEEL4/14xAsLVFBACyuoCd+cdNZp551CzFBAAimMUGMfJ6xQZjkfFMDAaiRcJQkWLsjAgQYd0PNBCRJO6cKgagwQ2mUVyNnHBiJwZiIfD2wqzKjXdFDgYCEQsoCUtaUgj2ozEtIBZ63GM0ClyOjYxAMbzLDCAZgasQBkyMlzgAScdbnEBgGQkAgLCTyIxAfMwuTsNR+0sGpKcl6AFB4QBODEAFi41RbpPJgwGYtfTWQwohsooJrEBwt4wAIFDhxYzwMDvPmnER/gOFgE6D0QKmQeoPcBjzmm1wCs9G7r3QcO0AYADMSp90AGChBAgQaNsffCCRtscIKnhAQBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ikcslsOp/QqHRKrUofL6t2yxVeQiRKKtstm5efAgwAQHTO8PjwFWGzM/K8+VOCsFFveoJbDzEULAVkUC+Kg08vH1SQUi8jMREtD45NDwUqDhubNC0sbBgJoksdCGwmjXknBnYAMK+pRDF2HCeOKwKzAKG3RwMEbB62cReydijJwy8dHgW8jh8DFGwgBcNJH5OiHycFBQuR3ejp6uvs7e7v8PHy7y8PFw/n84MfKykmMhYyCNOnZ4AAP9oUzCAIKxswAAoOMFxyIoGHFs+MfLDw0E6MfBOLzMBgR8JAJQcYdGSjoFrIIhpmgYiRccgMYytZnHxJ4wP+CWAmLjBZ4bCjgJ08f83yoGnJCwUrAThoynNIHzsEBjhpAaIjCq1VibyIIYCCAoxOPnjoOCZskQ8HFpwAyeRFBQEwYCAQMICuWy0PFgxYUfOv4cOIEytezLix48eQI0sOe2JAgwEuJyt50UAEARQkZKDVjITOmlkIEhRG/GJFAAspJAoZgMLrwsgfKuAEIGCFkABRQ0hewQGYgywyoiqQ3KL2LAESoa7UILmDczsCeOVamULyBgnAPES66dU37gGl2Gio9qLA9T8VVh+GWyAG5iITFFAgQEDDbdJK8DPBCn4BaOCBCCao4IIMNujggxBG6MgFJajAggbxLfZNgUr+LCACMAZk5tYHMyTgQAwLyEfDUw+BwNRhIxTFQAUc4tfVQxRMYNgFStnBgmxL1NERCBUYtspDLTQhZIvc/FXBabM0uUQDKwFi2AokyaQjEw/sNosEIvKkFjAaULVEMcBQsABiHxiCAgUehOnNCCbsR4EJSP11glxTBDbBBipKKOighBZqqBEXjFBBBwfUKIejt6ygHwIYSJDhIONooEEEeUbaIxsIFADpFgdocBoIDHS6yQsO3DgLAWbC8QFwwEgQayrfrbSlHC8UZQcGuw6zQHEdFZnHA1DaAUMD6RyQXEfBBnjBBgdcMKoQL6T36n/DtOmqj/I9UCEJDJjQgXxkH6TwLQAmXJtHqcCgkGQTGbyXlRMneAClBECmk69zCowg3wZessGCig9MEEMILciZzq1LqNviCAxGsC4AIDC7YAkXg7Dmghf4yoYE7kKGzSw6OfjCBCEooEEMG5QsmTgXBJpHEAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IpHLJbDqf0Kh0Sq1ar9is9TMwmUYfrXjcXHAAAMGKzG5+LpPNK9pBoAmjth55cbBIFAoND08rLGgCG3uLQlwMaJAgLoROMx4ea4yLGyKQngAFmjQfKxMXokofGRCfkCyniy8FAgwWiqhHDxatkCh5iwOPaDG4RxcKvGgwLYwVKJAaxUa6yQAwE4wLhwAgKdJFHwUgyQKUey8dEhQhsN9DJyrJzJofLw9h7kULyJ4wKfj5Ah6IoYAFCwcD5gRcSOPFiQMnzDGcSLGixYsYxdQDmBHVgxEFQmRI2FHUCRcEIBEI0K6kHgvjPEEIoNClkhcLKhyA0iIZ/ooKNpU8MDAORAiJSnYl81AzaJEGnjDMYyKhmgakToU4+ESsSbxkDrBmjeEJRKgmKar9y2rkwDYAGm4xuUCBVyK2Rj5YMpFiAZQBdT2RwIb3yAexTA6EYEGABbvCkCNLnky5suXLmDNr3sy5s+d8HzZMyPS5yQoLLBiwsEC6tOERb9EwGMCR84URFWaYO8Dvk4ATn1doQAPCA6UBrHgN8PzCRUxrJYQUqNaV84FOnqLRmJ7MW+cDVT2ZEDLBDi/CnD9EeA6jg5ALBngpaLn5RAgYAAisFbJCwfM0C9S22QsbbHBCU6OkoIAACiQAnGtMHCYghBRWaOGFGGao4YYc/nbo4YeofHBACgGkcMCEkaEoVATmcZMCYlmF1kACLez0RAb49RPdZDOIMA4EGrR2U2CfSGAjZC/0xo1xTWzwn0roFbZASp6wIJcSKyRDwHKRLfCMJxRcmcQDX35ipWQPnJEdfUl4wIsHKgbVQo750ebECSb8Z0KcTi3ggAIhiDlXARpIoEEBMFr4wAWJgujoo5BGKukSH5ywwAoIZvhBAjKwIIADM+DywAAVYDrRCwEkhwYLfjHywQgiIIAACi5kKo0zrShg6xjafBICn4t84AIvEDR6hSqtUHDkNy+YkMyybHzg5icoRPmNB09aY+wQb1ywq2FpfRLmQiMQCYkDZ8COskACBpiQwArp0rCAuQB4wJAsdAKggKBIzKAmNyLwe8QLDbylwYMLceGAABKkcEK8SqIxnhOhVVDABAhLdkC+ymzL2QwcWwNthReU2Uu8nE3rSXUZ9vElCkxyOGoMMQzg8aRtBAEAOw==",imagePosition:"center center",maxSize:"100px",minSize:"20px",resizeInterval:50,size:"50%",zIndex:2147483647};function i(t,e){var s=(t=l(t)).is("body"),a=t.data("LoadingOverlayCount");if(a===o&&(a=0),0===a){var i=l("<div>",{class:"loadingoverlay",css:{"background-color":e.color,position:"relative",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}});if(e.zIndex!==o&&i.css("z-index",e.zIndex),e.image&&i.css({"background-image":"url("+e.image+")","background-position":e.imagePosition,"background-repeat":"no-repeat"}),e.fontawesome&&l("<div>",{class:"loadingoverlay_fontawesome "+e.fontawesome}).appendTo(i),e.custom&&l(e.custom).appendTo(i),s?i.css({position:"fixed",top:0,left:0,width:"100%",height:"100%"}):i.css("position","fixed"===t.css("position")?"fixed":"absolute"),r(t,i,e,s),0<e.resizeInterval){var n=setInterval(function(){r(t,i,e,s)},e.resizeInterval);t.data("LoadingOverlayResizeIntervalId",n)}e.fade?!0===e.fade?e.fade=[400,200]:"string"!=typeof e.fade&&"number"!=typeof e.fade||(e.fade=[e.fade,e.fade]):e.fade=[0,0],t.data({LoadingOverlay:i,LoadingOverlayFadeOutDuration:e.fade[1]}),i.hide().appendTo("body").fadeIn(e.fade[0])}a++,t.data("LoadingOverlayCount",a)}function n(t,e){var s=(t=l(t)).data("LoadingOverlayCount");if(s!==o)if(s--,e||s<=0){var a=t.data("LoadingOverlayResizeIntervalId");a&&clearInterval(a),t.data("LoadingOverlay").fadeOut(t.data("LoadingOverlayFadeOutDuration"),function(){l(this).remove()}),t.removeData(["LoadingOverlay","LoadingOverlayCount","LoadingOverlayFadeOutDuration","LoadingOverlayResizeIntervalId"])}else t.data("LoadingOverlayCount",s)}function r(t,e,s,a){if(!a){var i="fixed"===t.css("position")?t.position():t.offset();e.css({top:i.top+parseInt(t.css("border-top-width"),10),left:i.left+parseInt(t.css("border-left-width"),10),width:t.innerWidth(),height:t.innerHeight()})}var n=a?l(window):t,o="auto";s.size&&"auto"!=s.size&&(o=Math.min(n.innerWidth(),n.innerHeight())*parseFloat(s.size)/100,s.maxSize&&o>parseInt(s.maxSize,10)&&(o=parseInt(s.maxSize,10)+"px"),s.minSize&&o<parseInt(s.minSize,10)&&(o=parseInt(s.minSize,10)+"px")),e.css("background-size",o),e.children(".loadingoverlay_fontawesome").css("font-size",o)}l.LoadingOverlaySetup=function(t){l.extend(!0,a,t)},l.LoadingOverlay=function(t,e){switch(t.toLowerCase()){case"show":i("body",l.extend(!0,{},a,e));break;case"hide":n("body",e)}},l.fn.LoadingOverlay=function(t,e){switch(t.toLowerCase()){case"show":var s=l.extend(!0,{},a,e);return this.each(function(){i(this,s)});case"hide":return this.each(function(){n(this,e)})}}}),function(f){f.fn.bootpag=function(t){var p=this,h=f.extend({total:0,page:1,maxVisible:null,leaps:!0,href:"javascript:void(0);",hrefVariable:"{{number}}",next:"&raquo;",prev:"&laquo;",firstLastUse:!1,first:'<span aria-hidden="true">&larr;</span>',last:'<span aria-hidden="true">&rarr;</span>',wrapClass:"pagination",activeClass:"active",disabledClass:"disabled",nextClass:"next",prevClass:"prev",lastClass:"last",firstClass:"first"},p.data("settings")||{},t||{});if(h.total<=0)return this;function n(t,e){e=parseInt(e,10);var s,a=0==h.maxVisible?1:h.maxVisible,i=h.maxVisible,n=Math.floor((e-1)/a)*a,o=t.find("li");h.page=e=e<0?0:e>h.total?h.total:e,o.removeClass(h.activeClass),s=e-1<1?1:h.leaps&&e-1>=h.maxVisible?Math.floor((e-1)/a)*a:e-1,h.firstLastUse&&o.first().toggleClass(h.disabledClass,1===e);var l=o.first();h.firstLastUse&&(l=l.next()),l.toggleClass(h.disabledClass,1===e).attr("data-lp",s).find("a").attr("href",m(s));i=1==h.maxVisible?0:1;s=e+1>h.total?h.total:h.leaps&&e+1<h.total-h.maxVisible?n+h.maxVisible+i:e+1;var r=o.last();h.firstLastUse&&(r=r.prev()),r.toggleClass(h.disabledClass,e===h.total).attr("data-lp",s).find("a").attr("href",m(s)),o.last().toggleClass(h.disabledClass,e===h.total);var c=o.filter("[data-lp="+e+"]"),d="."+[h.nextClass,h.prevClass,h.firstClass,h.lastClass].join(",.");if(!c.not(d).length){var u=e<=n?-h.maxVisible:0;o.not(d).each(function(t){s=t+1+n+u,f(this).attr("data-lp",s).toggle(s<=h.total).find("a").html(s).attr("href",m(s))}),c=o.filter("[data-lp="+e+"]")}c.not(d).addClass(h.activeClass),p.data("settings",h)}function m(t){return h.href.replace(h.hrefVariable,t)}return f.isNumeric(h.maxVisible)||h.maxVisible||(h.maxVisible=parseInt(h.total,10)),p.data("settings",h),this.each(function(){var t,e,s=f(this),a=['<ul class="',h.wrapClass,' bootpag">'];h.firstLastUse&&(a=a.concat(['<li data-lp="1" class="',h.firstClass,'"><a href="',m(1),'">',h.first,"</a></li>"])),h.prev&&(a=a.concat(['<li data-lp="1" class="',h.prevClass,'"><a href="',m(1),'">',h.prev,"</a></li>"]));for(var i=1;i<=Math.min(h.total,h.maxVisible);i++)a=a.concat(['<li data-lp="',i,'"><a href="',m(i),'">',i,"</a></li>"]);h.next&&(e=h.leaps&&h.total>h.maxVisible?Math.min(h.maxVisible+1,h.total):2,a=a.concat(['<li data-lp="',e,'" class="',h.nextClass,'"><a href="',m(e),'">',h.next,"</a></li>"])),h.firstLastUse&&(a=a.concat(['<li data-lp="',h.total,'" class="last"><a href="',m(h.total),'">',h.last,"</a></li>"])),a.push("</ul>"),s.find("ul.bootpag").remove(),s.append(a.join("")),t=s.find("ul.bootpag"),s.find("li").click(function(){var t=f(this);if(!t.hasClass(h.disabledClass)&&!t.hasClass(h.activeClass)){var e=parseInt(t.attr("data-lp"),10);p.find("ul.bootpag").each(function(){n(f(this),e)}),p.trigger("page",e)}}),n(t,h.page)})}}(jQuery,window),function(w){var k="iCheck",x=k+"-helper",C="checkbox",_="radio",P="checked",h="un"+P,A="disabled",m="determinate",M="in"+m,D="update",T="type",S="click",E="touchbegin.i touchend.i",O="addClass",L="removeClass",B="trigger",I="label",f="cursor",j=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);function F(t,e,s){var a=t[0],i=/er/.test(s)?M:/bl/.test(s)?A:P,n=s==D?{checked:a[P],disabled:a[A],indeterminate:"true"==t.attr(M)||"false"==t.attr(m)}:a[i];if(/^(ch|di|in)/.test(s)&&!n)Y(t,i);else if(/^(un|en|de)/.test(s)&&n)R(t,i);else if(s==D)for(var o in n)n[o]?Y(t,o,!0):R(t,o,!0);else e&&"toggle"!=s||(e||t[B]("ifClicked"),n?a[T]!==_&&R(t,i):Y(t,i))}function Y(t,e,s){var a=t[0],i=t.parent(),n=e==P,o=e==M,l=e==A,r=o?m:n?h:"enabled",c=g(t,r+v(a[T])),d=g(t,e+v(a[T]));if(!0!==a[e]){if(!s&&e==P&&a[T]==_&&a.name){var u=t.closest("form"),p='input[name="'+a.name+'"]';(p=u.length?u.find(p):w(p)).each(function(){this!==a&&w(this).data(k)&&R(w(this),e)})}o?(a[e]=!0,a[P]&&R(t,P,"force")):(s||(a[e]=!0),n&&a[M]&&R(t,M,!1)),b(t,n,e,s)}a[A]&&g(t,f,!0)&&i.find("."+x).css(f,"default"),i[O](d||g(t,e)||""),i.attr("role")&&!o&&i.attr("aria-"+(l?A:P),"true"),i[L](c||g(t,r)||"")}function R(t,e,s){var a=t[0],i=t.parent(),n=e==P,o=e==M,l=e==A,r=o?m:n?h:"enabled",c=g(t,r+v(a[T])),d=g(t,e+v(a[T]));!1!==a[e]&&(!o&&s&&"force"!=s||(a[e]=!1),b(t,n,r,s)),!a[A]&&g(t,f,!0)&&i.find("."+x).css(f,"pointer"),i[L](d||g(t,e)||""),i.attr("role")&&!o&&i.attr("aria-"+(l?A:P),"false"),i[O](c||g(t,r)||"")}function z(t,e){t.data(k)&&(t.parent().html(t.attr("style",t.data(k).s||"")),e&&t[B](e),t.off(".i").unwrap(),w(I+'[for="'+t[0].id+'"]').add(t.closest(I)).off(".i"))}function g(t,e,s){if(t.data(k))return t.data(k).o[e+(s?"":"Class")]}function v(t){return t.charAt(0).toUpperCase()+t.slice(1)}function b(t,e,s,a){a||(e&&t[B]("ifToggled"),t[B]("ifChanged")[B]("if"+v(s)))}w.fn[k]=function(e,s){function t(t){t.each(function(){var t=w(this);i=t.is(a)?i.add(t):i.add(t.find(a))})}var a='input[type="'+C+'"], input[type="'+_+'"]',i=w();if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)#x2F;i.test(e))return e=e.toLowerCase(),t(this),i.each(function(){var t=w(this);"destroy"==e?z(t,"ifDestroyed"):F(t,!0,e),w.isFunction(s)&&s()});if("object"!=typeof e&&e)return this;var h=w.extend({checkedClass:P,disabledClass:A,indeterminateClass:M,labelHover:!0},e),n=h.handle,m=h.hoverClass||"hover",f=h.focusClass||"focus",g=h.activeClass||"active",v=!!h.labelHover,b=h.labelHoverClass||"hover",y=0|(""+h.increaseArea).replace("%","");return n!=C&&n!=_||(a='input[type="'+n+'"]'),y<-50&&(y=-50),t(this),i.each(function(){var a=w(this);z(a);var t,i=this,e=i.id,s=-y+"%",n=100+2*y+"%",o={position:"absolute",top:s,left:s,display:"block",width:n,height:n,margin:0,padding:0,background:"#fff",border:0,opacity:0},l=j?{position:"absolute",visibility:"hidden"}:y?o:{position:"absolute",opacity:0},r=i[T]==C?h.checkboxClass||"i"+C:h.radioClass||"i"+_,c=w(I+'[for="'+e+'"]').add(a.closest(I)),d=!!h.aria,u=k+"-"+Math.random().toString(36).substr(2,6),p='<div class="'+r+'" '+(d?'role="'+i[T]+'" ':"");d&&c.each(function(){p+='aria-labelledby="',this.id?p+=this.id:(this.id=u,p+=u),p+='"'}),p=a.wrap(p+"/>")[B]("ifCreated").parent().append(h.insert),t=w('<ins class="'+x+'"/>').css(o).appendTo(p),a.data(k,{o:h,s:a.attr("style")}).css(l),h.inheritClass&&p[O](i.className||""),h.inheritID&&e&&p.attr("id",k+"-"+e),"static"==p.css("position")&&p.css("position","relative"),F(a,!0,D),c.length&&c.on(S+".i mouseover.i mouseout.i "+E,function(t){var e=t[T],s=w(this);if(!i[A]){if(e==S){if(w(t.target).is("a"))return;F(a,!1,!0)}else v&&(/ut|nd/.test(e)?(p[L](m),s[L](b)):(p[O](m),s[O](b)));if(!j)return!1;t.stopPropagation()}}),a.on(S+".i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[T],s=t.keyCode;return e!=S&&("keydown"==e&&32==s?(i[T]==_&&i[P]||(i[P]?R(a,P):Y(a,P)),!1):void("keyup"==e&&i[T]==_?i[P]||Y(a,P):/us|ur/.test(e)&&p["blur"==e?L:O](f)))}),t.on(S+" mousedown mouseup mouseover mouseout "+E,function(t){var e=t[T],s=/wn|up/.test(e)?g:m;if(!i[A]){if(e==S?F(a,!1,!0):(/wn|er|in/.test(e)?p[O](s):p[L](s+" "+g),c.length&&v&&s==m&&c[/ut|nd/.test(e)?L:O](b)),!j)return!1;t.stopPropagation()}})})}}(window.jQuery||window.Zepto),void 0===helper)var helper={};helper.arr={multisort:function(t,s,a){if(void 0===s)for(s=[],x=0;x<t[0].length;x++)s.push(x);if(void 0===a)for(a=[],x=0;x<t[0].length;x++)a.push("ASC");return t.sort(function(t,e){return function t(e,s,a,i,n){var o="DESC"==i[n]?1:0,l=!isNaN(e[a[n]]-s[a[n]]),r=l?+e[a[n]]:e[a[n]].toLowerCase(),c=l?+s[a[n]]:s[a[n]].toLowerCase();return r<c?0==o?-1:1:r==c?a.length-1>n?t(e,s,a,i,n+1):0:0==o?1:-1}(t,e,s,a,0)})}},function(i){"use strict";var n=function(t,e){this.$element=i(t),this.options=i.extend({},n.defaults,e)};n.defaults={transition_delay:300,refresh_speed:50,display_text:"none",use_percentage:!0,percent_format:function(t){return t+"%"},amount_format:function(t,e,s){return t+" / "+e},update:i.noop,done:i.noop,fail:i.noop},n.prototype.transition=function(){var o=this.$element,l=o.parent(),r=this.$back_text,c=this.$front_text,d=this.options,u=parseInt(o.attr("data-transitiongoal")),p=parseInt(o.attr("aria-valuemin"))||0,h=parseInt(o.attr("aria-valuemax"))||100,m=l.hasClass("vertical"),f=d.update&&"function"==typeof d.update?d.update:Progressbar.defaults.update,g=d.done&&"function"==typeof d.done?d.done:Progressbar.defaults.done,t=d.fail&&"function"==typeof d.fail?d.fail:Progressbar.defaults.fail;if(isNaN(u))t("data-transitiongoal not set");else{var e,v=Math.round(100*(u-p)/(h-p));if("center"===d.display_text&&!r&&!c)this.$back_text=r=i("<span>").addClass("progressbar-back-text").prependTo(l),this.$front_text=c=i("<span>").addClass("progressbar-front-text").prependTo(o),m?(e=l.css("height"),r.css({height:e,"line-height":e}),c.css({height:e,"line-height":e}),i(window).resize(function(){e=l.css("height"),r.css({height:e,"line-height":e}),c.css({height:e,"line-height":e})})):(e=l.css("width"),c.css({width:e}),i(window).resize(function(){e=l.css("width"),c.css({width:e})}));setTimeout(function(){var t,e,s,a,i;m?o.css("height",v+"%"):o.css("width",v+"%");var n=setInterval(function(){a=m?(s=o.height(),l.height()):(s=o.width(),l.width()),t=Math.round(100*s/a),e=Math.round(p+s/a*(h-p)),v<=t&&(t=v,e=u,g(o),clearInterval(n)),"none"!==d.display_text&&(i=d.use_percentage?d.percent_format(t):d.amount_format(e,h,p),"fill"===d.display_text?o.text(i):"center"===d.display_text&&(r.text(i),c.text(i))),o.attr("aria-valuenow",e),f(t,o)},d.refresh_speed)},d.transition_delay)}};var t=i.fn.yopprogressbar;i.fn.yopprogressbar=function(a){return this.each(function(){var t=i(this),e=t.data("bs.progressbar"),s="object"==typeof a&&a;e&&s&&i.extend(e.options,s),e||t.data("bs.progressbar",e=new n(this,s)),e.transition()})},i.fn.yopprogressbar.Constructor=n,i.fn.yopprogressbar.noConflict=function(){return i.fn.yopprogressbar=t,this}}(window.jQuery),jQuery(document).ready(function(e){e(".submenu-item").hover(function(t){e(this).closest(".submenu").find(".submenu-item").removeClass("btn-underline"),e(this).addClass("btn-underline"),t.preventDefault()},function(t){e(this).removeClass("btn-underline"),e(this).closest(".submenu").find(".submenu-item-active").addClass("btn-underline"),t.preventDefault()}),e(".submenu-item").click(function(t){e(this).closest(".submenu").find(".submenu-item").removeClass("btn-underline").removeClass("submenu-item-active"),e(this).addClass("btn-underline").addClass("submenu-item-active"),e(this).closest(".tab-pane").find(".submenu-content").addClass("hide"),e(this).closest(".tab-pane").find("."+e(this).attr("data-content")).removeClass("hide"),t.preventDefault()})}),jQuery(document).ready(function(i){var t,e="";toastr.options={closeButton:!1,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-bottom-right",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",escapeHtml:!1},i(".yop-poll-poll-templates").find('.basic-yop-poll-container[data-temp="basic-pretty"] input[type="radio"]').iCheck({checkboxClass:"icheckbox_square-red",radioClass:"iradio_square-red"}),i(".choose-template").click(function(){var t=i(this).attr("data-template-id");i('input[name="poll[template]"]').val(t),e=i(this).attr("data-template-base"),i('input[name="poll[template]"]').attr("data-template-base",e),""!==e&&("basic"===e?(i("#poll-design").find(".skins-no-template").addClass("hide"),i("#poll-design").find(".skins-no-skin").removeClass("hide"),i(document).find(".skins-basic").removeClass("hide"),i(document).find(".skins-basic-pretty").addClass("hide"),i(".yop-poll-poll-templates").find("figure").removeClass("selected"),i(this).closest("figure").addClass("selected"),i("#poll-design").find('a[data-content="content-design-templates"]').removeClass("btn-underline submenu-item-active"),i("#poll-design").find('a[data-content="content-design-predefined-styles"]').addClass("btn-underline submenu-item-active"),i("#poll-design").find(".content-design-templates").addClass("hide"),i("#poll-design").find(".content-design-predefined-styles").removeClass("hide")):showUpgradeToPro("basic-pretty-template"))}),i(".preview-poll").click(function(t){var a=!1;if(""===i('input[name="poll[template]"]').attr("data-template-base")&&(a=!0,toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.noTemplateSelectedLabel)))),!1===a&&""===i('input[name="poll[skin]"]').attr("data-skin-base")&&(a=!0,toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.noSkinSelectedLabel)))),!1===a&&i(".poll-elements").find(".poll-element").each(function(t){var e,s=i(this).attr("data-type");!1===a&&("text-question"!==s&&"media-question"!==s||"columns"===i(this).find(".answers-display").val()&&(""===(e=i(this).find(".answers-columns").val())?(a=!0,i(".poll-steps li").removeClass("active"),i(".poll-steps li:nth-child( 2)").addClass("active"),i(".poll-steps-content .tab-pane").removeClass("active"),i(".poll-steps-content .tab-pane:nth-child(2)").addClass("active"),i(".poll-steps-content .tab-pane:nth-child(2) .submenu-item").removeClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-item").eq(0).addClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-content").addClass("hide"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-content").eq(0).removeClass("hide"),i.scrollTo(i(this).find(".answers-display-section"),1e3,{onAfter:function(){i(this).find(".answers-columns").focus(),i(this).find(".answers-columns").parent().addClass("has-error")}}),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.noNumberOfColumnsDefined)))):12<e&&(a=!0,i(".poll-steps li").removeClass("active"),i(".poll-steps li:nth-child(2)").addClass("active"),i(".poll-steps-content .tab-pane").removeClass("active"),i(".poll-steps-content .tab-pane:nth-child(2)").addClass("active"),i(".poll-steps-content .tab-pane:nth-child(2) .submenu-item").removeClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-item").eq(0).addClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-content").addClass("hide"),i(".poll-steps-content .tab-pane:nth-child(2)").find(".submenu-content").eq(0).removeClass("hide"),i.scrollTo(i(this).find(".answers-display-section"),1e3,{onAfter:function(){i(this).find(".answers-columns").focus(),i(this).find(".answers-columns").parent().addClass("has-error")}}),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.numberOfColumnsTooBig))))))}),!1===a)switch(i('input[name="poll[template]"]').attr("data-template-base")){case"basic":YOPPollBasicShowLivePreview();break;case"basic-pretty":YOPPollBasicPrettyShowLivePreview()}t.preventDefault()}),i('input[name="poll[name]"]').change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".edit-poll-status").click(function(t){i(this).addClass("hide"),i("#poll-status-select").removeClass("hide-if-js"),t.preventDefault()}),i(".save-poll-status").click(function(t){var e=i("#poll_status").val();i(".poll-status").text(e.charAt(0).toUpperCase()+e.slice(1)),i("#poll-status-select").addClass("hide-if-js"),i(".edit-poll-status").removeClass("hide"),t.preventDefault()}),i(".cancel-poll-status").click(function(t){i("#poll-status-select").addClass("hide-if-js"),i(".edit-poll-status").removeClass("hide"),t.preventDefault()}),i(".edit-timestamp").click(function(t){i(".poll-steps li").removeClass("active"),i(".poll-steps li:nth-child(3)").addClass("active"),i(".poll-steps-content .tab-pane").removeClass("active"),i(".poll-steps-content .tab-pane:nth-child(3)").addClass("active"),i(".poll-steps-content .tab-pane:nth-child(3) .submenu-item").removeClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(3)").find(".submenu-item").eq(0).addClass("btn-underline"),i(".poll-steps-content .tab-pane:nth-child(3)").find(".submenu-content").addClass("hide"),i(".poll-steps-content .tab-pane:nth-child(3)").find(".submenu-content").eq(0).removeClass("hide"),i.scrollTo(".start-date-option",1e3,{onAfter:function(){i(".poll-preferences").find(".start-date-option").focus()}}),t.preventDefault()}),i.fn.extend({tooltipExtended:function(t){var e=i(this).data("ui-validate.error-destroy");""!==e&&(e=function(){i(this).tooltip("destroy").removeData("bs.tooltip").next(".tooltip").remove()},i(this).data("ui-validate.error-destroy",e)),i(this).tooltip("destroy").removeData("bs.tooltip").next(".tooltip").remove(),i(this).tooltip({title:t}).on("mouseleave",e).tooltip("show")}}),(t=new Clipboard("#copy-yop-poll-code")).on("success",function(t){i("#copy-yop-poll-code").tooltipExtended(objectL10n.yopPollParams.copyToClipboardSuccess),t.clearSelection()}),t.on("error",function(t){i("#copy-yop-poll-code").tooltipExtended(fallbackMessage(t.action))})}),jQuery(document).ready(function(a){a(".skins-basic-pretty").find(".basic-yop-poll-container").each(function(t){var e=a(this).attr("data-skin"),s=a(this).attr("data-cscheme");s="black"===s?"":"-"+s,a(this).find('input[type="radio"]').iCheck({checkboxClass:"icheckbox_"+e+s,radioClass:"iradio_"+e+s}),a(this).find('input[type="checkbox"]').iCheck({checkboxClass:"icheckbox_"+e+s,radioClass:"iradio_"+e+s})}),a(".skins-select-template").click(function(t){a("#poll-design").find('a[data-content="content-design-templates"]').addClass("btn-underline"),a("#poll-design").find('a[data-content="content-design-predefined-styles"]').removeClass("btn-underline"),a("#poll-design").find(".content-design-templates").removeClass("hide"),a("#poll-design").find(".content-design-predefined-styles").addClass("hide"),t.preventDefault()}),a(".choose-skin").click(function(t){a(this).attr("data-temp");a('input[name="poll[skin]"]').attr("data-skin-base",a(this).attr("data-skin-base")),a("#poll-design").find('input[name="poll[background-color]"]').val(a(this).attr("data-poll-background-color")),a("#poll-design").find('input[name="poll[background-color]"]').minicolors("value",{color:a(this).attr("data-poll-background-color")}),a("#poll-design").find('input[name="poll[border-color]"]').val(a(this).attr("data-poll-border-color")),a("#poll-design").find('input[name="poll[border-color]"]').minicolors("value",{color:a(this).attr("data-poll-border-color")}),a("#poll-design").find('input[name="poll[border-size]"]').val(a(this).attr("data-poll-border-size").replace("px","")),a("#poll-design").find('input[name="poll[border-radius]"]').val(a(this).attr("data-poll-border-radius").replace("px","")),a("#poll-design").find('input[name="poll[padding-left-right]"]').val(a(this).attr("data-poll-padding-left-right").replace("px","")),a("#poll-design").find('input[name="poll[padding-top-bottom]"]').val(a(this).attr("data-poll-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="questions[text-color]"]').val(a(this).attr("data-questions-text-color")),a("#poll-design").find('input[name="questions[text-color]"]').minicolors("value",{color:a(this).attr("data-questions-text-color")}),a("#poll-design").find('input[name="questions[text-size]"]').val(a(this).attr("data-questions-text-size").replace("px","")),a('.questions-text-weight option[value="'+a(this).attr("data-questions-text-weight")+'"]').prop("selected",!0),a('.questions-text-align option[value="'+a(this).attr("data-questions-text-align")+'"]').prop("selected",!0),a("#poll-design").find('input[name="answers[padding-left-right]"]').val(a(this).attr("data-answers-padding-left-right").replace("px","")),a("#poll-design").find('input[name="answers[padding-top-bottom]"]').val(a(this).attr("data-answers-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="answers[text-color]"]').val(a(this).attr("data-answers-text-color")),a("#poll-design").find('input[name="answers[text-color]"]').minicolors("value",{color:a(this).attr("data-answers-text-color")}),a("#poll-design").find('input[name="answers[text-size]"]').val(a(this).attr("data-answers-text-size").replace("px","")),a('.answers-text-weight option[value="'+a(this).attr("data-answers-text-weight")+'"]').prop("select",!0),a("#poll-design").find('input[name="buttons[background-color]"]').val(a(this).attr("data-buttons-background-color")),a("#poll-design").find('input[name="buttons[background-color]"]').minicolors("value",{color:a(this).attr("data-buttons-background-color")}),a("#poll-design").find('input[name="buttons[border-size]"]').val(a(this).attr("data-buttons-border-size").replace("px","")),a("#poll-design").find('input[name="buttons[border-color]"]').val(a(this).attr("data-buttons-border-color")),a("#poll-design").find('input[name="buttons[border-color]"]').minicolors("value",{color:a(this).attr("data-buttons-border-color")}),a("#poll-design").find('input[name="buttons[border-radius]"]').val(a(this).attr("data-buttons-border-radius").replace("px","")),a("#poll-design").find('input[name="buttons[padding-left-right]"]').val(a(this).attr("data-buttons-padding-left-right").replace("px","")),a("#poll-design").find('input[name="buttons[padding-top-bottom]"]').val(a(this).attr("data-buttons-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="buttons[text-color]"]').val(a(this).attr("data-buttons-text-color")),a("#poll-design").find('input[name="buttons[text-color]"]').minicolors("value",{color:a(this).attr("data-buttons-text-color")}),a("#poll-design").find('input[name="buttons[text-size]"]').val(a(this).attr("data-buttons-text-size").replace("px","")),a('.buttons-text-weight option[value="'+a(this).attr("data-buttons-text-weight")+'"]').prop("selected",!0),a("#poll-design").find('textarea[name="custom[css]"]').val(a(this).attr("data-custom-css")),a("#poll-design").find(".skins-no-template").addClass("hide"),a("#poll-design").find(".skins-no-skin").addClass("hide"),a("#poll-design").find(".skin-custom-style").removeClass("hide"),a("#poll-design").removeClass("active"),a("#poll-questions").addClass("active"),a("#yop-main-area").find(".step-design").removeClass("active"),a("#yop-main-area").find(".step-elements").addClass("active"),a("#yop-main-area").find(".step-options").removeClass("active"),a("#yop-main-area").find(".content-qa-elementss").addClass("btn-underline"),a("#yop-main-area").find(".content-design-predefined-styles").removeClass("btn-underline"),a("#yop-main-area").find(".content-qa-elements").removeClass("hide"),a(".content-design-predefined-styles").find("figure").removeClass("selected"),a(this).closest("figure").addClass("selected"),t.preventDefault()}),a(".customize-skin").click(function(t){a(this).attr("data-temp");var e=a(this).closest("figcaption").find(".choose-skin");a('input[name="poll[skin]"]').attr("data-skin-base",a(this).attr("data-skin-base")),a("#poll-design").find('input[name="poll[background-color]"]').val(e.attr("data-poll-background-color")),a("#poll-design").find('input[name="poll[background-color]"]').minicolors("value",{color:e.attr("data-poll-background-color")}),a("#poll-design").find('input[name="poll[border-color]"]').val(e.attr("data-poll-border-color")),a("#poll-design").find('input[name="poll[border-color]"]').minicolors("value",{color:e.attr("data-poll-border-color")}),a("#poll-design").find('input[name="poll[border-size]"]').val(e.attr("data-poll-border-size").replace("px","")),a("#poll-design").find('input[name="poll[border-radius]"]').val(e.attr("data-poll-border-radius").replace("px","")),a("#poll-design").find('input[name="poll[padding-left-right]"]').val(e.attr("data-poll-padding-left-right").replace("px","")),a("#poll-design").find('input[name="poll[padding-top-bottom]"]').val(e.attr("data-poll-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="questions[text-color]"]').val(e.attr("data-questions-text-color")),a("#poll-design").find('input[name="questions[text-color]"]').minicolors("value",{color:e.attr("data-questions-text-color")}),a("#poll-design").find('input[name="questions[text-size]"]').val(e.attr("data-questions-text-size").replace("px","")),a('.questions-text-weight option[value="'+a(this).attr("data-questions-text-weight")+'"]').prop("selected",!0),a('.questions-text-align option[value="'+a(this).attr("data-questions-text-align")+'"]').prop("selected",!0),a("#poll-design").find('input[name="answers[padding-left-right]"]').val(e.attr("data-answers-padding-left-right").replace("px","")),a("#poll-design").find('input[name="answers[padding-top-bottom]"]').val(e.attr("data-answers-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="answers[text-color]"]').val(e.attr("data-answers-text-color")),a("#poll-design").find('input[name="answers[text-color]"]').minicolors("value",{color:e.attr("data-answers-text-color")}),a("#poll-design").find('input[name="answers[text-size]"]').val(e.attr("data-answers-text-size").replace("px","")),a('.answers-text-weight option[value="'+a(this).attr("data-answers-text-weight")+'"]').prop("select",!0),a("#poll-design").find('input[name="buttons[background-color]"]').val(e.attr("data-buttons-background-color")),a("#poll-design").find('input[name="buttons[background-color]"]').minicolors("value",{color:e.attr("data-buttons-background-color")}),a("#poll-design").find('input[name="buttons[border-size]"]').val(e.attr("data-buttons-border-size").replace("px","")),a("#poll-design").find('input[name="buttons[border-color]"]').val(e.attr("data-buttons-border-color")),a("#poll-design").find('input[name="buttons[border-color]"]').minicolors("value",{color:e.attr("data-buttons-border-color")}),a("#poll-design").find('input[name="buttons[border-radius]"]').val(e.attr("data-buttons-border-radius").replace("px","")),a("#poll-design").find('input[name="buttons[padding-left-right]"]').val(e.attr("data-buttons-padding-left-right").replace("px","")),a("#poll-design").find('input[name="buttons[padding-top-bottom]"]').val(e.attr("data-buttons-padding-top-bottom").replace("px","")),a("#poll-design").find('input[name="buttons[text-color]"]').val(e.attr("data-buttons-text-color")),a("#poll-design").find('input[name="buttons[text-color]"]').minicolors("value",{color:e.attr("data-buttons-text-color")}),a("#poll-design").find('input[name="buttons[text-size]"]').val(e.attr("data-buttons-text-size").replace("px","")),a('.buttons-text-weight option[value="'+a(this).attr("data-buttons-text-weight")+'"]').prop("selected",!0),a("#poll-design").find('textarea[name="custom[css]"]').val(e.attr("data-custom-css")),a("#poll-design").find(".skins-no-template").addClass("hide"),a("#poll-design").find(".skins-no-skin").addClass("hide"),a("#poll-design").find(".skin-custom-style").removeClass("hide"),a(".content-design-predefined-styles").find("figure").removeClass("selected"),a(this).closest("figure").addClass("selected"),a("#poll-design").find(".skins-no-template").addClass("hide"),a("#poll-design").find(".skins-no-skin").addClass("hide"),a("#poll-design").find(".skin-custom-style").removeClass("hide"),a("#poll-design").find('a[data-content="content-design-predefined-styles"]').removeClass("btn-underline submenu-item-active"),a("#poll-design").find('a[data-content="content-design-custom-style"]').addClass("btn-underline submenu-item-active"),a("#poll-design").find(".content-design-predefined-styles").addClass("hide"),a("#poll-design").find(".content-design-custom-style").removeClass("hide"),t.preventDefault()})}),jQuery(document).ready(function(s){s(".yop-element > .yop-head").first().addClass("collapse-up"),s(".yop-element > .yop-head").click(function(){var t=s(this).parent().children(".content"),e=s(this);s(t).slideToggle(function(){"block"===s(t).css("display")?(s(e).addClass("collapse-up"),s(e).removeClass("collapse-down")):(s(e).addClass("collapse-down"),s(e).removeClass("collapse-up"))})}),s(".poll-style-header").click(function(){var t=s(this).closest(".panel").find(".panel-collapse");s(t).hasClass("in")?s(this).find("a").first().removeClass("collapsed"):s(this).find("a").first().addClass("collapsed"),s(t).collapse("toggle")}),s(".custom-style-select-template").click(function(t){s("#poll-design").find('a[data-content="content-design-templates"]').addClass("btn-underline"),s("#poll-design").find('a[data-content="content-design-custom-style"]').removeClass("btn-underline"),s("#poll-design").find(".content-design-templates").removeClass("hide"),s("#poll-design").find(".content-design-custom-style").addClass("hide"),t.preventDefault()}),s(".custom-style-select-skin").click(function(t){s("#poll-design").find('a[data-content="content-design-custom-style"]').removeClass("btn-underline"),s("#poll-design").find('a[data-content="content-design-predefined-styles"]').addClass("btn-underline"),s("#poll-design").find(".content-design-predefined-styles").removeClass("hide"),s("#poll-design").find(".content-design-custom-style").addClass("hide"),t.preventDefault()}),s(".color-scheme li").click(function(){!1===s(this).hasClass("active")&&(s("li.active").removeClass("active"),s(this).addClass("active"))}),s(".colorpicker-component").each(function(){s(this).find("INPUT").minicolors({position:"bottom right",inline:!1,theme:"bootstrap"})}),s(".poll-background-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-border-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-border-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-border-radius").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-padding-left-right").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-padding-top-bottom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".questions-text-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".questions-text-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".answers-padding-left-right").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".answers-padding-top-bottom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".answers-text-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".answers-text-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-background-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-border-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-border-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-border-radius").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-padding-left-right").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-padding-top-bottom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-text-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".buttons-text-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-border-left-color-for-success").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-border-left-color-for-error").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-border-left-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-padding-top-left").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-text-color").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".errors-text-size").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")})}),jQuery(document).ready(function(e){e(".vote-permissions").on("click",function(t){!0===e(this).is(":checked")&&-1!==e.inArray(e(this).val(),["facebook","google"])&&(showUpgradeToPro(e(this).val()),t.preventDefault())}),e(".block-voters").on("click",function(t){!0===e(this).is(":checked")?"no-block"===e(this).val()?(e(".block-voters-section").find('.block-voters[value!="no-block"]').prop("checked",!1),e(".block-type-section").addClass("hide"),e(".block-length-section").addClass("hide")):"by-fingerprint"===e(this).val()?(showUpgradeToPro("block-fingerprint"),t.preventDefault()):(e(".block-voters-section").find('.block-voters[value="no-block"]').prop("checked",!1),e(".block-type-section").removeClass("hide")):0===e(".block-voters:checked").length&&(e(".block-type-section").addClass("hide"),e(".block-length-section").addClass("hide"))}),e(".block-length-type").on("change",function(t){"limited-time"===e(this).val()?e(".block-length-section").removeClass("hide"):e(".block-length-section").addClass("hide")}),e(".poll-options-access").on("change",".limit-votes-per-user",function(t){"yes"===e(this).val()?e(this).closest(".poll-options-access").find(".votes-per-user-section").removeClass("hide"):e(this).closest(".poll-options-access").find(".votes-per-user-section").addClass("hide")}),e(".block-for-value").change(function(){""!==e(this).val()&&e(this).parent().removeClass("has-error")})}),jQuery(document).ready(function(i){var s=1,a=1;i("#sortable").sortable({appendTo:document.body,items:"> .answer-block",axis:"y"}),i(".poll-elements-list").sortable({axis:"y",handle:".title-bar",start:function(t,e){i(".poll-elements").find(".poll-element").each(function(t){i(this).find(".content").first().hide()})},stop:function(t,e){}}),i(".poll-elements-list").find(".answers").sortable(),i(".poll-elements").on("click",".poll-element-collapse",function(t){var e=i(this).closest(".poll-element").find(".content-inside").first(),s=i(this);i(e).slideToggle({duration:1e3,complete:function(){var t=i(e).is(":visible");i(this).removeClass("toggle-in-action"),!0===t?(i(s).find("span").addClass("glyphicon-chevron-up"),i(s).find("span").removeClass("glyphicon-chevron-down"),i(s).closest(".title-bar").removeClass("collapsed")):(i(s).find("span").addClass("glyphicon-chevron-down"),i(s).find("span").removeClass("glyphicon-chevron-up"),i(s).closest(".title-bar").addClass("collapsed"),i(s).show())}}),t.preventDefault()}),i(".add-custom-field").draggable({helper:function(t){var e=i(".custom-field-definition").find(".poll-element").clone();return i(e)},connectToSortable:".poll-elements-list",start:function(t,e){e.helper.css("width",""),e.helper.find(".content-inside").hide(),e.helper.find(".custom-field-options").hide(),e.helper.find(".title-bar").addClass("collapsed")},drag:function(t,e){e.helper.css("width",i(".poll-elements").css("width"))},stop:function(t,e){e.helper.css({width:"",height:""}),e.helper.closest('.poll-element[data-type="custom-field"]').attr("data-uid","el-"+s),s++,e.helper.find(".poll-element-collapse").first().trigger("click")}}),i(".add-custom-field").click(function(t){var e=i(".custom-field-definition").find(".poll-element").clone();e.closest('.poll-element[data-type="custom-field"]').attr("data-uid","el-"+s),s++,i(".poll-elements-list").append(e),toastr.success(objectL10n.yopPollParams.elementAdded),t.preventDefault()}),i(".poll-elements").on("click",".custom-field-edit-more",function(t){i(this).closest(".poll-element").find(".custom-field-options").show(),t.preventDefault()}),i(".poll-elements").on("click",".custom-field-edit-clone",function(t){i(this).closest(".poll-element").after(i(this).closest(".poll-element").clone().attr({"data-id":"","data-uid":"el-"+s})),s++,t.preventDefault()}),i(".poll-elements").on("click",".custom-field-edit-delete",function(t){var e,s,a=i(this);BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteCustomFieldMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&(""!==(e=i(a).closest('.poll-element[data-type="custom-field"]').attr("data-id"))&&(""===(s=i(".poll-elements-list").attr("data-remove"))?i(".poll-elements-list").attr("data-remove",e):i(".poll-elements-list").attr("data-remove",s+","+e)),i(a).closest(".poll-element").remove())}}),t.preventDefault()}),i(".poll-elements").on("change",".custom-field-required",function(t){var e=i(this).is(":checked");i(this).closest(".poll-element").find(".custom-field-make-required").prop("checked",e),t.preventDefault()}),i(".poll-elements").on("change",".custom-field-make-required",function(t){var e=i(this).is(":checked");i(this).closest(".poll-element").find(".custom-field-required").prop("checked",e),t.preventDefault()}),i(".poll-elements").on("click",".custom-field-edit-done",function(t){i(this).closest(".poll-element").find(".custom-field-options").hide(),t.preventDefault()}),i(".poll-elements").on("change",".custom-field-type",function(t){"textfield"!==i(this).val()&&(showUpgradeToPro("text-block"),i('.custom-field-type option[value="textfield"]').prop("selected",!0))}),i(".add-text-question").click(function(t){showUpgradeToPro("text-question"),t.preventDefault()}),i(".poll-elements").on("click",".text-question-edit-clone",function(t){showUpgradeToPro("text-question"),t.preventDefault()}),i(".poll-elements").on("click",".text-question-edit-delete",function(t){showUpgradeToPro("text-question"),t.preventDefault()}),i(".poll-elements").find("INPUT.answer-results-color").minicolors({position:"top right",inline:!1,theme:"bootstrap"}),i(".add-media-question").click(function(t){showUpgradeToPro("media-question"),t.preventDefault()}),i(".add-space-separator").click(function(t){showUpgradeToPro("space-separator"),t.preventDefault()}),i(".add-text-block").click(function(t){showUpgradeToPro("text-block"),t.preventDefault()}),i(".poll-elements").on("click",".add-text-answer",function(t){var e=i(".text-answer-definition").find(".answer").clone().attr("data-uid","subEl-"+a);a++,i(e).find(".answer-results-color").minicolors({position:"top right",inline:!1,theme:"bootstrap"}),i(this).closest('.poll-element[data-type="text-question"]').find(".answers").append(i(e)),t.preventDefault()}),i(".poll-elements").on("click",".text-answer-edit-more",function(t){i(this).closest(".answer").find(".answer-options").show(),t.preventDefault()}),i(".poll-elements").on("click",".text-answer-edit-clone",function(t){var e=i(this).closest(".answer"),s=i(e).clone().attr({"data-id":"","data-uid":"subEl-"+a});a++,i(s).find(".answer-results-color").minicolors("destroy"),i(s).find(".answer-results-color").minicolors({position:"top right",inline:!1,theme:"bootstrap"}),i(e).after(i(s)),t.preventDefault()}),i(".poll-elements").on("click",".text-answer-edit-delete",function(t){var e,s,a=i(this);BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteAnswerMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&(""!==(e=i(a).closest(".answer").attr("data-id"))&&(""===(s=i(a).closest('.poll-element[data-type="text-question"]').attr("data-remove"))?i(a).closest('.poll-element[data-type="text-question"]').attr("data-remove",e):i(a).closest('.poll-element[data-type="text-question"]').attr("data-remove",s+","+e)),i(a).closest(".answer").remove())}}),t.preventDefault()}),i(".poll-elements").on("click",".text-answer-edit-done",function(t){i(this).closest(".answer-options").hide(),t.preventDefault()}),i(".poll-elements").on("change",".answer-is-default",function(t){var e=i(this).is(":checked");i(this).closest(".answer").find(".answer-make-default").prop("checked",e),t.preventDefault()}),i(".poll-elements").on("change",".answer-make-default",function(t){var e=i(this).is(":checked");i(this).closest(".answer").find(".answer-is-default").prop("checked",e),t.preventDefault()}),i(".poll-elements").on("change",".answer-make-link",function(t){!0===i(this).is(":checked")?i(this).closest(".answer").find(".answer-link-section").removeClass("hide"):i(this).closest(".answer").find(".answer-link-section").addClass("hide"),t.preventDefault()}),i(".poll-elements").on("change",".allow-other-answers",function(t){"yes"===i(this).val()?i(this).closest(".question-options").find(".other-answers-section").removeClass("hide"):i(this).closest(".question-options").find(".other-answers-section").addClass("hide")}),i(".poll-elements").find("INPUT.other-answers-results-color").minicolors({position:"top right",inline:!1,theme:"bootstrap"}),i(".poll-elements").on("change",".display-other-answers-in-results",function(t){"yes"===i(this).val()?i(this).closest(".other-answers-section").find(".other-answers-results-color-section").removeClass("hide"):i(this).closest(".other-answers-section").find(".other-answers-results-color-section").addClass("hide"),t.preventDefault()}),i(".poll-elements").on("change",".allow-multiple-answers",function(t){"yes"===i(this).val()?i(this).closest(".question-options").find(".multiple-answers-section").removeClass("hide"):i(this).closest(".question-options").find(".multiple-answers-section").addClass("hide")}),i(".poll-elements").on("change",".answers-display",function(t){"columns"===i(this).val()?(i(this).closest(".question-options").find(".answers-display-section").removeClass("hide"),i(this).closest(".question-options").find(".answers-columns").val("2")):i(this).closest(".question-options").find(".answers-display-section").addClass("hide")}),i(".poll-elements").on("change",".other-answers-type",function(t){"textfield"!==i(this).val()&&(showUpgradeToPro("other-answers-type"),i('.answers-sort option[value="as-defined"]').prop("selected",!0))}),i(".poll-elements").on("change",".answers-sort",function(t){"as-defined"!==i(this).val()&&(showUpgradeToPro("sort-answers"),i('.answers-sort option[value="as-defined"]').prop("selected",!0))}),i(".question-text-edit").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".answer-edit-text").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".answers-columns").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".poll-elements").on("input",".question-value",function(){var t="";t=""===i(this).val().trim()?i(this).attr("placeholder"):i(this).val().substring(0,50),i(this).closest(".poll-element").find(".element-title").text(t)}),i(".poll-elements").on("input",".custom-field-name",function(){var t="";t=""===i(this).val().trim()?i(this).attr("placeholder"):i(this).val().substring(0,50),i(this).closest(".poll-element").find(".element-title").text(t)})}),jQuery(document).ready(function(s){s(".start-date-custom-hidden").datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm",onSelect:function(t){var e;e=moment(t,"YYYY-MM-DD HH:mm").unix(),s(".start-date-custom").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,e)).change(),s("#timestamp").text(objectL10n.yopPollParams.publishDateSchedule+":"+date("M d, Y @ H:i",e))},onClose:function(){var t;null!==s(".start-date-custom-hidden").datetimepicker("getDate")&&(t=moment(s(".start-date-custom-hidden").datetimepicker("getDate")).unix(),s(".start-date-custom").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,t)).change(),s("#timestamp").text(objectL10n.yopPollParams.publishDateSchedule+": "),s("#timestamp").text(objectL10n.yopPollParams.publishDateSchedule+": "+date("M d, Y @ H:i",t)))}}),s(".end-date-custom-hidden").datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm",onSelect:function(t){var e;e=moment(t,"YYYY-MM-DD HH:mm").unix(),s(".end-date-custom").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,e)).change()},onClose:function(){var t;null!==s(".end-date-custom-hidden").datetimepicker("getDate")&&(t=moment(s(".end-date-custom-hidden").datetimepicker("getDate")).unix(),s(".end-date-custom").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,t)).change())}}),s(".poll-vote-button").on("change",".show-results-link",function(t){"yes"===s(this).val()?s(".results-link-option").removeClass("hide"):s(".results-link-option").addClass("hide")}),s(".poll-preferences").on("change",".start-date-option",function(t){"custom"===s(this).val()?s(this).closest(".poll-preferences").find(".start-date-section").removeClass("hide"):(s(this).closest(".poll-preferences").find(".start-date-section").addClass("hide"),s("#timestamp").text(objectL10n.yopPollParams.publishDateImmediately))}),s(".poll-preferences").on("click",".show-start-date",function(t){s(".start-date-custom-hidden").datepicker("show"),t.preventDefault()}),s(".poll-preferences").on("click",".show-end-date",function(t){s(".end-date-custom-hidden").datepicker("show"),t.preventDefault()}),s(".poll-preferences").on("change","select.end-date-option",function(t){"custom"===s(this).val()?s(this).closest(".poll-preferences").find(".end-date-section").removeClass("hide"):s(this).closest(".poll-preferences").find(".end-date-section").addClass("hide")}),s(".poll-preferences").on("change",".redirect-after-vote",function(t){"yes"===s(this).val()?s(this).closest(".poll-preferences").find(".redirect-url-section").removeClass("hide"):s(this).closest(".poll-preferences").find(".redirect-url-section").addClass("hide")}),s(".poll-preferences").on("change",".reset-poll-stats-automatically",function(t){"yes"===s(this).val()?s(this).closest(".poll-preferences").find(".reset-poll-stats-section").removeClass("hide"):s(this).closest(".poll-preferences").find(".reset-poll-stats-section").addClass("hide")}),s(".reset-poll-stats-on-hidden").datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm",onSelect:function(t){var e;e=moment(t,"YYYY-MM-DD HH:mm").unix(),s(".reset-poll-stats-on").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,e)).change()},onClose:function(){var t;null!==s(".reset-poll-stats-on-hidden").datetimepicker("getDate")&&(t=moment(s(".reset-poll-stats-on-hidden").datetimepicker("getDate")).unix(),s(".reset-poll-stats-on").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,t)).change())}}),s(".poll-preferences").on("click",".show-reset-poll-stats-on",function(t){s(".reset-poll-stats-on-hidden").datepicker("show"),t.preventDefault()}),s(".poll-notifications").on("change",".send-email-notifications",function(t){"yes"===s(this).val()?s(this).closest(".poll-notifications").find(".send-email-notifications-section").removeClass("hide"):s(this).closest(".poll-notifications").find(".send-email-notifications-section").addClass("hide")}),s(".vote-button-label").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".results-label-text").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".start-date-custom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".end-date-custom").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".redirect-url").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-from-name").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-from-email").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-recipients").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-subject").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".email-notifications-message").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-compliance").on("change",".enable-gdpr",function(t){"yes"===s(this).val()?(s(this).closest(".poll-compliance").find(".gdpr-solution-section").removeClass("hide"),"consent"===s(".gdpr-solution").val()?s(this).closest(".poll-compliance").find(".gdpr-consent-section").removeClass("hide"):s(this).closest(".poll-compliance").find(".gdpr-consent-section").addClass("hide")):(s(this).closest(".poll-compliance").find(".gdpr-solution-section").addClass("hide"),s(this).closest(".poll-compliance").find(".gdpr-consent-section").addClass("hide"))}),s(".poll-compliance").on("change",".gdpr-solution",function(t){"consent"===s(this).val()?s(this).closest(".poll-compliance").find(".gdpr-consent-section").removeClass("hide"):s(this).closest(".poll-compliance").find(".gdpr-consent-section").addClass("hide")})}),jQuery(document).ready(function(s){s(".show-results-moment").click(function(t){!0===s(this).is(":checked")?"never"===s(this).val()?(s('.show-results-moment[value!="never"]').prop("checked",!1),s(".show-results-to-section").addClass("hide"),s(".custom-date-results-section").addClass("hide"),s(".show-results-details-section").addClass("hide")):(s('.show-results-moment[value="never"]').prop("checked",!1),"custom-date"===s(this).val()&&s(".custom-date-results-section").removeClass("hide"),s(".show-results-to-section").removeClass("hide"),s(".show-results-details-section").removeClass("hide")):(0===s(".show-results-moment:checked").length&&(s(".show-results-to-section").addClass("hide"),s(".custom-date-results-section").addClass("hide"),s(".show-results-details-section").addClass("hide")),"custom-date"===s(this).val()&&s(".custom-date-results-section").addClass("hide"))}),s(".custom-date-results-hidden").datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm",onSelect:function(t){var e;e=moment(t,"YYYY-MM-DD HH:mm").unix(),s(".custom-date-results").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,e)).change()},onClose:function(){var t;null!==s(".custom-date-results-hidden").datetimepicker("getDate")&&(t=moment(s(".custom-date-results-hidden").datetimepicker("getDate")).unix(),s(".custom-date-results").val(date(objectL10n.yopPollParams.timeFormat+" "+objectL10n.yopPollParams.dateFormat,t)).change())}}),s(".custom-date-results-section").on("click",".show-custom-date-results",function(t){s(".custom-date-results-hidden").datepicker("show"),t.preventDefault()}),s(".poll-results-options").on("change",".back-to-vote-option",function(t){"yes"===s(this).val()?s(this).closest(".poll-results-options").find(".back-to-vote-caption-section").removeClass("hide"):s(this).closest(".poll-results-options").find(".back-to-vote-caption-section").addClass("hide")}),s(".poll-results-options").on("change",".sort-results",function(t){"alphabetical"===s(this).val()||"number-of-votes"===s(this).val()?s(this).closest(".poll-results-options").find(".sort-results-rule-section").removeClass("hide"):s(this).closest(".poll-results-options").find(".sort-results-rule-section").addClass("hide")}),s(".custom-date-results").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".back-to-vote-caption").change(function(){""!==s(this).val()&&s(this).parent().removeClass("has-error")}),s(".poll-results-options").on("change",".display-results-as",function(t){"pie"===s(this).val()&&(showUpgradeToPro("pie-results"),t.preventDefault())})});var YOPPollBasicIsVotingEnded,YOPPollBasicIsVotingStarted,YOPPollBasicIsAllowMultipleAnswers,YOPPollBasicIsAnswerDefault,YOPPollBasicIsAnswerLink,YOPPollBasicGetAnswersCount,YOPPollBasicHasGdpr,YOPPollBasicHasCaptcha,YOPPollBasicFormatVotePermissions,YOPPollBasicGetResultsBeforeVoteSettings,YOPPollBasicDoAnonymousVote,YOPPollBasicGetPollElements,YOPPollBasicDoTextQuestion,YOPPollBasicDoVerticalText,YOPPollBasicDoHorizontalText,YOPPollBasicDoColumnsText,YOPPollBasicDoCustomField,YOPPollBasicCreateMediaAnswer,YOPPollBasicDoMediaQuestion,YOPPollBasicDoVerticalMedia,YOPPollBasicDoHorizontalMedia,YOPPollBasicDoColumnsMedia,YOPPollBasicDoSpaceSeparator,YOPPollBasicDoTextBlock,YOPPollBasicShowResultsLink,YOPPollBasicShowBackToVoteLink,YOPPollBasicDoShowTotalVotesAndAnswers,YOPPollBasicProcessElements,YOPPollBasicDoShowResultsBeforeVote,YOPPollBasicShowLivePreviewFor,YOPPollBasicShowLivePreviewForVoting,YOPPollBasicShowLivePreviewForResults,YOPPollDoPrettyBasic,YOPPollRemovePrettyBasic,YOPPollBasicIsResultsShowPercentages,YOPPollBasicIsResultsShowVotes,YOPPollBasicGetClassForColumns,randomMin=1,randomMax=100;jQuery(document).ready(function(m){var s=[[]];YOPPollBasicIsVotingEnded=function(t,e){var s=strtotime(e);return"custom"===t&&parseInt(s,10)<parseInt(objectL10n.yopPollParams.timeNow,10)},YOPPollBasicIsVotingStarted=function(t,e){var s=strtotime(e);return"custom"!==t||!(parseInt(s,10)>parseInt(objectL10n.yopPollParams.timeNow,10))},YOPPollBasicIsAllowMultipleAnswers=function(t){return"yes"===t?"checkbox":"radio"},YOPPollBasicIsAnswerDefault=function(t){return!0===t.is(":checked")?"checked":""},YOPPollBasicIsAnswerLink=function(t,e,s){return!0===t.is(":checked")&&""!==e?'<a href="'+e+'" target="_blank">'+s+"</a>":s},YOPPollBasicGetAnswersCount=function(t){var e=t.find(".answer").length;return"yes"===t.find(".allow-other-answers").val()&&e++,e.toString()},YOPPollBasicFormatVotePermissions=function(t){var e=0,s=[];for(e in t)s.push(t[e].id);return s},YOPPollBasicGetResultsBeforeVoteSettings=function(t){return resultsBeforeVoteData=' data-show-results-to="'+t["show-results-to"].join()+'" data-show-results-moment="'+t["show-results-moment"].join()+'" data-show-results-only="false" data-show-results-as="'+t["display-results-as"]+'" data-sort-results-by="'+t["sort-results-by"]+'" data-sort-results-rule="'+t["sort-results-rule"]+'" data-resdet="'+t["show-details-as"].join()+'"',resultsBeforeVoteData},YOPPollBasicGetClassForColumns=function(t){var e="";switch(t){case"2":e="col-xs-6 col-sm-6 col-md-6";break;case"3":e="col-xs-6 col-sm-6 col-md-4";break;case"4":e="col-xs-6 col-sm-6 col-md-3";break;case"5":e="col-xs-6 col-sm-6 cols-5";break;case"6":e="col-xs-6 col-sm-6 col-md-2";break;case"7":e="col-xs-6 col-sm-6 cols-7";break;case"8":e="col-xs-6 col-sm-6 cols-8";break;case"9":e="col-xs-6 col-sm-6 cols-9";break;case"10":e="col-xs-6 col-sm-6 cols-10";break;case"11":e="col-xs-6 col-sm-6 cols-11";break;case"12":e="col-xs-6 col-sm-6 col-md-1"}return e},YOPPollBasicDoAnonymousVote=function(t){var e="";return-1<m.inArray("guest",t)&&(e='<div class="basic-anonymous"><button type="button" class="btn btn-default"><i class="fa fa-user-secret" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.annonymousVoteText+"</button></div>"),e},YOPPollBasicGetPollElements=function(){var s="",a=m(".poll-elements-list").find(".poll-element").length;return m(".poll-elements-list").find(".poll-element").each(function(t){var e=t+1;switch(m(this).attr("data-type")){case"text-question":s+=YOPPollBasicDoTextQuestion(m(this),e);break;case"custom-field":s+=YOPPollBasicDoCustomField(m(this),e)}t<a&&(s+='<div class="clearfix"></div>')}),s},YOPPollBasicDoTextQuestion=function(t,e){var s="",a="";switch(t.find(".answers-display").val()){case"vertical":a="basic-question-text-vertical",s=YOPPollBasicDoVerticalText(t,e);break;case"horizontal":a="basic-question-text-horizontal",s=YOPPollBasicDoHorizontalText(t,e);break;case"columns":a="basic-question-text-columns",s=YOPPollBasicDoColumnsText(t,e)}return'<div class="basic-element basic-question '+a+'" data-id="'+e+'" data-type="question" data-question-type="text" data-min="" data-max="" data-display="'+m(t).find(".answers-display").val()+'"><div class="basic-question-title"><h5 style="color:'+m(".questions-style-settings").find(".questions-text-color").val()+"; font-size:"+m(".questions-style-settings").find(".questions-text-size").val()+"px; font-weight:"+m(".questions-style-settings").find(".questions-text-weight").val()+"; text-align:"+m(".questions-style-settings").find(".questions-text-align").val()+';">'+htmlEncode(t.find(".question-value").val())+"</h5></div>"+s+"</div>"},YOPPollBasicDoVerticalText=function(t,s){var a,i,n,o='<ul class="basic-answers">';return a=YOPPollBasicIsAllowMultipleAnswers(t.find(".allow-multiple-answers").val()),t.find(".answer").each(function(t){var e=Math.floor(Math.random()*(randomMax-randomMin+1))+randomMin;n=YOPPollBasicIsAnswerDefault(m(this).find(".answer-is-default")),i=YOPPollBasicIsAnswerLink(m(this).find(".answer-make-link"),m(this).find(".answer-link").val(),m(this).find(".answer-value").val()),o+='<li class="basic-answer" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;" data-id="'+t+'" data-type="text" data-vn="'+e+'" data-color="'+m(this).find(".answer-results-color").val()+'"><div class="basic-answer-content basic-text-vertical"><label for="answer['+s+"]["+(t+1)+']" class="basic-answer-label"><input type="'+a+'" id="answer['+s+"]["+(t+1)+']" name="answer['+s+']" value="'+t+'"'+n+'><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+htmlEncode(i)+"</span></label></div></li>"}),"yes"===t.find(".allow-other-answers").val()&&(o+='<li class="basic-answer basic-other-answer" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;""><div class="basic-answer-content basic-text-vertical"><label for="answer['+s+'][0]" class="basic-answer-label"><input type="'+a+'" id="answer['+s+'][0]" name="answer['+s+']" value="0"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+htmlEncode(t.find(".other-answers-label").val())+'</span></label></div><div class="col-md-6 col-sm-6 col-xs-12"><input class="basic-input-text form-control" type="text" name="answer['+s+']" data-type="other-answer"></div></li>'),o+="</ul>"},YOPPollBasicDoHorizontalText=function(t,s){var a,i,n,o=YOPPollBasicGetClassForColumns(YOPPollBasicGetAnswersCount(t)),l='<ul class="basic-answers basic-h-answers">';return answersCount=YOPPollBasicGetAnswersCount(t),a=YOPPollBasicIsAllowMultipleAnswers(t.find(".allow-multiple-answers").val()),t.find(".answer").each(function(t){var e=Math.floor(Math.random()*(randomMax-randomMin+1))+randomMin;n=YOPPollBasicIsAnswerDefault(m(this).find(".answer-is-default")),i=YOPPollBasicIsAnswerLink(m(this).find(".answer-make-link"),m(this).find(".answer-link").val(),m(this).find(".answer-value").val()),l+='<li class="basic-answer '+o+'" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;" data-id="'+t+'" data-type="text" data-vn="'+e+'" data-color="'+m(this).find(".answer-results-color").val()+'""><div class="basic-answer-content basic-text-horizontal"><label for="answer['+s+"]["+(t+1)+']" class="basic-answer-label"><input type="'+a+'" id="answer['+s+"]["+(t+1)+']" name="answer['+s+']" value="'+t+'"'+n+'><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+htmlEncode(i)+"</span></label></div></li>"}),"yes"===t.find(".allow-other-answers").val()&&(l+='<li class="basic-answer basic-other-answer '+o+'" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;""><div class="basic-answer-content basic-text-horizontal"><label for="answer['+s+'][0]" class="basic-answer-label"><input type="'+a+'" id="answer['+s+'][0]" name="answer['+(answersCount+1)+']" value="0"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+htmlEncode(t.find(".other-answers-label").val())+'</span></label></div><div class="col-xs-12"><input class="basic-input-text form-control" type="text" name="answer['+s+']" data-type="other-answer"></div></li>'),l+="</ul>"},YOPPollBasicDoColumnsText=function(t,s){var a,i,n="",o="",e=YOPPollBasicGetAnswersCount(t),l=YOPPollBasicGetClassForColumns(t.find(".answers-columns").val());return a=YOPPollBasicIsAllowMultipleAnswers(t.find(".allow-multiple-answers").val()),i='<ul class="basic-answers basic-h-answers basic-cols-display">',t.find(".answer").each(function(t){var e=Math.floor(Math.random()*(randomMax-randomMin+1))+randomMin;o=YOPPollBasicIsAnswerDefault(m(this).find(".answer-is-default")),n=YOPPollBasicIsAnswerLink(m(this).find(".answer-make-link"),m(this).find(".answer-link").val(),m(this).find(".answer-value").val()),i+='<li class="basic-answer '+l+'" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;" data-id="'+t+'" data-type="text" data-vn="'+e+'" data-color="'+m(this).find(".answer-results-color").val()+'""><div class="basic-answer-content basic-text-horizontal"><label for="answer['+s+"]["+(t+1)+']" class="basic-answer-label"><input type="'+a+'" id="answer['+s+"]["+(t+1)+']" name="answer['+s+']" value="'+t+'"'+o+'><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+htmlEncode(n)+"</span></label></div></li>"}),"yes"===t.find(".allow-other-answers").val()&&(i+='<li class="basic-answer basic-other-answer '+l+'" style="padding:'+m(".answers-style-settings").find(".answers-padding-top-bottom").val()+"px "+m(".answers-style-settings").find(".answers-padding-left-right").val()+'px;""><div class="basic-answer-content basic-text-horizontal"><label for="answer['+s+'][0]" class="basic-answer-label"><input type="'+a+'" id="answer['+s+'][0]" name="answer['+(e+1)+']" value="0"><span class="basic-text" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+htmlEncode(t.find(".other-answers-label").val())+'</span></label></div><div class="col-xs-12"><input class="basic-input-text form-control" type="text" name="answer['+s+']" data-type="other-answer"></div></li>'),i+="</ul>"},YOPPollBasicDoCustomField=function(t,e){return'<div class="basic-element basic-custom-field" data-id="" data-type="custom-field" data-required=""><div class="basic-custom-field-title"><label>'+htmlEncode(t.find(".custom-field-name").val())+'</label></div><div class="col-md-6 col-sm-6 col-xs-12"><input type="text" name="cfield[]" class="basic-input-text form-control" data-type="cfield"></div></div>'},YOPPollBasicProcessElements=function(t){"yes"===m(".enable-gdpr").val()&&"consent"===m(".gdpr-solution").val()?m(t).find(".basic-gdpr").show():m(t).find(".basic-gdpr").hide(),"yes"===m(".show-total-votes").val()||"yes"===m(".show-total-answers").val()?m(t).find(".basic-stats").show():m(t).find(".basic-stats").hide(),"yes"===m(".show-total-votes").val()?(m(t).find(".basic-stats-votes").show(),"yes"===m(".show-total-answers").val()?m(t).find(".basic-stats-separator").show():m(t).find(".basic-stats-separator").hide()):(m(t).find(".basic-stats-votes").hide(),m(t).find(".basic-stats-separator").hide()),"yes"===m(".show-total-answers").val()?m(t).find(".basic-stats-answers").show():m(t).find(".basic-stats-answers").hide(),"yes"===m(".show-results-link").val()?m(t).find(".basic-results-button").css("display","inline-block"):m(t).find(".basic-results-button").css("display","none"),m(t).find(".basic-back-to-vote-button").css("display","none")},YOPPollBasicBuildAnswerResultsDetails=function(t,e,s){var a="";return-1!==t.indexOf("percentages")&&(a=(a=0<s?100*e/s:0)===Math.round(a)?Math.round(a)+"%":Number(Math.round(a+"e2")+"e-2").toFixed(2)+"%"),-1!==t.indexOf("votes-number")&&(a+=" ("+e+" "+(1===parseInt(e,10)?objectL10n.yopPollParams.resultsParams.singleVote:objectL10n.yopPollParams.resultsParams.multipleVotes)+")"),a},YOPPollBasicIsResultsShowPercentages=function(t,e,s){var a=[];return-1!==m(t).attr("data-resdet").indexOf("percentages")?(a.show=!0,a.content=0<s?100*e/s:0,a.content===Math.round(a.content)?a.content=Math.round(a.content)+"%":a.content=Number(Math.round(a.content+"e2")+"e-2").toFixed(2)+"%"):(a.show=!1,a.content=""),a},YOPPollBasicIsResultsShowVotes=function(t,e){var s=[];return-1!==m(t).attr("data-resdet").indexOf("votes-number")?(s.show=!0,votesText=1===parseInt(e,10)?objectL10n.yopPollParams.resultsParams.singleVote:objectL10n.yopPollParams.resultsParams.multipleVotes,s.content=" ("+e+" "+votesText+")"):(s.show=!1,s.content=""),s},YOPPollBasicDoShowResultsBeforeVote=function(c){var d=m(c).attr("data-show-results-as"),u=m(c).attr("data-sort-results-by"),p=m(c).attr("data-sort-results-rule"),h=m(c).attr("data-resdet");s[1]=[],m(c).find(".basic-question").each(function(){m(this).attr("data-id");var s=m(this).attr("data-question-type"),a=[],t=[],e=[],n=[],o=[],l=[],r=0;switch(i=0,m(this).find('.basic-answer:not(".basic-other-answer")').each(function(t){var e={};e.id=m(this).attr("data-id"),e.label="text"===s?m(this).find(".basic-text").text():"pie"===d?m(this).find(".basic-media-text").text():m(this).find(".basic-media-content").html(),e.backgroundColor=m(this).attr("data-color"),e.votes=parseInt(m(this).attr("data-vn"),10),a.push(e),r+=e.votes}),p){case"asc":p="ASC";break;case"desc":p="DESC";break;default:p="ASC"}switch(u){case"alphabetical":l=helper.arr.multisort(a,["label"],[p]);break;case"number-of-votes":l=helper.arr.multisort(a,["votes"],[p]);break;default:l=a}for(i=0;i<l.length;i++)t.push(l[i].id),e.push(l[i].label+" "+YOPPollBasicBuildAnswerResultsDetails(h,l[i].votes,r)),o.push(l[i].votes),n.push(l[i].backgroundColor);switch({labels:e,datasets:[{data:o,backgroundColor:n}]},d){case"bar":for(i=0;i<e.length;i++)answerResultsPercentages=YOPPollBasicIsResultsShowPercentages(c,o[i],r),answerResultsVotes=YOPPollBasicIsResultsShowVotes(c,o[i]),!0===answerResultsPercentages.show&&m(this).find(".basic-answer[data-id="+t[i]+"]").find(".basic-answer-label").append('<span class="basic-answer-results-details">'+answerResultsPercentages.content+"</label>"),!0===answerResultsVotes.show&&m(this).find(".basic-answer[data-id="+t[i]+"]").find(".basic-answer-label").append('<span class="basic-answer-total-votes" style="color:'+m(".answers-style-settings").find(".answers-text-color").val()+"; font-size:"+m(".answers-style-settings").find(".answers-text-size").val()+"px; font-weight:"+m(".answers-style-settings").find(".answers-text-weight").val()+';">'+answerResultsVotes.content+"</span>"),m(this).find(".basic-answer[data-id="+t[i]+"]").append('<div class="progress" style=""><div class="progress-bar six-sec-ease-in-out" role="progressbar" data-transitiongoal="'+o[i]+'" aria-valuemax="'+r+'" style="background-image:none; background-color: '+n[i]+';"></div></div>');m(this).find(".progress .progress-bar").yopprogressbar()}})},YOPPollBasicClearResults=function(t){var e=m(t).attr("data-id");if(void 0!==s[e])for(i=1;i<=s[e].length;i++)s[e][i-1].destroy(),s[e].splice(i-1,1);m(t).find(".basic-answer-results-details").remove(),m(t).find(".basic-answer-total-votes").remove(),m(t).find(".progress").remove(),m(t).find(".basic-answer-results").remove(),m(t).find(".basic-chart-container").remove()},YOPPollBasicShowLivePreviewFor=function(t,e){switch(t){case"voting":YOPPollBasicShowLivePreviewForVoting(e);break;case"results":YOPPollBasicShowLivePreviewForResults(e);break;default:YOPPollBasicShowLivePreviewForVoting(e)}},YOPPollBasicShowLivePreviewForVoting=function(t){m(t).attr("data-temp");var e=m(t).attr("data-show-results-moment");YOPPollBasicClearResults(t),m(t).find(".basic-answers").show(),m(t).find(".basic-results-button").hide(),m(t).find(".basic-vote-button").show(),m(t).find(".basic-element").show(),m(t).find('input[type="radio"]').show(),m(t).find('input[type="checkbox"]').show(),m(t).find(".basic-other-answer").show(),m(t).find(".basic-captcha").show(),YOPPollBasicProcessElements(t),void 0!==e&&-1!==m(t).attr("data-show-results-moment").indexOf("before-vote")&&YOPPollBasicDoShowResultsBeforeVote(t),event.preventDefault()},YOPPollBasicBuildDataForResults=function(t){var a=[];return m(t).find(".basic-question").each(function(){var e={},s=m(this);e.id=m(this).attr("data-id"),e.type=m(this).attr("data-question-type"),e.text=m(this).find(".basic-question-title").text(),e.answers=[],m(this).find(".basic-answers").find(".basic-answer").not(".basic-other-answer").each(function(){var t=[];t.id=m(this).attr("data-id"),"media"===m(s).attr("data-question-type")?t.text=m(this).find(".basic-media-text").text():t.text=m(this).find(".basic-text").text(),t.type=m(this).attr("data-type"),t.color=m(this).attr("data-color"),t.votes=m(this).attr("data-vn"),e.answers.push(t)}),a.push(e)}),a},YOPPollBasicShowLivePreviewForResults=function(t){YOPPollBasicClearResults(t),m(t).find(".basic-answer").find('input[type="radio"]').hide(),m(t).find(".basic-answer").find('input[type="checkbox"]').hide(),m(t).find(".basic-other-answer").hide(),m(t).find(".basic-custom-field").hide(),m(t).find(".basic-gdpr").hide(),m(t).find(".basic-captcha").hide(),m(t).find(".basic-vote-button").hide(),m(t).find(".basic-results-button").hide(),"yes"===m(".back-to-vote-option").val()&&m(t).find(".basic-back-to-vote-button").show(),YOPPollBasicDoShowResultsBeforeVote(t)}}),jQuery(document).ready(function(l){YOPPollBasicShowLivePreview=function(){var t,e,s,a,i,n=[],o={accessibilityAlt:objectL10n.yopPollParams.captchaParams.accessibilityAlt,accessibilityTitle:objectL10n.yopPollParams.captchaParams.accessibilityTitle,accessibilityDescription:objectL10n.yopPollParams.captchaParams.accessibilityDescription,explanation:objectL10n.yopPollParams.captchaParams.explanation,refreshAlt:objectL10n.yopPollParams.captchaParams.refreshAlt,refreshTitle:objectL10n.yopPollParams.captchaParams.refreshTitle};return n["show-results-moment"]=[],n["show-results-to"]=[],n["show-details-as"]=[],n["sort-results-by"]=l(".sort-results").val(),n["sort-results-rule"]=l(".sort-results-rule").val(),n["display-results-as"]=l(".display-results-as").val(),l(".show-results-moment:checked").each(function(t){n["show-results-moment"].push(l(this).val())}),l(".show-results-to:checked").each(function(t){n["show-results-to"].push(l(this).val())}),l(".results-details-option:checked").each(function(t){n["show-details-as"].push(l(this).val())}),e=YOPPollBasicGetResultsBeforeVoteSettings(n),!0===YOPPollBasicIsVotingEnded(l(".end-date-option").val(),l(".end-date-custom-hidden").val())?t='<div class="bootstrap-yop"><div class="basic-yop-poll-container" style="background-color:'+l(".poll-style-settings").find(".poll-background-color").val()+";border:"+l(".poll-style-settings").find(".poll-border-size").val()+"px;border-style:solid;border-color:"+l(".poll-style-settings").find(".poll-border-color").val()+";border-radius:"+l(".poll-style-settings").find(".poll-border-radius").val()+"px;padding:"+l(".poll-style-settings").find(".poll-padding-top-bottom").val()+"px; "+l(".poll-style-settings").find(".poll-padding-left-right").val()+'"><div class="row"><div class="col-md-12"><div class="basic-inner"><div class="basic-message" style="border-left:'+l(".errors-style-settings").find(".errors-border-left-size").val()+"px solid "+l(".errors-style-settings").find(".errors-border-left-color-for-error").val()+"; padding:"+l(".errors-style-settings").find(".errors-padding-top-bottom").val()+'px 10px;"><p style="color:'+l(".errors-style-settings").find(".errors-text-color").val()+"; font-size:"+l(".errors-style-settings").find(".errors-text-size").val()+"px; font-weight:"+l(".errors-style-settings").find(".errors-text-weight").val()+';">'+objectL10n.yopPollParams.votingEnded+"</p></div></div></div></div></div>":(t=!1===YOPPollBasicIsVotingStarted(l(".start-date-option").val(),l(".start-date-custom-hidden").val())?'<div class="bootstrap-yop"><div class="basic-yop-poll-container" style="background-color:'+l(".poll-style-settings").find(".poll-background-color").val()+";border:"+l(".poll-style-settings").find(".poll-border-size").val()+"px;border-style:solid;border-color:"+l(".poll-style-settings").find(".poll-border-color").val()+";border-radius:"+l(".poll-style-settings").find(".poll-border-radius").val()+"px;padding:"+l(".poll-style-settings").find(".poll-padding-top-bottom").val()+"px; "+l(".poll-style-settings").find(".poll-padding-left-right").val()+'"><div class="row"><div class="col-md-12"><div class="basic-inner"><div class="basic-message" style="border-left:'+l(".errors-style-settings").find(".errors-border-left-size").val()+"px solid "+l(".errors-style-settings").find(".errors-border-left-color-for-error").val()+"; padding:"+l(".errors-style-settings").find(".errors-padding-top-bottom").val()+'px 10px;"><p style="color:'+l(".errors-style-settings").find(".errors-text-color").val()+"; font-size:"+l(".errors-style-settings").find(".errors-text-size").val()+"px; font-weight:"+l(".errors-style-settings").find(".errors-text-weight").val()+';">'+objectL10n.yopPollParams.votingNotStarted+"</p></div></div></div></div></div>":(a=YOPPollBasicGetPollElements(),'<div class="bootstrap-yop"><div class="basic-yop-poll-container" style="background-color:'+l(".poll-style-settings").find(".poll-background-color").val()+"; border:"+l(".poll-style-settings").find(".poll-border-size").val()+"px; border-style:solid; border-color:"+l(".poll-style-settings").find(".poll-border-color").val()+"; border-radius:"+l(".poll-style-settings").find(".poll-border-radius").val()+"px; padding:"+l(".poll-style-settings").find(".poll-padding-top-bottom").val()+"px "+l(".poll-style-settings").find(".poll-padding-left-right").val()+'px"'+e+' data-uid="" data-temp="'+l('li[data-template-id="'+l('input[name="poll[template]"]').val()+'"]').attr("data-template-base")+'" data-skin="'+l(".answers-style-settings").find(".answers-skin").val()+'" data-cscheme="'+l(".answers-style-settings").find(".color-scheme").find("li.active").attr("data-id")+'"><div class="row"><div class="col-md-12"><div class="basic-inner"><div class="basic-message hide" style="border-left:'+l(".errors-style-settings").find(".errors-border-left-size").val()+"px solid "+l(".errors-style-settings").find(".errors-border-left-color-for-error").val()+"; padding:"+l(".errors-style-settings").find(".errors-padding-top-bottom").val()+'px 10px;"><p></p></div><div class="basic-overlay hide"><div class="basic-vote-options"><div class="basic-anonymous"><button type="button" class="btn btn-default"><i class="fa fa-user-secret" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.annonymousVoteText+'</button></div><div class="basic-wordpress"><button type="button" class="btn btn-default"><i class="fa fa-wordpress" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.wordpressVoteText+'</button></div><div class="basic-facebook"><button type="button" class="btn btn-default"><i class="fa fa-facebook" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.facebookVoteText+'</button></div><div class="basic-google"><button type="button" class="btn btn-default"><i class="fa fa-google" aria-hidden="true"></i>'+objectL10n.yopPollParams.previewParams.googleVoteText+'</button></div></div><div class="basic-preloader hide"><div class="basic-windows8"><div class="basic-wBall basic-wBall_1"><div class="basic-wInnerBall"></div></div><div class="basic-wBall basic-wBall_2"><div class="basic-wInnerBall"></div></div><div class="basic-wBall basic-wBall_3"><div class="basic-wInnerBall"></div></div><div class="basic-wBall basic-wBall_4"><div class="basic-wInnerBall"></div></div><div class="basic-wBall basic-wBall_5"><div class="basic-wInnerBall"></div></div></div></div></div><form class="basic-form"><div class="basic-elements">'+a+'</div><div class="clearfix"></div><div class="basic-gdpr"><label><input type="checkbox" name="gdpr-consent">'+l(".gdpr-consent-text").val()+'</label></div><div id="yop-poll-captcha" class="basic-captcha"></div><div class="basic-stats text-center"><span class="basic-stats-votes"><span class="basic-stats-votes-number">10</span><span class="basic-stats-votes-text">&nbsp;'+objectL10n.yopPollParams.previewParams.numberOfVotesPlural+'</span></span><span class="basic-stats-separator">&nbsp;&middot;&nbsp;</span><span class="basic-stats-answers"><span class="basic-stats-answers-number">14</span><span class="basic-stats-answers-text">&nbsp;'+objectL10n.yopPollParams.previewParams.numberOfAnswersPlural+'</span></span></div><div class="basic-vote"><a href="#" class="button basic-vote-button" style="background:'+l(".buttons-style-settings").find(".buttons-background-color").val()+"; border:"+l(".buttons-style-settings").find(".buttons-border-size").val()+"px; border-style: solid; border-color:"+l(".buttons-style-settings").find(".buttons-border-color").val()+"; border-radius:"+l(".buttons-style-settings").find(".buttons-border-radius").val()+"px; padding:"+l(".buttons-style-settings").find(".buttons-padding-top-bottom").val()+"px "+l(".buttons-style-settings").find(".buttons-padding-left-right").val()+"px; color:"+l(".buttons-style-settings").find(".buttons-text-color").val()+"; font-size:"+l(".buttons-style-settings").find(".buttons-text-size").val()+"px; font-weight:"+l(".buttons-style-settings").find(".buttons-text-weight").val()+';">'+htmlEncode(l(".vote-button-label").val())+'</a><a href="#" class="button basic-results-button" style="background:'+l(".buttons-style-settings").find(".buttons-background-color").val()+"; border:"+l(".buttons-style-settings").find(".buttons-border-size").val()+"px; border-style: solid; border-color:"+l(".buttons-style-settings").find(".buttons-border-color").val()+"; border-radius:"+l(".buttons-style-settings").find(".buttons-border-radius").val()+"px; padding:"+l(".buttons-style-settings").find(".buttons-padding-top-bottom").val()+"px "+l(".buttons-style-settings").find(".buttons-padding-left-right").val()+"px; color:"+l(".buttons-style-settings").find(".buttons-text-color").val()+"; font-size:"+l(".buttons-style-settings").find(".buttons-text-size").val()+"px; font-weight:"+l(".buttons-style-settings").find(".buttons-text-weight").val()+';">'+htmlEncode(l(".results-label-text").val())+'</a><a href="#" class="button basic-back-to-vote-button" style="background:'+l(".buttons-style-settings").find(".buttons-background-color").val()+"; border:"+l(".buttons-style-settings").find(".buttons-border-size").val()+"px; border-style: solid; border-color:"+l(".buttons-style-settings").find(".buttons-border-color").val()+"; border-radius:"+l(".buttons-style-settings").find(".buttons-border-radius").val()+"px; padding:"+l(".buttons-style-settings").find(".buttons-padding-top-bottom").val()+"px "+l(".buttons-style-settings").find(".buttons-padding-left-right").val()+"px; color:"+l(".buttons-style-settings").find(".buttons-text-color").val()+"; font-size:"+l(".buttons-style-settings").find(".buttons-text-size").val()+"px; font-weight:"+l(".buttons-style-settings").find(".buttons-text-weight").val()+';">'+htmlEncode(l(".back-to-vote-caption").val())+"</a></div></form></div></div></div>"),""!==l(".custom-styles-custom-css").val()&&(l("#yop-poll-custom-css").remove(),l("head").append('<style type="text/css" id="yop-poll-custom-css">'+l(".custom-styles-custom-css").val()+"</style>"))),modalPreview=BootstrapDialog.show({title:objectL10n.yopPollParams.previewParams.pollPreviewTitle,cssClass:"preview-dialog",message:'<div class="row"><div class="col-md-3">'+objectL10n.yopPollParams.previewParams.choosePreviewText+'</div><div class="col-md-9"><select class="show-preview-for admin-select" style="width:100%"><option value="voting" selected>'+objectL10n.yopPollParams.previewParams.votingText+'</option><option value="results">'+objectL10n.yopPollParams.previewParams.resultsText+'</option></select></div></div><div class="row"><div class="col-md-12"><p>&nbsp;</p></div></div>'+t,onshow:function(t){switch(pollContainer=t.getModalBody().find(".basic-yop-poll-container"),void 0!==(s=t.getModalBody().find(".basic-yop-poll-container").attr("data-show-results-moment"))&&-1!==s.indexOf("before-vote")&&YOPPollBasicDoShowResultsBeforeVote(t.getModalBody().find(".basic-yop-poll-container")),l(".use-captcha").val()){case"yes":t.getModalBody().find("#yop-poll-captcha").visualCaptcha({imgPath:objectL10n.yopPollParams.captchaParams.imgPath,captcha:{url:objectL10n.yopPollParams.captchaParams.url,numberOfImages:5,namespace:"yop-poll-captcha",routes:{start:"?_a=start",image:"?_a=image",audio:"?_a=audio"},callbacks:{loading:function(t){},loaded:function(t){}}},language:o});break;case"yes-recaptcha":l(pollContainer).find("#yop-poll-captcha").length&&""!==l("#yop-main-area").attr("data-recaptcha-site-key")&&(reCaptcha=grecaptcha.render(l(pollContainer).find("#yop-poll-captcha")[0],{sitekey:l("#yop-main-area").attr("data-reCaptcha-site-key"),theme:"light"}));break;case"yes-recaptcha-invisible":l(pollContainer).find("#yop-poll-captcha").length&&""!==l("#yop-main-area").attr("data-recaptcha-site-key")&&(reCaptcha=grecaptcha.render(l(pollContainer).find("#yop-poll-captcha")[0],{sitekey:l("#yop-main-area").attr("data-reCaptcha-site-key"),theme:"light",size:"invisible"}),l(pollContainer).find(".grecaptcha-badge").hide())}YOPPollBasicProcessElements(t.getModalBody().find(".basic-yop-poll-container"))}}),i=modalPreview.getModalBody(),l(i).on("change",".show-preview-for",function(t){var e=l(this).val();YOPPollBasicShowLivePreviewFor(e,i.find(".basic-yop-poll-container"))}),i}}),jQuery(document).ready(function(s){YOPPollBasicPrettyShowLivePreview=function(){var t=s(".answers-style-settings").find(".answers-skin").val(),e=s(".answers-style-settings").find(".color-scheme").find("li.active").attr("data-id");e="black"===e?"":"-"+e,modalPreviewBody=YOPPollBasicShowLivePreview(),s(modalPreviewBody).find('input[type="radio"]').iCheck({checkboxClass:"icheckbox_"+t+e,radioClass:"iradio_"+t+e}),s(modalPreviewBody).find('input[type="checkbox"]').iCheck({checkboxClass:"icheckbox_"+t+e,radioClass:"iradio_"+t+e})}}),jQuery(document).ready(function(N){function $(t,e,s,a,i){N(".poll-steps li").removeClass("active"),N(".poll-steps li:nth-child("+t+")").addClass("active"),N(".poll-steps-content .tab-pane").removeClass("active"),N(".poll-steps-content .tab-pane:nth-child("+t+")").addClass("active"),N(".poll-steps-content .tab-pane:nth-child("+t+") .submenu-item").removeClass("btn-underline"),N(".poll-steps-content .tab-pane:nth-child("+t+")").find(".submenu-item").eq(e-1).addClass("btn-underline"),N(".poll-steps-content .tab-pane:nth-child("+t+")").find(".submenu-content").addClass("hide"),N(".poll-steps-content .tab-pane:nth-child("+t+")").find(".submenu-content").eq(e-1).removeClass("hide"),""!==s&&(s.focus(),s.parent().addClass("has-error")),""===i?toastr.warning(htmlEncode(striptags(s.closest(".form-group").find(".field-caption").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage))):toastr.warning(htmlEncode(striptags(i)))}N("#publish-poll").click(function(t){var e,s=N('input[name="poll[template]"]').val(),a=N('input[name="poll[skin]"]').attr("data-skin-base"),i=!1,n=N('input[name="poll[name]"]').val(),o=N(".poll-style-settings").find(".poll-background-color").val(),l=N(".poll-style-settings").find(".poll-border-size").val(),r=N(".poll-style-settings").find(".poll-border-color").val(),c=N(".poll-style-settings").find(".poll-border-radius").val(),d=N(".poll-style-settings").find(".poll-padding-left-right").val(),u=N(".poll-style-settings").find(".poll-padding-top-bottom").val(),p=N(".questions-style-settings").find(".questions-text-color").val(),h=N(".questions-style-settings").find(".questions-text-size").val(),m=N(".questions-style-settings").find(".questions-text-weight").val(),f=N(".questions-style-settings").find(".questions-text-align").val(),g=N(".answers-style-settings").find(".answers-padding-left-right").val(),v=N(".answers-style-settings").find(".answers-padding-top-bottom").val(),b=N(".answers-style-settings").find(".answers-text-color").val(),y=N(".answers-style-settings").find(".answers-text-size").val(),w=N(".answers-style-settings").find(".answers-text-weight").val(),k=N(".buttons-style-settings").find(".buttons-background-color").val(),x=N(".buttons-style-settings").find(".buttons-border-size").val(),C=N(".buttons-style-settings").find(".buttons-border-color").val(),_=N(".buttons-style-settings").find(".buttons-border-radius").val(),P=N(".buttons-style-settings").find(".buttons-padding-left-right").val(),A=N(".buttons-style-settings").find(".buttons-padding-top-bottom").val(),M=N(".buttons-style-settings").find(".buttons-text-color").val(),D=N(".buttons-style-settings").find(".buttons-text-size").val(),T=N(".buttons-style-settings").find(".buttons-text-weight").val(),S=N(".errors-style-settings").find(".errors-border-left-color-for-success").val(),E=N(".errors-style-settings").find(".errors-border-left-color-for-error").val(),O=N(".errors-style-settings").find(".errors-border-left-size").val(),L=N(".errors-style-settings").find(".errors-padding-top-bottom").val(),B=N(".errors-style-settings").find(".errors-text-color").val(),I=N(".errors-style-settings").find(".errors-text-size").val(),j=N(".errors-style-settings").find(".errors-text-weight").val(),F=[],Y=[],R=[],z=[],Q=[],H=[];""===n&&(i=!0,N('input[name="poll[name]"]').focus(),N('input[name="poll[name]"]').parent().addClass("has-error"),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.saveParams.noPollName)))),!1===i&&""===s&&(i=!0,$(1,1,"",0,objectL10n.yopPollParams.saveParams.noTemplateSelected)),!1===i&&""===a&&(i=!0,$(1,2,"",0,objectL10n.yopPollParams.saveParams.noSkinSelected)),!1===i&&""===o.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-background-color"),0,"")),!1===i&&""===l.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-size"),0,"")),!1===i&&""===r.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-color"),0,"")),!1===i&&""===c.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-radius"),0,"")),!1===i&&""===d.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-padding-left-right"),0,"")),!1===i&&""===u.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-padding-top-bottom"),0,"")),!1===i&&""===p.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-color"),0,"")),!1===i&&""===h.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-size"),0,"")),!1===i&&""===m.toString()&&(i=!0,$(1,3,N(".questions-style-settings").find(".questions-text-weight"),0,"")),!1===i&&""===f.toString()&&(i=!0,$(1,3,N(".questions-style-settings").find(".questions-text-align"),0,"")),!1===i&&""===g.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-padding-left-right"),0,"")),!1===i&&""===v.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-padding-top-bottom"),0,"")),!1===i&&""===b.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-color"),0,"")),!1===i&&""===y.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-size"),0,"")),!1===i&&""===w.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-weight"),0,"")),!1===i&&""===k.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-background-color"),0,"")),!1===i&&""===x.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-size"),0,"")),!1===i&&""===C.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-color"),0,"")),!1===i&&""===_.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-radius"),0,"")),!1===i&&""===P.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-padding-left-right"),0,"")),!1===i&&""===A.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-padding-top-bottom"),0,"")),!1===i&&""===M.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-color"),0,"")),!1===i&&""===D.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-size"),0,"")),!1===i&&""===T.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-weight"),0,"")),!1===i&&""===S.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-color-for-success"),0,"")),!1===i&&""===E.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-color-for-error"),0,"")),!1===i&&""===O.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-size"),0,"")),!1===i&&""===L.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-padding-top-bottom"),0,"")),!1===i&&""===B.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-color"),0,"")),!1===i&&""===I.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-size"),0,"")),!1===i&&""===j.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-weight"),0,"")),!1===i&&N(".poll-elements-list").find(".poll-element").each(function(){switch(N(this).attr("data-type")){case"text-question":!1===i&&""===N(this).find(".question-value").val()&&(i=!0,$(2,1,N(this).find(".question-value"),0,objectL10n.yopPollParams.saveParams.noQuestion)),N(this).find(".answer").each(function(t){return!1===i&&""===N(this).find(".answer-value").val().toString()?(i=!0,$(2,1,N(this).find(".answer-value"),0,objectL10n.yopPollParams.saveParams.noAnswerText),!1):!1===i&&N(this).find(".answer-make-link").is(":checked")&&""===N(this).find(".answer-link").val().toString()?(i=!0,$(2,1,N(this).find(".answer-link"),0,objectL10n.yopPollParams.saveParams.noAnswerLink),!1):void 0}),!1===i&&"yes"===N(this).find(".allow-other-answers").val()&&""===N(this).find(".other-answers-label").val().toString()&&(i=!0,$(2,1,N(this).find(".other-answers-label"),0,objectL10n.yopPollParams.saveParams.noOtherLabel)),!1===i&&"yes"===N(this).find(".allow-multiple-answers").val()&&(""===N(this).find(".multiple-answers-minim").val()||parseInt(N(this).find(".multiple-answers-minim").val(),10)<=0?(i=!0,$(2,1,N(this).find(".multiple-answers-minim"),0,objectL10n.yopPollParams.saveParams.noMinAnswers)):""===N(this).find(".multiple-answers-maxim").val()||parseInt(N(this).find(".multiple-answers-maxim").val(),10)<=0?(i=!0,$(2,1,N(this).find(".multiple-answers-maxim"),0,objectL10n.yopPollParams.saveParams.noMaxAnswers)):parseInt(N(this).find(".multiple-answers-minim").val(),10)>parseInt(N(this).find(".multiple-answers-maxim").val(),10)&&(i=!0,$(2,1,N(this).find(".multiple-answers-minim"),0,objectL10n.yopPollParams.saveParams.noMinAnswers))),!1===i&&"columns"===N(this).find(".answers-display").val()&&(""===N(this).find(".answers-columns").val().toString()||parseInt(N(this).find(".answers-columns").val(),10)<1)&&(i=!0,$(2,1,N(this).find(".answers-columns"),0,objectL10n.yopPollParams.noNumberOfColumnsDefined));break;case"custom-field":if(!1===i&&""===N(this).find(".custom-field-name").val().toString())return i=!0,$(2,1,N(this).find(".custom-field-name"),0,objectL10n.yopPollParams.saveParams.noCustomFieldName),!1}}),!1===i&&""===N(".vote-button-label").val()&&(i=!0,$(3,1,N(".vote-button-label"),0,"")),!1===i&&"yes"===N(".show-results-link").val()&&""===N(".results-label-text").val()&&(i=!0,$(3,1,N(".results-label-text"),0,"")),!1===i&&"custom"===N(".start-date-option").val()&&""===N(".start-date-custom").val()&&(i=!0,$(3,1,N(".start-date-custom"),0,objectL10n.yopPollParams.saveParams.noStartDate)),!1===i&&"custom"===N(".end-date-option").val()&&""===N(".end-date-custom").val()&&(i=!0,$(3,1,N(".end-date-custom"),0,objectL10n.yopPollParams.saveParams.noEndDate)),!1===i&&"yes"===N(".redirect-after-vote").val()&&""===N(".redirect-url").val()&&(i=!0,$(3,1,N(".redirect-url"),0,"")),!1===i&&"yes"===N(".send-email-notifications").val()&&(!1===i&&""===N(".email-notifications-from-name").val()&&(i=!0,$(3,1,N(".email-notifications-from-name"),0,"")),!1===i&&""===N(".email-notifications-from-email").val()&&(i=!0,$(3,1,N(".email-notifications-from-email"),0,"")),!1===i&&""===N(".email-notifications-recipients").val()&&(i=!0,$(3,1,N(".email-notifications-recipients"),0,"")),!1===i&&""===N(".email-notifications-subject").val()&&(i=!0,$(3,1,N(".email-notifications-subject"),0,"")),!1===i&&""===N(".email-notifications-message").val()&&(i=!0,$(3,1,N(".email-notifications-message"),0,""))),!1===i&&"yes"===N(".enable-gdpr").val()&&"consent"===N(".gdpr-solution").val()&&""===N(".gdpr-consent-text").val()&&(i=!0,$(3,1,N(".gdpr-consent-text"),0,"")),N(".vote-permissions:checked").each(function(t){Y.push(N(this).val())}),!1===i&&0===Y.length&&(i=!0,$(3,2,N(".vote-permissions"),0,"")),N(".block-voters:checked").each(function(t){R.push(N(this).val())}),!1===i&&0<R.length&&-1===N.inArray("no-block",R)&&"limited-time"===N(".block-length-type").val()&&""===N(".block-length-1").val()&&(i=!0,$(3,2,N(".block-length-1"),0,"")),!1===i&&"yes"===N(".limit-votes-per-user").val()&&""===N(".votes-per-user-allowed").val()&&(i=!0,$(3,2,N(".votes-per-user-allowed"),0,"")),N(".show-results-moment:checked").each(function(t){z.push(N(this).val())}),!1===i&&0===z.length&&(i=!0,$(3,3,N(".show-results-moment"),0,objectL10n.yopPollParams.saveParams.noShowResultsMoment)),!1===i&&-1<N.inArray("custom-date",z)&&""===N(".custom-date-results").val()&&(i=!0,$(3,3,N(".custom-date-results"),0,objectL10n.yopPollParams.saveParams.noCustomDate)),N(".show-results-to:checked").each(function(t){Q.push(N(this).val())}),N(".results-details-option:checked").each(function(t){H.push(N(this).val())}),!1===i&&-1===N.inArray("never",z)&&(0===Q.length&&(i=!0,$(3,3,N(".show-results-to"),0,objectL10n.yopPollParams.saveParams.noShowResultsTo)),!1===i&&0===H.length&&(i=!0,$(3,3,N(".results-details-option"),0,objectL10n.yopPollParams.saveParams.noShowResultsDetails))),!1===i&&"yes"===N(".back-to-vote-option").val()&&""===N(".back-to-vote-caption").val()&&(i=!0,$(3,3,N(".back-to-vote-caption"),0,"")),!1===i&&!0===N('input.vote-permissions[value="registered"]').is(":checked")&&"no"===N(".allow-wordpress-votes").val()&&(i=!0,$(3,3,N(".allow-wordpress-votes"),0,objectL10n.yopPollParams.saveParams.noVoteAsWordpress)),!1===i&&(N(".poll-elements-list").find(".poll-element").each(function(t){var e=N(this).attr("data-type"),s=[];switch(e){case"text-question":N(this).find(".answer").each(function(t){s[t]={type:"text",text:N(this).find(".answer-value").val(),options:{makeDefault:N(this).find(".answer-make-default").is(":checked")?"yes":"no",makeLink:N(this).find(".answer-make-link").is(":checked")?"yes":"no",link:N(this).find(".answer-link").val(),resultsColor:N(this).find(".answer-results-color").val()}}}),F.push({type:"text-question",text:N(this).find(".question-value").val(),answers:s,options:{allowOtherAnswers:N(this).find(".allow-other-answers").val(),otherAnswersLabel:N(this).find(".other-answers-label").val(),addOtherAnswers:N(this).find(".add-other-answers").val(),displayOtherAnswersInResults:N(this).find(".display-other-answers-in-results").val(),resultsColorForOtherAnswers:N(this).find(".other-answers-results-color").val(),allowMultipleAnswers:N(this).find(".allow-multiple-answers").val(),multipleAnswersMinim:N(this).find(".multiple-answers-minim").val(),multipleAnswersMaxim:N(this).find(".multiple-answers-maxim").val(),answersDisplay:N(this).find(".answers-display").val(),answersColumns:N(this).find(".answers-columns").val(),answersSort:N(this).find(".answers-sort").val()}});break;case"custom-field":F.push({type:"custom-field",text:N(this).find(".custom-field-name").val(),options:{makeRequired:N(this).find(".custom-field-make-required").is(":checked")?"yes":"no",cType:N(this).find(".custom-field-type").val()}})}}),e={name:N('input[name="poll[name]"]').val(),status:N("#poll_status").val(),design:{template:N('input[name="poll[template]"]').val(),templateBase:N('input[name="poll[template]"]').attr("data-template-base"),skinBase:N('input[name="poll[skin]"]').attr("data-skin-base"),style:{poll:{backgroundColor:N(".poll-background-color").val(),borderSize:N(".poll-border-size").val(),borderColor:N(".poll-border-color").val(),borderRadius:N(".poll-border-radius").val(),paddingLeftRight:N(".poll-padding-left-right").val(),paddingTopBottom:N(".poll-padding-top-bottom").val()},questions:{textColor:N(".questions-text-color").val(),textSize:N(".questions-text-size").val(),textWeight:N(".questions-text-weight").val(),textAlign:N(".questions-text-align").val()},answers:{paddingLeftRight:N(".answers-padding-left-right").val(),paddingTopBottom:N(".answers-padding-top-bottom").val(),textColor:N(".answers-text-color").val(),textSize:N(".answers-text-size").val(),textWeight:N(".answers-text-weight").val(),skin:N(".answers-style-settings").find(".answers-skin").val(),colorScheme:N(".answers-style-settings").find(".color-scheme").find("li.active").attr("data-id")},buttons:{backgroundColor:N(".buttons-background-color").val(),borderSize:N(".buttons-border-size").val(),borderColor:N(".buttons-border-color").val(),borderRadius:N(".buttons-border-radius").val(),paddingLeftRight:N(".buttons-padding-left-right").val(),paddingTopBottom:N(".buttons-padding-top-bottom").val(),textColor:N(".buttons-text-color").val(),textSize:N(".buttons-text-size").val(),textWeight:N(".buttons-text-weight").val()},captcha:{},errors:{borderLeftColorForSuccess:N(".errors-border-left-color-for-success").val(),borderLeftColorForError:N(".errors-border-left-color-for-error").val(),borderLeftSize:N(".errors-border-left-size").val(),paddingTopBottom:N(".errors-padding-top-bottom").val(),textColor:N(".errors-text-color").val(),textSize:N(".errors-text-size").val(),textWeight:N(".errors-text-weight").val()},custom:{css:N(".custom-styles-custom-css").val()}}},options:{poll:{voteButtonLabel:N(".vote-button-label").val(),showResultsLink:N(".show-results-link").val(),resultsLabelText:N(".results-label-text").val(),showTotalVotes:N(".show-total-votes").val(),showTotalAnswers:N(".show-total-answers").val(),startDateOption:N(".start-date-option").val(),startDateCustom:N(".start-date-custom-hidden").val(),endDateOption:N(".end-date-option").val(),endDateCustom:N(".end-date-custom-hidden").val(),redirectAfterVote:N(".redirect-after-vote").val(),redirectUrl:N(".redirect-url").val(),resetPollStatsAutomatically:N(".reset-poll-stats-automatically").val(),resetPollStatsOn:N(".reset-poll-stats-on-hidden").val(),resetPollStatsEvery:N(".reset-poll-stats-every").val(),resetPollStatsEveryPeriod:N(".reset-poll-stats-every-period").val(),autoGeneratePollPage:N(".auto-generate-poll-page").val(),pageId:"",pageLink:"",useCaptcha:N(".use-captcha").val(),sendEmailNotifications:N(".send-email-notifications").val(),emailNotificationsFromName:N(".email-notifications-from-name").val(),emailNotificationsFromEmail:N(".email-notifications-from-email").val(),emailNotificationsRecipients:N(".email-notifications-recipients").val(),emailNotificationsSubject:N(".email-notifications-subject").val(),emailNotificationsMessage:N(".email-notifications-message").val(),enableGdpr:N(".enable-gdpr").val(),gdprSolution:N(".gdpr-solution").val(),gdprConsentText:N(".gdpr-consent-text").val(),loadWithAjax:N(".load-with-ajax").val()},access:{votePermissions:Y,allowWordpressVotes:N(".allow-wordpress-votes").val(),blockVoters:R,blockLengthType:N(".block-length-type").val(),blockForValue:N(".block-length-1").val(),blockForPeriod:N(".block-length-2").val(),limitVotesPerUser:N(".limit-votes-per-user").val(),votesPerUserAllowed:N(".votes-per-user-allowed").val()},results:{showResultsMoment:z,customDateResults:N(".custom-date-results-hidden").val(),showResultsTo:Q,resultsDetails:H,backToVoteOption:N(".back-to-vote-option").val(),backToVoteCaption:N(".back-to-vote-caption").val(),sortResults:N(".sort-results").val(),sortResultsRule:N(".sort-results-rule").val(),displayResultsAs:N(".display-results-as").val(),barColor:N(".bar-color").val(),barHeight:N(".bar-height").val()}},elements:F},N(".spinner.publish").addClass("is-active"),N("#publish-poll").attr("disabled",!0),N.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"create_yop_poll",_token:N("#_token").val(),poll:JSON.stringify(e)}}).done(function(t){N(".spinner.publish").removeClass("is-active"),!0===t.success?toastr.success(htmlEncode(striptags(t.data.message)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls&show-code=yes&poll-id="+t.data.pollId)}}):(N("#publish-poll").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()}),N("#update-poll").click(function(t){var e,s=N('input[name="poll[template]"]').val(),a=N('input[name="poll[skin]"]').attr("data-skin-base"),i=!1,n=N('input[name="poll[name]"]').val(),o=N(".poll-style-settings").find(".poll-background-color").val(),l=N(".poll-style-settings").find(".poll-border-size").val(),r=N(".poll-style-settings").find(".poll-border-color").val(),c=N(".poll-style-settings").find(".poll-border-radius").val(),d=N(".poll-style-settings").find(".poll-padding-left-right").val(),u=N(".poll-style-settings").find(".poll-padding-top-bottom").val(),p=N(".questions-style-settings").find(".questions-text-color").val(),h=N(".questions-style-settings").find(".questions-text-size").val(),m=N(".questions-style-settings").find(".questions-text-weight").val(),f=N(".questions-style-settings").find(".questions-text-align").val(),g=N(".answers-style-settings").find(".answers-padding-left-right").val(),v=N(".answers-style-settings").find(".answers-padding-top-bottom").val(),b=N(".answers-style-settings").find(".answers-text-color").val(),y=N(".answers-style-settings").find(".answers-text-size").val(),w=N(".answers-style-settings").find(".answers-text-weight").val(),k=N(".buttons-style-settings").find(".buttons-background-color").val(),x=N(".buttons-style-settings").find(".buttons-border-size").val(),C=N(".buttons-style-settings").find(".buttons-border-color").val(),_=N(".buttons-style-settings").find(".buttons-border-radius").val(),P=N(".buttons-style-settings").find(".buttons-padding-left-right").val(),A=N(".buttons-style-settings").find(".buttons-padding-top-bottom").val(),M=N(".buttons-style-settings").find(".buttons-text-color").val(),D=N(".buttons-style-settings").find(".buttons-text-size").val(),T=N(".buttons-style-settings").find(".buttons-text-weight").val(),S=N(".errors-style-settings").find(".errors-border-left-color-for-success").val(),E=N(".errors-style-settings").find(".errors-border-left-color-for-error").val(),O=N(".errors-style-settings").find(".errors-border-left-size").val(),L=N(".errors-style-settings").find(".errors-padding-top-bottom").val(),B=N(".errors-style-settings").find(".errors-text-color").val(),I=N(".errors-style-settings").find(".errors-text-size").val(),j=N(".errors-style-settings").find(".errors-text-weight").val(),F=[],Y=[],R=[],z=[],Q=[],H=[];""===n&&(i=!0,N('input[name="poll[name]"]').focus(),N('input[name="poll[name]"]').parent().addClass("has-error"),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.saveParams.noPollName)))),!1===i&&""===s&&(i=!0,$(1,1,"",0,objectL10n.yopPollParams.saveParams.noTemplateSelected)),!1===i&&""===a&&(i=!0,$(1,2,"",0,objectL10n.yopPollParams.saveParams.noSkinSelected)),!1===i&&""===o.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-background-color"),0,"")),!1===i&&""===l.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-size"),0,"")),!1===i&&""===r.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-color"),0,"")),!1===i&&""===c.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-border-radius"),0,"")),!1===i&&""===d.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-padding-left-right"),0,"")),!1===i&&""===u.toString()&&(i=!0,$(1,2,N(".poll-style-settings").find(".poll-padding-top-bottom"),0,"")),!1===i&&""===p.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-color"),0,"")),!1===i&&""===h.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-size"),0,"")),!1===i&&""===m.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-weight"),0,"")),!1===i&&""===f.toString()&&(i=!0,$(1,2,N(".questions-style-settings").find(".questions-text-align"),0,"")),!1===i&&""===g.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-padding-left-right"),0,"")),!1===i&&""===v.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-padding-top-bottom"),0,"")),!1===i&&""===b.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-color"),0,"")),!1===i&&""===y.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-size"),0,"")),!1===i&&""===w.toString()&&(i=!0,$(1,2,N(".answers-style-settings").find(".answers-text-weight"),0,"")),!1===i&&""===k.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-background-color"),0,"")),!1===i&&""===x.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-size"),0,"")),!1===i&&""===C.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-color"),0,"")),!1===i&&""===_.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-border-radius"),0,"")),!1===i&&""===P.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-padding-left-right"),0,"")),!1===i&&""===A.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-padding-top-bottom"),0,"")),!1===i&&""===M.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-color"),0,"")),!1===i&&""===D.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-size"),0,"")),!1===i&&""===T.toString()&&(i=!0,$(1,2,N(".buttons-style-settings").find(".buttons-text-weight"),0,"")),!1===i&&""===S.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-color-for-success"),0,"")),!1===i&&""===E.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-color-for-error"),0,"")),!1===i&&""===O.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-border-left-size"),0,"")),!1===i&&""===L.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-padding-top-bottom"),0,"")),!1===i&&""===B.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-color"),0,"")),!1===i&&""===I.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-size"),0,"")),!1===i&&""===j.toString()&&(i=!0,$(1,2,N(".errors-style-settings").find(".errors-text-weight"),0,"")),!1===i&&N(".poll-elements-list").find(".poll-element").each(function(){switch(N(this).attr("data-type")){case"text-question":!1===i&&""===N(this).find(".question-value").val()&&(i=!0,$(2,1,N(this).find(".question-value"),0,objectL10n.yopPollParams.saveParams.noQuestion)),N(this).find(".answer").each(function(t){return!1===i&&""===N(this).find(".answer-value").val().toString()?(i=!0,$(2,1,N(this).find(".answer-value"),0,objectL10n.yopPollParams.saveParams.noAnswerText),!1):!1===i&&N(this).find(".answer-make-link").is(":checked")&&""===N(this).find(".answer-link").val().toString()?(i=!0,$(2,1,N(this).find(".answer-link"),0,objectL10n.yopPollParams.saveParams.noAnswerLink),!1):void 0}),!1===i&&"yes"===N(this).find(".allow-other-answers").val()&&""===N(this).find(".other-answers-label").val().toString()&&(i=!0,$(2,1,N(this).find(".other-answers-label"),0,objectL10n.yopPollParams.saveParams.noOtherLabel)),!1===i&&"yes"===N(this).find(".allow-multiple-answers").val()&&(""===N(this).find(".multiple-answers-minim").val()||parseInt(N(this).find(".multiple-answers-minim").val(),10)<=0?(i=!0,$(2,1,N(this).find(".multiple-answers-minim"),0,objectL10n.yopPollParams.saveParams.noMinAnswers)):""===N(this).find(".multiple-answers-maxim").val()||parseInt(N(this).find(".multiple-answers-maxim").val(),10)<=0?(i=!0,$(2,1,N(this).find(".multiple-answers-maxim"),0,objectL10n.yopPollParams.saveParams.noMaxAnswers)):parseInt(N(this).find(".multiple-answers-minim").val(),10)>parseInt(N(this).find(".multiple-answers-maxim").val(),10)&&(i=!0,$(2,1,N(this).find(".multiple-answers-minim"),0,objectL10n.yopPollParams.saveParams.noMinAnswers))),!1===i&&"columns"===N(this).find(".answers-display").val()&&(""===N(this).find(".answers-columns").val().toString()||parseInt(N(this).find(".answers-columns").val(),10)<1)&&(i=!0,$(2,1,N(this).find(".answers-columns"),0,objectL10n.yopPollParams.noNumberOfColumnsDefined));break;case"custom-field":if(!1===i&&""===N(this).find(".custom-field-name").val().toString())return i=!0,$(2,1,N(this).find(".custom-field-name"),0,objectL10n.yopPollParams.saveParams.noCustomFieldName),!1}}),!1===i&&""===N(".vote-button-label").val()&&(i=!0,$(3,1,N(".vote-button-label"),0,"")),!1===i&&"yes"===N(".show-results-link").val()&&""===N(".results-label-text").val()&&(i=!0,$(3,1,N(".results-label-text"),0,"")),!1===i&&"custom"===N(".start-date-option").val()&&""===N(".start-date-custom").val()&&(i=!0,$(3,1,N(".start-date-custom"),0,objectL10n.yopPollParams.saveParams.noStartDate)),!1===i&&"custom"===N(".end-date-option").val()&&""===N(".end-date-custom").val()&&(i=!0,$(3,1,N(".end-date-custom"),0,objectL10n.yopPollParams.saveParams.noEndDate)),!1===i&&"yes"===N(".redirect-after-vote").val()&&""===N(".redirect-url").val()&&(i=!0,$(3,1,N(".redirect-url"),0,"")),!1===i&&"yes"===N(".send-email-notifications").val()&&(!1===i&&""===N(".email-notifications-from-name").val()&&(i=!0,$(3,1,N(".email-notifications-from-name"),0,"")),!1===i&&""===N(".email-notifications-from-email").val()&&(i=!0,$(3,1,N(".email-notifications-from-email"),0,"")),!1===i&&""===N(".email-notifications-recipients").val()&&(i=!0,$(3,1,N(".email-notifications-recipients"),0,"")),!1===i&&""===N(".email-notifications-subject").val()&&(i=!0,$(3,1,N(".email-notifications-subject"),0,"")),!1===i&&""===N(".email-notifications-message").val()&&(i=!0,$(3,1,N(".email-notifications-message"),0,""))),!1===i&&"yes"===N(".enable-gdpr").val()&&"consent"===N(".gdpr-solution").val()&&""===N(".gdpr-consent-text").val()&&(i=!0,$(3,1,N(".gdpr-consent-text"),0,"")),N(".vote-permissions:checked").each(function(t){Y.push(N(this).val())}),!1===i&&0===Y.length&&(i=!0,$(3,2,N(".vote-permissions"),0,"")),N(".block-voters:checked").each(function(t){R.push(N(this).val())}),!1===i&&0<R.length&&-1===N.inArray("no-block",R)&&"limited-time"===N(".block-length-type").val()&&""===N(".block-length-1").val()&&(i=!0,$(3,2,N(".block-length-1"),0,"")),!1===i&&"yes"===N(".limit-votes-per-user").val()&&""===N(".votes-per-user-allowed").val()&&(i=!0,$(3,2,N(".votes-per-user-allowed"),0,"")),N(".show-results-moment:checked").each(function(t){z.push(N(this).val())}),!1===i&&0===z.length&&(i=!0,$(3,3,N(".show-results-moment"),0,objectL10n.yopPollParams.saveParams.noShowResultsMoment)),!1===i&&-1<N.inArray("custom-date",z)&&""===N(".custom-date-results").val()&&(i=!0,$(3,3,N(".custom-date-results"),0,objectL10n.yopPollParams.saveParams.noCustomDate)),N(".show-results-to:checked").each(function(t){Q.push(N(this).val())}),N(".results-details-option:checked").each(function(t){H.push(N(this).val())}),!1===i&&-1===N.inArray("never",z)&&(0===Q.length&&(i=!0,$(3,3,N(".show-results-to"),0,objectL10n.yopPollParams.saveParams.noShowResultsTo)),!1===i&&0===H.length&&(i=!0,$(3,3,N(".results-details-option"),0,objectL10n.yopPollParams.saveParams.noShowResultsDetails))),!1===i&&"yes"===N(".back-to-vote-option").val()&&""===N(".back-to-vote-caption").val()&&(i=!0,$(3,3,N(".back-to-vote-caption"),0,"")),!1===i&&!0===N('input.vote-permissions[value="registered"]').is(":checked")&&"no"===N(".allow-wordpress-votes").val()&&(i=!0,$(3,3,N(".allow-wordpress-votes"),0,objectL10n.yopPollParams.saveParams.noVoteAsWordpress)),!1===i&&(N(".poll-elements-list").find(".poll-element").each(function(t){var e=N(this).attr("data-type"),s=[];switch(e){case"text-question":N(this).find(".answer").each(function(t){s[t]={id:N(this).attr("data-id"),uid:void 0!==N(this).attr("data-uid")?N(this).attr("data-uid"):"",type:"text",text:N(this).find(".answer-value").val(),options:{makeDefault:N(this).find(".answer-make-default").is(":checked")?"yes":"no",makeLink:N(this).find(".answer-make-link").is(":checked")?"yes":"no",link:N(this).find(".answer-link").val(),resultsColor:N(this).find(".answer-results-color").val()}}}),F.push({id:N(this).attr("data-id"),uid:void 0!==N(this).attr("data-uid")?N(this).attr("data-uid"):"",type:"text-question",text:N(this).find(".question-value").val(),answers:s,answersRemoved:N(this).attr("data-remove"),options:{allowOtherAnswers:N(this).find(".allow-other-answers").val(),otherAnswersLabel:N(this).find(".other-answers-label").val(),addOtherAnswers:N(this).find(".add-other-answers").val(),displayOtherAnswersInResults:N(this).find(".display-other-answers-in-results").val(),resultsColorForOtherAnswers:N(this).find(".other-answers-results-color").val(),allowMultipleAnswers:N(this).find(".allow-multiple-answers").val(),multipleAnswersMinim:N(this).find(".multiple-answers-minim").val(),multipleAnswersMaxim:N(this).find(".multiple-answers-maxim").val(),answersDisplay:N(this).find(".answers-display").val(),answersColumns:N(this).find(".answers-columns").val(),answersSort:N(this).find(".answers-sort").val()}});break;case"custom-field":F.push({id:N(this).attr("data-id"),uid:void 0!==N(this).attr("data-uid")?N(this).attr("data-uid"):"",type:"custom-field",text:N(this).find(".custom-field-name").val(),options:{makeRequired:N(this).find(".custom-field-make-required").is(":checked")?"yes":"no",cType:N(this).find(".custom-field-type").val()}})}}),e={id:N('input[name="poll[id]"]').val(),name:N('input[name="poll[name]"]').val(),status:N("#poll_status").val(),design:{template:N('input[name="poll[template]"]').val(),templateBase:N('input[name="poll[template]"]').attr("data-template-base"),skinBase:N('input[name="poll[skin]"]').attr("data-skin-base"),style:{poll:{backgroundColor:N(".poll-background-color").val(),borderSize:N(".poll-border-size").val(),borderColor:N(".poll-border-color").val(),borderRadius:N(".poll-border-radius").val(),paddingLeftRight:N(".poll-padding-left-right").val(),paddingTopBottom:N(".poll-padding-top-bottom").val()},questions:{textColor:N(".questions-text-color").val(),textSize:N(".questions-text-size").val(),textWeight:N(".questions-text-weight").val(),textAlign:N(".questions-text-align").val()},answers:{paddingLeftRight:N(".answers-padding-left-right").val(),paddingTopBottom:N(".answers-padding-top-bottom").val(),textColor:N(".answers-text-color").val(),textSize:N(".answers-text-size").val(),textWeight:N(".answers-text-weight").val(),skin:N(".answers-style-settings").find(".answers-skin").val(),colorScheme:N(".answers-style-settings").find(".color-scheme").find("li.active").attr("data-id")},buttons:{backgroundColor:N(".buttons-background-color").val(),borderSize:N(".buttons-border-size").val(),borderColor:N(".buttons-border-color").val(),borderRadius:N(".buttons-border-radius").val(),paddingLeftRight:N(".buttons-padding-left-right").val(),paddingTopBottom:N(".buttons-padding-top-bottom").val(),textColor:N(".buttons-text-color").val(),textSize:N(".buttons-text-size").val(),textWeight:N(".buttons-text-weight").val()},captcha:{},errors:{borderLeftColorForSuccess:N(".errors-border-left-color-for-success").val(),borderLeftColorForError:N(".errors-border-left-color-for-error").val(),borderLeftSize:N(".errors-border-left-size").val(),paddingTopBottom:N(".errors-padding-top-bottom").val(),textColor:N(".errors-text-color").val(),textSize:N(".errors-text-size").val(),textWeight:N(".errors-text-weight").val()},custom:{css:N(".custom-styles-custom-css").val()}}},options:{poll:{voteButtonLabel:N(".vote-button-label").val(),showResultsLink:N(".show-results-link").val(),resultsLabelText:N(".results-label-text").val(),showTotalVotes:N(".show-total-votes").val(),showTotalAnswers:N(".show-total-answers").val(),startDateOption:N(".start-date-option").val(),startDateCustom:N(".start-date-custom-hidden").val(),endDateOption:N(".end-date-option").val(),endDateCustom:N(".end-date-custom-hidden").val(),redirectAfterVote:N(".redirect-after-vote").val(),redirectUrl:N(".redirect-url").val(),resetPollStatsAutomatically:N(".reset-poll-stats-automatically").val(),resetPollStatsOn:N(".reset-poll-stats-on-hidden").val(),resetPollStatsEvery:N(".reset-poll-stats-every").val(),resetPollStatsEveryPeriod:N(".reset-poll-stats-every-period").val(),autoGeneratePollPage:N(".auto-generate-poll-page").val(),pageId:"",pageLink:"",useCaptcha:N(".use-captcha").val(),sendEmailNotifications:N(".send-email-notifications").val(),emailNotificationsFromName:N(".email-notifications-from-name").val(),emailNotificationsFromEmail:N(".email-notifications-from-email").val(),emailNotificationsRecipients:N(".email-notifications-recipients").val(),emailNotificationsSubject:N(".email-notifications-subject").val(),emailNotificationsMessage:N(".email-notifications-message").val(),enableGdpr:N(".enable-gdpr").val(),gdprSolution:N(".gdpr-solution").val(),gdprConsentText:N(".gdpr-consent-text").val(),loadWithAjax:N(".load-with-ajax").val()},access:{votePermissions:Y,allowWordpressVotes:N(".allow-wordpress-votes").val(),blockVoters:R,blockLengthType:N(".block-length-type").val(),blockForValue:N(".block-length-1").val(),blockForPeriod:N(".block-length-2").val(),limitVotesPerUser:N(".limit-votes-per-user").val(),votesPerUserAllowed:N(".votes-per-user-allowed").val()},results:{showResultsMoment:z,customDateResults:N(".custom-date-results-hidden").val(),showResultsTo:Q,resultsDetails:H,backToVoteOption:N(".back-to-vote-option").val(),backToVoteCaption:N(".back-to-vote-caption").val(),sortResults:N(".sort-results").val(),sortResultsRule:N(".sort-results-rule").val(),displayResultsAs:N(".display-results-as").val(),barColor:N(".bar-color").val(),barHeight:N(".bar-height").val()}},elements:F,elementsRemoved:N(".poll-elements-list").attr("data-remove")},N(".spinner.publish").addClass("is-active"),N("#publish-poll").attr("disabled",!0),N.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"update_yop_poll",_token:N("#_token").val(),poll:JSON.stringify(e)}}).done(function(t){N(".spinner.publish").removeClass("is-active"),!0===t.success?(N(".poll-elements-list").attr("data-remove",""),N(".poll-element").attr("data-remove",""),N(t.data.newElements).each(function(t,e){N(".poll-elements").find('.poll-element[data-uid="'+e.uid+'"]').attr({"data-id":e.id,"data-uid":""})}),N(t.data.newSubElements).each(function(t,e){N(".poll-elements").find('.answer[data-uid="'+e.uid+'"]').attr({"data-id":e.id,"data-uid":""})}),toastr.success(htmlEncode(striptags(t.data.message)),"",{progressBar:!0,onHidden:function(){N("#publish-poll").attr("disabled",!1)}})):(N("#publish-poll").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()})}),jQuery(document).ready(function(o){function t(t){var e,s,a=window.location.search.substring(1).split("&");for(s=0;s<a.length;s++)if((e=a[s].split("="))[0]===t)return void 0===e[1]||decodeURIComponent(e[1])}var e,s=new Date;"yes"===t("show-code")?(pollId=t("poll-id"),o("#shortcode-popup").find(".generate-yop-poll-code").attr("data-id",pollId),o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+pollId+'"]'),o("#shortcode-popup").modal()):"yop-polls"===t("page")&&o("#yop-poll-guide-modal").length&&(e=s.getFullYear().toString()+s.getMonth().toString()+s.getDate().toString(),null!==localStorage.getItem("ypguide")&&e===localStorage.getItem("ypguide")||(o("#yop-poll-guide-modal").modal("show"),localStorage.setItem("ypguide",e))),o(".delete-poll").click(function(t){var e=o(this).attr("data-id");""!==e&&BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deletePollMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_single_yop_poll",_token:o('input[name="_token"]').val(),poll_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),o(".clone-poll").click(function(t){var e=o(this).attr("data-id");BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.clonePollMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"clone_single_yop_poll",_token:o('input[name="_token"]').val(),poll_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),o("#current-poll-page-selector").keypress(function(t){var e,s,a,i,n=document.URL.split("?");if(13===t.which){if(void 0!==n[1])for(q=n[1].split("&"),s=0;s<q.length;s++)a=0===s?"?":"&","page_no"===(e=q[s].split("="))[0]?(i=e[1],n[0]+=a+e[0]+"="+o(this).val()):(e[1]=void 0!==e[1]?e[1]:"",n[0]+=a+e[0]+"="+e[1]);i!==o(this).val()&&window.location.assign(n[0])}}),o(".bulk-action").click(function(t){var e,s=o(".bulk-action-"+o(this).attr("data-position")).val(),a=[];switch(o('input[name="polls[]"]:checked').each(function(t){a.push(o(this).val())}),s){case"trash":formAction="delete_bulk_yop_poll",e=1<a.length?objectL10n.yopPollParams.deleteBulkPollsMultiMessage:objectL10n.yopPollParams.deleteBulkPollsSingleMessage;break;case"clone":formAction="clone_bulk_yop_poll",e=1<a.length?objectL10n.yopPollParams.cloneBulkPollsMultiMessage:objectL10n.yopPollParams.cloneBulkPollsSingleMessage;break;case"reset-votes":formAction="reset_bulk_yop_poll",e=1<a.length?objectL10n.yopPollParams.resetBulkPollsMultiMessage:objectL10n.yopPollParams.resetBulkPollsSingleMessage;break;default:formAction=""}""!==formAction?0<a.length?BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:e,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:formAction,_token:o('input[name="_bulk_token"]').val(),polls:JSON.stringify(a)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noPollsSelectedForBulk,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBulkActionSelected,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]}),t.preventDefault()}),o(".get-poll-code").click(function(){var t=o(this).attr("data-id");o("#shortcode-popup").find(".generate-yop-poll-code").attr("data-id",t),o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+t+'"]'),o("#shortcode-popup").modal()}),o(".generate-yop-poll-code").click(function(t){var e=o(this).attr("data-id"),s=o("#shortcode-popup").find(".shortcode-tracking-id").val();"no"===o("#shortcode-popup").find(".shortcode-show-results").val()?""!==s?o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+e+'" tracking_id="'+s+'"]'):o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+e+'"]'):o("#shortcode-popup").find(".poll-code").val('[yop_poll id="'+e+'" show_results="1"]'),t.preventDefault()}),o(".send-poll-guide").click(function(t){var e=o(".guide-email").val();""!==e.trim()?(o.LoadingOverlay("show"),o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_send_guide",input:e}}).done(function(t){o.LoadingOverlay("hide"),o("#yop-poll-guide-modal").modal("hide"),toastr.success("Guide sent. Please check your inbox.")})):o(".email-container").addClass("has-error"),t.preventDefault()}),o(".stop-showing-guide").click(function(t){o.LoadingOverlay("show"),o.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_stop_showing_guide",stop:"no"}}).done(function(t){o.LoadingOverlay("hide"),o("#yop-poll-guide-modal").modal("hide")}),t.preventDefault()})}),jQuery(document).ready(function(i){i(".add-ban").click(function(t){var e,s=!1;e=i(".ban-value").val(),!1===s&&""===e&&(s=!0,i(".ban-value").focus(),i(".ban-value").parent().addClass("has-error"),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.saveBanParams.noBanValue)))),!1===s&&(formData={ban:{poll_id:i(".ban-poll").val(),b_by:i(".ban-by").val(),b_value:i(".ban-value").val()}},i(".add-ban").attr("disabled",!0),i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"create_yop_poll_ban",_token:i("#_token").val(),ban:JSON.stringify(formData)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-bans")}}):(i(".add-ban").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()}),i(".ban-for").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".ban-value").change(function(){""!==i(this).val()&&i(this).parent().removeClass("has-error")}),i(".delete-ban").click(function(t){var e=i(this).attr("data-id");""!==e&&BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteBanMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_yop_poll_ban",_token:i('input[name="_token"]').val(),ban_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-bans")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),i(".update-ban").click(function(t){var e,s,a=!1;banFor=i(".ban-for").val(),e=i(".ban-value").val(),!1===a&&""===e&&(a=!0,i(".ban-value").focus(),i(".ban-value").parent().addClass("has-error"),toastr.warning(htmlEncode(striptags(objectL10n.yopPollParams.saveBanParams.noBanValue)))),!1===a&&(s={ban:{id:i(this).attr("data-id"),poll_id:i(".ban-poll").val(),b_by:i(".ban-by").val(),b_value:i(".ban-value").val()}},i(".update-ban").attr("disabled",!0),i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"update_yop_poll_ban",_token:i("#_token").val(),ban:JSON.stringify(s)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-bans")}}):(i(".add-ban").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()}),i(".bans-bulk-action").click(function(t){var e,s=[];i('input[name="bans[]"]:checked').each(function(t){s.push(i(this).val())}),"trash"===i(".bans-bulk-action-"+i(this).attr("data-position")).val()?(e=1<s.length?objectL10n.yopPollParams.deleteBulkBansMultiMessage:objectL10n.yopPollParams.deleteBulkBansSingleMessage,0<s.length?BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:e,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_bulk_yop_poll_ban",_token:i('input[name="_bulk_token"]').val(),bans:JSON.stringify(s)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-bans")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBansSelectedForBulk,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBulkActionSelected,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})})}),jQuery(document).ready(function(a){a(".delete-log").click(function(t){var e=a(this).attr("data-id");""!==e&&BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteLogMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&a.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_yop_poll_log",_token:a('input[name="_token"]').val(),log_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-logs")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),a(".logs-bulk-action").click(function(t){var e,s=[];a('input[name="logs[]"]:checked').each(function(t){s.push(a(this).val())}),"trash"===a(".logs-bulk-action-"+a(this).attr("data-position")).val()?(e=1<s.length?objectL10n.yopPollParams.deleteBulkLogsMultiMessage:objectL10n.yopPollParams.deleteBulkLogsSingleMessage,0<s.length?BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:e,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&a.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"delete_bulk_yop_poll_log",_token:a('input[name="_bulk_token"]').val(),logs:JSON.stringify(s)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-poll-logs")}}):toastr.warning(htmlEncode(striptags(t.data)))})}}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noLogsSelectedForBulk,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBulkActionSelected,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})}),a(".view-log-details").click(function(t){var e=a(this).data("id"),s=a(this).parent().parent().next(".log-details-div");a(s).is(":visible")?(a(s).fadeOut("slow"),a(this).text(objectL10n.yopPollParams.showLogDetailsLinkText)):(a(this).text(objectL10n.yopPollParams.hideLogDetailsLinkText),"yes"===a(s).data("ajax_sent")?a(s).fadeIn("slow"):(a.LoadingOverlay("show"),a.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"get_yop_poll_log_details",_token:a('input[name="_token"]').val(),log_id:e}}).done(function(t){!0===t.success?(strDetails=t.data.details,a(s).html(strDetails).fadeIn("slow"),a(s).data("ajax_sent","yes")):toastr.warning(htmlEncode(striptags(t.data))),a.LoadingOverlay("hide")}))),t.preventDefault()}),a(".export-logs-button").click(function(t){a("#doExport").val("true"),a("#searchForm").submit()}),a("#search-submit").click(function(t){a("#doExport").val("false")})}),jQuery(document).ready(function(d){d(".progress-bar").each(function(){d(this).yopprogressbar({})}),d(".element-results-header").click(function(t){var e=d(this).closest(".panel").find(".panel-collapse");d(e).hasClass("in")?d(this).find("a").first().removeClass("collapsed"):d(this).find("a").first().addClass("collapsed"),d(e).collapse("toggle"),t.preventDefault()}),d(".answers-chart-type").on("change",function(t){var e,s,a,i,n,o,l,r,c;if(function(){return"rgb("+Math.floor(255*Math.random())+","+Math.floor(255*Math.random())+","+Math.floor(255*Math.random())+")"},e=d(this).val(),s=d(this).closest(".panel-body").find(".chart-canvas"),a=d(this).closest(".panel-body").find(".bar-chart-div"),"pie"===e){for(d(s).show(),d(a).hide(),i=d(s).data("jsondata"),n=d(s).data("jsonlabels"),o=d(s).data("resultscolor"),r=d(s).data("icons"),l=[],c=0;c<r.length;c++)"other"===r[c]?(l.push(""),n[c]+=" "):l.push("");new Chart(s,{type:"pie",responsive:!0,maintainAspectRatio:!0,data:{labels:n,icons:l,datasets:[{label:objectL10n.yopPollParams.numberOfVotesText,data:i,backgroundColor:o,icons:l,datalabels:{anchor:"end"}}]},pointLabelFontFamily:"'FontAwesome'",scaleFontFamily:"'FontAwesome'",options:{legend:{display:!0,labels:{fontFamily:"'FontAwesome'",fontSize:12}},tooltips:{enabled:!0,titleFontFamily:"'FontAwesome'",bodyFontFamily:"'FontAwesome'",footerFontFamily:"'FontAwesome'"},tooltipTitleFontFamily:"'FontAwesome'",plugins:{datalabels:{anchor:"end",borderColor:"red",borderRadius:5,borderWidth:0,color:"#387cb7",font:{family:"FontAwesome",size:20},display:!0,formatter:function(t,e){return e.chart.data.icons[e.dataIndex]}}}}})}else"bar"===e&&(d(s).hide(),d(a).show())}),d(".voters-chart-type").on("change",function(t){var e,s,a,i,n,o;e=d(this).val(),s=d(this).closest(".panel-body").find(".chart-voters-canvas"),a=d(this).closest(".panel-body").find(".bar-chart-voters-div"),"pie"===e?(d(s).show(),d(a).hide(),i=d(s).data("jsondata"),n=d(s).data("jsonlabels"),o=d(s).data("resultscolor"),new Chart(s,{type:"pie",responsive:!0,maintainAspectRatio:!0,data:{labels:n,datasets:[{label:"Number of Votes",data:i,backgroundColor:o}]}})):"bar"===e&&(d(s).hide(),d(a).show())}),d("#cf-pagination").bootpag({total:d("#cf-total-pages").val()}).on("page",function(t,e){d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"get_yop_poll_votes_customs",_token:d('input[name="_token"]').val(),page:e,poll_id:d("#poll_id").val()}}).done(function(t){!0===t.success?d("#cf-table tbody").html(t.data):toastr.warning(htmlEncode(striptags(t.data)))})}),d(".details-operation").click(function(t){var e,s,a,i;e=d(this).data("vote-id"),s=d(this).data("ajax-sent"),a=d("#vote-details-div-"+e),i=d(this),d(a).is(":visible")?d(a).fadeOut("slow"):"yes"===s?d("#vote-details-div-"+e).fadeIn("slow"):(d.LoadingOverlay("show"),d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop-poll-get-vote-details",_token:d('input[name="_token"]').val(),voteid:e}}).done(function(t){!0===t.success?(d(a).html(t.data.details),d(a).fadeIn("slow"),d(i).data("ajax-sent","yes")):toastr.warning(htmlEncode(striptags(t.data))),d.LoadingOverlay("hide")})),t.preventDefault()}),d(".delete-vote").click(function(t){var e=d(this).attr("data-id"),s=d('input[name="poll_id"]').val();""!==e&&BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.deleteBulkVotesSingleMessage,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_delete_vote",_token:d('input[name="_token"]').val(),poll_id:s,vote_id:e}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls&action=view-votes&poll_id="+s)}}):toastr.warning(htmlEncode(striptags(t.data)))})}}),t.preventDefault()}),d(".votes-bulk-action").click(function(t){var e,s=[],a=d('input[name="poll_id"]').val(),i=d("#votes-search-input").val();d('input[name="votes[]"]:checked').each(function(t){s.push(d(this).val())}),"trash"===d(".logs-bulk-action-"+d(this).attr("data-position")).val()?(e=1<s.length?objectL10n.yopPollParams.deleteBulkVotessMultiMessage:objectL10n.yopPollParams.deleteBulkVotesSingleMessage,0<s.length?BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:e,btnCancelLabel:objectL10n.yopPollParams.deleteCancelLabel,btnOKLabel:objectL10n.yopPollParams.deleteOkLabel,callback:function(t){t&&d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_delete_votes_bulk",_token:d('input[name="_bulk_token"]').val(),poll_id:a,votes:JSON.stringify(s)}}).done(function(t){!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls&action=view-votes&poll_id="+a+"&q="+i)}}):toastr.warning(htmlEncode(striptags(t.data)))})}}):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noVotesSelectedForBulk,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})):BootstrapDialog.show({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:objectL10n.yopPollParams.noBulkActionSelected,buttons:[{label:objectL10n.yopPollParams.deleteOkLabel,action:function(t){t.close()}}]})}),d(".btn-submit-add-votes-manually").click(function(){var e=d(this).attr("data-poll-id"),s=[];d(".section-main-add-votes-manually .question-section").each(function(t){var e=[];d(this).find(".answer-element").each(function(t){e[t]={id:d(this).attr("data-id"),votes:d(this).val()}}),s[t]={id:d(this).attr("data-id"),answers:e}}),d(".section-footer-add-votes-manually .btn-submit-add-votes-manually").attr("disabled",!0),d(".section-footer-add-votes-manually .spinner").removeClass("hide").addClass("is-active"),d.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll-add-votes-manually",_token:d('input[name="_token-add-votes-manually"]').val(),id:e,data:JSON.stringify(s)}}).done(function(t){d(".section-footer-add-votes-manually .spinner").removeClass("is-active").addClass("hide"),!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){window.location.assign("admin.php?page=yop-polls&action=view-votes&poll_id="+e)}}):(d(".section-footer-add-votes-manually .btn-submit-add-votes-manually").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})}),d(".btn-cancel-add-votes-manually").click(function(){d(".section-footer-add-votes-manually .spinner").removeClass("is-active").addClass("hide"),d("#modal-add-votes-manually").modal("hide")})}),jQuery(document).ready(function(i){function s(t,e,s,a){switch(t){case"tab-notifications":i("#tab-notifications").addClass("active"),i("#settings-notifications").addClass("active"),i("#tab-integrations").removeClass("active"),i("#settings-integrations").removeClass("active"),i("#tab-messages").removeClass("active"),i("#settings-messages").removeClass("active");break;case"tab-integrations":i("#tab-integrations").addClass("active"),i("#settings-integrations").addClass("active"),i("#tab-notifications").removeClass("active"),i("#settings-notifications").removeClass("active"),i("#tab-messages").removeClass("active"),i("#settings-messages").removeClass("active");break;case"tab-messages":switch(i("#tab-messages").addClass("active"),i("#settings-messages").addClass("active"),i("#tab-notifications").removeClass("active"),i("#settings-notifications").removeClass("active"),i("#tab-integrations").removeClass("active"),i("#settings-integrations").removeClass("active"),e){case 1:i("#settings-messages").find('a[data-content="settings-messages-buttons"]').addClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-voting"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-results"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-captcha"]').removeClass("btn-underline"),i("#settings-messages .settings-messages-buttons").removeClass("hide"),i("#settings-messages .settings-messages-voting").addClass("hide"),i("#settings-messages .settings-messages-results").addClass("hide"),i("#settings-messages .settings-messages-captcha").addClass("hide");break;case 2:i("#settings-messages").find('a[data-content="settings-messages-buttons"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-voting"]').addClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-results"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-captcha"]').removeClass("btn-underline"),i("#settings-messages .settings-messages-buttons").addClass("hide"),i("#settings-messages .settings-messages-voting").removeClass("hide"),i("#settings-messages .settings-messages-results").addClass("hide"),i("#settings-messages .settings-messages-captcha").addClass("hide");break;case 3:i("#settings-messages").find('a[data-content="settings-messages-buttons"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-voting"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-results"]').addClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-captcha"]').removeClass("btn-underline"),i("#settings-messages .settings-messages-buttons").addClass("hide"),i("#settings-messages .settings-messages-voting").addClass("hide"),i("#settings-messages .settings-messages-results").removeClass("hide"),i("#settings-messages .settings-messages-captcha").addClass("hide");break;case 4:i("#settings-messages").find('a[data-content="settings-messages-buttons"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-voting"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-results"]').removeClass("btn-underline"),i("#settings-messages").find('a[data-content="settings-messages-captcha"]').addClass("btn-underline"),i("#settings-messages .settings-messages-buttons").addClass("hide"),i("#settings-messages .settings-messages-voting").addClass("hide"),i("#settings-messages .settings-messages-results").addClass("hide"),i("#settings-messages .settings-messages-captcha").removeClass("hide")}}i("#"+s).css("borderColor","#f00"),""!==a&&toastr.warning(htmlEncode(striptags(a)))}var a;i(".settings-required-field").focusout(function(t){""!==i.trim(i(this).val())&&i(this).css("borderColor","#ccc")}),i(".save-settings").click(function(t){var e=!1;!1===e&&""===i.trim(i("#email-from-name").val())&&(e=!0,s("tab-notifications",0,"email-from-name",i("#email-from-name").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#email-from-email").val())&&(e=!0,s("tab-notifications",0,"email-from-email",i("#email-from-email").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#email-recipients").val())&&(e=!0,s("tab-notifications",0,"email-recipients",i("#email-recipients").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#email-subject").val())&&(e=!0,s("tab-notifications",0,"email-subject",i("#email-subject").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#email-message").val())&&(e=!0,s("tab-notifications",0,"email-message",i("#email-message").siblings("label").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),"yes"===i(".integrations-reCaptcha-enabled").val()&&!1===e&&""===i.trim(i("#integrations-reCaptcha-site-key").val())&&(e=!0,s("tab-integrations",0,"integrations-reCaptcha-site-key",i("#integrations-reCaptcha-site-key").closest(".integrations-reCaptcha-section").find(".input-caption:first").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),"yes"===i(".integrations-reCaptcha-enabled").val()&&!1===e&&""===i.trim(i("#integrations-reCaptcha-secret-key").val())&&(e=!0,s("tab-integrations",0,"integrations-reCaptcha-secret-key",i("#integrations-reCaptcha-secret-key").closest(".integrations-reCaptcha-section").find(".input-caption").eq(1).text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),"yes"===i(".integrations-reCaptchaV2Invisible-enabled").val()&&!1===e&&""===i.trim(i("#integrations-reCaptchaV2Invisible-site-key").val())&&(e=!0,s("tab-integrations",0,"integrations-reCaptchaV2Invisible-site-key",i("#integrations-reCaptchaV2Invisible-site-key").closest(".integrations-reCaptchaV2Invisible-section").find(".input-caption:first").text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),"yes"===i("#integrations-reCaptchaV2Invisible-enabled").val()&&!1===e&&""===i.trim(i("#integrations-reCaptchaV2Invisible-secret-key").val())&&(e=!0,s("tab-integrations",0,"integrations-reCaptchaV2Invisible-secret-key",i("#integrations-reCaptchaV2Invisible-secret-key").closest(".integrations-reCaptchaV2Invisible-section").find(".input-caption").eq(1).text()+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-buttons-anonymous").val())&&(e=!0,s("tab-messages",1,"messages-buttons-anonymous",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-buttons-anonymous").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-buttons-wordpress").val())&&(e=!0,s("tab-messages",1,"messages-buttons-wordpress",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-buttons-wordpress").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-buttons-facebook").val())&&(e=!0,s("tab-messages",1,"messages-buttons-facebook",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-buttons-facebook").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-buttons-google").val())&&(e=!0,s("tab-messages",1,"messages-buttons-google",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-buttons-google").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-poll-ended").val())&&(e=!0,s("tab-messages",2,"messages-voting-poll-ended",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-poll-ended").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-poll-not-started").val())&&(e=!0,s("tab-messages",2,"messages-voting-poll-not-started",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-poll-not-started").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-already-voted-on-poll").val())&&(e=!0,s("tab-messages",2,"messages-voting-already-voted-on-poll",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-already-voted-on-poll").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-invalid-poll").val())&&(e=!0,s("tab-messages",2,"messages-voting-invalid-poll",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-invalid-poll").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-no-answer-selected").val())&&(e=!0,s("tab-messages",2,"messages-voting-no-answer-selected",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-no-answer-selected").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-min-answers-required").val())&&(e=!0,s("tab-messages",2,"messages-voting-min-answers-required",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-min-answers-required").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-max-answers-required").val())&&(e=!0,s("tab-messages",2,"messages-voting-max-answers-required",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-max-answers-required").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-no-value-for-other").val())&&(e=!0,s("tab-messages",2,"messages-voting-no-value-for-other",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-no-value-for-other").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-no-value-for-custom-field").val())&&(e=!0,s("tab-messages",2,"messages-voting-no-value-for-custom-field",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-no-value-for-custom-field").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-consent-not-checked").val())&&(e=!0,s("tab-messages",2,"messages-voting-consent-not-checked",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-consent-not-checked").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-captcha-not-checked").val())&&(e=!0,s("tab-messages",2,"messages-voting-captcha-not-checked",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-captcha-not-checked").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-vote-not-allowed-by-ban").val())&&(e=!0,s("tab-messages",2,"messages-voting-vote-not-allowed-by-ban",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-vote-not-allowed-by-ban").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-vote-not-allowed-by-block").val())&&(e=!0,s("tab-messages",2,"messages-voting-vote-not-allowed-by-block",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-vote-not-allowed-by-block").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-vote-not-allowed-by-limit").val())&&(e=!0,s("tab-messages",2,"messages-voting-vote-not-allowed-by-limit",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-vote-not-allowed-by-limit").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-voting-thank-you").val())&&(e=!0,s("tab-messages",2,"messages-voting-thank-you",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-voting-thank-you").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-results-single-vote").val())&&(e=!0,s("tab-messages",3,"messages-results-single-vote",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-results-single-vote").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-results-multiple-votes").val())&&(e=!0,s("tab-messages",3,"messages-results-multiple-votes",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-results-multiple-votes").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-results-single-answer").val())&&(e=!0,s("tab-messages",3,"messages-results-single-answer",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-results-single-answer").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-results-multiple-answers").val())&&(e=!0,s("tab-messages",3,"messages-results-multiple-answers",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-results-multiple-answers").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-accessibility-alt").val())&&(e=!0,s("tab-messages",4,"messages-captcha-accessibility-alt",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-accessibility-alt").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-accessibility-title").val())&&(e=!0,s("tab-messages",4,"messages-captcha-accessibility-title",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-accessibility-title").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-accessibility-description").val())&&(e=!0,s("tab-messages",4,"messages-captcha-accessibility-description",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-accessibility-description").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-accessibility-explanation").val())&&(e=!0,s("tab-messages",4,"messages-captcha-accessibility-explanation",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-accessibility-explanation").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-refresh-alt").val())&&(e=!0,s("tab-messages",4,"messages-captcha-refresh-alt",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-refresh-alt").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&""===i.trim(i("#messages-captcha-refresh-title").val())&&(e=!0,s("tab-messages",4,"messages-captcha-refresh-title",objectL10n.yopPollParams.saveParams.generalTextForMessages+'"'+i("#messages-captcha-refresh-title").closest(".messages-fields").find(".input-caption").text()+'"'+objectL10n.yopPollParams.saveParams.generalErrorMessage)),!1===e&&(a={email:{"from-name":i("#email-from-name").val(),"from-email":i("#email-from-email").val(),subject:i("#email-subject").val(),recipients:i("#email-recipients").val(),message:i("#email-message").val()},integrations:{reCaptcha:{enabled:i("#integrations-reCaptcha-enabled").val(),"site-key":i("#integrations-reCaptcha-site-key").val(),"secret-key":i("#integrations-reCaptcha-secret-key").val()},reCaptchaV2Invisible:{enabled:i("#integrations-reCaptchaV2Invisible-enabled").val(),"site-key":i("#integrations-reCaptchaV2Invisible-site-key").val(),"secret-key":i("#integrations-reCaptchaV2Invisible-secret-key").val()},facebook:{enabled:i("#integrations-facebook-enabled").val(),"app-id":i("#integrations-facebook-app-id").val()},google:{enabled:i("#integrations-google-enabled").val(),"app-id":i("#integrations-google-app-id").val(),"app-secret":i("#integrations-google-app-secret").val()}},messages:{captcha:{"accessibility-alt":i("#messages-captcha-accessibility-alt").val(),"accessibility-title":i("#messages-captcha-accessibility-title").val(),"accessibility-description":i("#messages-captcha-accessibility-description").val(),explanation:i("#messages-captcha-accessibility-explanation").val(),"refresh-alt":i("#messages-captcha-refresh-alt").val(),"refresh-title":i("#messages-captcha-refresh-title").val()},buttons:{anonymous:i("#messages-buttons-anonymous").val(),wordpress:i("#messages-buttons-wordpress").val(),facebook:i("#messages-buttons-facebook").val(),google:i("#messages-buttons-google").val()},voting:{"poll-ended":i("#messages-voting-poll-ended").val(),"poll-not-started":i("#messages-voting-poll-not-started").val(),"already-voted-on-poll":i("#messages-voting-already-voted-on-poll").val(),"invalid-poll":i("#messages-voting-invalid-poll").val(),"no-answers-selected":i("#messages-voting-no-answer-selected").val(),"min-answers-required":i("#messages-voting-min-answers-required").val(),"max-answers-required":i("#messages-voting-max-answers-required").val(),"no-answer-for-other":i("#messages-voting-no-value-for-other").val(),"no-value-for-custom-field":i("#messages-voting-no-value-for-custom-field").val(),"consent-not-checked":i("#messages-voting-consent-not-checked").val(),"no-captcha-selected":i("#messages-voting-captcha-not-checked").val(),"not-allowed-by-ban":i("#messages-voting-vote-not-allowed-by-ban").val(),"not-allowed-by-block":i("#messages-voting-vote-not-allowed-by-block").val(),"not-allowed-by-limit":i("#messages-voting-vote-not-allowed-by-limit").val(),"thank-you":i("#messages-voting-thank-you").val()},results:{"single-vote":i("#messages-results-single-vote").val(),"multiple-votes":i("#messages-results-multiple-votes").val(),"single-answer":i("#messages-results-single-answer").val(),"multiple-answers":i("#messages-results-multiple-answers").val()}}},i(".spinner.publish").addClass("is-active"),i(this).attr("disabled",!0),i.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"yop_poll_save_settings",_token:i("#_token").val(),settings:JSON.stringify(a)}}).done(function(t){i(".spinner.publish").removeClass("is-active"),!0===t.success?toastr.success(htmlEncode(striptags(t.data)),"",{progressBar:!0,onHidden:function(){i(".save-settings").attr("disabled",!1)}}):(i(".save-settings").attr("disabled",!1),toastr.warning(htmlEncode(striptags(t.data))))})),t.preventDefault()}),i(".integrations-reCaptcha-enabled").on("change",function(t){"yes"===i(this).val()?i(".integrations-reCaptcha-section").removeClass("hide"):i(".integrations-reCaptcha-section").addClass("hide")}),i(".integrations-reCaptchaV2Invisible-enabled").on("change",function(t){"yes"===i(this).val()?i(".integrations-reCaptchaV2Invisible-section").removeClass("hide"):i(".integrations-reCaptchaV2Invisible-section").addClass("hide")}),i(".integrations-facebook-enabled").on("change",function(t){"yes"===i(this).val()&&(i('.integrations-facebook-enabled option[value="no"]').prop("selected",!0),showUpgradeToPro("facebook"),t.preventDefault())}),i(".integrations-google-enabled").on("change",function(t){"yes"===i(this).val()&&(i('.integrations-google-enabled option[value="no"]').prop("selected",!0),showUpgradeToPro("google"),t.preventDefault())})});var getParameterFromUrl=getUrlParameter=function(t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(location.search);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))},showUpgradeToPro=function(t){jQuery("#yop-poll-upgrade-modal-short").modal("show"),jQuery("#yop-poll-upgrade-modal-long").modal("show")};jQuery(document).ready(function(a){var i;a(".migrate-section").on("change",function(t){"yes"===a(this).val()?a(".migrate-section").find(".migrate-gdpr-solution-section").removeClass("hide"):a(".migrate-section").find(".migrate-gdpr-solution-section").addClass("hide")}),i=function(t,e,s){a.ajax({type:"POST",url:ajaxurl,data:{table:t,action:"yop_ajax_migrate",_csrf_token:a("#_csrf_token").val(),enableGdpr:a(".migrate-section").find(".migrate-enable-gdpr").val(),gdprSolution:a(".migrate-section").find(".migrate-gdpr-solution").val(),response_code:e,skip_table_check:s},dataType:"json",success:function(t){"done"===t.data.response_code?(a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.response+" "+t.data.message+"</p>"),a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.allDone+"</p>")):(a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.response+" "+t.data.message+"</p>"),i(t.data.table,t.data.response_code,t.data.skip_table_check))},error:function(t){}}).fail(function(t){})},a(".send-request").click(function(){var t,e=a(".migrate-section").find(".migrate-enable-gdpr").val(),s=a(".migrate-section").find(".migrate-gdpr-solution").val();if("yes"===e){switch(s){case"consent":t=objectL10n.yopPollParams.importOld.gdprEnabledMigrateAsIs;break;case"anonymize":t=objectL10n.yopPollParams.importOld.gdprEnabledAnonymizeIp;break;case"nostore":t=objectL10n.yopPollParams.importOld.gdprEnabledNoStore}t=objectL10n.yopPollParams.importOld.gdprEnabledGeneral+"<br><br>"+objectL10n.yopPollParams.importOld.gdprEnabledChoice+": <b>"+a(".migrate-section").find(".migrate-gdpr-solution").find("option:selected").text()+"</b><br><br>"+t,BootstrapDialog.confirm({type:BootstrapDialog.TYPE_WARNING,title:objectL10n.yopPollParams.deleteTitle,message:t,btnCancelLabel:objectL10n.yopPollParams.importOld.gdprEnabledStop,btnOKLabel:objectL10n.yopPollParams.importOld.gdprEnabledContinue,callback:function(t){t&&(a(".migrate-output").html(""),a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.importStarted+"</p>"),i("bans",1,!1))}})}else a(".migrate-output").html(""),a(".migrate-output").append("<p>"+objectL10n.yopPollParams.importOld.importStarted+"</p>"),i("bans",1,!1)})});
admin/inc/maintenance.php CHANGED
@@ -87,6 +87,9 @@ class YOP_POLL_Maintenance {
87
YOP_Poll_Settings::update_show_guide( 'yes' );
88
update_option( 'yop_poll_version', '6.1.4' );
89
}
90
public function create_archive_page() {
91
$poll_archive_page = get_page_by_path( 'yop-poll-archive', ARRAY_A );
92
if ( ! $poll_archive_page ) {
87
YOP_Poll_Settings::update_show_guide( 'yes' );
88
update_option( 'yop_poll_version', '6.1.4' );
89
}
90
+ public function update_to_version_6_1_5() {
91
+ update_option( 'yop_poll_version', '6.1.5' );
92
+ }
93
public function create_archive_page() {
94
$poll_archive_page = get_page_by_path( 'yop-poll-archive', ARRAY_A );
95
if ( ! $poll_archive_page ) {
admin/models/settings.php CHANGED
@@ -48,7 +48,7 @@ class YOP_Poll_Settings {
48
),
49
'buttons' => array(
50
'anonymous' => 'Anonymous Vote',
51
- 'wordpress' => 'Sign in with Wordpress',
52
'facebook' => 'Sign in with Facebook',
53
'google' => 'Sign in with Google'
54
),
@@ -123,7 +123,7 @@ class YOP_Poll_Settings {
123
),
124
'buttons' => array(
125
'anonymous' => 'Anonymous Vote',
126
- 'wordpress' => 'Sign in with Wordpress',
127
'facebook' => 'Sign in with Facebook',
128
'google' => 'Sign in with Google'
129
),
@@ -203,7 +203,7 @@ class YOP_Poll_Settings {
203
),
204
'buttons' => array(
205
'anonymous' => 'Anonymous Vote',
206
- 'wordpress' => 'Sign in with Wordpress',
207
'facebook' => 'Sign in with Facebook',
208
'google' => 'Sign in with Google'
209
),
@@ -444,7 +444,7 @@ class YOP_Poll_Settings {
444
( '' === trim( $settings->messages->buttons->{'wordpress'} ) ) )
445
) {
446
self::$errors_present = true;
447
- self::$error_text = __( 'Data for "Vote with your wordpress account" is invalid', 'yop-poll' );
448
}
449
if (
450
( false === self::$errors_present ) &&
@@ -452,7 +452,7 @@ class YOP_Poll_Settings {
452
( '' === trim( $settings->messages->buttons->{'facebook'} ) ) )
453
) {
454
self::$errors_present = true;
455
- self::$error_text = __( 'Data for "Vote with your facebook account" is invalid', 'yop-poll' );
456
}
457
if (
458
( false === self::$errors_present ) &&
@@ -460,7 +460,7 @@ class YOP_Poll_Settings {
460
( '' === trim( $settings->messages->buttons->{'google'} ) ) )
461
) {
462
self::$errors_present = true;
463
- self::$error_text = __( 'Data for "Vote with your google account" is invalid', 'yop-poll' );
464
}
465
if (
466
( false === self::$errors_present ) &&
48
),
49
'buttons' => array(
50
'anonymous' => 'Anonymous Vote',
51
+ 'wordpress' => 'Sign in with WordPress',
52
'facebook' => 'Sign in with Facebook',
53
'google' => 'Sign in with Google'
54
),
123
),
124
'buttons' => array(
125
'anonymous' => 'Anonymous Vote',
126
+ 'wordpress' => 'Sign in with WordPress',
127
'facebook' => 'Sign in with Facebook',
128
'google' => 'Sign in with Google'
129
),
203
),
204
'buttons' => array(
205
'anonymous' => 'Anonymous Vote',
206
+ 'wordpress' => 'Sign in with WordPress',
207
'facebook' => 'Sign in with Facebook',
208
'google' => 'Sign in with Google'
209
),
444
( '' === trim( $settings->messages->buttons->{'wordpress'} ) ) )
445
) {
446
self::$errors_present = true;
447
+ self::$error_text = __( 'Data for "Vote with your WordPress account" is invalid', 'yop-poll' );
448
}
449
if (
450
( false === self::$errors_present ) &&
452
( '' === trim( $settings->messages->buttons->{'facebook'} ) ) )
453
) {
454
self::$errors_present = true;
455
+ self::$error_text = __( 'Data for "Vote with your Facebook account" is invalid', 'yop-poll' );
456
}
457
if (
458
( false === self::$errors_present ) &&
460
( '' === trim( $settings->messages->buttons->{'google'} ) ) )
461
) {
462
self::$errors_present = true;
463
+ self::$error_text = __( 'Data for "Vote with your Google account" is invalid', 'yop-poll' );
464
}
465
if (
466
( false === self::$errors_present ) &&
admin/views/general/upgrade-long.php CHANGED
@@ -48,7 +48,7 @@
48
I'm so glad to be a Pro version user. The upgrade worth every cent...
49
</p>
50
<p class="yop-poll-pro-testimonial-client">
51
- edwintam, wordpress user
52
</p>
53
<p></p>
54
</div>
@@ -200,7 +200,7 @@
200
I'm so glad to be a Pro version user. The upgrade worth every cent...
201
</p>
202
<p class="yop-poll-pro-testimonial-client">
203
- edwintam, wordpress user
204
</p>
205
<p></p>
206
</div>
@@ -348,7 +348,7 @@
348
I'm so glad to be a Pro version user. The upgrade worth every cent...
349
</p>
350
<p class="yop-poll-pro-testimonial-client">
351
- edwintam, wordpress user
352
</p>
353
<p></p>
354
</div>
48
I'm so glad to be a Pro version user. The upgrade worth every cent...
49
</p>
50
<p class="yop-poll-pro-testimonial-client">
51
+ edwintam, WordPress user
52
</p>
53
<p></p>
54
</div>
200
I'm so glad to be a Pro version user. The upgrade worth every cent...
201
</p>
202
<p class="yop-poll-pro-testimonial-client">
203
+ edwintam, WordPress user
204
</p>
205
<p></p>
206
</div>
348
I'm so glad to be a Pro version user. The upgrade worth every cent...
349
</p>
350
<p class="yop-poll-pro-testimonial-client">
351
+ edwintam, WordPress user
352
</p>
353
<p></p>
354
</div>
admin/views/general/upgrade-page.php CHANGED
@@ -41,7 +41,7 @@
41
I'm so glad to be a Pro version user. The upgrade worth every cent...
42
</p>
43
<p class="yop-poll-pro-testimonial-client">
44
- edwintam, wordpress user
45
</p>
46
<p></p>
47
</div>
@@ -193,7 +193,7 @@
193
I'm so glad to be a Pro version user. The upgrade worth every cent...
194
</p>
195
<p class="yop-poll-pro-testimonial-client">
196
- edwintam, wordpress user
197
</p>
198
<p></p>
199
</div>
@@ -341,7 +341,7 @@
341
I'm so glad to be a Pro version user. The upgrade worth every cent...
342
</p>
343
<p class="yop-poll-pro-testimonial-client">
344
- edwintam, wordpress user
345
</p>
346
<p></p>
347
</div>
41
I'm so glad to be a Pro version user. The upgrade worth every cent...
42
</p>
43
<p class="yop-poll-pro-testimonial-client">
44
+ edwintam, WordPress user
45
</p>
46
<p></p>
47
</div>
193
I'm so glad to be a Pro version user. The upgrade worth every cent...
194
</p>
195
<p class="yop-poll-pro-testimonial-client">
196
+ edwintam, WordPress user
197
</p>
198
<p></p>
199
</div>
341
I'm so glad to be a Pro version user. The upgrade worth every cent...
342
</p>
343
<p class="yop-poll-pro-testimonial-client">
344
+ edwintam, WordPress user
345
</p>
346
<p></p>
347
</div>
admin/views/polls/add/elements.php CHANGED
@@ -9,40 +9,66 @@ include( YOP_POLL_PATH . 'admin/views/polls/elements-definitions.php' )
9
<div class="row">
10
<div class="col-md-12 buttons-row">
11
<span class="regular-buttons">
12
- <a class="btn btn-primary poll-element-add add-custom-field" href="#" role="button">
13
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
14
<br>
15
<?php _e( 'Custom Field', 'yop-poll' );?>
16
</a>
17
</span>
18
<span class="premium-buttons">
19
- <span class="premium">
20
- <a href="#" class="upgrade-to-pro" data-screen="multiple-questions">
21
- <img src="<?php echo YOP_POLL_URL;?>admin/assets/images/pro-vertical.svg" class="responsive" />
22
- </a>
23
- </span>
24
- <a class="btn btn-warning add-text-question" href="#" role="button">
25
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
26
- <br>
27
- <?php _e( 'Text Question', 'yop-poll' );?>
28
- </a>
29
- <a class="btn btn-warning add-media-question" href="#" role="button">
30
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
31
- <br>
32
- <?php _e( 'Media Question', 'yop-poll' );?>
33
- </a>
34
- <a class="btn btn-warning add-space-separator" href="#" role="button">
35
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
36
- <br>
37
- <?php _e( 'Space Separator', 'yop-poll' );?>
38
- </a>
39
- <a class="btn btn-warning add-text-block" href="#" role="button">
40
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
41
- <br>
42
- <?php _e( 'Text Block', 'yop-poll' );?>
43
- </a>
44
- </span>
45
- <hr>
46
</div>
47
</div>
48
<div class="row">
9
<div class="row">
10
<div class="col-md-12 buttons-row">
11
<span class="regular-buttons">
12
+ <a class="btn btn-primary lite-button poll-element-add add-custom-field" href="#" role="button">
13
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
14
<br>
15
<?php _e( 'Custom Field', 'yop-poll' );?>
16
</a>
17
</span>
18
<span class="premium-buttons">
19
+ <div class="row">
20
+ <div class="col-md-1">
21
+ <span class="premium">
22
+ <a href="#" class="upgrade-to-pro" data-screen="multiple-questions">
23
+ <img src="<?php echo YOP_POLL_URL;?>admin/assets/images/pro-vertical.svg" class="responsive" />
24
+ </a>
25
+ </span>
26
+ </div>
27
+ <div class="col-md-11">
28
+ <a class="btn btn-warning premium-button add-text-question" href="#" role="button">
29
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
30
+ <br>
31
+ <?php _e( 'Text Question', 'yop-poll' );?>
32
+ </a>
33
+ <a class="btn btn-warning premium-button add-media-question" href="#" role="button">
34
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
35
+ <br>
36
+ <?php _e( 'Media Question', 'yop-poll' );?>
37
+ </a>
38
+ <a class="btn btn-warning premium-button add-media-question" href="#" role="button">
39
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
40
+ <br>
41
+ <?php _e( 'Text Slider Question', 'yop-poll' );?>
42
+ </a>
43
+ <a class="btn btn-warning premium-button add-space-separator" href="#" role="button">
44
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
45
+ <br>
46
+ <?php _e( 'Space Separator', 'yop-poll' );?>
47
+ </a>
48
+ <br />
49
+ <a class="btn btn-warning premium-button add-text-block" href="#" role="button">
50
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
51
+ <br>
52
+ <?php _e( 'Text Block', 'yop-poll' );?>
53
+ </a>
54
+ <a class="btn btn-warning premium-button add-text-block" href="#" role="button">
55
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
56
+ <br>
57
+ <?php _e( 'Text Area', 'yop-poll' );?>
58
+ </a>
59
+ <a class="btn btn-warning premium-button add-text-block" href="#" role="button">
60
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
61
+ <br>
62
+ <?php _e( 'Text Slider', 'yop-poll' );?>
63
+ </a>
64
+ <a class="btn btn-warning premium-button add-text-block" href="#" role="button">
65
+ <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
66
+ <br>
67
+ <?php _e( 'Countdown Timer', 'yop-poll' );?>
68
+ </a>
69
+ </div>
70
+ </div>
71
+ </span>
72
</div>
73
</div>
74
<div class="row">
admin/views/polls/add/options-access.php CHANGED
@@ -27,7 +27,7 @@
27
<div class="checkbox-inline">
28
<label class="admin-label">
29
<input type="checkbox" name="vote-permissions" class="vote-permissions" value="wordpress">
30
- <?php _e( 'Wordpress', 'yop-poll' );?>
31
</label>
32
</div>
33
<div class="checkbox-inline">
27
<div class="checkbox-inline">
28
<label class="admin-label">
29
<input type="checkbox" name="vote-permissions" class="vote-permissions" value="wordpress">
30
+ <?php _e( 'WordPress', 'yop-poll' );?>
31
</label>
32
</div>
33
<div class="checkbox-inline">
admin/views/polls/edit/elements.php CHANGED
@@ -9,40 +9,66 @@ include( YOP_POLL_PATH . 'admin/views/polls/elements-definitions.php' )
9
<div class="row">
10
<div class="col-md-12 buttons-row">
11
<span class="regular-buttons">
12
- <a class="btn btn-primary poll-element-add add-custom-field" href="#" role="button">
13
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
14
<br>
15
<?php _e( 'Custom Field', 'yop-poll' );?>
16
</a>
17
</span>
18
<span class="premium-buttons">
19
- <span class="premium">
20
- <a href="#" class="upgrade-to-pro" data-screen="multiple-questions">
21
- <img src="<?php echo YOP_POLL_URL;?>admin/assets/images/pro-vertical.svg" class="responsive" />
22
- </a>
23
- </span>
24
- <a class="btn btn-warning add-text-question" href="#" role="button">
25
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
26
- <br>
27
- <?php _e( 'Text Question', 'yop-poll' );?>
28
- </a>
29
- <a class="btn btn-warning add-media-question" href="#" role="button">
30
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
31
- <br>
32
- <?php _e( 'Media Question', 'yop-poll' );?>
33
- </a>
34
- <a class="btn btn-warning add-space-separator" href="#" role="button">
35
- <i class="glyphicon glyphicon-asterisk" aria-hidden="true"></i>
36
- <br>
37
- <?php _e( 'Space Separator', 'yop-poll' );?>
<