!function(n){n.extend(n.fn,{validate:function(t){if(!this.length)return void(t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(t.target).hasClass("cancel")&&(i.cancelSubmit=!0);void 0!==n(t.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(t){function r(){var r;return i.settings.submitHandler?(i.submitButton&&(r=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&r.remove(),!1):!0}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){var t,i;return n(this[0]).is("form")?t=this.validate().form():(t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t})),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var e,s,f,u,o,h,r=this[0];if(t)switch(e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r),t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(t,i){h[i]=f[i];delete f[i];"required"===i&&n(r).removeAttr("aria-required")}),h):(delete s[r.name],f)}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u),n(r).attr("aria-required","true")),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){return!!n.trim(""+n(t).val())},unchecked:function(t){return!n(t).prop("checked")}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return 1===arguments.length?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(n)).hide())},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n,t){(9!==t.which||""!==this.elementValue(n))&&(n.name in this.submitted||n===this.lastElement)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var r=n.data(this[0].form,"validator"),u="on"+t.type.replace(/^validate/,""),i=r.settings;i[u]&&!this.is(i.ignore)&&i[u].call(r,this[0],t)}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var t,r=this.groups={};n.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/));n.each(i,function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",i).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",i);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);n(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var u=this.clean(t),i=this.validationTargetFor(u),r=!0;return this.lastElement=i,void 0===i?delete this.invalid[u.name]:(this.prepareElement(i),this.currentElements=n(i),r=this.check(i)!==!1,r?delete this.invalid[i.name]:this.invalid[i.name]=!0),n(t).attr("aria-invalid",!r),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),r},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var i,t=0;for(i in n)t++;return t},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&1===n.grep(this.errorList,function(n){return n.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var i,r=n(t),u=r.attr("type");return"radio"===u||"checkbox"===u?n("input[name='"+r.attr("name")+"']:checked").val():(i=r.val(),"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var i,r,u,f=n(t).rules(),s=n.map(f,function(n,t){return t}).length,e=!1,h=this.elementValue(t);for(r in f){u={method:r,parameters:f[r]};try{if(i=n.validator.methods[r].call(this,h,t,u.parameters),"dependency-mismatch"===i&&1===s){e=!0;continue}if(e=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!i)return this.formatAndAdd(t,u),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+u.method+"' method.",o),o;}}if(!e)return this.objectLength(f)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i[0].toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(void 0!==arguments[n])return arguments[n];return void 0},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customDataMessage(t,i),!this.settings.ignoreTitle&&t.title||void 0,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(t,i){var r=this.defaultMessage(t,i.method),u=/\$?\{(\d+)\}/g;"function"==typeof r?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters));this.errorList.push({message:r,element:t,method:i.method});this.errorMap[t.name]=r;this.submitted[t.name]=r},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r=this.errorsFor(t);r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("for",this.idOrName(t)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(r=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(r).length||(this.settings.errorPlacement?this.settings.errorPlacement(r,n(t)):r.insertAfter(t)));!i&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var i=this.idOrName(t);return this.errors().filter(function(){return n(this).attr("for")===i})},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(n){return this.checkable(n)&&(n=this.findByName(n.name).not(this.settings.ignore)[0]),n},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+t+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var r,i,u={},e=n(t),f=t.getAttribute("type");for(r in n.validator.methods)"required"===r?(i=t.getAttribute(r),""===i&&(i=!0),i=!!i):i=e.attr(r),/min|max/.test(r)&&(null===f||/number|range|text/.test(f))&&(i=Number(i)),i||0===i?u[r]=i:f===r&&"range"!==f&&(u[r]=!0);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},dataRules:function(t){var i,r,u={},f=n(t);for(i in n.validator.methods)r=f.data("rule"+i[0].toUpperCase()+i.substring(1).toLowerCase()),void 0!==r&&(u[i]=r);return u},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1)return void delete t[r];if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=void 0!==u.param?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=void 0!==r?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:n.trim(t).length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var i,f,e=0,r=0,u=!1;if(n=n.replace(/\D/g,""),n.length<13||n.length>19)return!1;for(i=n.length-1;i>=0;i--)f=n.charAt(i),r=parseInt(f,10),u&&(r*=2)>9&&(r-=9),e+=r,u=!u;return e%10==0},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||r>=u},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||i>=n},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()},remote:function(t,i,r){if(this.optional(i))return"dependency-mismatch";var u,e,f=this.previousValue(i);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r="string"==typeof r&&{url:r}||r,f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,context:u.currentForm,success:function(r){var o,e,h,s=r===!0||"true"===r;u.settings.messages[i.name].remote=f.originalMessage;s?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),delete u.invalid[i.name],u.showErrors()):(o={},e=r||u.defaultMessage(i,"remote"),o[i.name]=f.message=n.isFunction(e)?e(t):e,u.invalid[i.name]=!0,u.showErrors(o));f.valid=s;u.stopRequest(i,s)}},r)),"pending")}}});n.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead.";}}(jQuery),function(n){var i,t={};n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;"abort"===n.mode&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return"abort"===f?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)})}(jQuery),function(n){n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}(jQuery);if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]}}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(jQuery);+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));i=n(r);t&&t.preventDefault();i.length||(i=u.hasClass("alert")?u:u.parent());i.trigger(t=n.Event("close.bs.alert"));t.isDefaultPrevented()||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r)},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(n){var i="disabled",t=this.$element,r=t.is("input")?"val":"html",u=t.data();n+="Text";u.resetText||t.data("resetText",t[r]());t[r](u[n]||this.options[n]);setTimeout(function(){"loadingText"==n?t.addClass(i).attr(i,i):t.removeClass(i).removeAttr(i)},0)};t.prototype.toggle=function(){var i=this.$element.closest('[data-toggle="buttons"]'),t=!0,n;i.length&&(n=this.$element.find("input"),"radio"===n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;"hover"==this.options.pause&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(0>t))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition.end&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f="next"==t?"left":"right",h="next"==t?"first":"last",o=this,e;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}if(this.sliding=!0,s&&this.pause(),e=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),!r.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var t=n(o.$indicators.children()[o.getActiveIndex()]);t&&t.addClass("active")})),n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;r.addClass(t);r[0].offsetWidth;u.addClass(f);r.addClass(f);u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));o.sliding=!1;setTimeout(function(){o.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;u.removeClass("active");r.addClass("active");this.sliding=!1;this.$element.trigger("slid.bs.carousel")}return s&&this.cycle(),this}};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var f,i=n(this),r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented()))return t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},n.support.transition?(this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350),void 0):r.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var r=n(this),u=r.data("bs.collapse"),f=n.extend({},t.DEFAULTS,r.data(),"object"==typeof i&&i);u||r.data("bs.collapse",u=new t(this,f));"string"==typeof i&&u[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var e,i=n(this),s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(jQuery);+function(n){"use strict";function r(){n(e).remove();n(i).each(function(t){var i=u(n(this));i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown")),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,e;if(!f.is(".disabled, :disabled")){if(i=u(f),e=i.hasClass("open"),r(),!e){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),i.trigger(t=n.Event("show.bs.dropdown")),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown");f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&27==t.keyCode)return 27==t.which&&o.find(i).focus(),e.click();f=n("[role=menu] li:not(.divider):visible a",o);f.length&&(r=f.index(f.filter(":focus")),38==t.keyCode&&r>0&&r--,40==t.keyCode&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu]",t.prototype.keydown)}(jQuery);+function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.load(this.options.remote)},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r);this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show();u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)}))};t.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())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.removeBackdrop();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){if(i=n.support.transition&&r,this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?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()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.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(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.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};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focus",s="hover"==u?"mouseleave":"blur",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show),void 0):i.show()};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide),void 0):i.hide()};t.prototype.show=function(){var o=n.Event("show.bs."+this.type),i,l;if(this.hasContent()&&this.enabled){if(this.$element.trigger(o),o.isDefaultPrevented())return;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,h=s.test(t);h&&(t=t.replace(s,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),u=i[0].offsetWidth,f=i[0].offsetHeight;if(h){var e=this.$element.parent(),a=t,c=document.documentElement.scrollTop||document.body.scrollTop,v="body"==this.options.container?window.innerWidth:e.outerWidth(),y="body"==this.options.container?window.innerHeight:e.outerHeight(),p="body"==this.options.container?0:e.offset().left;t="bottom"==t&&r.top+r.height+f-c>y?"top":"top"==t&&r.top-c-f<0?"bottom":"right"==t&&r.right+u>v?"left":"left"==t&&r.left-u<p?"right":t;i.removeClass(a).addClass(t)}l=this.getCalculatedOffset(t,r,u,f);this.applyPlacement(l,t);this.$element.trigger("shown.bs."+this.type)}};t.prototype.applyPlacement=function(n,t){var h,i=this.tip(),c=i[0].offsetWidth,f=i[0].offsetHeight,e=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10),u,r,s;isNaN(e)&&(e=0);isNaN(o)&&(o=0);n.top=n.top+e;n.left=n.left+o;i.offset(n).addClass("in");u=i[0].offsetWidth;r=i[0].offsetHeight;("top"==t&&r!=f&&(h=!0,n.top=n.top+f-r),/bottom|top/.test(t))?(s=0,n.left<0&&(s=-2*n.left,n.left=0,i.offset(n),u=i[0].offsetWidth,r=i[0].offsetHeight),this.replaceArrow(s-c+u,u,"left")):this.replaceArrow(r-f,r,"top");h&&i.offset(n)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function i(){"in"!=u.hoverState&&t.detach()}var u=this,t=this.tip(),r=n.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?t.one(n.support.transition.end,i).emulateTransitionEnd(150):i(),this.$element.trigger("hidden.bs."+this.type),this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;r||u.data("bs.tooltip",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.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>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle(),i=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](t);n.find(".popover-content")[this.options.html?"html":"text"](i);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;r||u.data("bs.popover",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i);this.$body=n("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=n([]);this.targets=n([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t;this.offsets=n([]);this.targets=n([]);t=this;this.$body.find(this.selector).map(function(){var f=n(this),r=f.data("target")||f.attr("href"),u=/^#\w/.test(r)&&n(r);return u&&u.length&&[[u[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parents(".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this};n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),(t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})})))};t.prototype.activate=function(t,i,r){function f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");e?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one(n.support.transition.end,f).emulateTransitionEnd(150):f();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(jQuery);+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i;if(this.$element.is(":visible")){var s=n(document).height(),e=this.$window.scrollTop(),o=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;"object"!=typeof r&&(u=f=r);"function"==typeof f&&(f=r.top());"function"==typeof u&&(u=r.bottom());i=null!=this.unpin&&e+this.unpin<=o.top?!1:null!=u&&o.top+this.$element.height()>=s-u?"bottom":null!=f&&f>=e?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?o.top-e:null,this.$element.removeClass(t.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-u-this.$element.height()}))}};i=n.fn.affix;n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.affix(t)})})}(jQuery);!function(n){"undefined"==typeof n.fn.each2&&n.extend(n.fn,{each2:function(t){for(var i=n([0]),r=-1,u=this.length;++r<u&&(i.context=i[0]=this[r])&&t.call(i[0],r,i)!==!1;);return this}})}(jQuery),function(n,t){"use strict";function h(n){var i,t,u,r;if(!n||n.length<1)return n;for(i="",t=0,u=n.length;u>t;t++)r=n.charAt(t),i+=kt[r]||r;return i}function f(n,t){for(var i=0,r=t.length;r>i;i+=1)if(u(n,t[i]))return i;return-1}function st(){var t=n(bt),i;return t.appendTo("body"),i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight},t.remove(),i}function u(n,i){return n===i?!0:n===t||i===t?!1:null===n||null===i?!1:n.constructor===String?n+""==i+"":i.constructor===String?i+""==n+"":!1}function v(t,i){var r,u,f;if(null===t||t.length<1)return[];for(r=t.split(i),u=0,f=r.length;f>u;u+=1)r[u]=n.trim(r[u]);return r}function d(n){return n.outerWidth(!1)-n.width()}function g(i){var r="keyup-change-value";i.on("keydown",function(){n.data(i,r)===t&&n.data(i,r,i.val())});i.on("keyup",function(){var u=n.data(i,r);u!==t&&i.val()!==u&&(n.removeData(i,r),i.trigger("keyup-change"))})}function ht(i){i.on("mousemove",function(i){var r=k;(r===t||r.x!==i.pageX||r.y!==i.pageY)&&n(i.target).trigger("mousemove-filtered",i)})}function nt(n,i,r){r=r||t;var u;return function(){var t=arguments;window.clearTimeout(u);u=window.setTimeout(function(){i.apply(r,t)},n)}}function ct(n){var t,i=!1;return function(){return i===!1&&(t=n(),i=!0),t}}function lt(n,t){var i=nt(n,function(n){t.trigger("scroll-debounced",n)});t.on("scroll",function(n){f(n.target,t.get())>=0&&i(n)})}function at(n){n[0]!==document.activeElement&&window.setTimeout(function(){var i,t=n[0],r=n.val().length;n.focus();n.is(":visible")&&t===document.activeElement&&(t.setSelectionRange?t.setSelectionRange(r,r):t.createTextRange&&(i=t.createTextRange(),i.collapse(!1),i.select()))},0)}function vt(t){var i,r,u;return t=n(t)[0],i=0,r=0,"selectionStart"in t?(i=t.selectionStart,r=t.selectionEnd-i):"selection"in document&&(t.focus(),u=document.selection.createRange(),r=document.selection.createRange().text.length,u.moveStart("character",-t.value.length),i=u.text.length-r),{offset:i,length:r}}function r(n){n.preventDefault();n.stopPropagation()}function yt(n){n.preventDefault();n.stopImmediatePropagation()}function pt(t){if(!s){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);s=n(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"});s.attr("class","select2-sizer");n("body").append(s)}return s.text(t.val()),s.width()}function c(t,i,r){var u,f,e=[];u=t.attr("class");u&&(u=""+u,n(u.split(" ")).each2(function(){0===this.indexOf("select2-")&&e.push(this)}));u=i.attr("class");u&&(u=""+u,n(u.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(f=r(this),f&&e.push(f))}));t.attr("class",e.join(" "))}function tt(n,t,i,r){var u=h(n.toUpperCase()).indexOf(h(t.toUpperCase())),f=t.length;return 0>u?(i.push(r(n)),void 0):(i.push(r(n.substring(0,u))),i.push("<span class='select2-match'>"),i.push(r(n.substring(u,u+f))),i.push("<\/span>"),i.push(r(n.substring(u+f,n.length))),void 0)}function it(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})}function rt(i){var f,u=null,e=i.quietMillis||100,o=i.url,r=this;return function(s){window.clearTimeout(f);f=window.setTimeout(function(){var e=i.data,f=o,c=i.transport||n.fn.select2.ajaxDefaults.transport,l={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},h=n.extend({},n.fn.select2.ajaxDefaults.params,l);e=e?e.call(r,s.term,s.page,s.context):null;f="function"==typeof f?f.call(r,s.term,s.page,s.context):f;u&&u.abort();i.params&&(n.isFunction(i.params)?n.extend(h,i.params.call(r)):n.extend(h,i.params));n.extend(h,{url:f,dataType:i.dataType,data:e,success:function(n){var t=i.results(n,s.page);s.callback(t)}});u=c.call(r,h)},e)}}function ut(t){var e,u,i=t,r=function(n){return""+n.text},f;return n.isArray(i)&&(u=i,i={results:u}),n.isFunction(i)===!1&&(u=i,i=function(){return u}),f=i(),f.text&&(r=f.text,n.isFunction(r)||(e=f.text,r=function(n){return n[e]})),function(t){var u,f=t.term,e={results:[]};return""===f?(t.callback(i()),void 0):(u=function(i,e){var o,s;if(i=i[0],i.children){o={};for(s in i)i.hasOwnProperty(s)&&(o[s]=i[s]);o.children=[];n(i.children).each2(function(n,t){u(t,o.children)});(o.children.length||t.matcher(f,r(o),i))&&e.push(o)}else t.matcher(f,r(i),i)&&e.push(i)},n(i().results).each2(function(n,t){u(t,e.results)}),t.callback(e),void 0)}}function ft(i){var r=n.isFunction(i);return function(u){var f=u.term,e={results:[]};n(r?i():i).each(function(){var n=this.text!==t,i=n?this.text:this;(""===f||u.matcher(f,i))&&e.results.push(n?this:{id:this,text:this})});u.callback(e)}}function o(t,i){if(n.isFunction(t))return!0;if(!t)return!1;throw new Error(i+" must be a function or a falsy value");}function e(t){return n.isFunction(t)?t():t}function et(t){var i=0;return n.each(t,function(n,t){t.children?i+=et(t.children):i++}),i}function wt(n,i,r,f){var e,s,o,h,c,a=n,l=!1;if(!f.createSearchChoice||!f.tokenSeparators||f.tokenSeparators.length<1)return t;for(;;){for(s=-1,o=0,h=f.tokenSeparators.length;h>o&&(c=f.tokenSeparators[o],s=n.indexOf(c),!(s>=0));o++);if(0>s)break;if(e=n.substring(0,s),n=n.substring(s+c.length),e.length>0&&(e=f.createSearchChoice.call(this,e,i),e!==t&&null!==e&&f.id(e)!==t&&null!==f.id(e))){for(l=!1,o=0,h=i.length;h>o;o++)if(u(f.id(e),f.id(i[o]))){l=!0;break}l||r(e)}}if(a!==n)return n}function y(t,i){var r=function(){};return r.prototype=new t,r.prototype.constructor=r,r.prototype.parent=t.prototype,r.prototype=n.extend(r.prototype,i),r}if(window.Select2===t){var l,p,w,a,s,ot,b,k={x:0,y:0},i={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(n){switch(n=n.which?n.which:n){case i.LEFT:case i.RIGHT:case i.UP:case i.DOWN:return!0}return!1},isControl:function(n){var t=n.which;switch(t){case i.SHIFT:case i.CTRL:case i.ALT:return!0}return n.metaKey?!0:!1},isFunctionKey:function(n){return n=n.which?n.which:n,n>=112&&123>=n}},bt="<div class='select2-measure-scrollbar'><\/div>",kt={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z"};ot=n(document);a=function(){var n=1;return function(){return n++}}();ot.on("mousemove",function(n){k.x=n.pageX;k.y=n.pageY});l=y(Object,{bind:function(n){var t=this;return function(){n.apply(t,arguments)}},init:function(i){var u,f,o=".select2-results",s,h;this.opts=i=this.prepareOpts(i);this.id=i.id;i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy();this.container=this.createContainer();this.containerId="s2id_"+(i.element.attr("id")||"autogen"+a());this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1");this.container.attr("id",this.containerId);this.body=ct(function(){return i.element.closest("body")});c(this.container,this.opts.element,this.opts.adaptContainerCssClass);this.container.attr("style",i.element.attr("style"));this.container.css(e(i.containerCss));this.container.addClass(e(i.containerCssClass));this.elementTabIndex=this.opts.element.attr("tabindex");this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",r);this.container.data("select2",this);this.dropdown=this.container.find(".select2-drop");c(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass);this.dropdown.addClass(e(i.dropdownCssClass));this.dropdown.data("select2",this);this.dropdown.on("click",r);this.results=u=this.container.find(o);this.search=f=this.container.find("input.select2-input");this.queryCount=0;this.resultsPage=0;this.context=null;this.initContainer();this.container.on("click",r);ht(this.results);this.dropdown.on("mousemove-filtered touchstart touchmove touchend",o,this.bind(this.highlightUnderEvent));lt(80,this.results);this.dropdown.on("scroll-debounced",o,this.bind(this.loadMoreIfNeeded));n(this.container).on("change",".select2-input",function(n){n.stopPropagation()});n(this.dropdown).on("change",".select2-input",function(n){n.stopPropagation()});n.fn.mousewheel&&u.mousewheel(function(n,t,i,f){var e=u.scrollTop();f>0&&0>=e-f?(u.scrollTop(0),r(n)):0>f&&u.get(0).scrollHeight-u.scrollTop()+f<=u.height()&&(u.scrollTop(u.get(0).scrollHeight-u.height()),r(n))});g(f);f.on("keyup-change input paste",this.bind(this.updateResults));f.on("focus",function(){f.addClass("select2-focused")});f.on("blur",function(){f.removeClass("select2-focused")});this.dropdown.on("mouseup",o,this.bind(function(t){n(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))}));this.dropdown.on("click mouseup mousedown",function(n){n.stopPropagation()});n.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource());null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);s=i.element.prop("disabled");s===t&&(s=!1);this.enable(!s);h=i.element.prop("readonly");h===t&&(h=!1);this.readonly(h);b=b||st();this.autofocus=i.element.prop("autofocus");i.element.prop("autofocus",!1);this.autofocus&&this.focus();this.nextSearchTerm=t},destroy:function(){var n=this.opts.element,i=n.data("select2");this.close();this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null);i!==t&&(i.container.remove(),i.dropdown.remove(),n.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?n.attr({tabindex:this.elementTabIndex}):n.removeAttr("tabindex"),n.show())},optionToData:function(n){return n.is("option")?{id:n.prop("value"),text:n.text(),element:n.get(),css:n.attr("class"),disabled:n.prop("disabled"),locked:u(n.attr("locked"),"locked")||u(n.data("locked"),!0)}:n.is("optgroup")?{text:n.attr("label"),children:[],element:n.get(),css:n.attr("class")}:void 0},prepareOpts:function(i){var e,o,s,r,f=this;if(e=i.element,"select"===e.get(0).tagName.toLowerCase()&&(this.select=o=i.element),o&&n.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.");}),i=n.extend({},{populateResults:function(r,u,e){var o,s=this.opts.id;o=function(r,u,h){var v,k,l,d,p,w,c,a,y,b;for(r=i.sortResults(r,u,e),v=0,k=r.length;k>v;v+=1)l=r[v],p=l.disabled===!0,d=!p&&s(l)!==t,w=l.children&&l.children.length>0,c=n("<li><\/li>"),c.addClass("select2-results-dept-"+h),c.addClass("select2-result"),c.addClass(d?"select2-result-selectable":"select2-result-unselectable"),p&&c.addClass("select2-disabled"),w&&c.addClass("select2-result-with-children"),c.addClass(f.opts.formatResultCssClass(l)),a=n(document.createElement("div")),a.addClass("select2-result-label"),b=i.formatResult(l,a,e,f.opts.escapeMarkup),b!==t&&a.html(b),c.append(a),w&&(y=n("<ul><\/ul>"),y.addClass("select2-result-sub"),o(l.children,y,h+1),c.append(y)),c.data("select2-data",l),u.append(c)};o(u,r,0)}},n.fn.select2.defaults,i),"function"!=typeof i.id&&(s=i.id,i.id=function(n){return n[s]}),n.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(o?(i.query=this.bind(function(n){var i,r,u,o={results:[],more:!1},s=n.term;u=function(t,i){var r;t.is("option")?n.matcher(s,t.text(),t)&&i.push(f.optionToData(t)):t.is("optgroup")&&(r=f.optionToData(t),t.children().each2(function(n,t){u(t,r.children)}),r.children.length>0&&i.push(r))};i=e.children();this.getPlaceholder()!==t&&i.length>0&&(r=this.getPlaceholderOption(),r&&(i=i.not(r)));i.each2(function(n,t){u(t,o.results)});n.callback(o)}),i.id=function(n){return n.id},i.formatResultCssClass=function(n){return n.css}):"query"in i||("ajax"in i?(r=i.element.data("ajax-url"),r&&r.length>0&&(i.ajax.url=r),i.query=rt.call(i.element,i.ajax)):"data"in i?i.query=ut(i.data):"tags"in i&&(i.query=ft(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:n.trim(t),text:n.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,r){var f=[];n(v(t.val(),i.separator)).each(function(){var r={id:this,text:this},t=i.tags;n.isFunction(t)&&(t=t());n(t).each(function(){if(u(this.id,r.id))return(r=this,!1)});f.push(r)});r(f)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");return i},monitorSource:function(){var i,r,n=this.opts.element;n.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()}));i=this.bind(function(){var r=n.prop("disabled"),i;r===t&&(r=!1);this.enable(!r);i=n.prop("readonly");i===t&&(i=!1);this.readonly(i);c(this.container,this.opts.element,this.opts.adaptContainerCssClass);this.container.addClass(e(this.opts.containerCssClass));c(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass);this.dropdown.addClass(e(this.opts.dropdownCssClass))});n.on("propertychange.select2",i);this.mutationCallback===t&&(this.mutationCallback=function(n){n.forEach(i)});r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;r!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new r(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=n.Event("select2-selecting",{val:this.id(t),object:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{};t=n.extend({},t,{type:"change",val:this.val()});this.opts.element.data("select2-change-triggered",!0);this.opts.element.trigger(t);this.opts.element.data("select2-change-triggered",!1);this.opts.element.click();this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return this.enabledInterface===!0},enableInterface:function(){var n=this._enabled&&!this._readonly,t=!n;return n===this.enabledInterface?!1:(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=n,!0)},enable:function(n){n===t&&(n=!0);this._enabled!==n&&(this._enabled=n,this.opts.element.prop("disabled",!n),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(n){return n===t&&(n=!1),this._readonly===n?!1:(this._readonly=n,this.opts.element.prop("readonly",n),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var a,h,v,r,y,t=this.dropdown,u=this.container.offset(),p=this.container.outerHeight(!1),o=this.container.outerWidth(!1),w=t.outerHeight(!1),s=n(window),g=s.width(),k=s.height(),c=s.scrollLeft()+g,nt=s.scrollTop()+k,l=u.top+p,f=u.left,tt=nt>=l+w,it=u.top-w>=this.body().scrollTop(),i=t.outerWidth(!1),d=c>=f+i,rt=t.hasClass("select2-drop-above");rt?(h=!0,!it&&tt&&(v=!0,h=!1)):(h=!1,!tt&&it&&(v=!0,h=!0));v&&(t.hide(),u=this.container.offset(),p=this.container.outerHeight(!1),o=this.container.outerWidth(!1),w=t.outerHeight(!1),c=s.scrollLeft()+g,nt=s.scrollTop()+k,l=u.top+p,f=u.left,i=t.outerWidth(!1),d=c>=f+i,t.show());this.opts.dropdownAutoWidth?(y=n(".select2-results",t)[0],t.addClass("select2-drop-auto-width"),t.css("width",""),i=t.outerWidth(!1)+(y.scrollHeight===y.clientHeight?0:b.width),i>o?o=i:i=o,d=c>=f+i):this.container.removeClass("select2-drop-auto-width");"static"!==this.body().css("position")&&(a=this.body().offset(),l-=a.top,f-=a.left);d||(f=u.left+o-i);r={left:f,width:o};h?(r.bottom=k-u.top,r.top="auto",this.container.addClass("select2-drop-above"),t.addClass("select2-drop-above")):(r.top=l,r.bottom="auto",this.container.removeClass("select2-drop-above"),t.removeClass("select2-drop-above"));r=n.extend(r,e(this.opts.dropdownCss));t.css(r)},shouldOpen:function(){var t;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(t=n.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above");this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(this.opening(),!0):!1},opening:function(){var t,i=this.containerId,u="scroll."+i,f="resize."+i,e="orientationchange."+i,r;this.container.addClass("select2-dropdown-open").addClass("select2-container-active");this.clearDropdownAlignmentPreference();this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body());t=n("#select2-drop-mask");0==t.length&&(t=n(document.createElement("div")),t.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",function(t){var i,r=n("#select2-drop");r.length>0&&(i=r.data("select2"),i.opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),t.preventDefault(),t.stopPropagation())}));this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t);n("#select2-drop").removeAttr("id");this.dropdown.attr("id","select2-drop");t.show();this.positionDropdown();this.dropdown.show();this.positionDropdown();this.dropdown.addClass("select2-drop-active");r=this;this.container.parents().add(window).each(function(){n(this).on(f+" "+u+" "+e,function(){r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerId,i="scroll."+t,r="resize."+t,u="orientationchange."+t;this.container.parents().add(window).each(function(){n(this).off(i).off(r).off(u)});this.clearDropdownAlignmentPreference();n("#select2-drop-mask").hide();this.dropdown.removeAttr("id");this.dropdown.hide();this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active");this.results.empty();this.clearSearch();this.search.removeClass("select2-active");this.opts.element.trigger(n.Event("select2-close"))}},externalSearch:function(n){this.open();this.search.val(n);this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return e(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,i,r,u,o,s,f,t=this.results;if(i=this.highlight(),!(0>i)){if(0==i)return t.scrollTop(0),void 0;e=this.findHighlightableChoices().find(".select2-result-label");r=n(e[i]);u=r.offset().top+r.outerHeight(!0);i===e.length-1&&(f=t.find("li.select2-more-results"),f.length>0&&(u=f.offset().top+f.outerHeight(!0)));o=t.offset().top+t.outerHeight(!0);u>o&&t.scrollTop(t.scrollTop()+(u-o));s=r.offset().top-t.offset().top;0>s&&"none"!=r.css("display")&&t.scrollTop(t.scrollTop()+s)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(t){for(var r,u=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<u.length;)if(i+=t,r=n(u[i]),r.hasClass("select2-result-selectable")&&!r.hasClass("select2-disabled")&&!r.hasClass("select2-selected")){this.highlight(i);break}},highlight:function(t){var u,r,i=this.findHighlightableChoices();return 0===arguments.length?f(i.filter(".select2-highlighted")[0],i.get()):(t>=i.length&&(t=i.length-1),0>t&&(t=0),this.removeHighlight(),u=n(i[t]),u.addClass("select2-highlighted"),this.ensureHighlightVisible(),r=u.data("select2-data"),r&&this.opts.element.trigger({type:"select2-highlight",val:this.id(r),choice:r}),void 0)},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=n(t.target).closest(".select2-result-selectable"),r;i.length>0&&!i.is(".select2-highlighted")?(r=this.findHighlightableChoices(),this.highlight(r.index(i))):0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var u,t=this.results,i=t.find("li.select2-more-results"),r=this.resultsPage+1,n=this,f=this.search.val(),e=this.context;0!==i.length&&(u=i.offset().top-t.offset().top-t.height(),u<=this.opts.loadMorePadding&&(i.addClass("select2-active"),this.opts.query({element:this.opts.element,term:f,page:r,context:e,matcher:this.opts.matcher,callback:this.bind(function(u){n.opened()&&(n.opts.populateResults.call(this,t,u.results,{term:f,page:r,context:e}),n.postprocessResults(u,!1,!1),u.more===!0?(i.detach().appendTo(t).text(n.opts.formatLoadMore(r+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):i.remove(),n.positionDropdown(),n.resultsPage=r,n.context=u.context,this.opts.element.trigger({type:"select2-loaded",items:u}))})})))},tokenize:function(){},updateResults:function(i){function v(){f.removeClass("select2-active");e.positionDropdown()}function s(n){c.html(n);v()}var a,h,y,f=this.search,c=this.results,r=this.opts,e=this,p=f.val(),w=n.data(this.container,"select2-last-term"),l;if((i===!0||!w||!u(p,w))&&(n.data(this.container,"select2-last-term",p),i===!0||this.showSearchInput!==!1&&this.opened())){if(y=++this.queryCount,l=this.getMaximumSelectionSize(),l>=1&&(a=this.data(),n.isArray(a)&&a.length>=l&&o(r.formatSelectionTooBig,"formatSelectionTooBig")))return s("<li class='select2-selection-limit'>"+r.formatSelectionTooBig(l)+"<\/li>"),void 0;if(f.val().length<r.minimumInputLength)return o(r.formatInputTooShort,"formatInputTooShort")?s("<li class='select2-no-results'>"+r.formatInputTooShort(f.val(),r.minimumInputLength)+"<\/li>"):s(""),i&&this.showSearch&&this.showSearch(!0),void 0;if(r.maximumInputLength&&f.val().length>r.maximumInputLength)return o(r.formatInputTooLong,"formatInputTooLong")?s("<li class='select2-no-results'>"+r.formatInputTooLong(f.val(),r.maximumInputLength)+"<\/li>"):s(""),void 0;r.formatSearching&&0===this.findHighlightableChoices().length&&s("<li class='select2-searching'>"+r.formatSearching()+"<\/li>");f.addClass("select2-active");this.removeHighlight();h=this.tokenize();h!=t&&null!=h&&f.val(h);this.resultsPage=1;r.query({element:r.element,term:f.val(),page:this.resultsPage,context:null,matcher:r.matcher,callback:this.bind(function(h){var l;if(y==this.queryCount){if(!this.opened())return this.search.removeClass("select2-active"),void 0;if(this.context=h.context===t?null:h.context,this.opts.createSearchChoice&&""!==f.val()&&(l=this.opts.createSearchChoice.call(e,f.val(),h.results),l!==t&&null!==l&&e.id(l)!==t&&null!==e.id(l)&&0===n(h.results).filter(function(){return u(e.id(this),e.id(l))}).length&&h.results.unshift(l)),0===h.results.length&&o(r.formatNoMatches,"formatNoMatches"))return s("<li class='select2-no-results'>"+r.formatNoMatches(f.val())+"<\/li>"),void 0;c.empty();e.opts.populateResults.call(this,c,h.results,{term:f.val(),page:this.resultsPage,context:null});h.more===!0&&o(r.formatLoadMore,"formatLoadMore")&&(c.append("<li class='select2-more-results'>"+e.opts.escapeMarkup(r.formatLoadMore(this.resultsPage))+"<\/li>"),window.setTimeout(function(){e.loadMoreIfNeeded()},10));this.postprocessResults(h,i);v();this.opts.element.trigger({type:"select2-loaded",items:h})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0});this.close();this.container.removeClass("select2-container-active");this.search[0]===document.activeElement&&this.search.blur();this.clearSearch();this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){at(this.search)},selectHighlighted:function(n){var i=this.highlight(),r=this.results.find(".select2-highlighted"),t=r.closest(".select2-result").data("select2-data");t?(this.highlight(i),this.onSelect(t,n)):n&&n.noFocus&&this.close()},getPlaceholder:function(){var n;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((n=this.getPlaceholderOption())!==t?n.text():t)},getPlaceholderOption:function(){if(this.select){var n=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&n||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===n.text()&&""===n.val())return n}},initContainerWidth:function(){function r(){var i,f,r,u,e,o;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(i=this.opts.element.attr("style"),i!==t)for(f=i.split(";"),u=0,e=f.length;e>u;u+=1)if(o=f[u].replace(/\s/g,""),r=o.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==r&&r.length>=1)return r[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width"),i.indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return n.isFunction(this.opts.width)?this.opts.width():this.opts.width}var i=r.call(this);null!==i&&this.container.css("width",i)}});p=y(l,{createContainer:function(){return n(document.createElement("div")).attr({"class":"select2-container"}).html("<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>   <span class='select2-chosen'>&nbsp;<\/span><abbr class='select2-search-choice-close'><\/abbr>   <span class='select2-arrow'><b><\/b><\/span><\/a><input class='select2-focusser select2-offscreen' type='text'/><div class='select2-drop select2-display-none'>   <div class='select2-search'>       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>   <\/div>   <ul class='select2-results'>   <\/ul><\/div>")},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,r,u;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0);this.parent.opening.apply(this,arguments);this.showSearchInput!==!1&&this.search.val(this.focusser.val());this.search.focus();i=this.search.get(0);i.createTextRange?(r=i.createTextRange(),r.collapse(!1),r.select()):i.setSelectionRange&&(u=this.search.val().length,i.setSelectionRange(u,u));""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select());this.focusser.prop("disabled",!0).val("");this.updateResults(!0);this.opts.element.trigger(n.Event("select2-open"))},close:function(n){this.opened()&&(this.parent.close.apply(this,arguments),n=n||{focus:!0},this.focusser.removeAttr("disabled"),n.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments);this.focusser.removeAttr("disabled");this.focusser.focus()},destroy:function(){n("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id"));this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,u=this.container,f=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0);this.selection=t=u.find(".select2-choice");this.focusser=u.find(".select2-focusser");this.focusser.attr("id","s2id_autogen"+a());n("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id"));this.focusser.attr("tabindex",this.elementTabIndex);this.search.on("keydown",this.bind(function(n){if(this.isInterfaceEnabled()){if(n.which===i.PAGE_UP||n.which===i.PAGE_DOWN)return r(n),void 0;switch(n.which){case i.UP:case i.DOWN:return this.moveHighlight(n.which===i.UP?-1:1),r(n),void 0;case i.ENTER:return this.selectHighlighted(),r(n),void 0;case i.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case i.ESC:return this.cancel(n),r(n),void 0}}}));this.search.on("blur",this.bind(function(){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)}));this.focusser.on("keydown",this.bind(function(n){if(this.isInterfaceEnabled()&&n.which!==i.TAB&&!i.isControl(n)&&!i.isFunctionKey(n)&&n.which!==i.ESC)return this.opts.openOnEnter===!1&&n.which===i.ENTER?(r(n),void 0):n.which==i.DOWN||n.which==i.UP||n.which==i.ENTER&&this.opts.openOnEnter?n.altKey||n.ctrlKey||n.shiftKey||n.metaKey?void 0:(this.open(),r(n),void 0):n.which==i.DELETE||n.which==i.BACKSPACE?(this.opts.allowClear&&this.clear(),r(n),void 0):void 0}));g(this.focusser);this.focusser.on("keyup-change input",this.bind(function(n){if(this.opts.minimumResultsForSearch>=0){if(n.stopPropagation(),this.opened())return;this.open()}}));t.on("mousedown","abbr",this.bind(function(n){this.isInterfaceEnabled()&&(this.clear(),yt(n),this.close(),this.selection.focus())}));t.on("mousedown",this.bind(function(t){this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.opened()?this.close():this.isInterfaceEnabled()&&this.open();r(t)}));f.on("mousedown",this.bind(function(){this.search.focus()}));t.on("focus",this.bind(function(n){r(n)}));this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(n.Event("select2-blur")))}));this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.container.addClass("select2-container-active")}));this.initContainerWidth();this.opts.element.addClass("select2-offscreen");this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data"),r,u;if(i){if(r=n.Event("select2-clearing"),this.opts.element.trigger(r),r.isDefaultPrevented())return;u=this.getPlaceholderOption();this.opts.element.val(u?u.val():"");this.selection.find(".select2-chosen").empty();this.selection.removeData("select2-data");this.setPlaceholder();t!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var n=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(n.updateSelection(i),n.close(),n.setPlaceholder())})}},isPlaceholderOptionSelected:function(){var n;return this.getPlaceholder()?(n=this.getPlaceholderOption())!==t&&n.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val():!1},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(n,t){var r=n.find("option").filter(function(){return this.selected});t(i.optionToData(r))}:"data"in t&&(t.initSelection=t.initSelection||function(i,r){var e=i.val(),f=null;t.query({matcher:function(n,i,r){var o=u(e,t.id(r));return o&&(f=r),o},callback:n.isFunction(r)?function(){r(f)}:n.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var n=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&n!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(n));this.selection.addClass("select2-default");this.container.removeClass("select2-allowclear")}},postprocessResults:function(n,t,i){var r=0,e=this,f;(this.findHighlightableChoices().each2(function(n,t){if(u(e.id(t.data("select2-data")),e.opts.element.val()))return(r=n,!1)}),i!==!1&&(t===!0&&r>=0?this.highlight(r):this.highlight(0)),t===!0)&&(f=this.opts.minimumResultsForSearch,f>=0&&this.showSearch(et(n.results)>=f))},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),n(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(n,t){if(this.triggerSelect(n)){var i=this.opts.element.val(),r=this.data();this.opts.element.val(this.id(n));this.updateSelection(n);this.opts.element.trigger({type:"select2-selected",val:this.id(n),choice:n});this.nextSearchTerm=this.opts.nextSearchTerm(n,this.search.val());this.close();t&&t.noFocus||this.focusser.focus();u(i,this.id(n))||this.triggerChange({added:n,removed:r})}},updateSelection:function(n){var r,u,i=this.selection.find(".select2-chosen");this.selection.data("select2-data",n);i.empty();null!==n&&(r=this.opts.formatSelection(n,i,this.opts.escapeMarkup));r!==t&&i.append(r);u=this.opts.formatSelectionCssClass(n,i);u!==t&&i.addClass(u);this.selection.removeClass("select2-default");this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var i,r=!1,u=null,n=this,f=this.data();if(0===arguments.length)return this.opts.element.val();if(i=arguments[0],arguments.length>1&&(r=arguments[1]),this.select)this.select.val(i).find("option").filter(function(){return this.selected}).each2(function(t,i){return u=n.optionToData(i),!1}),this.updateSelection(u),this.setPlaceholder(),r&&this.triggerChange({added:u,removed:f});else{if(!i&&0!==i)return this.clear(r),void 0;if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(i);this.opts.initSelection(this.opts.element,function(t){n.opts.element.val(t?n.id(t):"");n.updateSelection(t);n.setPlaceholder();r&&n.triggerChange({added:t,removed:f})})}},clearSearch:function(){this.search.val("");this.focusser.val("")},data:function(n){var i,r=!1;return 0===arguments.length?(i=this.selection.data("select2-data"),i==t&&(i=null),i):(arguments.length>1&&(r=arguments[1]),n?(i=this.data(),this.opts.element.val(n?this.id(n):""),this.updateSelection(n),r&&this.triggerChange({added:n,removed:i})):this.clear(r),void 0)}});w=y(l,{createContainer:function(){return n(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html("<ul class='select2-choices'>  <li class='select2-search-field'>    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>  <\/li><\/ul><div class='select2-drop select2-drop-multi select2-display-none'>   <ul class='select2-results'>   <\/ul><\/div>")},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(n,t){var r=[];n.find("option").filter(function(){return this.selected}).each2(function(n,t){r.push(i.optionToData(t))});t(r)}:"data"in t&&(t.initSelection=t.initSelection||function(i,r){var e=v(i.val(),t.separator),f=[];t.query({matcher:function(i,r,o){var s=n.grep(e,function(n){return u(n,t.id(o))}).length;return s&&f.push(o),s},callback:n.isFunction(r)?function(){for(var h,n,s,o=[],i=0;i<e.length;i++)for(h=e[i],n=0;n<f.length;n++)if(s=f[n],u(h,t.id(s))){o.push(s);f.splice(n,1);break}r(o)}:n.noop})}),t},selectChoice:function(n){var t=this.container.find(".select2-search-choice-focus");t.length&&n&&n[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),n&&n.length&&(this.close(),n.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",n)))},destroy:function(){n("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id"));this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,u=".select2-choices",f;this.searchContainer=this.container.find(".select2-search-field");this.selection=t=this.container.find(u);f=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){f.search[0].focus();f.selectChoice(n(this))});this.search.attr("id","s2id_autogen"+a());n("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id"));this.search.on("input paste",this.bind(function(){this.isInterfaceEnabled()&&(this.opened()||this.open())}));this.search.attr("tabindex",this.elementTabIndex);this.keydowns=0;this.search.on("keydown",this.bind(function(n){var u;if(this.isInterfaceEnabled()){++this.keydowns;var f=t.find(".select2-search-choice-focus"),o=f.prev(".select2-search-choice:not(.select2-locked)"),e=f.next(".select2-search-choice:not(.select2-locked)"),s=vt(this.search);if(f.length&&(n.which==i.LEFT||n.which==i.RIGHT||n.which==i.BACKSPACE||n.which==i.DELETE||n.which==i.ENTER))return u=f,n.which==i.LEFT&&o.length?u=o:n.which==i.RIGHT?u=e.length?e:null:n.which===i.BACKSPACE?(this.unselect(f.first()),this.search.width(10),u=o.length?o:e):n.which==i.DELETE?(this.unselect(f.first()),this.search.width(10),u=e.length?e:null):n.which==i.ENTER&&(u=null),this.selectChoice(u),r(n),u&&u.length||this.open(),void 0;if((n.which===i.BACKSPACE&&1==this.keydowns||n.which==i.LEFT)&&0==s.offset&&!s.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),r(n),void 0;if(this.selectChoice(null),this.opened())switch(n.which){case i.UP:case i.DOWN:return this.moveHighlight(n.which===i.UP?-1:1),r(n),void 0;case i.ENTER:return this.selectHighlighted(),r(n),void 0;case i.TAB:return this.selectHighlighted({noFocus:!0}),this.close(),void 0;case i.ESC:return this.cancel(n),r(n),void 0}if(n.which!==i.TAB&&!i.isControl(n)&&!i.isFunctionKey(n)&&n.which!==i.BACKSPACE&&n.which!==i.ESC){if(n.which===i.ENTER){if(this.opts.openOnEnter===!1)return;if(n.altKey||n.ctrlKey||n.shiftKey||n.metaKey)return}this.open();(n.which===i.PAGE_UP||n.which===i.PAGE_DOWN)&&r(n);n.which===i.ENTER&&r(n)}}}));this.search.on("keyup",this.bind(function(){this.keydowns=0;this.resizeSearch()}));this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active");this.search.removeClass("select2-focused");this.selectChoice(null);this.opened()||this.clearSearch();t.stopImmediatePropagation();this.opts.element.trigger(n.Event("select2-blur"))}));this.container.on("click",u,this.bind(function(t){this.isInterfaceEnabled()&&(n(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))}));this.container.on("focus",u,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}));this.initContainerWidth();this.opts.element.addClass("select2-offscreen");this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var n=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(n.updateSelection(i),n.close(),n.clearSearch())})}},clearSearch:function(){var n=this.getPlaceholder(),i=this.getMaxSearchWidth();n!==t&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(n).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder();this.resizeSearch();this.parent.opening.apply(this,arguments);this.focusSearch();this.updateResults(!0);this.search.focus();this.opts.element.trigger(n.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close();this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var r=[],u=[],i=this;n(t).each(function(){f(i.id(this),r)<0&&(r.push(i.id(this)),u.push(this))});t=u;this.selection.find(".select2-search-choice").remove();n(t).each(function(){i.addSelectedChoice(this)});i.postprocessResults()},tokenize:function(){var n=this.search.val();n=this.opts.tokenizer.call(this,n,this.data(),this.bind(this.onSelect),this.opts);null!=n&&n!=t&&(this.search.val(n),n.length>0&&this.open())},onSelect:function(n,t){this.triggerSelect(n)&&(this.addSelectedChoice(n),this.opts.element.trigger({type:"selected",val:this.id(n),choice:n}),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(n,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:n}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close();this.focusSearch()},addSelectedChoice:function(i){var f,e,o=!i.locked,h=n("<li class='select2-search-choice'>    <div><\/div>    <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'><\/a><\/li>"),c=n("<li class='select2-search-choice select2-locked'><div><\/div><\/li>"),u=o?h:c,l=this.id(i),s=this.getVal();f=this.opts.formatSelection(i,u.find("div"),this.opts.escapeMarkup);f!=t&&u.find("div").replaceWith("<div>"+f+"<\/div>");e=this.opts.formatSelectionCssClass(i,u.find("div"));e!=t&&u.addClass(e);o&&u.find(".select2-search-choice-close").on("mousedown",r).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(n(t.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(n(t.target));this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");this.close();this.focusSearch()})).dequeue(),r(t))})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}));u.data("select2-data",i);u.insertBefore(this.searchContainer);s.push(l);this.setVal(s)},unselect:function(t){var i,e,u=this.getVal(),r;if(t=t.closest(".select2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){for(;(e=f(this.id(i),u))>=0;)u.splice(e,1),this.setVal(u),this.select&&this.postprocessResults();r=n.Event("select2-removing");r.val=this.id(i);r.choice=i;this.opts.element.trigger(r);r.isDefaultPrevented()||(t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(n,t,i){var e=this.getVal(),u=this.results.find(".select2-result"),s=this.results.find(".select2-result-with-children"),r=this;u.each2(function(n,t){var i=r.id(t.data("select2-data"));f(i,e)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))});s.each2(function(n,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")});-1==this.highlight()&&i!==!1&&r.highlight(0);!this.opts.createSearchChoice&&!u.filter(".select2-result:not(.select2-selected)").length>0&&(!n||n&&!n.more&&0===this.results.find(".select2-no-results").length)&&o(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+r.opts.formatNoMatches(r.search.val())+"<\/li>")},getMaxSearchWidth:function(){return this.selection.width()-d(this.search)},resizeSearch:function(){var i,u,t,f,n,r=d(this.search);i=pt(this.search)+10;u=this.search.offset().left;t=this.selection.width();f=this.selection.offset().left;n=t-(u-f)-r;i>n&&(n=t-r);40>n&&(n=t-r);0>=n&&(n=i);this.search.width(Math.floor(n))},getVal:function(){var n;return this.select?(n=this.select.val(),null===n?[]:n):(n=this.opts.element.val(),v(n,this.opts.separator))},setVal:function(t){var i;this.select?this.select.val(t):(i=[],n(t).each(function(){f(this,i)<0&&i.push(this)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(n,t){for(var r,t=t.slice(0),n=n.slice(0),i=0;i<t.length;i++)for(r=0;r<n.length;r++)u(this.opts.id(t[i]),this.opts.id(n[r]))&&(t.splice(i,1),i>0&&i--,n.splice(r,1),r--);return{added:t,removed:n}},val:function(i,r){var f,u=this;if(0===arguments.length)return this.getVal();if(f=this.data(),f.length||(f=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),r&&this.triggerChange({added:this.data(),removed:f}),void 0;if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),r&&this.triggerChange(this.buildChangeDetails(f,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=n.map(t,u.id);u.setVal(i);u.updateSelection(t);u.clearSearch();r&&u.triggerChange(u.buildChangeDetails(f,u.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0);this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show();this.searchContainer.appendTo(this.searchContainer.parent());this.resizeSearch();this.selection.find(".select2-search-choice").each(function(){t.push(i.opts.id(n(this).data("select2-data")))});this.setVal(t);this.triggerChange()},data:function(t,i){var r,u,f=this;return 0===arguments.length?this.selection.find(".select2-search-choice").map(function(){return n(this).data("select2-data")}).get():(u=this.data(),t||(t=[]),r=n.map(t,function(n){return f.opts.id(n)}),this.setVal(r),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(u,this.data())),void 0)}});n.fn.select2=function(){var r,u,e,o,s,i=Array.prototype.slice.call(arguments,0),c=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],l=["opened","isFocused","container","dropdown"],a=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===i.length||"object"==typeof i[0])r=0===i.length?{}:n.extend({},i[0]),r.element=n(this),"select"===r.element.get(0).tagName.toLowerCase()?s=r.element.prop("multiple"):(s=r.multiple||!1,"tags"in r&&(r.multiple=s=!0)),u=s?new w:new p,u.init(r);else{if("string"!=typeof i[0])throw"Invalid arguments to select2 plugin: "+i;if(f(i[0],c)<0)throw"Unknown method: "+i[0];if(o=t,u=n(this).data("select2"),u===t)return;if(e=i[0],"container"===e?o=u.container:"dropdown"===e?o=u.dropdown:(h[e]&&(e=h[e]),o=u[e].apply(u,i.slice(1))),f(i[0],l)>=0||f(i[0],a)&&1==i.length)return!1}}),o===t?this:o};n.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(n,t,i,r){var u=[];return tt(n.text,i.term,u,r),u.join("")},formatSelection:function(n,i,r){return n?r(n.text):t},sortResults:function(n){return n},formatResultCssClass:function(){return t},formatSelectionCssClass:function(){return t},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(n,t){var i=t-n.length;return"Please enter "+i+" more character"+(1==i?"":"s")},formatInputTooLong:function(n,t){var i=n.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(n){return"You can only select "+n+" item"+(1==n?"":"s")},formatLoadMore:function(){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(n){return n.id},matcher:function(n,t){return h(""+t).toUpperCase().indexOf(h(""+n).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:wt,escapeMarkup:it,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(n){return n},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return t}};n.fn.select2.ajaxDefaults={transport:n.ajax,params:{type:"GET",cache:!1,dataType:"json"}};window.Select2={query:{ajax:rt,local:ut,tags:ft},util:{debounce:nt,markMatch:tt,escapeMarkup:it,stripDiacritics:h},"class":{abstract:l,single:p,multi:w}}}}(jQuery);window.matchMedia=window.matchMedia||function(n){"use strict";var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=42===t.offsetWidth,i.removeChild(r),{matches:u,media:n}}}(document),function(n){"use strict";function y(){v(!0)}var r={};if(n.respond=r,r.update=function(){},r.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all").matches,!r.mediaQueriesSupported){var h,p,c,t=n.document,u=t.documentElement,f=[],e=[],i=[],l={},w=30,o=t.getElementsByTagName("head")[0]||u,nt=t.getElementsByTagName("base")[0],s=o.getElementsByTagName("link"),a=[],b=function(){for(var r=0;s.length>r;r++){var t=s[r],i=t.href,u=t.media,f=t.rel&&"stylesheet"===t.rel.toLowerCase();i&&f&&!l[i]&&(t.styleSheet&&t.styleSheet.rawCssText?(d(t.styleSheet.rawCssText,i,u),l[i]=!0):(!/^([a-zA-Z:]*\/\/)/.test(i)&&!nt||i.replace(RegExp.$1,"").split("/")[0]===n.location.host)&&a.push({href:i,media:u}))}k()},k=function(){if(a.length){var t=a.shift();tt(t.href,function(i){d(i,t.href,t.media);l[t.href]=!0;n.setTimeout(function(){k()},0)})}},d=function(n,t,i){var s=n.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),h=s&&s.length||0,c,l,u,a,r,y,p,o;for(t=t.substring(0,t.lastIndexOf("/")),c=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},l=!h&&i,t.length&&(t+="/"),l&&(h=1),u=0;h>u;u++)for(l?(a=i,e.push(c(n))):(a=s[u].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,e.push(RegExp.$2&&c(RegExp.$2))),y=a.split(","),p=y.length,o=0;p>o;o++)r=y[o],f.push({media:r.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:e.length-1,hasquery:r.indexOf("(")>-1,minw:r.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});v()},g=function(){var r,i=t.createElement("div"),n=t.body,f=!1;return i.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=t.createElement("body"),n.style.background="none"),n.appendChild(i),u.insertBefore(n,u.firstChild),r=i.offsetWidth,f?u.removeChild(n):n.removeChild(i),r=c=parseFloat(r)},v=function(r){var rt="clientWidth",ut=u[rt],ft="CSS1Compat"===t.compatMode&&ut||t.body[rt]||ut,y={},ct=s[s.length-1],et=(new Date).getTime(),tt,d,nt,l,it;if(r&&h&&w>et-h)return n.clearTimeout(p),p=n.setTimeout(v,w),void 0;h=et;for(tt in f)if(f.hasOwnProperty(tt)){var a=f[tt],b=a.minw,k=a.maxw,ot=null===b,st=null===k,ht="em";b&&(b=parseFloat(b)*(b.indexOf(ht)>-1?c||g():1));k&&(k=parseFloat(k)*(k.indexOf(ht)>-1?c||g():1));a.hasquery&&(ot&&st||!(ot||ft>=b)||!(st||k>=ft))||(y[a.media]||(y[a.media]=[]),y[a.media].push(e[a.rules]))}for(d in i)i.hasOwnProperty(d)&&i[d]&&i[d].parentNode===o&&o.removeChild(i[d]);for(nt in y)y.hasOwnProperty(nt)&&(l=t.createElement("style"),it=y[nt].join("\n"),l.type="text/css",l.media=nt,o.insertBefore(l,ct.nextSibling),l.styleSheet?l.styleSheet.cssText=it:l.appendChild(t.createTextNode(it)),i.push(l))},tt=function(n,t){var i=it();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||t(i.responseText)},4!==i.readyState&&i.send(null))},it=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}();b();r.update=b;n.addEventListener?n.addEventListener("resize",y,!1):n.attachEvent&&n.attachEvent("onresize",y)}}(this);$.fn.ajaxform=function(n,t,i){var r;if($.fn.ajaxform.increment=($.fn.ajaxform.increment||0)+1,r=$(this),r.size()>1)throw"ajaxform: don't call ajaxform on a jquery object with more than one element";var f="asyncForm"+$.fn.ajaxform.increment,u=$("<iframe id='"+f+"' name='"+f+"' src='' style='display:none'>"),o=$("[type='file']",r),s={target:r.attr("target"),enctype:r.attr("enctype"),encoding:r.attr("encoding"),method:r.attr("method")},e=!1;return u.bind("load",function(){setTimeout(function(){u.unbind("load").bind("load",function(){setTimeout(function(){var i,f,o;r.attr(s);e=!0;try{i=u[0];f=i.contentWindow?i.contentWindow.document:i.contentDocument||i.document;f?(o=f.getElementById("response"),o?n($.parseJSON(o.innerHTML)):t({success:!1,error:"No response tag"})):t({success:!1,error:"There was an invalid response from the server. Please try a reduced file size."})}catch(h){t({success:!1,error:h})}u.remove()},100)});r.attr("target",f);r.attr("method","POST");i&&r.attr(i);o.size()>0&&(r.attr("enctype","multipart/form-data"),r.attr("encoding","multipart/form-data"));r[0].submit()},100)}),u.appendTo("body"),{timeout:function(t,i){setTimeout(function(){var t,r,f;if(!e){try{if(t=u[0],r=t.contentWindow?t.contentWindow.document:t.contentDocument||t.document,r&&(f=r.getElementById("response"),f)){n($.parseJSON(f.innerHTML));return}}catch(o){}i&&i()}},t)}}};(function(n){var i='style="width:{width};height:{height};"',o='   <div class="text-center"><small>{caption}<\/small><\/div>\n',y='      <param name="controller" value="true" />\n      <param name="allowFullScreen" value="true" />\n      <param name="allowScriptAccess" value="always" />\n      <param name="autoPlay" value="false" />\n      <param name="autoStart" value="false" />\n      <param name="quality" value="high" />\n',e='<div class="file-preview-other" '+i+'>\n       <h2><i class="glyphicon glyphicon-file"><\/i><\/h2>\n   <\/div>',p={main1:'{preview}\n<div class="input-group {class}">\n   {caption}\n   <div class="input-group-btn valign-top">\n       {remove}\n       {upload}\n       {browse}\n   <\/div>\n<\/div><div class="kv-fileinput-error"><\/div>\n',main2:"{preview}\n{remove}\n{upload}\n{browse}\n",preview:'<div class="file-preview {class}">\n   <div class="close fileinput-remove text-right">&times;<\/div>\n   <div class="file-preview-thumbnails"><\/div>\n   <div class="clearfix"><\/div>   <div class="file-preview-status text-center text-success"><\/div>\n<\/div>',icon:'<span class="glyphicon glyphicon-file kv-caption-icon"><\/span>',caption:'<div tabindex="-1" class="form-control file-caption {class}">\n   <div class="file-caption-name">&nbsp;<\/div>\n<\/div>',modal:'<div id="{id}" class="modal fade">\n  <div class="modal-dialog modal-lg">\n    <div class="modal-content">\n      <div class="modal-header">\n        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;<\/button>\n        <h3 class="modal-title">Detailed Preview <small>{title}<\/small><\/h3>\n      <\/div>\n      <div class="modal-body">\n        <textarea class="form-control" style="font-family:Monaco,Consolas,monospace; height: {height}px;" readonly>{body}<\/textarea>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n'},h=["image","html","text","video","audio","flash","object"],c={generic:'<div class="file-preview-frame" id="{previewId}">\n   {content}\n<\/div>\n',html:'<div class="file-preview-frame" id="{previewId}">\n    <object data="{data}" type="{type}" width="{width}" height="{height}">\n       '+e+"\n    <\/object>\n"+o+"<\/div>",image:'<div class="file-preview-frame" id="{previewId}">\n   <img src="{data}" class="file-preview-image" title="{caption}" alt="{caption}" '+i+">\n<\/div>\n",text:'<div class="file-preview-frame" id="{previewId}">\n   <div class="file-preview-text" title="{caption}" '+i+">\n       {data}\n   <\/div>\n<\/div>\n",video:'<div class="file-preview-frame" id="{previewId}" title="{caption}" '+i+'>\n   <video width="{width}" height="{height}" controls>\n       <source src="{data}" type="{type}">\n       '+e+"\n   <\/video>\n"+o+"<\/div>\n",audio:'<div class="file-preview-frame" id="{previewId}" title="{caption}" '+i+'>\n   <audio controls>\n       <source src="{data}" type="{type}">\n       '+e+"\n   <\/audio>\n"+o+"<\/div>\n",flash:'<div class="file-preview-frame" id="{previewId}" title="{caption}" '+i+'>\n   <object type="application/x-shockwave-flash" width="{width}" height="{height}" data="{data}">\n'+y+"       "+e+"\n   <\/object>\n"+o+"<\/div>\n",object:'<div class="file-preview-frame" id="{previewId}" title="{caption}" '+i+'>\n    <object data="{data}" type="{type}" width="{width}" height="{height}">\n      <param name="movie" value="{caption}" />\n'+y+"           "+e+"\n   <\/object>\n"+o+"<\/div>",other:'<div class="file-preview-frame" id="{previewId}" title="{caption}" '+i+">\n   "+e+"\n<\/div>"},w={image:{width:"auto",height:"160px"},html:{width:"320px",height:"180px"},text:{width:"160px",height:"160px"},video:{width:"320px",height:"240px"},audio:{width:"320px",height:"80px"},flash:{width:"320px",height:"240px"},object:{width:"160px",height:"120px"},other:{width:"160px",height:"120px"}},a={image:function(n,t){return typeof n!="undefined"?n.match("image.*"):t.match(/\.(bmp|gif|png|jpe?g)$/i)},html:function(n,t){return typeof n!="undefined"?n=="text/html":t.match(/\.(htm|html)$/i)},text:function(n,t){return typeof n!="undefined"&&n.match("text.*")||t.match(/\.(txt|md|csv|nfo|php|ini)$/i)},video:function(n,t){return typeof n!="undefined"&&n.match(/\.video\/(ogg|mp4|webm)$/i)||t.match(/\.(og?|mp4|webm)$/i)},audio:function(n,t){return typeof n!="undefined"&&n.match(/\.audio\/(ogg|mp3|wav)$/i)||t.match(/\.(ogg|mp3|wav)$/i)},flash:function(n,t){return typeof n!="undefined"&&n=="application/x-shockwave-flash"||t.match(/\.(swf)$/i)},object:function(){return!0},other:function(){return!0}},t=function(t,i){return i?t===null||t===undefined||t==[]||t===""||n.trim(t)==="":t===null||t===undefined||t==[]||t===""},u=function(n){return Array.isArray(n)||Object.prototype.toString.call(n)==="[object Array]"},r=function(n,t){return typeof t=="object"&&n in t},d=function(n,i,r){return t(n)||t(n[i])?r:n[i]},f=function(i,r,u){return t(i)||t(i[r])?u:n(i[r])},l=function(){return Math.round((new Date).getTime()+Math.random()*100)},b=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob},k=function(n){return String(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},s=window.URL||window.webkitURL,v=function(t,i){this.$element=n(t);b()?(this.init(i),this.listen()):this.$element.removeClass("file-loading")};v.prototype={constructor:v,init:function(n){var i=this,r;i.reader=null;i.showCaption=n.showCaption;i.showPreview=n.showPreview;i.autoFitCaption=n.autoFitCaption;i.maxFileSize=n.maxFileSize;i.maxFileCount=n.maxFileCount;i.msgSizeTooLarge=n.msgSizeTooLarge;i.msgFilesTooMany=n.msgFilesTooMany;i.msgFileNotFound=n.msgFileNotFound;i.msgFileNotReadable=n.msgFileNotReadable;i.msgFilePreviewAborted=n.msgFilePreviewAborted;i.msgFilePreviewError=n.msgFilePreviewError;i.msgValidationError=n.msgValidationError;i.msgErrorClass=n.msgErrorClass;i.initialDelimiter=n.initialDelimiter;i.initialPreview=n.initialPreview;i.initialCaption=n.initialCaption;i.initialPreviewCount=n.initialPreviewCount;i.initialPreviewContent=n.initialPreviewContent;i.overwriteInitial=n.overwriteInitial;i.layoutTemplates=n.layoutTemplates;i.previewTemplates=n.previewTemplates;i.allowedPreviewTypes=t(n.allowedPreviewTypes)?h:u(n.allowedPreviewTypes)?n.allowedPreviewTypes:n.allowedPreviewTypes.split(",");i.allowedPreviewMimeTypes=n.allowedPreviewMimeTypes;i.allowedFileTypes=t(n.allowedFileTypes)?"":u(n.allowedFileTypes)?n.allowedFileTypes:n.allowedFileTypes.split(",");i.allowedFileExtensions=t(n.allowedFileExtensions)?"":u(n.allowedFileExtensions)?n.allowedFileExtensions:n.allowedFileExtensions.split(",");i.previewSettings=n.previewSettings;i.fileTypeSettings=n.fileTypeSettings;i.showRemove=n.showRemove;i.showUpload=n.showUpload;i.captionClass=n.captionClass;i.previewClass=n.previewClass;i.mainClass=n.mainClass;i.mainTemplate=i.showCaption?i.getLayoutTemplate("main1"):i.getLayoutTemplate("main2");i.captionTemplate=i.getLayoutTemplate("caption");i.previewGenericTemplate=i.getPreviewTemplate("generic");i.browseLabel=n.browseLabel;i.browseIcon=n.browseIcon;i.browseClass=n.browseClass;i.removeLabel=n.removeLabel;i.removeIcon=n.removeIcon;i.removeClass=n.removeClass;i.uploadLabel=n.uploadLabel;i.uploadIcon=n.uploadIcon;i.uploadClass=n.uploadClass;i.uploadUrl=n.uploadUrl;i.msgLoading=n.msgLoading;i.msgProgress=n.msgProgress;i.msgSelected=n.msgSelected;i.msgInvalidFileType=n.msgInvalidFileType;i.msgInvalidFileExtension=n.msgInvalidFileExtension;i.previewFileType=n.previewFileType;i.wrapTextLength=n.wrapTextLength;i.wrapIndicator=n.wrapIndicator;i.isError=!1;i.isDisabled=i.$element.attr("disabled")||i.$element.attr("readonly");t(i.$element.attr("id"))&&i.$element.attr("id",l());typeof i.$container=="undefined"?i.$container=i.createContainer():i.refreshContainer();i.$captionContainer=f(n,"elCaptionContainer",i.$container.find(".file-caption"));i.$caption=f(n,"elCaptionText",i.$container.find(".file-caption-name"));i.$previewContainer=f(n,"elPreviewContainer",i.$container.find(".file-preview"));i.$preview=f(n,"elPreviewImage",i.$container.find(".file-preview-thumbnails"));i.$previewStatus=f(n,"elPreviewStatus",i.$container.find(".file-preview-status"));i.$errorContainer=f(n,"elErrorContainer",i.$container.find(".kv-fileinput-error"));i.$dataContainer=f(n,"elDataContainer",i.$container.find(".file-preview-image"));t(i.msgErrorClass)||i.$errorContainer.removeClass(i.msgErrorClass).addClass(i.msgErrorClass);i.$errorContainer.hide();r=i.initialPreview;i.initialPreviewCount=u(r)?r.length:r.length>0?r.split(i.initialDelimiter).length:0;i.initPreview();i.original={preview:i.$preview.html(),caption:i.$caption.html()};i.options=n;i.autoSizeCaption();i.$element.removeClass("file-loading")},getLayoutTemplate:function(n){var t=this;return r(n,t.layoutTemplates)?t.layoutTemplates[n]:p[n]},getPreviewTemplate:function(n){var t=this;return r(n,t.previewTemplates)?t.previewTemplates[n]:c[n]},listen:function(){var t=this,i=t.$element,r=t.$captionContainer,u=t.$btnFile;i.on("change",n.proxy(t.change,t));n(window).on("resize",function(){setTimeout(function(){t.autoSizeCaption()},100)});u.on("click",function(){t.$element.trigger("filebrowse");r.focus()});i.closest("form").on("reset",n.proxy(t.reset,t));t.$container.on("click",".fileinput-remove:not([disabled])",n.proxy(t.clear,t))},refresh:function(t){var i=this,r=arguments.length?n.extend(i.options,t):i.options;i.$element.off();i.init(r)},initPreview:function(){var n=this,r="",s=n.initialPreview,i=n.initialPreviewCount,f=n.initialCaption.length,e="preview-"+l(),o=f>0?n.initialCaption:n.msgSelected.replace(/\{n\}/g,i),h,t;if(u(s)&&i>0){for(t=0;t<i;t++)e+="-"+t,r+=n.previewGenericTemplate.replace(/\{previewId\}/g,e).replace(/\{content\}/g,s[t]);i>1&&f==0&&(o=n.msgSelected.replace(/\{n\}/g,i))}else if(i>0){for(h=s.split(n.initialDelimiter),t=0;t<i;t++)e+="-"+t,r+=n.previewGenericTemplate.replace(/\{previewId\}/g,e).replace(/\{content\}/g,h[t]);i>1&&f==0&&(o=n.msgSelected.replace(/\{n\}/g,i))}else{if(f>0){n.setCaption(o);return}return}n.initialPreviewContent=r;n.$preview.html(r);n.setCaption(o);n.$container.removeClass("file-input-new")},clearObjects:function(){var i=this,t=i.$preview;t.find("video audio").each(function(){this.pause();delete this;n(this).remove()});t.find("img object div").each(function(){delete this;n(this).remove()})},clearFileInput:function(){var e=this,i=e.$element,r,f,u;t(i.val())||(/MSIE/.test(navigator.userAgent)?(r=i.closest("form"),r.length?(i.wrap("<form>"),f=i.closest("form"),u=n(document.createElement("div")),f.before(u).after(r).trigger("reset"),i.unwrap().appendTo(u).unwrap()):i.wrap("<form>").closest("form").trigger("reset").unwrap()):i.val(""))},clear:function(){var n=this,i=arguments.length&&arguments[0],r;i&&i.preventDefault();n.reader instanceof FileReader&&n.reader.abort();n.autoSizeCaption();n.clearFileInput();n.resetErrors(!0);i!==!1&&(n.$element.trigger("change"),n.$element.trigger("fileclear"));n.overwriteInitial&&(n.initialPreviewCount=0);n.overwriteInitial||t(n.initialPreviewContent)?(n.clearObjects(),n.$preview.html(""),r=!n.overwriteInitial&&n.initialCaption.length>0?n.original.caption:"",n.$caption.html(r),n.$caption.attr("title",""),n.$container.removeClass("file-input-new").addClass("file-input-new")):(n.showFileIcon(),n.$preview.html(n.original.preview),n.$caption.html(n.original.caption),n.$container.removeClass("file-input-new"));n.hideFileIcon();n.$element.trigger("filecleared");n.$captionContainer.focus()},reset:function(){var n=this;n.clear(!1);n.$preview.html(n.original.preview);n.$caption.html(n.original.caption);n.$container.find(".fileinput-filename").text("");n.$element.trigger("filereset");n.initialPreview.length>0&&n.$container.removeClass("file-input-new")},disable:function(){var n=this;n.isDisabled=!0;n.$element.attr("disabled","disabled");n.$container.find(".kv-fileinput-caption").addClass("file-caption-disabled");n.$container.find(".btn-file, .fileinput-remove, .kv-fileinput-upload").attr("disabled",!0)},enable:function(){var n=this;n.isDisabled=!1;n.$element.removeAttr("disabled");n.$container.find(".kv-fileinput-caption").removeClass("file-caption-disabled");n.$container.find(".btn-file, .fileinput-remove, .kv-fileinput-upload").removeAttr("disabled")},hideFileIcon:function(){this.overwriteInitial&&this.$captionContainer.find(".kv-caption-icon").hide()},showFileIcon:function(){this.$captionContainer.find(".kv-caption-icon").show()},resetErrors:function(n){var t=this,i=t.$errorContainer;t.isError=!1;t.$container.removeClass("has-error");n?i.fadeOut("slow"):i.hide()},showError:function(n,t,i,r){var u=this,f=u.$errorContainer,e=u.$element;return f.html(n),f.fadeIn(800),e.trigger("fileerror",[t,i,r]),u.clearFileInput(),u.$container.removeClass("has-error").addClass("has-error"),!0},errorHandler:function(n,t){var i=this;switch(n.target.error.code){case n.target.error.NOT_FOUND_ERR:i.addError(i.msgFileNotFound.replace(/\{name\}/g,t));break;case n.target.error.NOT_READABLE_ERR:i.addError(i.msgFileNotReadable.replace(/\{name\}/g,t));break;case n.target.error.ABORT_ERR:i.addError(i.msgFilePreviewAborted.replace(/\{name\}/g,t));break;default:i.addError(i.msgFilePreviewError.replace(/\{name\}/g,t))}},parseFileType:function(n){for(var u,i,t=0;t<h.length;t++)if(cat=h[t],u=r(cat,self.fileTypeSettings)?self.fileTypeSettings[cat]:a[cat],i=u(n.type,n.name)?cat:"",i!="")return i;return"other"},previewDefault:function(t,i){var u=this,f=s.createObjectURL(t),e=n("#"+i),o=r("other",u.previewTemplates)?u.previewTemplates.other:c.other;u.$preview.append("\n"+o.replace(/\{previewId\}/g,i).replace(/\{caption\}/g,u.slug(t.name)).replace(/\{type\}/g,t.type).replace(/\{data\}/g,f).replace(/\{height\}/g,"50px").replace(/\{width\}/g,"100px"));u.$preview.dblclick(function(){window.open(f)});e.on("load",function(){s.revokeObjectURL(e.attr("data"))})},previewFile:function(n,i,u,f){var e=this,o=e.parseFileType(n),a=e.slug(n.name),f,y,tt=e.allowedPreviewTypes,p=e.allowedPreviewMimeTypes,ot=n.type,d=r(o,e.previewTemplates)?e.previewTemplates[o]:c[o],v=r(o,e.previewSettings)?e.previewSettings[o]:w[o],g=parseInt(e.wrapTextLength),b=e.wrapIndicator,it=e.$preview,rt=tt.indexOf(o)>=0,ut=t(p)||!t(p)&&r(n.type,p),h;if(rt&&ut){if(o=="text"){if(h=k(i.target.result),s.revokeObjectURL(f),h.length>g){var nt="text-"+l(),ft=window.innerHeight*.75,et=e.getLayoutTemplate("modal").replace(/\{id\}/g,nt).replace(/\{title\}/g,a).replace(/\{height\}/g,ft).replace(/\{body\}/g,h);b=b.replace(/\{title\}/g,a).replace(/\{dialog\}/g,"$('#"+nt+"').modal('show')");h=h.substring(0,g-1)+b}y=d.replace(/\{previewId\}/g,u).replace(/\{caption\}/g,a).replace(/\{type\}/g,n.type).replace(/\{width\}/g,v.width).replace(/\{height\}/g,v.height).replace(/\{data\}/g,h)+et}else y=d.replace(/\{previewId\}/g,u).replace(/\{caption\}/g,a).replace(/\{type\}/g,n.type).replace(/\{data\}/g,f).replace(/\{width\}/g,v.width).replace(/\{height\}/g,v.height);it.append("\n"+y);e.autoSizeImage(u)}else e.previewDefault(n,u)},readFiles:function(n){function h(r){var nt,lt;if(r>=o){y.removeClass("loading");e.html("");return}var g=k+"-"+r,l=n[r],a=i.slug(l.name),ft=(l.size?l.size:0)/1e3,ot,st=s.createObjectURL(l),ut=0,et,tt,ht,it,rt=i.allowedFileExtensions,at=t(rt)?"":rt.join(", "),ct=t(rt)?"":new RegExp("\\.("+rt.join("|")+")$","i");if(ft=ft.toFixed(2),nt=i.allowedFileTypes,lt=t(nt)?"":nt.join(", "),i.maxFileSize>0&&ft>i.maxFileSize){tt=i.msgSizeTooLarge.replace(/\{name\}/g,a).replace(/\{size\}/g,ft).replace(/\{maxSize\}/g,i.maxFileSize);i.isError=i.showError(tt,l,g,r);return}if(!t(nt)&&u(nt)){for(et=0;et<nt.length;et++)ht=nt[et],ot=v[ht],it=ot!==undefined&&ot(l.type,a),ut+=t(it)?0:it.length;if(ut==0){tt=i.msgInvalidFileType.replace(/\{name\}/g,a).replace(/\{types\}/g,lt);i.isError=i.showError(tt,l,g,r);return}}if(ut==0&&!t(rt)&&u(rt)&&!t(ct)&&(it=a.match(ct),ut+=t(it)?0:it.length,ut==0)){tt=i.msgInvalidFileExtension.replace(/\{name\}/g,a).replace(/\{extensions\}/g,at);i.isError=i.showError(tt,l,g,r);return}if(!i.showPreview){c.trigger("fileloaded",[l,g,r]);setTimeout(h(r+1),1e3);return}w.length>0&&typeof FileReader!="undefined"?(e.html(b.replace(/\{index\}/g,r+1).replace(/\{files\}/g,o)),y.addClass("loading"),f.onerror=function(n){i.errorHandler(n,a)},f.onload=function(n){i.previewFile(l,n,g,st)},f.onloadend=function(){var n=p.replace(/\{index\}/g,r+1).replace(/\{files\}/g,o).replace(/\{percent\}/g,100).replace(/\{name\}/g,a);setTimeout(function(){e.html(n);s.revokeObjectURL(st)},1e3);setTimeout(function(){h(r+1)},1500);c.trigger("fileloaded",[l,g,r])},f.onprogress=function(n){if(n.lengthComputable){var t=parseInt(n.loaded/n.total*100,10),i=p.replace(/\{index\}/g,r+1).replace(/\{files\}/g,o).replace(/\{percent\}/g,t).replace(/\{name\}/g,a);setTimeout(function(){e.html(i)},1e3)}},d(l.type,a)?f.readAsText(l):f.readAsArrayBuffer(l)):(i.previewDefault(l,g),c.trigger("fileloaded",[l,g,r]),setTimeout(h(r+1),1e3))}this.reader=new FileReader;var i=this,c=i.$element,w=i.$preview,f=i.reader,y=i.$previewContainer,e=i.$previewStatus,b=i.msgLoading,p=i.msgProgress,g=i.msgSelected,nt=i.previewFileType,tt=parseInt(i.wrapTextLength),it=i.wrapIndicator,k="preview-"+l(),o=n.length,v=i.fileTypeSettings,d=r("text",v)?v.text:a.text;h(0)},slug:function(n){return t(n)?"":n.split(/(\\|\/)/g).pop().replace(/[^\w-.\\\/ ]+/g,"")},setCaption:function(t){var i=this,r=n("<div>"+t+"<\/div>").text(),u=i.layoutTemplates.icon,f=u+r;i.$caption.length!=0&&(i.$caption.html(f),i.$caption.attr("title",r),i.autoSizeCaption())},autoSizeImage:function(n){var r=this,u=r.$preview,t=u.find("#"+n),i=t.find("img");if(i.length)i.on("load",function(){var f=t.width(),e=u.width();f>e&&(i.css("width","100%"),t.css("width","97%"));r.$element.trigger("fileimageloaded",n)})},autoSizeCaption:function(){var n=this;n.$caption.length!=0&&n.autoFitCaption&&(n.$caption.css("width",0),setTimeout(function(){var t=n.$captionContainer.width();t<1&&(t=100);n.$caption.css("width",.98*t)},100))},change:function(n){var i=this,r=i.$element,h=i.slug(r.val()),u=0,c=i.$preview,e=r.get(0).files,a=i.msgSelected,o=t(e)?1:e.length+i.initialPreviewCount,f,l,s;if(i.hideFileIcon(),f=n.target.files===undefined?n.target&&n.target.value?[{name:n.target.value.replace(/^.+\\/,"")}]:[]:n.target.files,t(f)||f.length===0){i.clear(!1);r.trigger("fileselectnone");return}if(i.resetErrors(),c.html(""),i.overwriteInitial||c.html(i.initialPreviewContent),u=f.length,i.maxFileCount>0&&u>i.maxFileCount){l=i.msgFilesTooMany.replace(/\{m\}/g,i.maxFileCount).replace(/\{n\}/g,u);i.isError=i.showError(l,null,null,null);i.$captionContainer.find(".kv-caption-icon").hide();i.$caption.html(i.msgValidationError);i.$container.removeClass("file-input-new");return}i.readFiles(e);i.reader=null;s=o>1?a.replace(/\{n\}/g,o):h;i.isError?(i.$captionContainer.find(".kv-caption-icon").hide(),s=i.msgValidationError):i.showFileIcon();i.setCaption(s);i.isError===!1&&i.$container.removeClass("file-input-new");r.trigger("fileselect",[o,h])},initBrowse:function(n){var t=this;t.$btnFile=n.find(".btn-file");t.$btnFile.append(t.$element)},createContainer:function(){var t=this,i=n(document.createElement("span")).attr({"class":"file-input file-input-new"}).html(t.renderMain());return t.$element.before(i),t.initBrowse(i),i},refreshContainer:function(){var n=this,t=n.$container;t.before(n.$element);t.html(n.renderMain());n.initBrowse(t)},renderMain:function(){var n=this,t=n.showPreview?n.getLayoutTemplate("preview").replace(/\{class\}/g,n.previewClass):"",i=n.isDisabled?n.captionClass+" file-caption-disabled":n.captionClass,r=n.captionTemplate.replace(/\{class\}/g,i+" kv-fileinput-caption");return n.mainTemplate.replace(/\{class\}/g,n.mainClass).replace(/\{preview\}/g,t).replace(/\{caption\}/g,r).replace(/\{upload\}/g,n.renderUpload()).replace(/\{remove\}/g,n.renderRemove()).replace(/\{browse\}/g,n.renderBrowse())},renderBrowse:function(){var n=this,i=n.browseClass+" btn-file",t="";return n.isDisabled&&(t=" disabled "),'<div class="margin-bottom-10 '+i+'"'+t+"> "+n.browseIcon+n.browseLabel+" <\/div>"},renderRemove:function(){var n=this,i=n.removeClass+" fileinput-remove fileinput-remove-button",t="";return n.showRemove?(n.isDisabled&&(t=" disabled "),'<button type="button" class="'+i+'"'+t+">"+n.removeIcon+n.removeLabel+"<\/button>"):""},renderUpload:function(){var n=this,r=n.uploadClass+" kv-fileinput-upload",i="";return n.showUpload?(n.isDisabled&&(i=" disabled "),t(n.uploadUrl)?'<button type="submit" class="'+r+'"'+i+">"+n.uploadIcon+n.uploadLabel+"<\/button>":'<a href="'+n.uploadUrl+'" class="'+n.uploadClass+'"'+i+">"+n.uploadIcon+n.uploadLabel+"<\/a>"):""}};n.fn.fileinput=function(t){if(b()){var i=Array.apply(null,arguments);return i.shift(),this.each(function(){var u=n(this),r=u.data("fileinput"),f=typeof t=="object"&&t;r||u.data("fileinput",r=new v(this,n.extend({},n.fn.fileinput.defaults,f,n(this).data())));typeof t=="string"&&r[t].apply(r,i)})}};n.fn.fileinput.defaults={showCaption:!0,showPreview:!0,showRemove:!0,showUpload:!1,autoFitCaption:!0,mainClass:"",previewClass:"",captionClass:"",mainTemplate:null,initialDelimiter:"*$$*",initialPreview:"",initialCaption:"",initialPreviewCount:0,initialPreviewContent:"",overwriteInitial:!0,layoutTemplates:p,previewTemplates:c,allowedPreviewTypes:h,allowedPreviewMimeTypes:null,allowedFileTypes:null,allowedFileExtensions:null,previewSettings:w,fileTypeSettings:a,browseLabel:"Browse &hellip;",browseIcon:'<i class="glyphicon glyphicon-folder-open"><\/i> &nbsp;',browseClass:"btn btn-primary",removeLabel:"Remove",removeIcon:'<i class="glyphicon glyphicon-ban-circle"><\/i> ',removeClass:"btn btn-default",uploadLabel:"Upload",uploadIcon:'<i class="glyphicon glyphicon-upload"><\/i> ',uploadClass:"btn btn-default",uploadUrl:null,maxFileSize:0,maxFileCount:0,msgSizeTooLarge:'File "{name}" (<b>{size} KB<\/b>) exceeds maximum allowed upload size of <b>{maxSize} KB<\/b>. Please retry your upload!',msgFilesTooMany:"Number of files selected for upload <b>({n})<\/b> exceeds maximum allowed limit of <b>{m}<\/b>. Please retry your upload!",msgFileNotFound:'File "{name}" not found!',msgFileNotReadable:'File "{name}" is not readable.',msgFilePreviewAborted:'File preview aborted for "{name}".',msgFilePreviewError:'An error occurred while reading the file "{name}".',msgInvalidFileType:'Invalid type for file "{name}". Only "{types}" files are supported.',msgInvalidFileExtension:'Invalid extension for file "{name}". Only "{extensions}" files are supported.',msgValidationError:'<span class="text-danger"><i class="glyphicon glyphicon-exclamation-sign"><\/i> File Upload Error<\/span>',msgErrorClass:"file-error-message",msgLoading:"Loading  file {index} of {files} &hellip;",msgProgress:"Loading file {index} of {files} - {name} - {percent}% completed.",msgSelected:"{n} files selected",previewFileType:"image",wrapTextLength:250,wrapIndicator:' <span class="wrap-indicator" title="{title}" onclick="{dialog}">[&hellip;]<\/span>',elCaptionContainer:null,elCaptionText:null,elPreviewContainer:null,elPreviewImage:null,elPreviewStatus:null,elErrorContainer:null}})(window.jQuery);(function(){"use strict";$(document).on("ajaxComplete",function(n,t){var r=t.getResponseHeader("X-Responded-JSON"),i;r&&(i=JSON.parse(r),i.status&&i.status===401&&i.headers&&i.headers.location&&(window.location=i.headers.location))})})();(function(){"use strict";function n(n){function s(s,h){var rt,ut,p=s==window,l=h&&h.message!==undefined?h.message:undefined,g,k,d,tt,nt,w,b,it,ft,et,at;if(h=n.extend({},n.blockUI.defaults,h||{}),!h.ignoreIfBlocked||!n(s).data("blockUI.isBlocked")){if(h.overlayCSS=n.extend({},n.blockUI.defaults.overlayCSS,h.overlayCSS||{}),rt=n.extend({},n.blockUI.defaults.css,h.css||{}),h.onOverlayClick&&(h.overlayCSS.cursor="pointer"),ut=n.extend({},n.blockUI.defaults.themedCSS,h.themedCSS||{}),l=l===undefined?h.message:l,p&&t&&e(window,{fadeOut:0}),l&&typeof l!="string"&&(l.parentNode||l.jquery)&&(g=l.jquery?l[0]:l,k={},n(s).data("blockUI.history",k),k.el=g,k.parent=g.parentNode,k.display=g.style.display,k.position=g.style.position,k.parent&&k.parent.removeChild(g)),n(s).data("blockUI.onUnblock",h.onUnblock),d=h.baseZ,tt=f||h.forceIframe?n('<iframe class="blockUI" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+h.iframeSrc+'"><\/iframe>'):n('<div class="blockUI" style="display:none"><\/div>'),nt=h.theme?n('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+d+++';display:none"><\/div>'):n('<div class="blockUI blockOverlay" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"><\/div>'),h.theme&&p?(b='<div class="blockUI '+h.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:fixed">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):h.theme?(b='<div class="blockUI '+h.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:absolute">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):b=p?'<div class="blockUI '+h.blockMsgClass+' blockPage" style="z-index:'+(d+10)+';display:none;position:fixed"><\/div>':'<div class="blockUI '+h.blockMsgClass+' blockElement" style="z-index:'+(d+10)+';display:none;position:absolute"><\/div>',w=n(b),l&&(h.theme?(w.css(ut),w.addClass("ui-widget-content")):w.css(rt)),h.theme||nt.css(h.overlayCSS),nt.css("position",p?"fixed":"absolute"),(f||h.forceIframe)&&tt.css("opacity",0),it=[tt,nt,w],ft=p?n("body"):n(s),n.each(it,function(){this.appendTo(ft)}),h.theme&&h.draggable&&n.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),et=v&&(!n.support.boxModel||n("object,embed",p?null:s).length>0),o||et){if(p&&h.allowBodyStretch&&n.support.boxModel&&n("html,body").css("height","100%"),(o||!n.support.boxModel)&&!p)var ot=r(s,"borderTopWidth"),st=r(s,"borderLeftWidth"),ht=ot?"(0 - "+ot+")":0,ct=st?"(0 - "+st+")":0;n.each(it,function(n,t){var i=t[0].style,r,u;i.position="absolute";n<2?(p?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),p?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),ct&&i.setExpression("left",ct),ht&&i.setExpression("top",ht)):h.centerY?(p&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0):!h.centerY&&p&&(r=h.css&&h.css.top?parseInt(h.css.top,10):0,u="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+r+') + "px"',i.setExpression("top",u))})}if(l&&(h.theme?w.find(".ui-widget-content").append(l):w.append(l),(l.jquery||l.nodeType)&&n(l).show()),(f||h.forceIframe)&&h.showOverlay&&tt.show(),h.fadeIn){var lt=h.onBlock?h.onBlock:u,vt=h.showOverlay&&!l?lt:u,yt=l?lt:u;h.showOverlay&&nt._fadeIn(h.fadeIn,vt);l&&w._fadeIn(h.fadeIn,yt)}else h.showOverlay&&nt.show(),l&&w.show(),h.onBlock&&h.onBlock();c(1,s,h);p?(t=w[0],i=n(h.focusableElements,t),h.focusInput&&setTimeout(a,20)):y(w[0],h.centerX,h.centerY);h.timeout&&(at=setTimeout(function(){p?n.unblockUI(h):n(s).unblock(h)},h.timeout),n(s).data("blockUI.timeout",at))}}function e(r,u){var o,s=r==window,e=n(r),l=e.data("blockUI.history"),a=e.data("blockUI.timeout"),f;a&&(clearTimeout(a),e.removeData("blockUI.timeout"));u=n.extend({},n.blockUI.defaults,u||{});c(0,r,u);u.onUnblock===null&&(u.onUnblock=e.data("blockUI.onUnblock"),e.removeData("blockUI.onUnblock"));f=s?n("body").children().filter(".blockUI").add("body > .blockUI"):e.find(">.blockUI");u.cursorReset&&(f.length>1&&(f[1].style.cursor=u.cursorReset),f.length>2&&(f[2].style.cursor=u.cursorReset));s&&(t=i=null);u.fadeOut?(o=f.length,f.stop().fadeOut(u.fadeOut,function(){--o==0&&h(f,l,u,r)})):h(f,l,u,r)}function h(t,i,r,u){var f=n(u);if(!f.data("blockUI.isBlocked")){if(t.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.parent&&i.parent.appendChild(i.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),typeof r.onUnblock=="function")r.onUnblock(u,r);var e=n(document.body),o=e.width(),s=e[0].style.width;e.width(o-1).width(o);e[0].style.width=s}}function c(i,r,u){var f=r==window,o=n(r),e;(i||(!f||t)&&(f||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",i),f&&u.bindEvents&&(!i||u.showOverlay))&&(e="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",i?n(document).bind(e,u,l):n(document).unbind(e,l))}function l(r){var u,f;if(r.type==="keydown"&&r.keyCode&&r.keyCode==9&&t&&r.data.constrainTabKey){var e=i,s=!r.shiftKey&&r.target===e[e.length-1],o=r.shiftKey&&r.target===e[0];if(s||o)return setTimeout(function(){a(o)},10),!1}if(u=r.data,f=n(r.target),f.hasClass("blockOverlay")&&u.onOverlayClick)u.onOverlayClick(r);return f.parents("div."+u.blockMsgClass).length>0?!0:f.parents().children().filter("div.blockUI").length===0}function a(n){if(i){var t=i[n===!0?i.length-1:0];t&&t.focus()}}function y(n,t,i){var u=n.parentNode,f=n.style,e=(u.offsetWidth-n.offsetWidth)/2-r(u,"borderLeftWidth"),o=(u.offsetHeight-n.offsetHeight)/2-r(u,"borderTopWidth");t&&(f.left=e>0?e+"px":"0");i&&(f.top=o>0?o+"px":"0")}function r(t,i){return parseInt(n.css(t,i),10)||0}var t,i;n.fn._fadeIn=n.fn.fadeIn;var u=n.noop||function(){},f=/MSIE/.test(navigator.userAgent),o=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),p=document.documentMode||0,v=n.isFunction(document.createElement("div").style.setExpression);n.blockUI=function(n){s(window,n)};n.unblockUI=function(n){e(window,n)};n.growlUI=function(t,i,r,u){var f=n('<div class="growlUI"><\/div>'),e,o;t&&f.append("<h1>"+t+"<\/h1>");i&&f.append("<h2>"+i+"<\/h2>");r===undefined&&(r=3e3);e=function(t){t=t||{};n.blockUI({message:f,fadeIn:typeof t.fadeIn!="undefined"?t.fadeIn:700,fadeOut:typeof t.fadeOut!="undefined"?t.fadeOut:1e3,timeout:typeof t.timeout!="undefined"?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:u,css:n.blockUI.defaults.growlCSS})};e();o=f.css("opacity");f.mouseover(function(){e({fadeIn:0,timeout:3e4});var t=n(".blockMsg");t.stop();t.fadeTo(300,1)}).mouseout(function(){n(".blockMsg").fadeOut(1e3)})};n.fn.block=function(t){if(this[0]===window)return n.blockUI(t),this;var i=n.extend({},n.blockUI.defaults,t||{});return this.each(function(){var t=n(this);i.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){n.css(this,"position")=="static"&&(this.style.position="relative",n(this).data("blockUI.static",!0));this.style.zoom=1;s(this,t)})};n.fn.unblock=function(t){return this[0]===window?(n.unblockUI(t),this):this.each(function(){e(this,t)})};n.blockUI.version=2.66;n.blockUI.defaults={message:"<h1>Please wait...<\/h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};t=null;i=[]}typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)})();(function(n,t,i){"use strict";var r=function(t,r){function e(n){return n==="notice"?"info":n==="error"?"danger":n}function o(t){return{errs:n.grep(t,function(n){return n.priority==="error"||n.priority==="danger"}),warns:n.grep(t,function(n){return n.priority==="warning"}),infos:n.grep(t,function(n){return n.priority==="notice"||n.priority==="info"}),succs:n.grep(t,function(n){return n.priority==="success"})}}var u=this,f;u.element=t;u.options=n.extend({},n.fn.bsAlerts.defaults,r);n(i).on("add-alerts",function(){var n=Array.prototype.slice.call(arguments,1);u.addAlerts(n)});n(i).on("clear-alerts",function(){u.clearAlerts()});n.each(this.options.ids.split(","),function(t,r){var f=r.trim(),e;if(f.length>0){e="set-alert-id-"+f;n(i).on(e,function(){var n=Array.prototype.slice.call(arguments,1);u.addAlerts(n)})}});u.clearAlerts=function(){n(this.element).html("")};u.addAlerts=function(n){var t=o([].concat(n)),i;u.addAlertsToContainer(t.errs);u.addAlertsToContainer(t.warns);u.addAlertsToContainer(t.infos);u.addAlertsToContainer(t.succs);i=parseInt(u.options.fade,10);!isNaN(i)&&i>0&&(clearTimeout(f),f=setTimeout(u.fade,i))};u.fade=function(){n("[data-alerts-container]").fadeOut("slow",function(){n(this).remove()})};u.buildNoticeContainer=function(t){var i,r;if(t.length>0){var f=e(t[0].priority),s=n("<button/>",{type:"button","class":"close","data-dismiss":"alert","aria-hidden":!0}).html("&times;"),o=n("<ul/>");return u.attachLIs(o,t),i=n("<div/>",{"data-alerts-container":f,"class":"alert alert-dismissable alert-"+f}),i.append(s),r=this.options.titles[f],r&&r.length>0&&i.append(n("<strong/>").html(r)),i.append(o),i}return null};u.addAlertsToContainer=function(t){var f;if(t.length>0){var r=n(this.element),o=e(t[0].priority),i=n("[data-alerts-container='"+o+"']",r);i.length>0?(f=i.find("ul"),u.attachLIs(f,t)):(i=u.buildNoticeContainer(t),r.append(i))}};u.attachLIs=function(t,i){n.each(i,function(i,r){t.append(n("<li/>").html(r.message))})}},u=n.fn.bsAlerts;n.fn.bsAlerts=function(t){return this.each(function(){var u=n(this),i=u.data("bsAlerts"),f=typeof t=="object"&&t;i||u.data("bsAlerts",i=new r(this,f));typeof t=="string"&&i[t]()})};n.fn.bsAlerts.Constructor=r;n.fn.bsAlerts.defaults={titles:{},ids:"",fade:"0"};n.fn.bsAlerts.noConflict=function(){return n.fn.bsAlerts=u,this};n(i).ready(function(){n('[data-alerts="alerts"]').each(function(){var t=n(this);t.bsAlerts(t.data())})})})(jQuery,window,document);(function(n,t,i){(function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):jQuery&&!jQuery.fn.qtip&&n(jQuery)})(function(r){"use strict";function si(n,t,i,f){this.id=i;this.target=n;this.tooltip=s;this.elements={target:n};this._id=o+"-"+i;this.timers={img:{}};this.options=t;this.plugins={};this.cache={event:{},target:r(),disabled:u,attr:f,onTooltip:u,lastClass:""};this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=u}function ft(n){return n===s||r.type(n)!=="object"}function bi(n){return!(r.isFunction(n)||n&&n.attr||n.length||r.type(n)==="object"&&(n.jquery||n.then))}function dt(n){var t,e,i,o;return ft(n)?u:(ft(n.metadata)&&(n.metadata={type:n.metadata}),"content"in n&&(t=n.content,ft(t)||t.jquery||t.done?t=n.content={text:e=bi(t)?u:t}:e=t.text,"ajax"in t&&(i=t.ajax,o=i&&i.once!==u,delete t.ajax,t.text=function(n,t){var u=e||r(this).attr(t.options.content.attr)||"Loading...",f=r.ajax(r.extend({},i,{context:t})).then(i.success,s,i.error).then(function(n){return n&&o&&t.set("content.text",n),n},function(n,i,r){t.destroyed||n.status===0||t.set("content.text",i+": "+r)});return o?u:(t.set("content.text",u),f)}),"title"in t&&(ft(t.title)||(t.button=t.title.button,t.title=t.title.text),bi(t.title||u)&&(t.title=u))),"position"in n&&ft(n.position)&&(n.position={my:n.position,at:n.position}),"show"in n&&ft(n.show)&&(n.show=n.show.jquery?{target:n.show}:n.show===f?{ready:f}:{event:n.show}),"hide"in n&&ft(n.hide)&&(n.hide=n.hide.jquery?{target:n.hide}:{event:n.hide}),"style"in n&&ft(n.style)&&(n.style={classes:n.style}),r.each(h,function(){this.sanitize&&this.sanitize(n)}),n)}function ki(n,t){for(var u=0,f,i=n,r=t.split(".");i=i[r[u++]];)u<r.length&&(f=i);return[f||n,r.pop()]}function yr(n,t){var i,r,u;for(i in this.checks)for(r in this.checks[i])(u=new RegExp(r,"i").exec(n))&&(t.push(u),(i==="builtin"||this.plugins[i])&&this.checks[i][r].apply(this.plugins[i]||this,t))}function gt(n){return ar.concat("").join(n?"-"+n+" ":" ")}function ni(i){return i&&{type:i.type,pageX:i.pageX,pageY:i.pageY,target:i.target,relatedTarget:i.relatedTarget,scrollX:i.scrollX||n.pageXOffset||t.body.scrollLeft||t.documentElement.scrollLeft,scrollY:i.scrollY||n.pageYOffset||t.body.scrollTop||t.documentElement.scrollTop}||{}}function ti(n,t){if(t>0)return setTimeout(r.proxy(n,this),t);n.call(this)}function pr(n){if(this.tooltip.hasClass(a))return u;clearTimeout(this.timers.show);clearTimeout(this.timers.hide);this.timers.show=ti.call(this,function(){this.toggle(f,n)},this.options.show.delay)}function wr(n){if(this.tooltip.hasClass(a))return u;var t=r(n.relatedTarget),i=t.closest(rt)[0]===this.tooltip[0],f=t[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==t[0]&&this.options.position.target==="mouse"&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(n.type)&&(i||f)){try{n.preventDefault();n.stopImmediatePropagation()}catch(e){}return}this.timers.hide=ti.call(this,function(){this.toggle(u,n)},this.options.hide.delay,this)}function hi(n){if(this.tooltip.hasClass(a)||!this.options.hide.inactive)return u;clearTimeout(this.timers.inactive);this.timers.inactive=ti.call(this,function(){this.hide(n)},this.options.hide.inactive)}function nr(n){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(n)}function tr(n,i,u){r(t.body).delegate(n,(i.split?i:i.join(ci+" "))+ci,function(){var n=c.api[r.attr(this,bt)];n&&!n.disabled&&u.apply(n,arguments)})}function br(n,i,e){var y,l,v,h,b,k=r(t.body),p=n[0]===t?k:n,w=n.metadata?n.metadata(e.metadata):s,d=e.metadata.type==="html5"&&w?w[e.metadata.name]:s,a=n.data(e.metadata.name||"qtipopts");try{a=typeof a=="string"?r.parseJSON(a):a}catch(g){}if(h=r.extend(f,{},c.defaults,e,typeof a=="object"?dt(a):s,dt(d||w)),l=h.position,h.id=i,"boolean"==typeof h.content.text)if(v=n.attr(h.content.attr),h.content.attr!==u&&v)h.content.text=v;else return u;if(l.container.length||(l.container=k),l.target===u&&(l.target=p),h.show.target===u&&(h.show.target=p),h.show.solo===f&&(h.show.solo=l.container.closest("body")),h.hide.target===u&&(h.hide.target=p),h.position.viewport===f&&(h.position.viewport=l.container),l.container=l.container.eq(0),l.at=new it(l.at,f),l.my=new it(l.my),n.data(o))if(h.overwrite)n.qtip("destroy",!0);else if(h.overwrite===u)return u;n.attr(ei,i);h.suppress&&(b=n.attr("title"))&&n.removeAttr("title").attr(ut,b).attr("title","");y=new si(n,h,i,!!v);n.data(o,y);n.one("remove.qtip-"+i+" removeqtip.qtip-"+i,function(){var n;(n=r(this).data(o))&&n.destroy(!0)});return y}function pt(n){return n.charAt(0).toUpperCase()+n.slice(1)}function kr(n,t){var u=t.charAt(0).toUpperCase()+t.slice(1),e=(t+" "+fr.join(u+" ")+u).split(" "),r,f,o=0;if(ui[t])return n.css(ui[t]);while(r=e[o++])if((f=n.css(r))!==i)return ui[t]=r,f}function ct(n,t){return Math.ceil(parseFloat(kr(n,t)))}function er(n,t){this._ns="tip";this.options=t;this.offset=t.offset;this.size=[t.width,t.height];this.init(this.qtip=n)}function or(n,t){this.options=t;this._ns="-modal";this.init(this.qtip=n)}function cr(n){this._ns="ie6";this.init(this.qtip=n)}var f=!0,u=!1,s=null,w="x",y="y",d="width",at="height",b="top",p="left",tt="bottom",k="right",l="center",lr="flipinvert",et="shift",c,e,it,wt,h={},o="qtip",ei="data-hasqtip",bt="data-qtip-id",ar=["ui-widget","ui-tooltip"],rt="."+o,pi="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),wi=o+"-fixed",oi=o+"-default",ot=o+"-focus",vr=o+"-hover",a=o+"-disabled",st="_replacedByqTip",ut="oldtitle",kt,v={ie:function(){for(var n=3,i=t.createElement("div");i.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->";)if(!i.getElementsByTagName("i")[0])break;return n>4?n:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||u},di,gi,vt,ci,ui,fr,vi,yi,g,fi,nt,sr,hr;e=si.prototype;e._when=function(n){return r.when.apply(r,n)};e.render=function(n){if(this.rendered||this.destroyed)return this;var i=this,t=this.options,p=this.cache,v=this.elements,y=t.content.text,e=t.content.title,w=t.content.button,s=t.position,k="."+this._id+" ",l=[],b;return r.attr(this.target[0],"aria-describedby",this._id),this.tooltip=v.tooltip=b=r("<div/>",{id:this._id,"class":[o,oi,t.style.classes,o+"-pos-"+t.position.my.abbrev()].join(" "),width:t.style.width||"",height:t.style.height||"",tracking:s.target==="mouse"&&s.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":u,"aria-describedby":this._id+"-content","aria-hidden":f}).toggleClass(a,this.disabled).attr(bt,this.id).data(o,this).appendTo(s.container).append(v.content=r("<div />",{"class":o+"-content",id:this._id+"-content","aria-atomic":f})),this.rendered=-1,this.positioning=f,e&&(this._createTitle(),r.isFunction(e)||l.push(this._updateTitle(e,u))),w&&this._createButton(),r.isFunction(y)||l.push(this._updateContent(y,u)),this.rendered=f,this._setWidget(),r.each(h,function(n){var t;this.initialize==="render"&&(t=this(i))&&(i.plugins[n]=t)}),this._unassignEvents(),this._assignEvents(),this._when(l).then(function(){i._trigger("render");i.positioning=u;!i.hiddenDuringWait&&(t.show.ready||n)&&i.toggle(f,p.event,u);i.hiddenDuringWait=u}),c.api[this.id]=this,this};e.destroy=function(n){function t(){if(!this.destroyed){this.destroyed=f;var n=this.target,t=n.attr(ut);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove();r.each(this.plugins,function(){this.destroy&&this.destroy()});clearTimeout(this.timers.show);clearTimeout(this.timers.hide);this._unassignEvents();n.removeData(o).removeAttr(bt).removeAttr(ei).removeAttr("aria-describedby");this.options.suppress&&t&&n.attr("title",t).removeAttr(ut);this._unbind(n);this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=s;delete c.api[this.id]}}if(this.destroyed)return this.target;if((n!==f||this.triggering==="hide")&&this.rendered){this.tooltip.one("tooltiphidden",r.proxy(t,this));this.triggering||this.hide()}else t.call(this);return this.target};wt=e.checks={builtin:{"^id$":function(n,t,i,e){var s=i===f?c.nextid:i,h=o+"-"+s;s!==u&&s.length>0&&!r("#"+h).length?(this._id=h,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):n[t]=e},"^prerender":function(n,t,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(n,t,i){this._updateContent(i)},"^content.attr$":function(n,t,i,r){this.options.content.text===this.target.attr(r)&&this._updateContent(this.target.attr(i))},"^content.title$":function(n,t,i){if(!i)return this._removeTitle();i&&!this.elements.title&&this._createTitle();this._updateTitle(i)},"^content.button$":function(n,t,i){this._updateButton(i)},"^content.title.(text|button)$":function(n,t,i){this.set("content."+t,i)},"^position.(my|at)$":function(n,t,i){"string"==typeof i&&(n[t]=new it(i,t==="at"))},"^position.container$":function(n,t,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(n,t,i){i&&(!this.rendered&&this.render(f)||this.toggle(f))},"^style.classes$":function(n,t,i,r){this.rendered&&this.tooltip.removeClass(r).addClass(i)},"^style.(width|height)":function(n,t,i){this.rendered&&this.tooltip.css(t,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(n,t,i){this.rendered&&this.tooltip.toggleClass(oi,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(n,t,i){this.rendered&&this.tooltip[(r.isFunction(i)?"":"un")+"bind"]("tooltip"+t,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var n=this.options.position;this.tooltip.attr("tracking",n.target==="mouse"&&n.adjust.mouse);this._unassignEvents();this._assignEvents()}}}};e.get=function(n){if(this.destroyed)return this;var i=ki(this.options,n.toLowerCase()),t=i[0][i[1]];return t.precedance?t.string():t};di=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i;gi=/^prerender|show\.ready/i;e.set=function(n,t){if(this.destroyed)return this;var h=this.rendered,i=u,e=this.options,c=this.checks,o;return"string"==typeof n?(o=n,n={},n[o]=t):n=r.extend({},n),r.each(n,function(t,u){if(h&&gi.test(t)){delete n[t];return}var f=ki(e,t.toLowerCase()),o;o=f[0][f[1]];f[0][f[1]]=u&&u.nodeType?r(u):u;i=di.test(t)||i;n[t]=[f[0],f[1],u,o]}),dt(e),this.positioning=f,r.each(n,r.proxy(yr,this)),this.positioning=u,this.rendered&&this.tooltip[0].offsetWidth>0&&i&&this.reposition(e.position.target==="mouse"?s:this.cache.event),this};e._update=function(n,t){var i=this,e=this.cache;return!this.rendered||!n?u:(r.isFunction(n)&&(n=n.call(this.elements.target,e.event,this)||""),r.isFunction(n.then))?(e.waiting=f,n.then(function(n){return e.waiting=u,i._update(n,t)},s,function(n){return i._update(n,t)})):n===u||!n&&n!==""?u:(n.jquery&&n.length>0?t.empty().append(n.css({display:"block",visibility:"visible"})):t.html(n),this._waitForContent(t).then(function(n){n.images&&n.images.length&&i.rendered&&i.tooltip[0].offsetWidth>0&&i.reposition(e.event,!n.length)}))};e._waitForContent=function(n){var t=this.cache;return t.waiting=f,(r.fn.imagesLoaded?n.imagesLoaded():r.Deferred().resolve([])).done(function(){t.waiting=u}).promise()};e._updateContent=function(n,t){this._update(n,this.elements.content,t)};e._updateTitle=function(n,t){this._update(n,this.elements.title,t)===u&&this._removeTitle(u)};e._createTitle=function(){var n=this.elements,t=this._id+"-title";n.titlebar&&this._removeTitle();n.titlebar=r("<div />",{"class":o+"-titlebar "+(this.options.style.widget?gt("header"):"")}).append(n.title=r("<div />",{id:t,"class":o+"-title","aria-atomic":f})).insertBefore(n.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(n){r(this).toggleClass("ui-state-active ui-state-focus",n.type.substr(-4)==="down")}).delegate(".qtip-close","mouseover mouseout",function(n){r(this).toggleClass("ui-state-hover",n.type==="mouseover")});this.options.content.button&&this._createButton()};e._removeTitle=function(n){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=s,n!==u&&this.reposition())};e.reposition=function(i,e){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=f;var w=this.cache,g=this.tooltip,c=this.options.position,s=c.target,ft=c.my,d=c.at,et=c.viewport,st=c.container,nt=c.adjust,lt=nt.method.split(" "),ht=g.outerWidth(u),ct=g.outerHeight(u),it=0,rt=0,at=g.css("position"),o={left:0,top:0},yt=g[0].offsetWidth>0,pt=i&&i.type==="scroll",ot=r(n),vt=st[0].ownerDocument,ut=this.mouse,a,y;if(r.isArray(s)&&s.length===2)d={x:p,y:b},o={left:s[0],top:s[1]};else if(s==="mouse")d={x:p,y:b},ut&&ut.pageX&&(nt.mouse||!i||!i.pageX)?i=ut:i&&i.pageX||((!nt.mouse||this.options.show.distance)&&w.origin&&w.origin.pageX?i=w.origin:(!i||i&&(i.type==="resize"||i.type==="scroll"))&&(i=w.event)),at!=="static"&&(o=st.offset()),vt.body.offsetWidth!==(n.innerWidth||vt.documentElement.clientWidth)&&(y=r(t.body).offset()),o={left:i.pageX-o.left+(y&&y.left||0),top:i.pageY-o.top+(y&&y.top||0)},nt.mouse&&pt&&ut&&(o.left-=(ut.scrollX||0)-ot.scrollLeft(),o.top-=(ut.scrollY||0)-ot.scrollTop());else{if(s==="event"?i&&i.target&&i.type!=="scroll"&&i.type!=="resize"?w.target=r(i.target):i.target||(w.target=this.elements.target):s!=="event"&&(w.target=r(s.jquery?s:this.elements.target)),s=w.target,s=r(s).eq(0),s.length===0)return this;s[0]===t||s[0]===n?(it=v.iOS?n.innerWidth:s.width(),rt=v.iOS?n.innerHeight:s.height(),s[0]===n&&(o={top:(et||s).scrollTop(),left:(et||s).scrollLeft()})):h.imagemap&&s.is("area")?a=h.imagemap(this,s,d,h.viewport?lt:u):h.svg&&s&&s[0].ownerSVGElement?a=h.svg(this,s,d,h.viewport?lt:u):(it=s.outerWidth(u),rt=s.outerHeight(u),o=s.offset());a&&(it=a.width,rt=a.height,y=a.offset,o=a.position);o=this.reposition.offset(s,o,st);(v.iOS>3.1&&v.iOS<4.1||v.iOS>=4.3&&v.iOS<4.33||!v.iOS&&at==="fixed")&&(o.left-=ot.scrollLeft(),o.top-=ot.scrollTop());(!a||a&&a.adjustable!==u)&&(o.left+=d.x===k?it:d.x===l?it/2:0,o.top+=d.y===tt?rt:d.y===l?rt/2:0)}return(o.left+=nt.x+(ft.x===k?-ht:ft.x===l?-ht/2:0),o.top+=nt.y+(ft.y===tt?-ct:ft.y===l?-ct/2:0),h.viewport?(o.adjusted=h.viewport(this,o,c,it,rt,ht,ct),y&&o.adjusted.left&&(o.left+=y.left),y&&o.adjusted.top&&(o.top+=y.top)):o.adjusted={left:0,top:0},!this._trigger("move",[o,et.elem||et],i))?this:(delete o.adjusted,e===u||!yt||isNaN(o.left)||isNaN(o.top)||s==="mouse"||!r.isFunction(c.effect)?g.css(o):r.isFunction(c.effect)&&(c.effect.call(g,this,r.extend({},o)),g.queue(function(n){r(this).css({opacity:"",height:""});v.ie&&this.style.removeAttribute("filter");n()})),this.positioning=u,this)};e.reposition.offset=function(n,i,u){function l(n,t){i.left+=t*n.scrollLeft();i.top+=t*n.scrollTop()}if(!u[0])return i;var s=r(n[0].ownerDocument),a=!!v.ie&&t.compatMode!=="CSS1Compat",f=u[0],o,h,e,c;do(h=r.css(f,"position"))!=="static"&&(h==="fixed"?(e=f.getBoundingClientRect(),l(s,-1)):(e=r(f).position(),e.left+=parseFloat(r.css(f,"borderLeftWidth"))||0,e.top+=parseFloat(r.css(f,"borderTopWidth"))||0),i.left-=e.left+(parseFloat(r.css(f,"marginLeft"))||0),i.top-=e.top+(parseFloat(r.css(f,"marginTop"))||0),o||(c=r.css(f,"overflow"))==="hidden"||c==="visible"||(o=r(f)));while(f=f.offsetParent);return o&&(o[0]!==s[0]||a)&&l(o,1),i};vt=(it=e.reposition.Corner=function(n,t){n=(""+n).replace(/([A-Z])/," $1").replace(/middle/gi,l).toLowerCase();this.x=(n.match(/left|right/i)||n.match(/center/)||["inherit"])[0].toLowerCase();this.y=(n.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.forceY=!!t;var i=n.charAt(0);this.precedance=i==="t"||i==="b"?y:w}).prototype;vt.invert=function(n,t){this[n]=this[n]===p?k:this[n]===k?p:t||this[n]};vt.string=function(){var n=this.x,t=this.y;return n===t?n:this.precedance===y||this.forceY&&t!=="center"?t+" "+n:n+" "+t};vt.abbrev=function(){var n=this.string().split(" ");return n[0].charAt(0)+(n[1]&&n[1].charAt(0)||"")};vt.clone=function(){return new it(this.string(),this.forceY)};e.toggle=function(n,i){var c=this.cache,b=this.options,e=this.tooltip;if(i){if(/over|enter/.test(i.type)&&/out|leave/.test(c.event.type)&&b.show.target.add(i.target).length===b.show.target.length&&e.has(i.relatedTarget).length)return this;c.event=ni(i)}if(this.waiting&&!n&&(this.hiddenDuringWait=f),this.rendered){if(this.destroyed||this.disabled)return this}else return n?this.render(1):this;var y=n?"show":"hide",h=this.options[y],it=this.options[n?"hide":"show"],k=this.options.position,l=this.options.content,d=this.tooltip.css("width"),g=this.tooltip.is(":visible"),nt=n||h.target.length===1,tt=!i||h.target.length<2||c.target[0]===i.target,p,w,a;return((typeof n).search("boolean|number")&&(n=!g),p=!e.is(":animated")&&g===n&&tt,w=p?s:!!this._trigger(y,[90]),this.destroyed)?this:(w!==u&&n&&this.focus(i),!w||p)?this:(r.attr(e[0],"aria-hidden",!!!n),n?(c.origin=ni(this.mouse),r.isFunction(l.text)&&this._updateContent(l.text,u),r.isFunction(l.title)&&this._updateTitle(l.title,u),!kt&&k.target==="mouse"&&k.adjust.mouse&&(r(t).bind("mousemove."+o,this._storeMouse),kt=f),d||e.css("width",e.outerWidth(u)),this.reposition(i,arguments[2]),d||e.css("width",""),!h.solo||(typeof h.solo=="string"?r(h.solo):r(rt,h.solo)).not(e).not(h.target).qtip("hide",r.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete c.origin,kt&&!r(rt+'[tracking="true"]:visible',h.solo).not(e).length&&(r(t).unbind("mousemove."+o),kt=u),this.blur(i)),a=r.proxy(function(){n?(v.ie&&e[0].style.removeAttribute("filter"),e.css("overflow",""),"string"==typeof h.autofocus&&r(this.options.show.autofocus,e).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):e.css({display:"",visibility:"",opacity:"",left:"",top:""});this._trigger(n?"visible":"hidden")},this),h.effect===u||nt===u?(e[y](),a()):r.isFunction(h.effect)?(e.stop(1,1),h.effect.call(e,this),e.queue("fx",function(n){a();n()})):e.fadeTo(90,n?1:0,a),n&&h.target.trigger("qtip-"+this.id+"-inactive"),this)};e.show=function(n){return this.toggle(f,n)};e.hide=function(n){return this.toggle(u,n)};e.focus=function(n){if(!this.rendered||this.destroyed)return this;var t=r(rt),i=this.tooltip,f=parseInt(i[0].style.zIndex,10),u=c.zindex+t.length;return i.hasClass(ot)||this._trigger("focus",[u],n)&&(f!==u&&(t.each(function(){this.style.zIndex>f&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+ot).qtip("blur",n)),i.addClass(ot)[0].style.zIndex=u),this};e.blur=function(n){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(ot),this._trigger("blur",[this.tooltip.css("zIndex")],n),this)};e.disable=function(n){return this.destroyed?this:(n==="toggle"?n=!(this.rendered?this.tooltip.hasClass(a):this.disabled):"boolean"!=typeof n&&(n=f),this.rendered&&this.tooltip.toggleClass(a,n).attr("aria-disabled",n),this.disabled=!!n,this)};e.enable=function(){return this.disable(u)};e._createButton=function(){var e=this,n=this.elements,i=n.tooltip,t=this.options.content.button,s=typeof t=="string",f=s?t:"Close tooltip";n.button&&n.button.remove();n.button=t.jquery?t:r("<a />",{"class":"qtip-close "+(this.options.style.widget?"":o+"-icon"),title:f,"aria-label":f}).prepend(r("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));n.button.appendTo(n.titlebar||i).attr("role","button").click(function(n){return i.hasClass(a)||e.hide(n),u})};e._updateButton=function(n){if(!this.rendered)return u;var t=this.elements.button;n?this._createButton():t.remove()};e._setWidget=function(){var t=this.options.style.widget,n=this.elements,i=n.tooltip,r=i.hasClass(a);i.removeClass(a);a=t?"ui-state-disabled":"qtip-disabled";i.toggleClass(a,r);i.toggleClass("ui-helper-reset "+gt(),t).toggleClass(oi,this.options.style.def&&!t);n.content&&n.content.toggleClass(gt("content"),t);n.titlebar&&n.titlebar.toggleClass(gt("header"),t);n.button&&n.button.toggleClass(o+"-icon",!t)};e._storeMouse=function(n){(this.mouse=ni(n)).type="mousemove"};e._bind=function(n,t,i,u,f){var e="."+this._id+(u?"-"+u:"");t.length&&r(n).bind((t.split?t:t.join(e+" "))+e,r.proxy(i,f||this))};e._unbind=function(n,t){r(n).unbind("."+this._id+(t?"-"+t:""))};ci="."+o;r(function(){tr(rt,["mouseenter","mouseleave"],function(n){var u=n.type==="mouseenter",i=r(n.currentTarget),f=r(n.relatedTarget||n.target),t=this.options;u?(this.focus(n),i.hasClass(wi)&&!i.hasClass(a)&&clearTimeout(this.timers.hide)):t.position.target==="mouse"&&t.hide.event&&t.show.target&&!f.closest(t.show.target[0]).length&&this.hide(n);i.toggleClass(vr,u)});tr("["+bt+"]",pi,hi)});e._trigger=function(n,t,i){var f=r.Event("tooltip"+n);return f.originalEvent=i&&r.extend({},i)||this.cache.event||s,this.triggering=n,this.tooltip.trigger(f,[this].concat(t||[])),this.triggering=u,!f.isDefaultPrevented()};e._bindEvents=function(n,t,i,u,f,e){if(u.add(i).length===u.length){var o=[];t=r.map(t,function(t){var i=r.inArray(t,n);if(i>-1){o.push(n.splice(i,1)[0]);return}return t});o.length&&this._bind(i,o,function(n){var t=this.rendered?this.tooltip[0].offsetWidth>0:!1;(t?e:f).call(this,n)})}this._bind(i,n,f);this._bind(u,t,e)};e._assignInitialEvents=function(n){function s(n){if(this.disabled||this.destroyed)return u;this.cache.event=ni(n);this.cache.target=n?r(n.target):[i];clearTimeout(this.timers.show);this.timers.show=ti.call(this,function(){this.render(typeof n=="object"||t.show.ready)},t.show.delay)}var t=this.options,e=t.show.target,h=t.hide.target,c=t.show.event?r.trim(""+t.show.event).split(" "):[],o=t.hide.event?r.trim(""+t.hide.event).split(" "):[];/mouse(over|enter)/i.test(t.show.event)&&!/mouse(out|leave)/i.test(t.hide.event)&&o.push("mouseleave");this._bind(e,"mousemove",function(n){this._storeMouse(n);this.cache.onTarget=f});this._bindEvents(c,o,e,h,s,function(){clearTimeout(this.timers.show)});(t.show.ready||t.prerender)&&s.call(this,n)};e._assignEvents=function(){var v=this,i=this.options,u=i.position,f=this.tooltip,o=i.show.target,e=i.hide.target,y=u.container,s=u.viewport,h=r(t),b=r(t.body),l=r(n),p=i.show.event?r.trim(""+i.show.event).split(" "):[],w=i.hide.event?r.trim(""+i.hide.event).split(" "):[];r.each(i.events,function(n,t){v._bind(f,n==="toggle"?["tooltipshow","tooltiphide"]:["tooltip"+n],t,null,f)});/mouse(out|leave)/i.test(i.hide.event)&&i.hide.leave==="window"&&this._bind(h,["mouseout","blur"],function(n){/select|option/.test(n.target.nodeName)||n.relatedTarget||this.hide(n)});i.hide.fixed?e=e.add(f.addClass(wi)):/mouse(over|enter)/i.test(i.show.event)&&this._bind(e,"mouseleave",function(){clearTimeout(this.timers.show)});(""+i.hide.event).indexOf("unfocus")>-1&&this._bind(y.closest("html"),["mousedown","touchstart"],function(n){var t=r(n.target),i=this.rendered&&!this.tooltip.hasClass(a)&&this.tooltip[0].offsetWidth>0,u=t.parents(rt).filter(this.tooltip[0]).length>0;t[0]===this.target[0]||t[0]===this.tooltip[0]||u||this.target.has(t[0]).length||!i||this.hide(n)});"number"==typeof i.hide.inactive&&(this._bind(o,"qtip-"+this.id+"-inactive",hi),this._bind(e.add(f),c.inactiveEvents,hi,"-inactive"));this._bindEvents(p,w,o,e,pr,wr);this._bind(o.add(f),"mousemove",function(n){if("number"==typeof i.hide.distance){var t=this.cache.origin||{},r=this.options.hide.distance,u=Math.abs;(u(n.pageX-t.pageX)>=r||u(n.pageY-t.pageY)>=r)&&this.hide(n)}this._storeMouse(n)});u.target==="mouse"&&u.adjust.mouse&&(i.hide.event&&this._bind(o,["mouseenter","mouseleave"],function(n){this.cache.onTarget=n.type==="mouseenter"}),this._bind(h,"mousemove",function(n){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(a)&&this.tooltip[0].offsetWidth>0&&this.reposition(n)}));(u.adjust.resize||s.length)&&this._bind(r.event.special.resize?s:l,"resize",nr);u.adjust.scroll&&this._bind(l.add(u.container),"scroll",nr)};e._unassignEvents=function(){var i=[this.options.show.target[0],this.options.hide.target[0],this.rendered&&this.tooltip[0],this.options.position.container[0],this.options.position.viewport[0],this.options.position.container.closest("html")[0],n,t];this._unbind(r([]).pushStack(r.grep(i,function(n){return typeof n=="object"})))};c=r.fn.qtip=function(n,t,e){var a=(""+n).toLowerCase(),y=s,p=r.makeArray(arguments).slice(1),v=p[p.length-1],l=this[0]?r.data(this[0],o):s;return!arguments.length&&l||a==="api"?l:"string"==typeof n?(this.each(function(){var n=r.data(this,o);if(!n)return f;if(v&&v.timeStamp&&(n.cache.event=v),t&&(a==="option"||a==="options"))if(e!==i||r.isPlainObject(t))n.set(t,e);else return y=n.get(t),u;else n[a]&&n[a].apply(n,p)}),y!==s?y:this):"object"==typeof n||!arguments.length?(l=dt(r.extend(f,{},n)),this.each(function(n){var i,t;if(t=r.isArray(l.id)?l.id[n]:l.id,t=!t||t===u||t.length<1||c.api[t]?c.nextid++:t,i=br(r(this),t,l),i===u)return f;c.api[t]=i;r.each(h,function(){this.initialize==="initialize"&&this(i)});i._assignInitialEvents(v)})):void 0};r.qtip=si;c.api={};r.each({attr:function(n,t){if(this.length){var u=this[0],f="title",i=r.data(u,"qtip");if(n===f&&i&&"object"==typeof i&&i.options.suppress)return arguments.length<2?r.attr(u,ut):(i&&i.options.content.attr===f&&i.cache.attr&&i.set("content.text",t),this.attr(ut,t))}return r.fn["attr"+st].apply(this,arguments)},clone:function(n){var i=r([]),t=r.fn["clone"+st].apply(this,arguments);return n||t.filter("["+ut+"]").attr("title",function(){return r.attr(this,ut)}).removeAttr(ut),t}},function(n,t){if(!t||r.fn[n+st])return f;var i=r.fn[n+st]=r.fn[n];r.fn[n]=function(){return t.apply(this,arguments)||i.apply(this,arguments)}});r.ui||(r["cleanData"+st]=r.cleanData,r.cleanData=function(n){for(var i=0,t;(t=r(n[i])).length;i++)if(t.attr(ei))try{t.triggerHandler("removeqtip")}catch(u){}r["cleanData"+st].apply(this,arguments)});c.version="2.2.0";c.nextid=0;c.inactiveEvents=pi;c.zindex=15e3;c.defaults={prerender:u,id:u,overwrite:f,suppress:f,content:{text:f,attr:"title",title:u,button:u},position:{my:"top left",at:"bottom right",target:u,container:u,viewport:u,adjust:{x:0,y:0,mouse:f,scroll:f,resize:f,method:"flipinvert flipinvert"},effect:function(n,t){r(this).animate(t,{duration:200,queue:u})}},show:{target:u,event:"mouseenter",effect:f,delay:90,solo:u,ready:u,autofocus:u},hide:{target:u,event:"mouseleave",effect:f,delay:0,fixed:u,inactive:u,leave:"window",distance:u},style:{classes:"",widget:u,width:u,height:u,def:f},events:{render:s,move:s,show:s,hide:s,toggle:s,visible:s,hidden:s,focus:s,blur:s}};var li,ai="margin",ii="border",yt="color",ht="background-color",ir="transparent",rr=" !important",ri=!!t.createElement("canvas").getContext,ur=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i;if(ui={},fr=["Webkit","O","Moz","ms"],ri)var dr=n.devicePixelRatio||1,gr=function(){var n=t.createElement("canvas").getContext("2d");return n.backingStorePixelRatio||n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||1}(),lt=dr/gr;else vi=function(n,t,i){return"<qtipvml:"+n+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};r.extend(er.prototype,{init:function(n){var t,i;i=this.element=n.elements.tip=r("<div />",{"class":o+"-tip"}).prependTo(n.tooltip);ri?(t=r("<canvas />").appendTo(this.element)[0].getContext("2d"),t.lineJoin="miter",t.miterLimit=1e5,t.save()):(t=vi("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(t+t),n._bind(r("*",i).add(i),["click","mousedown"],function(n){n.stopPropagation()},this._ns));n._bind(n.tooltip,"tooltipmove",this.reposition,this._ns,this);this.create()},_swapDimensions:function(){this.size[0]=this.options.height;this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width;this.size[1]=this.options.height},_useTitle:function(n){var t=this.qtip.elements.titlebar;return t&&(n.y===b||n.y===l&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(f))},_parseCorner:function(n){var t=this.qtip.options.position.my;return n===u||t===u?n=u:n===f?n=new it(t.string()):n.string||(n=new it(n),n.fixed=f),n},_parseWidth:function(n,t,i){var r=this.qtip.elements,u=ii+pt(t)+"Width";return(i?ct(i,u):ct(r.content,u)||ct(this._useTitle(n)&&r.titlebar||r.content,u)||ct(r.tooltip,u))||0},_parseRadius:function(n){var t=this.qtip.elements,i=ii+pt(n.y)+pt(n.x)+"Radius";return v.ie<9?0:ct(this._useTitle(n)&&t.titlebar||t.content,i)||ct(t.tooltip,i)||0},_invalidColour:function(n,t,i){var r=n.css(t);return!r||i&&r===n.css(i)||ur.test(r)?u:r},_parseColours:function(n){var i=this.qtip.elements,u=this.element.css("cssText",""),f=ii+pt(n[n.precedance])+pt(yt),o=this._useTitle(n)&&i.titlebar||i.content,t=this._invalidColour,e=[];return e[0]=t(u,ht)||t(o,ht)||t(i.content,ht)||t(i.tooltip,ht)||u.css(ht),e[1]=t(u,f,yt)||t(o,f,yt)||t(i.content,f,yt)||t(i.tooltip,f,yt)||i.tooltip.css(f),r("*",u).add(u).css("cssText",ht+":"+ir+rr+";"+ii+":0"+rr+";"),e},_calculateSize:function(n){var o=n.precedance===y,s=this.options.width,r=this.options.height,h=n.abbrev()==="c",c=(o?s:r)*(h?.5:1),i=Math.pow,l=Math.round,a,f,e,u=Math.sqrt(i(c,2)+i(r,2)),t=[this.border/c*u,this.border/r*u];return t[2]=Math.sqrt(i(t[0],2)-i(this.border,2)),t[3]=Math.sqrt(i(t[1],2)-i(this.border,2)),a=u+t[2]+t[3]+(h?0:t[0]),f=a/u,e=[l(f*s),l(f*r)],o?e:e.reverse()},_calculateTip:function(n,t,i){i=i||1;t=t||this.size;var r=t[0]*i,u=t[1]*i,e=Math.ceil(r/2),o=Math.ceil(u/2),f={br:[0,0,r,u,r,0],bl:[0,0,r,0,0,u],tr:[0,u,r,0,r,u],tl:[0,0,0,u,r,u],tc:[0,u,e,0,r,u],bc:[0,0,r,0,e,u],rc:[0,0,r,o,0,u],lc:[r,0,r,u,0,o]};return f.lt=f.br,f.rt=f.bl,f.lb=f.tr,f.rb=f.tl,f[n.abbrev()]},_drawCoords:function(n,t){n.beginPath();n.moveTo(t[0],t[1]);n.lineTo(t[2],t[3]);n.lineTo(t[4],t[5]);n.closePath()},create:function(){var n=this.corner=(ri||v.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&this.corner.abbrev()!=="c")&&(this.qtip.cache.corner=n.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,i){if(!this.enabled)return this;var ht=this.qtip.elements,ot=this.element,rt=ot.children(),ut=this.options,nt=this.size,e=ut.mimic,ft=Math.round,a,et,h,c,st,g,o,s;t||(t=this.qtip.cache.corner||this.corner);e===u?e=t:(e=new it(e),e.precedance=t.precedance,e.x==="inherit"?e.x=t.x:e.y==="inherit"?e.y=t.y:e.x===e.y&&(e[t.precedance]=t[t.precedance]));et=e.precedance;t.precedance===w?this._swapDimensions():this._resetDimensions();a=this.color=this._parseColours(t);a[1]!==ir?(s=this.border=this._parseWidth(t,t[t.precedance]),ut.border&&s<1&&!ur.test(a[1])&&(a[0]=a[1]),this.border=s=ut.border!==f?ut.border:s):this.border=s=0;o=this.size=this._calculateSize(t);ot.css({width:o[0],height:o[1],lineHeight:o[1]+"px"});g=t.precedance===y?[ft(e.x===p?s:e.x===k?o[0]-nt[0]-s:(o[0]-nt[0])/2),ft(e.y===b?o[1]-nt[1]:0)]:[ft(e.x===p?o[0]-nt[0]:0),ft(e.y===b?s:e.y===tt?o[1]-nt[1]-s:(o[1]-nt[1])/2)];ri?(h=rt[0].getContext("2d"),h.restore(),h.save(),h.clearRect(0,0,6e3,6e3),c=this._calculateTip(e,nt,lt),st=this._calculateTip(e,this.size,lt),rt.attr(d,o[0]*lt).attr(at,o[1]*lt),rt.css(d,o[0]).css(at,o[1]),this._drawCoords(h,st),h.fillStyle=a[1],h.fill(),h.translate(g[0]*lt,g[1]*lt),this._drawCoords(h,c),h.fillStyle=a[0],h.fill()):(c=this._calculateTip(e),c="m"+c[0]+","+c[1]+" l"+c[2]+","+c[3]+" "+c[4]+","+c[5]+" xe",g[2]=s&&/^(r|b)/i.test(t.string())?v.ie===8?2:1:0,rt.css({coordsize:o[0]+s+" "+(o[1]+s),antialias:""+(e.string().indexOf(l)>-1),left:g[0]-g[2]*Number(et===w),top:g[1]-g[2]*Number(et===y),width:o[0]+s,height:o[1]+s}).each(function(n){var t=r(this);t[t.prop?"prop":"attr"]({coordsize:o[0]+s+" "+(o[1]+s),path:c,fillcolor:a[0],filled:!!n,stroked:!n}).toggle(!!(s||n));n||t.html(vi("stroke",'weight="'+s*2+'px" color="'+a[1]+'" miterlimit="1000" joinstyle="miter"'))}));n.opera&&setTimeout(function(){ht.tip.css({display:"inline-block",visibility:"visible"})},1);i!==u&&this.calculate(t,o)},calculate:function(n,t){if(!this.enabled)return u;var e=this,o=this.qtip.elements,c=this.element,h=this.options.offset,a=o.tooltip.hasClass("ui-widget"),i={},f,s;return n=n||this.corner,f=n.precedance,t=t||this._calculateSize(n),s=[n.x,n.y],f===w&&s.reverse(),r.each(s,function(r,u){var s,a,c;u===l?(s=f===y?p:b,i[s]="50%",i[ai+"-"+s]=-Math.round(t[f===y?0:1]/2)+h):(s=e._parseWidth(n,u,o.tooltip),a=e._parseWidth(n,u,o.content),c=e._parseRadius(n),i[u]=Math.max(-e.border,r?a:h+(c>s?c:-s)))}),i[n[f]]-=t[f===w?0:1],c.css({margin:"",top:"",bottom:"",left:"",right:""}).css(i),i},reposition:function(n,t,r){function it(n,t,i,r,u){n===et&&s.precedance===t&&h[r]&&s[i]!==l?s.precedance=s.precedance===w?y:w:n!==et&&h[r]&&(s[t]=s[t]===l?h[r]>0?r:u:s[t]===r?u:r)}function rt(n,t,f){s[n]===l?nt[ai+"-"+t]=o[n]=e[ai+"-"+t]-h[t]:(a=e[f]!==i?[h[t],-e[t]]:[-h[t],e[t]],(o[n]=Math.max(a[0],a[1]))>a[0]&&(r[t]-=h[t],o[t]=u),nt[e[f]!==i?f:t]=o[n])}if(this.enabled){var c=t.cache,s=this.corner.clone(),h=r.adjusted,v=t.options.position.adjust.method.split(" "),d=v[0],g=v[1]||v[0],o={left:u,top:u,x:0,y:0},e,nt={},a;this.corner.fixed!==f&&(it(d,w,y,p,k),it(g,y,w,b,tt),s.string()!==c.corner.string()&&(c.cornerTop!==h.top||c.cornerLeft!==h.left)&&this.update(s,u));e=this.calculate(s);e.right!==i&&(e.left=-e.right);e.bottom!==i&&(e.top=-e.bottom);e.user=this.offset;(o.left=d===et&&!!h.left)&&rt(w,p,k);(o.top=g===et&&!!h.top)&&rt(y,b,tt);this.element.css(nt).toggle(!(o.x&&o.y||s.x===l&&o.y||s.y===l&&o.x));r.left-=e.left.charAt?e.user:d!==et||o.top||!o.left&&!o.top?e.left+this.border:0;r.top-=e.top.charAt?e.user:g!==et||o.left||!o.left&&!o.top?e.top+this.border:0;c.cornerLeft=h.left;c.cornerTop=h.top;c.corner=s.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns);this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}});li=h.tip=function(n){return new er(n,n.options.style.tip)};li.initialize="render";li.sanitize=function(n){if(n.style&&"tip"in n.style){var t=n.style.tip;typeof t!="object"&&(t=n.style.tip={corner:t});/string|boolean/i.test(typeof t.corner)||(t.corner=f)}};wt.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create();this.qtip.reposition()},"^style.tip.(height|width)$":function(n){this.size=[n.width,n.height];this.update();this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}};r.extend(f,c.defaults,{style:{tip:{corner:f,mimic:u,width:6,height:6,border:f,offset:0}}});fi="qtip-modal";nt="."+fi;g=function(){function a(n){if(r.expr[":"].focusable)return r.expr[":"].focusable;var e=!isNaN(r.attr(n,"tabindex")),t=n.nodeName&&n.nodeName.toLowerCase(),i,u,f;return"area"===t?(i=n.parentNode,u=i.name,!n.href||!u||i.nodeName.toLowerCase()!=="map")?!1:(f=r("img[usemap=#"+u+"]")[0],!!f&&f.is(":visible")):/input|select|textarea|button|object/.test(t)?!n.disabled:"a"===t?n.href||e:e}function c(n){o.length<1&&n.length?n.not("body").blur():o.first().focus()}function v(t){if(n.is(":visible")){var f=r(t.target),e=i.tooltip,s=f.closest(rt),h;h=s.length<1?u:parseInt(s[0].style.zIndex,10)>parseInt(e[0].style.zIndex,10);h||f.closest(rt)[0]===e[0]||c(f);l=t.target===o[o.length-1]}}var e=this,o={},i,l,h,n;r.extend(e,{init:function(){return n=e.elem=r("<div />",{id:"qtip-overlay",html:"<div><\/div>",mousedown:function(){return u}}).hide(),r(t.body).bind("focusin"+nt,v),r(t).bind("keydown"+nt,function(n){i&&i.options.show.modal.escape&&n.keyCode===27&&i.hide(n)}),n.bind("click"+nt,function(n){i&&i.options.show.modal.blur&&i.hide(n)}),e},update:function(n){i=n;o=n.options.show.modal.stealfocus!==u?n.tooltip.find("*").filter(function(){return a(this)}):[]},toggle:function(o,l,a){var d=r(t.body),p=o.tooltip,v=o.options.show.modal,y=v.effect,w=l?"show":"hide",b=n.is(":visible"),k=r(nt).filter(":visible:not(:animated)").not(p);return(e.update(o),l&&v.stealfocus!==u&&c(r(":focus")),n.toggleClass("blurs",v.blur),l&&n.appendTo(t.body),n.is(":animated")&&b===l&&h!==u||!l&&k.length)?e:(n.stop(f,u),r.isFunction(y)?y.call(n,l):y===u?n[w]():n.fadeTo(parseInt(a,10)||90,l?1:0,function(){l||n.hide()}),l||n.queue(function(t){n.css({left:"",top:""});r(nt).length||n.detach();t()}),h=l,i.destroyed&&(i=s),e)}});e.init()};g=new g;r.extend(or.prototype,{init:function(n){var t=n.tooltip;if(!this.options.on)return this;n.elements.overlay=g.elem;t.addClass(fi).css("z-index",c.modal_zindex+r(nt).length);n._bind(t,["tooltipshow","tooltiphide"],function(n,i,u){var f=n.originalEvent;if(n.target===t[0])if(f&&n.type==="tooltiphide"&&/mouse(leave|enter)/.test(f.type)&&r(f.relatedTarget).closest(g.elem[0]).length)try{n.preventDefault()}catch(e){}else(!f||f&&f.type!=="tooltipsolo")&&this.toggle(n,n.type==="tooltipshow",u)},this._ns,this);n._bind(t,"tooltipfocus",function(n,i){if(!n.isDefaultPrevented()&&n.target===t[0]){var u=r(nt),f=c.modal_zindex+u.length,e=parseInt(t[0].style.zIndex,10);g.elem[0].style.zIndex=f-1;u.each(function(){this.style.zIndex>e&&(this.style.zIndex-=1)});u.filter("."+ot).qtip("blur",n.originalEvent);t.addClass(ot)[0].style.zIndex=f;g.update(i);try{n.preventDefault()}catch(o){}}},this._ns,this);n._bind(t,"tooltiphide",function(n){n.target===t[0]&&r(nt).filter(":visible").not(t).last().qtip("focus",n)},this._ns,this)},toggle:function(n,t,i){if(n&&n.isDefaultPrevented())return this;g.toggle(this.qtip,!!t,i)},destroy:function(){this.qtip.tooltip.removeClass(fi);this.qtip._unbind(this.qtip.tooltip,this._ns);g.toggle(this.qtip,u);delete this.qtip.elements.overlay}});yi=h.modal=function(n){return new or(n,n.options.show.modal)};yi.sanitize=function(n){n.show&&(typeof n.show.modal!="object"?n.show.modal={on:!!n.show.modal}:typeof n.show.modal.on=="undefined"&&(n.show.modal.on=f))};c.modal_zindex=c.zindex-200;yi.initialize="render";wt.modal={"^show.modal.(on|blur)$":function(){this.destroy();this.init();this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}};r.extend(f,c.defaults,{show:{modal:{on:u,effect:f,blur:f,stealfocus:f,escape:f}}});h.viewport=function(i,r,f,e,s,h,c){function dt(n,t,i,u,f,e,o,s,h){var a=r[f],c=g[n],b=gt[n],tt=i===et,k=c===f?h:c===e?-h:-h/2,it=b===f?s:b===e?-s:-s/2,nt=vt[f]+ut[f]-(kt?0:rt[f]),w=nt-a,p=a+h-(o===d?ct:lt)-nt,y=k-(g.precedance===n||c===g[t]?it:0)-(b===l?s/2:0);return tt?(y=(c===f?1:-1)*k,r[f]+=w>0?w:p>0?-p:0,r[f]=Math.max(-rt[f]+ut[f],a-y,Math.min(Math.max(-rt[f]+ut[f]+(o===d?ct:lt),a+y),r[f],c==="center"?a-k:1e9))):(u*=i===lr?2:0,w>0&&(c!==f||p>0)?(r[f]-=y+u,v.invert(n,f)):p>0&&(c!==e||w>0)&&(r[f]-=(c===l?-y:y)+u,v.invert(n,e)),r[f]<vt&&-r[f]>p&&(r[f]=a,v=g.clone())),r[f]-a}var yt=f.target,pt=i.elements.tooltip,g=f.my,gt=f.at,it=f.adjust,ft=it.method.split(" "),ot=ft[0],st=ft[1]||ft[0],a=f.viewport,wt=f.container,ni=i.cache,nt={left:0,top:0},ht,v,bt,rt,kt,ct,lt,vt,ut;return!a.jquery||yt[0]===n||yt[0]===t.body||it.method==="none"?nt:(rt=wt.offset()||nt,kt=wt.css("position")==="static",ht=pt.css("position")==="fixed",ct=a[0]===n?a.width():a.outerWidth(u),lt=a[0]===n?a.height():a.outerHeight(u),vt={left:ht?0:a.scrollLeft(),top:ht?0:a.scrollTop()},ut=a.offset()||nt,(ot!=="shift"||st!=="shift")&&(v=g.clone()),nt={left:ot!=="none"?dt(w,y,ot,it.x,p,k,d,e,h):0,top:st!=="none"?dt(y,w,st,it.y,b,tt,at,s,c):0},v&&ni.lastClass!==(bt=o+"-pos-"+v.abbrev())&&pt.removeClass(i.cache.lastClass).addClass(i.cache.lastClass=bt),nt)};h.polys={polygon:function(n,t){for(var i={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:u},f=0,r,e=[],o=1,s=1,a=0,v=0,h,c,f=n.length;f--;)r=[parseInt(n[--f],10),parseInt(n[f+1],10)],r[0]>i.position.right&&(i.position.right=r[0]),r[0]<i.position.left&&(i.position.left=r[0]),r[1]>i.position.bottom&&(i.position.bottom=r[1]),r[1]<i.position.top&&(i.position.top=r[1]),e.push(r);if(h=i.width=Math.abs(i.position.right-i.position.left),c=i.height=Math.abs(i.position.bottom-i.position.top),t.abbrev()==="c")i.position={left:i.position.left+i.width/2,top:i.position.top+i.height/2};else{while(h>0&&c>0&&o>0&&s>0)for(h=Math.floor(h/2),c=Math.floor(c/2),t.x===p?o=h:t.x===k?o=i.width-h:o+=Math.floor(h/2),t.y===b?s=c:t.y===tt?s=i.height-c:s+=Math.floor(c/2),f=e.length;f--;){if(e.length<2)break;a=e[f][0]-i.position.left;v=e[f][1]-i.position.top;(t.x===p&&a>=o||t.x===k&&a<=o||t.x===l&&(a<o||a>i.width-o)||t.y===b&&v>=s||t.y===tt&&v<=s||t.y===l&&(v<s||v>i.height-s))&&e.splice(f,1)}i.position={left:e[0][0],top:e[0][1]}}return i},rect:function(n,t,i,r){return{width:Math.abs(i-n),height:Math.abs(r-t),position:{left:Math.min(n,i),top:Math.min(t,r)}}},_angles:{tc:3/2,tr:7/4,tl:5/4,bc:1/2,br:1/4,bl:3/4,rc:2,lc:1,c:0},ellipse:function(n,t,i,r,f){var e=h.polys._angles[f.abbrev()],o=e===0?0:i*Math.cos(e*Math.PI),s=r*Math.sin(e*Math.PI);return{width:i*2-Math.abs(o),height:r*2-Math.abs(s),position:{left:n+o,top:t+s},adjustable:u}},circle:function(n,t,i,r){return h.polys.ellipse(n,t,i,i,r)}};h.svg=function(n,i,f){for(var d=r(t),e=i[0],s=r(e.ownerSVGElement),g=1,nt=1,tt=!0,p,w,it,b,v,rt,k,y,c,o,l,a;!e.getBBox;)e=e.parentNode;if(!e.getBBox||!e.parentNode)return u;p=s.attr("width")||s.width()||parseInt(s.css("width"),10);w=s.attr("height")||s.height()||parseInt(s.css("height"),10);a=(parseInt(i.css("stroke-width"),10)||0)/2;a&&(g+=a/p,nt+=a/w);switch(e.nodeName){case"ellipse":case"circle":o=h.polys.ellipse(e.cx.baseVal.value,e.cy.baseVal.value,(e.rx||e.r).baseVal.value+a,(e.ry||e.r).baseVal.value+a,f);break;case"line":case"polygon":case"polyline":for(c=e.points||[{x:e.x1.baseVal.value,y:e.y1.baseVal.value},{x:e.x2.baseVal.value,y:e.y2.baseVal.value}],o=[],y=-1,rt=c.numberOfItems||c.length;++y<rt;)k=c.getItem?c.getItem(y):c[y],o.push.apply(o,[k.x,k.y]);o=h.polys.polygon(o,f);break;default:o=e.getBoundingClientRect();o={width:o.width,height:o.height,position:{left:o.left,top:o.top}};tt=!1}return l=o.position,s=s[0],tt&&(s.createSVGPoint&&(it=e.getScreenCTM(),c=s.createSVGPoint(),c.x=l.left,c.y=l.top,b=c.matrixTransform(it),l.left=b.x,l.top=b.y),s.viewBox&&(v=s.viewBox.baseVal)&&v.width&&v.height&&(g*=p/v.width,nt*=w/v.height)),l.left+=d.scrollLeft(),l.top+=d.scrollTop(),o};h.imagemap=function(n,t,i){t.jquery||(t=r(t));var s=t.attr("shape").toLowerCase().replace("poly","polygon"),f=r('img[usemap="#'+t.parent("map").attr("name")+'"]'),y=r.trim(t.attr("coords")),c=y.replace(/,$/,"").split(","),e,l,a,o,v;if(!f.length)return u;if(s==="polygon")o=h.polys.polygon(c,i);else if(h.polys[s]){for(a=-1,v=c.length,l=[];++a<v;)l.push(parseInt(c[a],10));o=h.polys[s].apply(this,l.concat(i))}else return u;return e=f.offset(),e.left+=Math.ceil((f.outerWidth(u)-f.width())/2),e.top+=Math.ceil((f.outerHeight(u)-f.height())/2),o.position.left+=e.left,o.position.top+=e.top,o};hr='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"><\/iframe>';r.extend(cr.prototype,{_scroll:function(){var t=this.qtip.elements.overlay;t&&(t[0].style.top=r(n).scrollTop()+"px")},init:function(i){var u=i.tooltip;r("select, object").length<1&&(this.bgiframe=i.elements.bgiframe=r(hr).appendTo(u),i._bind(u,"tooltipmove",this.adjustBGIFrame,this._ns,this));this.redrawContainer=r("<div/>",{id:o+"-rcontainer"}).appendTo(t.body);i.elements.overlay&&i.elements.overlay.addClass("qtipmodal-ie6fix")&&(i._bind(n,["scroll","resize"],this._scroll,this._ns,this),i._bind(u,["tooltipshow"],this._scroll,this._ns,this));this.redraw()},adjustBGIFrame:function(){var t=this.qtip.tooltip,e={height:t.outerHeight(u),width:t.outerWidth(u)},r=this.qtip.plugins.tip,f=this.qtip.elements.tip,i,n;n=parseInt(t.css("borderLeftWidth"),10)||0;n={left:-n,top:-n};r&&f&&(i=r.corner.precedance==="x"?[d,p]:[at,b],n[i[1]]-=f[i[0]]());this.bgiframe.css(n).css(e)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var t=this.qtip.tooltip,u=this.qtip.options.style,e=this.qtip.options.position.container,f,n,i,r;return this.qtip.drawing=1,u.height&&t.css(at,u.height),u.width?t.css(d,u.width):(t.css(d,"").appendTo(this.redrawContainer),n=t.width(),n%2<1&&(n+=1),i=t.css("maxWidth")||"",r=t.css("minWidth")||"",f=(i+r).indexOf("%")>-1?e.width()/100:0,i=(i.indexOf("%")>-1?f:1)*parseInt(i,10)||n,r=(r.indexOf("%")>-1?f:1)*parseInt(r,10)||0,n=i+r?Math.min(Math.max(n,r),i):n,t.css(d,Math.round(n)).appendTo(e)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove();this.qtip._unbind([n,this.qtip.tooltip],this._ns)}});sr=h.ie6=function(n){return v.ie===6?new cr(n):u};sr.initialize="render";wt.ie6={"^content|style$":function(){this.redraw()}}})})(window,document);(function(n){"use strict";n(["jquery"],function(n){function i(t){return n.isFunction(t)||typeof t=="object"?t:{top:t,left:t}}var t=n.scrollTo=function(t,i,r){return n(window).scrollTo(t,i,r)};return t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1,limit:!0},t.window=function(){return n(window)._scrollable()},n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,/webkit/i.test(navigator.userAgent)||i.compatMode=="BackCompat"?i.body:i.documentElement):t})},n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function v(n){h.animate(o,u,f.easing,n&&function(){n.call(this,e,f)})}var a;if(r!=null){var s=this,h=n(s),e=r,c,o={},l=h.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}if(e=l?n(e):n(e,this),!e.length)return;case"object":(e.is||e.style)&&(c=(e=n(e)).offset())}a=n.isFunction(f.offset)&&f.offset(s,e)||f.offset;n.each(f.axis.split(""),function(n,i){var p=i=="x"?"Left":"Top",u=p.toLowerCase(),r="scroll"+p,w=s[r],b=t.max(s,i),y;c?(o[r]=c[u]+(l?0:w-h.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+p))||0,o[r]-=parseInt(e.css("border"+p+"Width"))||0),o[r]+=a[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(y=e[u],o[r]=y.slice&&y.slice(-1)=="%"?parseFloat(y)/100*b:y);f.limit&&/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],b));!n&&f.queue&&(w!=o[r]&&v(f.onAfterFirst),delete o[r])});v(f.onAfter)}}).end()},t.max=function(t,i){var r=i=="x"?"Width":"Height",u="scroll"+r;if(!n(t).is("html,body"))return t[u]-n(t)[r.toLowerCase()]();var f="client"+r,e=t.ownerDocument.documentElement,o=t.ownerDocument.body;return Math.max(e[u],o[u])-Math.min(e[f],o[f])},t})})(typeof define=="function"&&define.amd?define:function(n,t){typeof module!="undefined"&&module.exports?module.exports=t(require("jquery")):t(jQuery)});(function(){var t,i=this,ci=function(){},wt=function(n){var t=typeof n,i;if("object"==t)if(n){if(n instanceof Array)return"array";if(n instanceof Object)return t;if(i=Object.prototype.toString.call(n),"[object Window]"==i)return"object";if("[object Array]"==i||"number"==typeof n.length&&"undefined"!=typeof n.splice&&"undefined"!=typeof n.propertyIsEnumerable&&!n.propertyIsEnumerable("splice"))return"array";if("[object Function]"==i||"undefined"!=typeof n.call&&"undefined"!=typeof n.propertyIsEnumerable&&!n.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==t&&"undefined"==typeof n.call)return"object";return t},ht=function(n){return"array"==wt(n)},is=function(n){var t=wt(n);return"array"==t||"object"==t&&"number"==typeof n.length},f=function(n){return"string"==typeof n},y=function(n){return"function"==wt(n)},bt=function(n){var t=typeof n;return"object"==t&&null!=n||"function"==t},rs=function(n){return n.call.apply(n.bind,arguments)},us=function(n,t){if(!n)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,i),n.apply(t,r)}}return function(){return n.apply(t,arguments)}},s=function(){return s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?rs:us,s.apply(null,arguments)},ar=function(n){var t=Array.prototype.slice.call(arguments,1);return function(){var i=t.slice();return i.push.apply(i,arguments),n.apply(this,i)}},ff=Date.now||function(){return+new Date},li=null,ct=function(n,t){var u=n.split("."),r=i,f;for((u[0]in r)||!r.execScript||r.execScript("var "+u[0]);u.length&&(f=u.shift());)u.length||void 0===t?r=r[f]?r[f]:r[f]={}:r[f]=t},u=function(n,t){function i(){}i.prototype=t.prototype;n.superClass_=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.base=function(n,i){return t.prototype[i].apply(n,Array.prototype.slice.call(arguments,2))}},p,br,kr,pi,a,gi,su,yt,cu,rr,au,to,k,ut,er,bu,w,ui,ku,nt,du,sr,tt,b,hr,et,nf,tf,fi,ei,oi,si,rf,ao,go,hi,cr,st,ns,lr,ts,o,v,uf,n;Function.prototype.bind=Function.prototype.bind||function(n){if(1<arguments.length){var t=Array.prototype.slice.call(arguments,1);return t.unshift(this,n),s.apply(null,t)}return s(this,n)};p={};ct("RecaptchaTemplates",p);p.VertHtml='<table id="recaptcha_table" class="recaptchatable" > <tr> <td colspan="6" class=\'recaptcha_r1_c1\'><\/td> <\/tr> <tr> <td class=\'recaptcha_r2_c1\'><\/td> <td colspan="4" class=\'recaptcha_image_cell\'><center><div id="recaptcha_image"><\/div><\/center><\/td> <td class=\'recaptcha_r2_c2\'><\/td> <\/tr> <tr> <td rowspan="6" class=\'recaptcha_r3_c1\'><\/td> <td colspan="4" class=\'recaptcha_r3_c2\'><\/td> <td rowspan="6" class=\'recaptcha_r3_c3\'><\/td> <\/tr> <tr> <td rowspan="3" class=\'recaptcha_r4_c1\' height="49"> <div class="recaptcha_input_area"> <input name="recaptcha_response_field" id="recaptcha_response_field" type="text" autocorrect="off" autocapitalize="off" placeholder="" /> <span id="recaptcha_privacy" class="recaptcha_only_if_privacy"><\/span> <\/div> <\/td> <td rowspan="4" class=\'recaptcha_r4_c2\'><\/td> <td><a id=\'recaptcha_reload_btn\'><img id=\'recaptcha_reload\' width="25" height="17" /><\/a><\/td> <td rowspan="4" class=\'recaptcha_r4_c4\'><\/td> <\/tr> <tr> <td><a id=\'recaptcha_switch_audio_btn\' class="recaptcha_only_if_image"><img id=\'recaptcha_switch_audio\' width="25" height="16" alt="" /><\/a><a id=\'recaptcha_switch_img_btn\' class="recaptcha_only_if_audio"><img id=\'recaptcha_switch_img\' width="25" height="16" alt=""/><\/a><\/td> <\/tr> <tr> <td><a id=\'recaptcha_whatsthis_btn\'><img id=\'recaptcha_whatsthis\' width="25" height="16" /><\/a><\/td> <\/tr> <tr> <td class=\'recaptcha_r7_c1\'><\/td> <td class=\'recaptcha_r8_c1\'><\/td> <\/tr> <\/table> ';p.CleanCss=".recaptchatable td img{display:block}.recaptchatable .recaptcha_image_cell center img{height:57px}.recaptchatable .recaptcha_image_cell center{height:57px}.recaptchatable .recaptcha_image_cell{background-color:white;height:57px;padding:7px!important}.recaptchatable,#recaptcha_area tr,#recaptcha_area td,#recaptcha_area th{margin:0!important;border:0!important;border-collapse:collapse!important;vertical-align:middle!important}.recaptchatable *{margin:0;padding:0;border:0;color:black;position:static;top:auto;left:auto;right:auto;bottom:auto}.recaptchatable #recaptcha_image{position:relative;margin:auto;border:1px solid #dfdfdf!important}.recaptchatable #recaptcha_image #recaptcha_challenge_image{display:block}.recaptchatable #recaptcha_image #recaptcha_ad_image{display:block;position:absolute;top:0}.recaptchatable a img{border:0}.recaptchatable a,.recaptchatable a:hover{cursor:pointer;outline:none;border:0!important;padding:0!important;text-decoration:none;color:blue;background:none!important;font-weight:normal}.recaptcha_input_area{position:relative!important;background:none!important}.recaptchatable label.recaptcha_input_area_text{border:1px solid #dfdfdf!important;margin:0!important;padding:0!important;position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important}.recaptcha_theme_red label.recaptcha_input_area_text,.recaptcha_theme_white label.recaptcha_input_area_text{color:black!important}.recaptcha_theme_blackglass label.recaptcha_input_area_text{color:white!important}.recaptchatable #recaptcha_response_field{font-size:11pt}.recaptcha_theme_blackglass #recaptcha_response_field,.recaptcha_theme_white #recaptcha_response_field{border:1px solid gray}.recaptcha_theme_red #recaptcha_response_field{border:1px solid #cca940}.recaptcha_audio_cant_hear_link{font-size:7pt;color:black}.recaptchatable{line-height:1em;border:1px solid #dfdfdf!important}.recaptcha_error_text{color:red}.recaptcha_only_if_privacy{float:right;text-align:right;margin-right:7px}#recaptcha-ad-choices{position:absolute;height:15px;top:0;right:0}#recaptcha-ad-choices img{height:15px}.recaptcha-ad-choices-collapsed{width:30px;height:15px;display:block}.recaptcha-ad-choices-expanded{width:75px;height:15px;display:none}#recaptcha-ad-choices:hover .recaptcha-ad-choices-collapsed{display:none}#recaptcha-ad-choices:hover .recaptcha-ad-choices-expanded{display:block}";p.CleanHtml='<table id="recaptcha_table" class="recaptchatable"> <tr height="73"> <td class=\'recaptcha_image_cell\' width="302"><center><div id="recaptcha_image"><\/div><\/center><\/td> <td style="padding: 10px 7px 7px 7px;"> <a id=\'recaptcha_reload_btn\'><img id=\'recaptcha_reload\' width="25" height="18" alt="" /><\/a> <a id=\'recaptcha_switch_audio_btn\' class="recaptcha_only_if_image"><img id=\'recaptcha_switch_audio\' width="25" height="15" alt="" /><\/a><a id=\'recaptcha_switch_img_btn\' class="recaptcha_only_if_audio"><img id=\'recaptcha_switch_img\' width="25" height="15" alt=""/><\/a> <a id=\'recaptcha_whatsthis_btn\'><img id=\'recaptcha_whatsthis\' width="25" height="16" /><\/a> <\/td> <td style="padding: 18px 7px 18px 7px;"> <img id=\'recaptcha_logo\' alt="" width="71" height="36" /> <\/td> <\/tr> <tr> <td style="padding-left: 7px;"> <div class="recaptcha_input_area" style="padding-top: 2px; padding-bottom: 7px;"> <input style="border: 1px solid #3c3c3c; width: 302px;" name="recaptcha_response_field" id="recaptcha_response_field" type="text" /> <\/div> <\/td> <td colspan=2><span id="recaptcha_privacy" class="recaptcha_only_if_privacy"><\/span><\/td> <\/tr> <\/table> ';p.VertCss=".recaptchatable td img{display:block}.recaptchatable .recaptcha_r1_c1{background:url('IMGROOT/sprite.png') 0 -63px no-repeat;width:318px;height:9px}.recaptchatable .recaptcha_r2_c1{background:url('IMGROOT/sprite.png') -18px 0 no-repeat;width:9px;height:57px}.recaptchatable .recaptcha_r2_c2{background:url('IMGROOT/sprite.png') -27px 0 no-repeat;width:9px;height:57px}.recaptchatable .recaptcha_r3_c1{background:url('IMGROOT/sprite.png') 0 0 no-repeat;width:9px;height:63px}.recaptchatable .recaptcha_r3_c2{background:url('IMGROOT/sprite.png') -18px -57px no-repeat;width:300px;height:6px}.recaptchatable .recaptcha_r3_c3{background:url('IMGROOT/sprite.png') -9px 0 no-repeat;width:9px;height:63px}.recaptchatable .recaptcha_r4_c1{background:url('IMGROOT/sprite.png') -43px 0 no-repeat;width:171px;height:49px}.recaptchatable .recaptcha_r4_c2{background:url('IMGROOT/sprite.png') -36px 0 no-repeat;width:7px;height:57px}.recaptchatable .recaptcha_r4_c4{background:url('IMGROOT/sprite.png') -214px 0 no-repeat;width:97px;height:57px}.recaptchatable .recaptcha_r7_c1{background:url('IMGROOT/sprite.png') -43px -49px no-repeat;width:171px;height:8px}.recaptchatable .recaptcha_r8_c1{background:url('IMGROOT/sprite.png') -43px -49px no-repeat;width:25px;height:8px}.recaptchatable .recaptcha_image_cell center img{height:57px}.recaptchatable .recaptcha_image_cell center{height:57px}.recaptchatable .recaptcha_image_cell{background-color:white;height:57px}#recaptcha_area,#recaptcha_table{width:318px!important}.recaptchatable,#recaptcha_area tr,#recaptcha_area td,#recaptcha_area th{margin:0!important;border:0!important;padding:0!important;border-collapse:collapse!important;vertical-align:middle!important}.recaptchatable *{margin:0;padding:0;border:0;font-family:helvetica,sans-serif;font-size:8pt;color:black;position:static;top:auto;left:auto;right:auto;bottom:auto}.recaptchatable #recaptcha_image{position:relative;margin:auto}.recaptchatable #recaptcha_image #recaptcha_challenge_image{display:block}.recaptchatable #recaptcha_image #recaptcha_ad_image{display:block;position:absolute;top:0}.recaptchatable img{border:0!important;margin:0!important;padding:0!important}.recaptchatable a,.recaptchatable a:hover{cursor:pointer;outline:none;border:0!important;padding:0!important;text-decoration:none;color:blue;background:none!important;font-weight:normal}.recaptcha_input_area{position:relative!important;width:153px!important;height:45px!important;margin-left:7px!important;margin-right:7px!important;background:none!important}.recaptchatable label.recaptcha_input_area_text{margin:0!important;padding:0!important;position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;background:none!important;height:auto!important;width:auto!important}.recaptcha_theme_red label.recaptcha_input_area_text,.recaptcha_theme_white label.recaptcha_input_area_text{color:black!important}.recaptcha_theme_blackglass label.recaptcha_input_area_text{color:white!important}.recaptchatable #recaptcha_response_field{width:153px!important;position:relative!important;bottom:7px!important;padding:0!important;margin:15px 0 0 0!important;font-size:10pt}.recaptcha_theme_blackglass #recaptcha_response_field,.recaptcha_theme_white #recaptcha_response_field{border:1px solid gray}.recaptcha_theme_red #recaptcha_response_field{border:1px solid #cca940}.recaptcha_audio_cant_hear_link{font-size:7pt;color:black}.recaptchatable{line-height:1!important}#recaptcha_instructions_error{color:red!important}.recaptcha_only_if_privacy{float:right;text-align:right}#recaptcha-ad-choices{position:absolute;height:15px;top:0;right:0}#recaptcha-ad-choices img{height:15px}.recaptcha-ad-choices-collapsed{width:30px;height:15px;display:block}.recaptcha-ad-choices-expanded{width:75px;height:15px;display:none}#recaptcha-ad-choices:hover .recaptcha-ad-choices-collapsed{display:none}#recaptcha-ad-choices:hover .recaptcha-ad-choices-expanded{display:block}";var kt={visual_challenge:"Get a visual challenge",audio_challenge:"Get an audio challenge",refresh_btn:"Get a new challenge",instructions_visual:"Type the text:",instructions_audio:"Type what you hear:",help_btn:"Help",play_again:"Play sound again",cant_hear_this:"Download sound as MP3",incorrect_try_again:"Incorrect. Try again.",image_alt_text:"reCAPTCHA challenge image",privacy_and_terms:"Privacy & Terms"},ef={visual_challenge:"الحصول على تحدٍ مرئي",audio_challenge:"الحصول على تحدٍ صوتي",refresh_btn:"الحصول على تحدٍ جديد",instructions_visual:"يرجى كتابة النص:",instructions_audio:"اكتب ما تسمعه:",help_btn:"مساعدة",play_again:"تشغيل الصوت مرة أخرى",cant_hear_this:"تنزيل الصوت بتنسيق MP3",incorrect_try_again:"غير صحيح. أعد المحاولة.",image_alt_text:"صورة التحدي من reCAPTCHA",privacy_and_terms:"الخصوصية والبنود"},of={visual_challenge:"Obtener una pista visual",audio_challenge:"Obtener una pista sonora",refresh_btn:"Obtener una pista nueva",instructions_visual:"Introduzca el texto:",instructions_audio:"Escribe lo que oigas:",help_btn:"Ayuda",play_again:"Volver a reproducir el sonido",cant_hear_this:"Descargar el sonido en MP3",incorrect_try_again:"Incorrecto. Vuélvelo a intentar.",image_alt_text:"Pista de imagen reCAPTCHA",privacy_and_terms:"Privacidad y condiciones"},sf={visual_challenge:"Kumuha ng pagsubok na visual",audio_challenge:"Kumuha ng pagsubok na audio",refresh_btn:"Kumuha ng bagong pagsubok",instructions_visual:"I-type ang teksto:",instructions_audio:"I-type ang iyong narinig",help_btn:"Tulong",play_again:"I-play muli ang tunog",cant_hear_this:"I-download ang tunog bilang MP3",incorrect_try_again:"Hindi wasto. Muling subukan.",image_alt_text:"larawang panghamon ng reCAPTCHA",privacy_and_terms:"Privacy at Mga Tuntunin"},vr={visual_challenge:"Test visuel",audio_challenge:"Test audio",refresh_btn:"Nouveau test",instructions_visual:"Saisissez le texte :",instructions_audio:"Qu'entendez-vous ?",help_btn:"Aide",play_again:"Réécouter",cant_hear_this:"Télécharger l'audio au format MP3",incorrect_try_again:"Incorrect. Veuillez réessayer.",image_alt_text:"Image reCAPTCHA",privacy_and_terms:"Confidentialité et conditions d'utilisation"},hf={visual_challenge:"Dapatkan kata pengujian berbentuk visual",audio_challenge:"Dapatkan kata pengujian berbentuk audio",refresh_btn:"Dapatkan kata pengujian baru",instructions_visual:"Ketik teks:",instructions_audio:"Ketik yang Anda dengar:",help_btn:"Bantuan",play_again:"Putar suara sekali lagi",cant_hear_this:"Unduh suara sebagai MP3",incorrect_try_again:"Salah. Coba lagi.",image_alt_text:"Gambar tantangan reCAPTCHA",privacy_and_terms:"Privasi & Persyaratan"},cf={visual_challenge:"קבל אתגר חזותי",audio_challenge:"קבל אתגר שמע",refresh_btn:"קבל אתגר חדש",instructions_visual:"הקלד את הטקסט:",instructions_audio:"הקלד את מה שאתה שומע:",help_btn:"עזרה",play_again:"הפעל שוב את השמע",cant_hear_this:"הורד שמע כ-3MP",incorrect_try_again:"שגוי. נסה שוב.",image_alt_text:"תמונת אתגר של reCAPTCHA",privacy_and_terms:"פרטיות ותנאים"},lf={visual_challenge:"Obter um desafio visual",audio_challenge:"Obter um desafio de áudio",refresh_btn:"Obter um novo desafio",instructions_visual:"Digite o texto:",instructions_audio:"Digite o que você ouve:",help_btn:"Ajuda",play_again:"Reproduzir som novamente",cant_hear_this:"Fazer download do som no formato MP3",incorrect_try_again:"Incorreto. Tente novamente.",image_alt_text:"Imagem de desafio reCAPTCHA",privacy_and_terms:"Privacidade e Termos"},af={visual_challenge:"Obţineţi un cod captcha vizual",audio_challenge:"Obţineţi un cod captcha audio",refresh_btn:"Obţineţi un nou cod captcha",instructions_visual:"Introduceți textul:",instructions_audio:"Introduceţi ceea ce auziţi:",help_btn:"Ajutor",play_again:"Redaţi sunetul din nou",cant_hear_this:"Descărcaţi fişierul audio ca MP3",incorrect_try_again:"Incorect. Încercaţi din nou.",image_alt_text:"Imagine de verificare reCAPTCHA",privacy_and_terms:"Confidenţialitate şi termeni"},vf={visual_challenge:"收到一个视频邀请",audio_challenge:"换一组音频验证码",refresh_btn:"换一组验证码",instructions_visual:"输入文字：",instructions_audio:"请键入您听到的内容：",help_btn:"帮助",play_again:"重新播放",cant_hear_this:"以 MP3 格式下载声音",incorrect_try_again:"不正确，请重试。",image_alt_text:"reCAPTCHA 验证图片",privacy_and_terms:"隐私权和使用条款"},fs={en:kt,af:{visual_challenge:"Kry 'n visuele verifiëring",audio_challenge:"Kry 'n klankverifiëring",refresh_btn:"Kry 'n nuwe verifiëring",instructions_visual:"",instructions_audio:"Tik wat jy hoor:",help_btn:"Hulp",play_again:"Speel geluid weer",cant_hear_this:"Laai die klank af as MP3",incorrect_try_again:"Verkeerd. Probeer weer.",image_alt_text:"reCAPTCHA-uitdagingprent",privacy_and_terms:"Privaatheid en bepalings"},am:{visual_challenge:"የእይታ ተጋጣሚ አግኝ",audio_challenge:"ሌላ አዲስ የድምጽ ጥያቄ ይቅረብ",refresh_btn:"ሌላ አዲስ ጥያቄ ይቅረብ",instructions_visual:"",instructions_audio:"የምትሰማውን ተይብ፡-",help_btn:"እገዛ",play_again:"ድምጹን እንደገና አጫውት",cant_hear_this:"ድምጹን በMP3 ቅርጽ አውርድ",incorrect_try_again:"ትክክል አይደለም። እንደገና ሞክር።",image_alt_text:"reCAPTCHA ምስል ግጠም",privacy_and_terms:"ግላዊነት እና ውል"},ar:ef,"ar-EG":ef,bg:{visual_challenge:"Получаване на визуална проверка",audio_challenge:"Зареждане на аудиотест",refresh_btn:"Зареждане на нов тест",instructions_visual:"Въведете текста:",instructions_audio:"Въведете чутото:",help_btn:"Помощ",play_again:"Повторно пускане на звука",cant_hear_this:"Изтегляне на звука във формат MP3",incorrect_try_again:"Неправилно. Опитайте отново.",image_alt_text:"Изображение на проверката с reCAPTCHA",privacy_and_terms:"Поверителност и Общи условия"},bn:{visual_challenge:"একটি দৃশ্যমান প্রতিদ্বন্দ্বিতা পান",audio_challenge:"একটি অডিও প্রতিদ্বন্দ্বিতা  পান",refresh_btn:"একটি নতুন প্রতিদ্বন্দ্বিতা  পান",instructions_visual:"",instructions_audio:"আপনি যা শুনছেন তা লিখুন:",help_btn:"সহায়তা",play_again:"আবার সাউন্ড প্লে করুন",cant_hear_this:"MP3 রূপে শব্দ ডাউনলোড করুন",incorrect_try_again:"বেঠিক৷ আবার চেষ্টা করুন৷",image_alt_text:"reCAPTCHA চ্যালেঞ্জ চিত্র",privacy_and_terms:"গোপনীয়তা ও শর্তাবলী"},ca:{visual_challenge:"Obtén un repte visual",audio_challenge:"Obteniu una pista sonora",refresh_btn:"Obteniu una pista nova",instructions_visual:"Escriviu el text:",instructions_audio:"Escriviu el que escolteu:",help_btn:"Ajuda",play_again:"Torna a reproduir el so",cant_hear_this:"Baixa el so com a MP3",incorrect_try_again:"No és correcte. Torna-ho a provar.",image_alt_text:"Imatge del repte de reCAPTCHA",privacy_and_terms:"Privadesa i condicions"},cs:{visual_challenge:"Zobrazit vizuální podobu výrazu",audio_challenge:"Přehrát zvukovou podobu výrazu",refresh_btn:"Zobrazit nový výraz",instructions_visual:"Zadejte text:",instructions_audio:"Napište, co jste slyšeli:",help_btn:"Nápověda",play_again:"Znovu přehrát zvuk",cant_hear_this:"Stáhnout zvuk ve formátu MP3",incorrect_try_again:"Špatně. Zkuste to znovu.",image_alt_text:"Obrázek reCAPTCHA",privacy_and_terms:"Ochrana soukromí a smluvní podmínky"},da:{visual_challenge:"Hent en visuel udfordring",audio_challenge:"Hent en lydudfordring",refresh_btn:"Hent en ny udfordring",instructions_visual:"Indtast teksten:",instructions_audio:"Indtast det, du hører:",help_btn:"Hjælp",play_again:"Afspil lyden igen",cant_hear_this:"Download lyd som MP3",incorrect_try_again:"Forkert. Prøv igen.",image_alt_text:"reCAPTCHA-udfordringsbillede",privacy_and_terms:"Privatliv og vilkår"},de:{visual_challenge:"Captcha abrufen",audio_challenge:"Audio-Captcha abrufen",refresh_btn:"Neues Captcha abrufen",instructions_visual:"Geben Sie den angezeigten Text ein:",instructions_audio:"Geben Sie das Gehörte ein:",help_btn:"Hilfe",play_again:"Wort erneut abspielen",cant_hear_this:"Wort als MP3 herunterladen",incorrect_try_again:"Falsch. Bitte versuchen Sie es erneut.",image_alt_text:"reCAPTCHA-Bild",privacy_and_terms:"Datenschutzerklärung & Nutzungsbedingungen"},el:{visual_challenge:"Οπτική πρόκληση",audio_challenge:"Ηχητική πρόκληση",refresh_btn:"Νέα πρόκληση",instructions_visual:"Πληκτρολογήστε το κείμενο:",instructions_audio:"Πληκτρολογήστε ότι ακούτε:",help_btn:"Βοήθεια",play_again:"Αναπαραγωγή ήχου ξανά",cant_hear_this:"Λήψη ήχου ως ΜΡ3",incorrect_try_again:"Λάθος. Δοκιμάστε ξανά.",image_alt_text:"Εικόνα πρόκλησης reCAPTCHA",privacy_and_terms:"Απόρρητο και όροι"},"en-GB":kt,"en-US":kt,es:of,"es-419":{visual_challenge:"Enfrentar un desafío visual",audio_challenge:"Enfrentar un desafío de audio",refresh_btn:"Enfrentar un nuevo desafío",instructions_visual:"Escriba el texto:",instructions_audio:"Escribe lo que escuchas:",help_btn:"Ayuda",play_again:"Reproducir sonido de nuevo",cant_hear_this:"Descargar sonido en formato MP3",incorrect_try_again:"Incorrecto. Vuelve a intentarlo.",image_alt_text:"Imagen del desafío de la reCAPTCHA",privacy_and_terms:"Privacidad y condiciones"},"es-ES":of,et:{visual_challenge:"Kuva kuvapõhine robotilõks",audio_challenge:"Kuva helipõhine robotilõks",refresh_btn:"Kuva uus robotilõks",instructions_visual:"Tippige tekst:",instructions_audio:"Tippige, mida kuulete.",help_btn:"Abi",play_again:"Esita heli uuesti",cant_hear_this:"Laadi heli alla MP3-vormingus",incorrect_try_again:"Vale. Proovige uuesti.",image_alt_text:"reCAPTCHA robotilõksu kujutis",privacy_and_terms:"Privaatsus ja tingimused"},eu:{visual_challenge:"Eskuratu ikusizko erronka",audio_challenge:"Eskuratu audio-erronka",refresh_btn:"Eskuratu erronka berria",instructions_visual:"",instructions_audio:"Idatzi entzuten duzuna:",help_btn:"Laguntza",play_again:"Erreproduzitu soinua berriro",cant_hear_this:"Deskargatu soinua MP3 gisa",incorrect_try_again:"Ez da zuzena. Saiatu berriro.",image_alt_text:"reCAPTCHA erronkaren irudia",privacy_and_terms:"Pribatutasuna eta baldintzak"},fa:{visual_challenge:"دریافت یک معمای دیداری",audio_challenge:"دریافت یک معمای صوتی",refresh_btn:"دریافت یک معمای جدید",instructions_visual:"",instructions_audio:"آنچه را که می‌شنوید تایپ کنید:",help_btn:"راهنمایی",play_again:"پخش مجدد صدا",cant_hear_this:"دانلود صدا به صورت MP3",incorrect_try_again:"نادرست. دوباره امتحان کنید.",image_alt_text:"تصویر چالشی reCAPTCHA",privacy_and_terms:"حریم خصوصی و شرایط"},fi:{visual_challenge:"Kuvavahvistus",audio_challenge:"Äänivahvistus",refresh_btn:"Uusi kuva",instructions_visual:"Kirjoita teksti:",instructions_audio:"Kirjoita kuulemasi:",help_btn:"Ohje",play_again:"Toista ääni uudelleen",cant_hear_this:"Lataa ääni MP3-tiedostona",incorrect_try_again:"Väärin. Yritä uudelleen.",image_alt_text:"reCAPTCHA-kuva",privacy_and_terms:"Tietosuoja ja käyttöehdot"},fil:sf,fr:vr,"fr-CA":{visual_challenge:"Obtenir un test visuel",audio_challenge:"Obtenir un test audio",refresh_btn:"Obtenir un nouveau test",instructions_visual:"Saisissez le texte :",instructions_audio:"Tapez ce que vous entendez :",help_btn:"Aide",play_again:"Jouer le son de nouveau",cant_hear_this:"Télécharger le son en format MP3",incorrect_try_again:"Erreur, essayez à nouveau",image_alt_text:"Image reCAPTCHA",privacy_and_terms:"Confidentialité et conditions d'utilisation"},"fr-FR":vr,gl:{visual_challenge:"Obter unha proba visual",audio_challenge:"Obter unha proba de audio",refresh_btn:"Obter unha proba nova",instructions_visual:"",instructions_audio:"Escribe o que escoitas:",help_btn:"Axuda",play_again:"Reproducir o son de novo",cant_hear_this:"Descargar son como MP3",incorrect_try_again:"Incorrecto. Téntao de novo.",image_alt_text:"Imaxe de proba de reCAPTCHA",privacy_and_terms:"Privacidade e condicións"},gu:{visual_challenge:"એક દૃશ્યાત્મક પડકાર મેળવો",audio_challenge:"એક ઑડિઓ પડકાર મેળવો",refresh_btn:"એક નવો પડકાર મેળવો",instructions_visual:"",instructions_audio:"તમે જે સાંભળો છો તે લખો:",help_btn:"સહાય",play_again:"ધ્વનિ ફરીથી ચલાવો",cant_hear_this:"MP3 તરીકે ધ્વનિને ડાઉનલોડ કરો",incorrect_try_again:"ખોટું. ફરી પ્રયાસ કરો.",image_alt_text:"reCAPTCHA પડકાર છબી",privacy_and_terms:"ગોપનીયતા અને શરતો"},hi:{visual_challenge:"कोई विजुअल चुनौती लें",audio_challenge:"कोई ऑडियो चुनौती लें",refresh_btn:"कोई नई चुनौती लें",instructions_visual:"टेक्स्ट टाइप करें:",instructions_audio:"जो आप सुन रहे हैं उसे लिखें:",help_btn:"सहायता",play_again:"ध्‍वनि पुन: चलाएं",cant_hear_this:"ध्‍वनि को MP3 के रूप में डाउनलोड करें",incorrect_try_again:"गलत. पुन: प्रयास करें.",image_alt_text:"reCAPTCHA चुनौती चित्र",privacy_and_terms:"गोपनीयता और शर्तें"},hr:{visual_challenge:"Dohvati vizualni upit",audio_challenge:"Dohvati zvučni upit",refresh_btn:"Dohvati novi upit",instructions_visual:"Unesite tekst:",instructions_audio:"Upišite što čujete:",help_btn:"Pomoć",play_again:"Ponovi zvuk",cant_hear_this:"Preuzmi zvuk u MP3 formatu",incorrect_try_again:"Nije točno. Pokušajte ponovno.",image_alt_text:"Slikovni izazov reCAPTCHA",privacy_and_terms:"Privatnost i odredbe"},hu:{visual_challenge:"Vizuális kihívás kérése",audio_challenge:"Hangkihívás kérése",refresh_btn:"Új kihívás kérése",instructions_visual:"Írja be a szöveget:",instructions_audio:"Írja le, amit hall:",help_btn:"Súgó",play_again:"Hang ismételt lejátszása",cant_hear_this:"Hang letöltése MP3 formátumban",incorrect_try_again:"Hibás. Próbálkozzon újra.",image_alt_text:"reCAPTCHA ellenőrző kép",privacy_and_terms:"Adatvédelem és Szerződési Feltételek"},hy:{visual_challenge:"Ստանալ տեսողական խնդիր",audio_challenge:"Ստանալ ձայնային խնդիր",refresh_btn:"Ստանալ նոր խնդիր",instructions_visual:"Մուտքագրեք տեքստը՝",instructions_audio:"Մուտքագրեք այն, ինչ լսում եք՝",help_btn:"Օգնություն",play_again:"Նվագարկել ձայնը կրկին",cant_hear_this:"Բեռնել ձայնը որպես MP3",incorrect_try_again:"Սխալ է: Փորձեք կրկին:",image_alt_text:"reCAPTCHA պատկերով խնդիր",privacy_and_terms:"Գաղտնիության & պայմաններ"},id:hf,is:{visual_challenge:"Fá aðgangspróf sem mynd",audio_challenge:"Fá aðgangspróf sem hljóðskrá",refresh_btn:"Fá nýtt aðgangspróf",instructions_visual:"",instructions_audio:"Sláðu inn það sem þú heyrir:",help_btn:"Hjálp",play_again:"Spila hljóð aftur",cant_hear_this:"Sækja hljóð sem MP3",incorrect_try_again:"Rangt. Reyndu aftur.",image_alt_text:"mynd reCAPTCHA aðgangsprófs",privacy_and_terms:"Persónuvernd og skilmálar"},it:{visual_challenge:"Verifica visiva",audio_challenge:"Verifica audio",refresh_btn:"Nuova verifica",instructions_visual:"Digita il testo:",instructions_audio:"Digita ciò che senti:",help_btn:"Guida",play_again:"Riproduci di nuovo audio",cant_hear_this:"Scarica audio in MP3",incorrect_try_again:"Sbagliato. Riprova.",image_alt_text:"Immagine di verifica reCAPTCHA",privacy_and_terms:"Privacy e Termini"},iw:cf,ja:{visual_challenge:"画像で確認します",audio_challenge:"音声で確認します",refresh_btn:"別の単語でやり直します",instructions_visual:"テキストを入力:",instructions_audio:"聞こえた単語を入力します:",help_btn:"ヘルプ",play_again:"もう一度聞く",cant_hear_this:"MP3 で音声をダウンロード",incorrect_try_again:"正しくありません。もう一度やり直してください。",image_alt_text:"reCAPTCHA 確認用画像",privacy_and_terms:"プライバシーと利用規約"},kn:{visual_challenge:"ದೃಶ್ಯ ಸವಾಲೊಂದನ್ನು ಸ್ವೀಕರಿಸಿ",audio_challenge:"ಆಡಿಯೋ ಸವಾಲೊಂದನ್ನು ಸ್ವೀಕರಿಸಿ",refresh_btn:"ಹೊಸ ಸವಾಲೊಂದನ್ನು ಪಡೆಯಿರಿ",instructions_visual:"",instructions_audio:"ನಿಮಗೆ ಕೇಳಿಸುವುದನ್ನು ಟೈಪ್‌ ಮಾಡಿ:",help_btn:"ಸಹಾಯ",play_again:"ಧ್ವನಿಯನ್ನು ಮತ್ತೆ ಪ್ಲೇ ಮಾಡಿ",cant_hear_this:"ಧ್ವನಿಯನ್ನು MP3 ರೂಪದಲ್ಲಿ ಡೌನ್‌ಲೋಡ್ ಮಾಡಿ",incorrect_try_again:"ತಪ್ಪಾಗಿದೆ. ಮತ್ತೊಮ್ಮೆ ಪ್ರಯತ್ನಿಸಿ.",image_alt_text:"reCAPTCHA ಸವಾಲು ಚಿತ್ರ",privacy_and_terms:"ಗೌಪ್ಯತೆ ಮತ್ತು ನಿಯಮಗಳು"},ko:{visual_challenge:"그림으로 보안문자 받기",audio_challenge:"음성으로 보안문자 받기",refresh_btn:"보안문자 새로 받기",instructions_visual:"텍스트 입력:",instructions_audio:"음성 보안문자 입력:",help_btn:"도움말",play_again:"음성 다시 듣기",cant_hear_this:"음성을 MP3로 다운로드",incorrect_try_again:"틀렸습니다. 다시 시도해 주세요.",image_alt_text:"reCAPTCHA 보안문자 이미지",privacy_and_terms:"개인정보 보호 및 약관"},ln:vr,lt:{visual_challenge:"Gauti vaizdinį atpažinimo testą",audio_challenge:"Gauti garso atpažinimo testą",refresh_btn:"Gauti naują atpažinimo testą",instructions_visual:"Įveskite tekstą:",instructions_audio:"Įveskite tai, ką girdite:",help_btn:"Pagalba",play_again:"Dar kartą paleisti garsą",cant_hear_this:"Atsisiųsti garsą kaip MP3",incorrect_try_again:"Neteisingai. Bandykite dar kartą.",image_alt_text:"Testo „reCAPTCHA“ vaizdas",privacy_and_terms:"Privatumas ir sąlygos"},lv:{visual_challenge:"Saņemt vizuālu izaicinājumu",audio_challenge:"Saņemt audio izaicinājumu",refresh_btn:"Saņemt jaunu izaicinājumu",instructions_visual:"Ievadiet tekstu:",instructions_audio:"Ierakstiet dzirdamo:",help_btn:"Palīdzība",play_again:"Vēlreiz atskaņot skaņu",cant_hear_this:"Lejupielādēt skaņu MP3 formātā",incorrect_try_again:"Nepareizi. Mēģiniet vēlreiz.",image_alt_text:"reCAPTCHA izaicinājuma attēls",privacy_and_terms:"Konfidencialitāte un noteikumi"},ml:{visual_challenge:"ഒരു ദൃശ്യ ചലഞ്ച് നേടുക",audio_challenge:"ഒരു ഓഡിയോ ചലഞ്ച് നേടുക",refresh_btn:"ഒരു പുതിയ ചലഞ്ച് നേടുക",instructions_visual:"",instructions_audio:"കേൾക്കുന്നത് ടൈപ്പ് ചെയ്യൂ:",help_btn:"സഹായം",play_again:"ശബ്‌ദം വീണ്ടും പ്ലേ ചെയ്യുക",cant_hear_this:"ശബ്‌ദം MP3 ആയി ഡൗൺലോഡ് ചെയ്യുക",incorrect_try_again:"തെറ്റാണ്. വീണ്ടും ശ്രമിക്കുക.",image_alt_text:"reCAPTCHA ചലഞ്ച് ഇമേജ്",privacy_and_terms:"സ്വകാര്യതയും നിബന്ധനകളും"},mr:{visual_challenge:"दृश्‍यमान आव्हान प्राप्त करा",audio_challenge:"ऑडीओ आव्हान प्राप्त करा",refresh_btn:"एक नवीन आव्हान प्राप्त करा",instructions_visual:"",instructions_audio:"आपल्याला जे ऐकू येईल ते टाइप करा:",help_btn:"मदत",play_again:"ध्‍वनी पुन्हा प्‍ले करा",cant_hear_this:"MP3 रुपात ध्‍वनी डाउनलोड करा",incorrect_try_again:"अयोग्‍य. पुन्‍हा प्रयत्‍न करा.",image_alt_text:"reCAPTCHA आव्‍हान प्रतिमा",privacy_and_terms:"गोपनीयता आणि अटी"},ms:{visual_challenge:"Dapatkan cabaran visual",audio_challenge:"Dapatkan cabaran audio",refresh_btn:"Dapatkan cabaran baru",instructions_visual:"Taipkan teksnya:",instructions_audio:"Taip apa yang didengari:",help_btn:"Bantuan",play_again:"Mainkan bunyi sekali lagi",cant_hear_this:"Muat turun bunyi sebagai MP3",incorrect_try_again:"Tidak betul. Cuba lagi.",image_alt_text:"Imej cabaran reCAPTCHA",privacy_and_terms:"Privasi & Syarat"},nl:{visual_challenge:"Een visuele uitdaging proberen",audio_challenge:"Een audio-uitdaging proberen",refresh_btn:"Een nieuwe uitdaging proberen",instructions_visual:"Typ de tekst:",instructions_audio:"Typ wat u hoort:",help_btn:"Help",play_again:"Geluid opnieuw afspelen",cant_hear_this:"Geluid downloaden als MP3",incorrect_try_again:"Onjuist. Probeer het opnieuw.",image_alt_text:"reCAPTCHA-uitdagingsafbeelding",privacy_and_terms:"Privacy en voorwaarden"},no:{visual_challenge:"Få en bildeutfordring",audio_challenge:"Få en lydutfordring",refresh_btn:"Få en ny utfordring",instructions_visual:"Skriv inn teksten:",instructions_audio:"Skriv inn det du hører:",help_btn:"Hjelp",play_again:"Spill av lyd på nytt",cant_hear_this:"Last ned lyd som MP3",incorrect_try_again:"Feil. Prøv på nytt.",image_alt_text:"reCAPTCHA-utfordringsbilde",privacy_and_terms:"Personvern og vilkår"},pl:{visual_challenge:"Pokaż podpowiedź wizualną",audio_challenge:"Odtwórz podpowiedź dźwiękową",refresh_btn:"Nowa podpowiedź",instructions_visual:"Przepisz tekst:",instructions_audio:"Wpisz usłyszane słowa:",help_btn:"Pomoc",play_again:"Odtwórz dźwięk ponownie",cant_hear_this:"Pobierz dźwięk jako plik MP3",incorrect_try_again:"Nieprawidłowo. Spróbuj ponownie.",image_alt_text:"Zadanie obrazkowe reCAPTCHA",privacy_and_terms:"Prywatność i warunki"},pt:lf,"pt-BR":lf,"pt-PT":{visual_challenge:"Obter um desafio visual",audio_challenge:"Obter um desafio de áudio",refresh_btn:"Obter um novo desafio",instructions_visual:"Introduza o texto:",instructions_audio:"Escreva o que ouvir:",help_btn:"Ajuda",play_again:"Reproduzir som novamente",cant_hear_this:"Transferir som como MP3",incorrect_try_again:"Incorreto. Tente novamente.",image_alt_text:"Imagem de teste reCAPTCHA",privacy_and_terms:"Privacidade e Termos de Utilização"},ro:af,ru:{visual_challenge:"Визуальная проверка",audio_challenge:"Звуковая проверка",refresh_btn:"Обновить",instructions_visual:"Введите текст:",instructions_audio:"Введите то, что слышите:",help_btn:"Справка",play_again:"Прослушать еще раз",cant_hear_this:"Загрузить MP3-файл",incorrect_try_again:"Неправильно. Повторите попытку.",image_alt_text:"Проверка по слову reCAPTCHA",privacy_and_terms:"Правила и принципы"},sk:{visual_challenge:"Zobraziť vizuálnu podobu",audio_challenge:"Prehrať zvukovú podobu",refresh_btn:"Zobraziť nový výraz",instructions_visual:"Zadajte text:",instructions_audio:"Zadajte, čo počujete:",help_btn:"Pomocník",play_again:"Znova prehrať zvuk",cant_hear_this:"Prevziať zvuk v podobe súboru MP3",incorrect_try_again:"Nesprávne. Skúste to znova.",image_alt_text:"Obrázok zadania reCAPTCHA",privacy_and_terms:"Ochrana osobných údajov a Zmluvné podmienky"},sl:{visual_challenge:"Vizualni preskus",audio_challenge:"Zvočni preskus",refresh_btn:"Nov preskus",instructions_visual:"Vnesite besedilo:",instructions_audio:"Natipkajte, kaj slišite:",help_btn:"Pomoč",play_again:"Znova predvajaj zvok",cant_hear_this:"Prenesi zvok kot MP3",incorrect_try_again:"Napačno. Poskusite znova.",image_alt_text:"Slika izziva reCAPTCHA",privacy_and_terms:"Zasebnost in pogoji"},sr:{visual_challenge:"Примите визуелни упит",audio_challenge:"Примите аудио упит",refresh_btn:"Примите нови упит",instructions_visual:"Унесите текст:",instructions_audio:"Откуцајте оно што чујете:",help_btn:"Помоћ",play_again:"Поново пусти звук",cant_hear_this:"Преузми звук као MP3 снимак",incorrect_try_again:"Нетачно. Покушајте поново.",image_alt_text:"Слика reCAPTCHA провере",privacy_and_terms:"Приватност и услови"},sv:{visual_challenge:"Hämta captcha i bildformat",audio_challenge:"Hämta captcha i ljudformat",refresh_btn:"Hämta ny captcha",instructions_visual:"Skriv texten:",instructions_audio:"Skriv det du hör:",help_btn:"Hjälp",play_again:"Spela upp ljudet igen",cant_hear_this:"Hämta ljud som MP3",incorrect_try_again:"Fel. Försök igen.",image_alt_text:"reCAPTCHA-bild",privacy_and_terms:"Sekretess och villkor"},sw:{visual_challenge:"Pata herufi za kusoma",audio_challenge:"Pata herufi za kusikiliza",refresh_btn:"Pata herufi mpya",instructions_visual:"",instructions_audio:"Charaza unachosikia:",help_btn:"Usaidizi",play_again:"Cheza sauti tena",cant_hear_this:"Pakua sauti kama MP3",incorrect_try_again:"Sio sahihi. Jaribu tena.",image_alt_text:"picha ya changamoto ya reCAPTCHA",privacy_and_terms:"Faragha & Masharti"},ta:{visual_challenge:"பார்வை சேலஞ்சைப் பெறுக",audio_challenge:"ஆடியோ சேலஞ்சைப் பெறுக",refresh_btn:"புதிய சேலஞ்சைப் பெறுக",instructions_visual:"",instructions_audio:"கேட்பதை டைப் செய்க:",help_btn:"உதவி",play_again:"ஒலியை மீண்டும் இயக்கு",cant_hear_this:"ஒலியை MP3 ஆக பதிவிறக்குக",incorrect_try_again:"தவறானது. மீண்டும் முயலவும்.",image_alt_text:"reCAPTCHA சேலஞ்ச் படம்",privacy_and_terms:"தனியுரிமை & விதிமுறைகள்"},te:{visual_challenge:"ఒక దృశ్యమాన సవాలును స్వీకరించండి",audio_challenge:"ఒక ఆడియో సవాలును స్వీకరించండి",refresh_btn:"క్రొత్త సవాలును స్వీకరించండి",instructions_visual:"",instructions_audio:"మీరు విన్నది టైప్ చేయండి:",help_btn:"సహాయం",play_again:"ధ్వనిని మళ్లీ ప్లే చేయి",cant_hear_this:"ధ్వనిని MP3 వలె డౌన్‌లోడ్ చేయి",incorrect_try_again:"తప్పు. మళ్లీ ప్రయత్నించండి.",image_alt_text:"reCAPTCHA సవాలు చిత్రం",privacy_and_terms:"గోప్యత & నిబంధనలు"},th:{visual_challenge:"รับความท้าทายด้านภาพ",audio_challenge:"รับความท้าทายด้านเสียง",refresh_btn:"รับความท้าทายใหม่",instructions_visual:"พิมพ์ข้อความนี้:",instructions_audio:"พิมพ์สิ่งที่คุณได้ยิน:",help_btn:"ความช่วยเหลือ",play_again:"เล่นเสียงอีกครั้ง",cant_hear_this:"ดาวโหลดเสียงเป็น MP3",incorrect_try_again:"ไม่ถูกต้อง ลองอีกครั้ง",image_alt_text:"รหัสภาพ reCAPTCHA",privacy_and_terms:"นโยบายส่วนบุคคลและข้อกำหนด"},tr:{visual_challenge:"Görsel sorgu al",audio_challenge:"Sesli sorgu al",refresh_btn:"Yeniden yükle",instructions_visual:"Metni yazın:",instructions_audio:"Duyduğunuzu yazın:",help_btn:"Yardım",play_again:"Sesi tekrar çal",cant_hear_this:"Sesi MP3 olarak indir",incorrect_try_again:"Yanlış. Tekrar deneyin.",image_alt_text:"reCAPTCHA sorusu resmi",privacy_and_terms:"Gizlilik ve Şartlar"},uk:{visual_challenge:"Отримати візуальний текст",audio_challenge:"Отримати аудіозапис",refresh_btn:"Оновити текст",instructions_visual:"Введіть текст:",instructions_audio:"Введіть почуте:",help_btn:"Довідка",play_again:"Відтворити запис ще раз",cant_hear_this:"Завантажити запис як MP3",incorrect_try_again:"Неправильно. Спробуйте ще раз.",image_alt_text:"Зображення завдання reCAPTCHA",privacy_and_terms:"Конфіденційність і умови"},ur:{visual_challenge:"ایک مرئی چیلنج حاصل کریں",audio_challenge:"ایک آڈیو چیلنج حاصل کریں",refresh_btn:"ایک نیا چیلنج حاصل کریں",instructions_visual:"",instructions_audio:"جو سنائی دیتا ہے وہ ٹائپ کریں:",help_btn:"مدد",play_again:"آواز دوبارہ چلائیں",cant_hear_this:"آواز کو MP3 کے بطور ڈاؤن لوڈ کریں",incorrect_try_again:"غلط۔ دوبارہ کوشش کریں۔",image_alt_text:"reCAPTCHA چیلنج والی شبیہ",privacy_and_terms:"رازداری و شرائط"},vi:{visual_challenge:"Nhận thử thách hình ảnh",audio_challenge:"Nhận thử thách âm thanh",refresh_btn:"Nhận thử thách mới",instructions_visual:"Nhập văn bản:",instructions_audio:"Nhập nội dung bạn nghe thấy:",help_btn:"Trợ giúp",play_again:"Phát lại âm thanh",cant_hear_this:"Tải âm thanh xuống dưới dạng MP3",incorrect_try_again:"Không chính xác. Hãy thử lại.",image_alt_text:"Hình xác thực reCAPTCHA",privacy_and_terms:"Bảo mật và điều khoản"},"zh-CN":vf,"zh-HK":{visual_challenge:"回答圖像驗證問題",audio_challenge:"取得語音驗證問題",refresh_btn:"換一個驗證問題",instructions_visual:"輸入文字：",instructions_audio:"鍵入您所聽到的：",help_btn:"說明",play_again:"再次播放聲音",cant_hear_this:"將聲音下載為 MP3",incorrect_try_again:"不正確，再試一次。",image_alt_text:"reCAPTCHA 驗證文字圖片",privacy_and_terms:"私隱權與條款"},"zh-TW":{visual_challenge:"取得圖片驗證問題",audio_challenge:"取得語音驗證問題",refresh_btn:"取得新的驗證問題",instructions_visual:"請輸入圖片中的文字：",instructions_audio:"請輸入語音內容：",help_btn:"說明",play_again:"再次播放",cant_hear_this:"以 MP3 格式下載聲音",incorrect_try_again:"驗證碼有誤，請再試一次。",image_alt_text:"reCAPTCHA 驗證文字圖片",privacy_and_terms:"隱私權與條款"},zu:{visual_challenge:"Thola inselelo ebonakalayo",audio_challenge:"Thola inselelo yokulalelwayo",refresh_btn:"Thola inselelo entsha",instructions_visual:"",instructions_audio:"Bhala okuzwayo:",help_btn:"Usizo",play_again:"Phinda udlale okulalelwayo futhi",cant_hear_this:"Layisha umsindo njenge-MP3",incorrect_try_again:"Akulungile. Zama futhi.",image_alt_text:"umfanekiso oyinselelo we-reCAPTCHA",privacy_and_terms:"Okwangasese kanye nemigomo"},tl:sf,he:cf,"in":hf,mo:af,zh:vf},h=function(n){if(Error.captureStackTrace)Error.captureStackTrace(this,h);else{var t=Error().stack;t&&(this.stack=t)}n&&(this.message=String(n))};u(h,Error);h.prototype.name="CustomError";var yf,es=function(n){for(var t=n.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<t.length;)i+=t.shift()+r.shift();return i+t.join("%s")},ai=function(n){return vs.test(n)?(-1!=n.indexOf("&")&&(n=n.replace(os,"&amp;")),-1!=n.indexOf("<")&&(n=n.replace(ss,"&lt;")),-1!=n.indexOf(">")&&(n=n.replace(hs,"&gt;")),-1!=n.indexOf('"')&&(n=n.replace(cs,"&quot;")),-1!=n.indexOf("'")&&(n=n.replace(ls,"&#39;")),-1!=n.indexOf("\x00")&&(n=n.replace(as,"&#0;")),n):n},os=/&/g,ss=/</g,hs=/>/g,cs=/"/g,ls=/'/g,as=/\x00/g,vs=/[\x00&<>"']/,yr=function(n,t){return n<t?-1:n>t?1:0},pf=function(n){return String(n).replace(/\-([a-z])/g,function(n,t){return t.toUpperCase()})},ys=function(n){var t=f(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return n.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),function(n,t,i){return t+i.toUpperCase()})},vi=function(n,t){t.unshift(n);h.call(this,es.apply(null,t));t.shift()};u(vi,h);vi.prototype.name="AssertionError";var pr=function(n,t,i,r){var u="Assertion failed",f;i?(u=u+(": "+i),f=r):n&&(u+=": "+n,f=t);throw new vi(""+u,f||[]);},r=function(n,t){n||pr("",null,t,Array.prototype.slice.call(arguments,2))},ps=function(n){throw new vi("Failure"+(n?": "+n:""),Array.prototype.slice.call(arguments,1));},ws=function(n,t){return f(n)||pr("Expected string but got %s: %s.",[wt(n),n],t,Array.prototype.slice.call(arguments,2)),n},wf=function(n,t){y(n)||pr("Expected function but got %s: %s.",[wt(n),n],t,Array.prototype.slice.call(arguments,2))},c=Array.prototype,bf=c.indexOf?function(n,t,i){return r(null!=n.length),c.indexOf.call(n,t,i)}:function(n,t,i){if(i=null==i?0:0>i?Math.max(0,n.length+i):i,f(n))return f(t)&&1==t.length?n.indexOf(t,i):-1;for(;i<n.length;i++)if(i in n&&n[i]===t)return i;return-1},wr=c.forEach?function(n,t,i){r(null!=n.length);c.forEach.call(n,t,i)}:function(n,t,i){for(var e=n.length,u=f(n)?n.split(""):n,r=0;r<e;r++)r in u&&t.call(i,u[r],r,n)},bs=c.map?function(n,t,i){return r(null!=n.length),c.map.call(n,t,i)}:function(n,t,i){for(var u=n.length,e=Array(u),o=f(n)?n.split(""):n,r=0;r<u;r++)r in o&&(e[r]=t.call(i,o[r],r,n));return e},ks=c.some?function(n,t,i){return r(null!=n.length),c.some.call(n,t,i)}:function(n,t,i){for(var e=n.length,u=f(n)?n.split(""):n,r=0;r<e;r++)if(r in u&&t.call(i,u[r],r,n))return!0;return!1},kf=function(n,t){var i=bf(n,t),u;return(u=0<=i)&&(r(null!=n.length),c.splice.call(n,i,1)),u},ds=function(n){var i=n.length,r,t;if(0<i){for(r=Array(i),t=0;t<i;t++)r[t]=n[t];return r}return[]},df=function(n,t,i){return r(null!=n.length),2>=arguments.length?c.slice.call(n,t):c.slice.call(n,t,i)},lt;n:{if(br=i.navigator,br&&(kr=br.userAgent,kr)){lt=kr;break n}lt=""}var it=function(n){return-1!=lt.indexOf(n)},dr=it("Opera")||it("OPR"),e=it("Trident")||it("MSIE"),rt=it("Gecko")&&-1==lt.toLowerCase().indexOf("webkit")&&!(it("Trident")||it("MSIE")),at=-1!=lt.toLowerCase().indexOf("webkit"),gf=function(){var n=i.document;if(n)return n.documentMode},ne=function(){var n="",t;return dr&&i.opera?(n=i.opera.version,y(n)?n():n):(rt?t=/rv\:([^\);]+)(\)|;)/:e?t=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:at&&(t=/WebKit\/(\S+)/),t&&(n=(n=t.exec(lt))?n[1]:""),e&&(t=gf(),t>parseFloat(n))?String(t):n)}(),te={},l=function(n){var t,i,r;if(!(t=te[n])){t=0;for(var f=String(ne).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(n).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),o=Math.max(f.length,e.length),u=0;0==t&&u<o;u++){var s=f[u]||"",h=e[u]||"",c=RegExp("(\\d*)(\\D*)","g"),l=RegExp("(\\d*)(\\D*)","g");do{if(i=c.exec(s)||["","",""],r=l.exec(h)||["","",""],0==i[0].length&&0==r[0].length)break;t=yr(0==i[1].length?0:parseInt(i[1],10),0==r[1].length?0:parseInt(r[1],10))||yr(0==i[2].length,0==r[2].length)||yr(i[2],r[2])}while(0==t)}t=te[n]=0<=t}return t},ie=i.document,gr=ie&&e?gf()||("CSS1Compat"==ie.compatMode?parseInt(ne,10):5):void 0,nu=function(n){var i,r,t;if(8192>n.length)return String.fromCharCode.apply(null,n);for(t="",i=0;i<n.length;i+=8192)r=df(n,i,i+8192),t=t+String.fromCharCode.apply(null,r);return t},gs=function(n){return bs(n,function(n){return n=n.toString(16),1<n.length?n:"0"+n}).join("")},yi=null,tu=null,iu=function(n){var t,o,f,r,e;if(!yi)for(yi={},tu={},t=0;65>t;t++)yi[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t),tu[yi[t]]=t;for(var t=tu,u=[],i=0;i<n.length;){if(o=t[n.charAt(i++)],f=i<n.length?t[n.charAt(i)]:0,++i,r=i<n.length?t[n.charAt(i)]:64,++i,e=i<n.length?t[n.charAt(i)]:64,++i,null==o||null==f||null==r||null==e)throw Error();u.push(o<<2|f>>4);64!=r&&(u.push(f<<4&240|r>>2),64!=e&&u.push(r<<6&192|e))}return u},d=function(){};d.prototype.disposed_=!1;d.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};pi=function(n,t){n.onDisposeCallbacks_||(n.onDisposeCallbacks_=[]);n.onDisposeCallbacks_.push(s(t,void 0))};d.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var dt=function(n){n&&"function"==typeof n.dispose&&n.dispose()},re=function(n,t){for(var i in n)t.call(void 0,n[i],i,n)},nh=function(n){var t=[],r=0,i;for(i in n)t[r++]=i;return t},ue=function(n){for(var t in n)return!1;return!0},th=function(){var t=po()?i.google_ad:null,r={},n;for(n in t)r[n]=t[n];return r},fe="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),ee=function(n){for(var t,i,u,r=1;r<arguments.length;r++){i=arguments[r];for(t in i)n[t]=i[t];for(u=0;u<fe.length;u++)t=fe[u],Object.prototype.hasOwnProperty.call(i,t)&&(n[t]=i[t])}},wi=function(){var i=arguments.length,t,n;if(1==i&&ht(arguments[0]))return wi.apply(null,arguments[0]);for(t={},n=0;n<i;n++)t[arguments[n]]=!0;return t},ih=!e||e&&9<=gr;!rt&&!e||e&&e&&9<=gr||rt&&l("1.9.1");e&&l("9");var rh=function(n){var t;t=n.className;t=f(t)&&t.match(/\S+/g)||[];for(var i=df(arguments,1),e=t.length+i.length,u=t,r=0;r<i.length;r++)0<=bf(u,i[r])||u.push(i[r]);return n.className=t.join(" "),t.length==e},bi=function(n){return n?new ki(le(n)):yf||(yf=new ki)},ru=function(n,t){return f(t)?n.getElementById(t):t},oe=function(n,t){re(t,function(t,i){"style"==i?n.style.cssText=t:"class"==i?n.className=t:"for"==i?n.htmlFor=t:i in se?n.setAttribute(se[i],t):0==i.lastIndexOf("aria-",0)||0==i.lastIndexOf("data-",0)?n.setAttribute(i,t):n[i]=t})},se={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},he=function(){return ce(document,arguments)},ce=function(n,t){var r=t[0],i=t[1],u;return!ih&&i&&(i.name||i.type)&&(r=["<",r],i.name&&r.push(' name="',ai(i.name),'"'),i.type&&(r.push(' type="',ai(i.type),'"'),u={},ee(u,i),delete u.type,i=u),r.push(">"),r=r.join("")),r=n.createElement(r),i&&(f(i)?r.className=i:ht(i)?rh.apply(null,[r].concat(i)):oe(r,i)),2<t.length&&uh(n,r,t),r},uh=function(n,t,i){function e(i){i&&t.appendChild(f(i)?n.createTextNode(i):i)}for(var r,u=2;u<i.length;u++)r=i[u],!is(r)||bt(r)&&0<r.nodeType?e(r):wr(eh(r)?ds(r):r,e)},fh=function(n){for(var t;t=n.firstChild;)n.removeChild(t)},gt=function(n){n&&n.parentNode&&n.parentNode.removeChild(n)},le=function(n){return r(n,"Node cannot be null or undefined."),9==n.nodeType?n:n.ownerDocument||n.document},eh=function(n){if(n&&"number"==typeof n.length){if(bt(n))return"function"==typeof n.item||"string"==typeof n.item;if(y(n))return"function"==typeof n.item}return!1},ki=function(n){this.document_=n||i.document||document};t=ki.prototype;t.getDomHelper=bi;t.getElement=function(n){return ru(this.document_,n)};t.$=ki.prototype.getElement;t.createDom=function(){return ce(this.document_,arguments)};t.createElement=function(n){return this.document_.createElement(n)};t.createTextNode=function(n){return this.document_.createTextNode(String(n))};t.appendChild=function(n,t){n.appendChild(t)};var uu=function(n){i.setTimeout(function(){throw n;},0)},fu,oh=function(){var u,n;if(i.Promise&&i.Promise.resolve)return u=i.Promise.resolve(),function(n){u.then(function(){try{n()}catch(t){uu(t)}})};if(n=i.MessageChannel,"undefined"==typeof n&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&(n=function(){var n=document.createElement("iframe"),t;n.style.display="none";n.src="";document.documentElement.appendChild(n);t=n.contentWindow;n=t.document;n.open();n.write("");n.close();var i="callImmediate"+Math.random(),r=t.location.protocol+"//"+t.location.host,n=s(function(n){(n.origin==r||n.data==i)&&this.port1.onmessage()},this);t.addEventListener("message",n,!1);this.port1={};this.port2={postMessage:function(){t.postMessage(i,r)}}}),"undefined"!=typeof n){var f=new n,t={},r=t;return f.port1.onmessage=function(){t=t.next;var n=t.cb;t.cb=null;n()},function(n){r.next={cb:n};r=r.next;f.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("script")?function(n){var t=document.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null;t.parentNode.removeChild(t);t=null;n();n=null};document.documentElement.appendChild(t)}:function(n){i.setTimeout(n,0)}},eu=function(n,t){if(!ou){var r=sh;y(i.setImmediate)?i.setImmediate(r):(fu||(fu=oh()),fu(r));ou=!0}di.push(new hh(n,t))},ou=!1,di=[],sh=function(){for(var t,n,i;di.length;)for(t=di,di=[],n=0;n<t.length;n++){i=t[n];try{i.fn.call(i.scope)}catch(r){uu(r)}}ou=!1},hh=function(n,t){this.fn=n;this.scope=t},ae=function(n){n.prototype.then=n.prototype.then;n.prototype.$goog_Thenable=!0},ve=function(n){if(!n)return!1;try{return!!n.$goog_Thenable}catch(t){return!1}},g=function(n,t){this.state_=0;this.result_=void 0;this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;this.stack_=[];we(this,Error("created"));this.currentStep_=0;try{var i=this;n.call(t,function(n){vt(i,2,n)},function(n){vt(i,3,n)})}catch(r){vt(this,3,r)}};g.prototype.then=function(n,t,i){return null!=n&&wf(n,"opt_onFulfilled should be a function."),null!=t&&wf(t,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?"),we(this,Error("then")),lh(this,y(n)?n:null,y(t)?t:null,i)};ae(g);g.prototype.cancel=function(n){0==this.state_&&eu(function(){var t=new ni(n);ye(this,t)},this)};var ye=function(n,t){var i;if(0==n.state_)if(n.parent_){if(i=n.parent_,i.callbackEntries_){for(var r=0,u=-1,e=0,f;f=i.callbackEntries_[e];e++)if((f=f.child)&&(r++,f==n&&(u=e),0<=u&&1<r))break;0<=u&&(0==i.state_&&1==r?ye(i,t):(r=i.callbackEntries_.splice(u,1)[0],be(i),r.onRejected(t)))}}else vt(n,3,t)},ch=function(n,t){n.callbackEntries_&&n.callbackEntries_.length||2!=n.state_&&3!=n.state_||pe(n);n.callbackEntries_||(n.callbackEntries_=[]);n.callbackEntries_.push(t)},lh=function(n,t,i,r){var u={child:null,onFulfilled:null,onRejected:null};return u.child=new g(function(n,f){u.onFulfilled=t?function(i){try{var u=t.call(r,i);n(u)}catch(e){f(e)}}:n;u.onRejected=i?function(t){try{var u=i.call(r,t);void 0===u&&t instanceof ni?f(t):n(u)}catch(e){f(e)}}:f}),u.child.parent_=n,ch(n,u),u.child};g.prototype.unblockAndFulfill_=function(n){r(1==this.state_);this.state_=0;vt(this,2,n)};g.prototype.unblockAndReject_=function(n){r(1==this.state_);this.state_=0;vt(this,3,n)};var vt=function(n,t,i){if(0==n.state_){if(n==i)t=3,i=new TypeError("Promise cannot resolve to itself");else{if(ve(i)){n.state_=1;i.then(n.unblockAndFulfill_,n.unblockAndReject_,n);return}if(bt(i))try{var r=i.then;if(y(r)){ah(n,i,r);return}}catch(u){t=3;i=u}}n.result_=i;n.state_=t;pe(n);3!=t||i instanceof ni||vh(n,i)}},ah=function(n,t,i){n.state_=1;var r=!1,f=function(t){r||(r=!0,n.unblockAndFulfill_(t))},u=function(t){r||(r=!0,n.unblockAndReject_(t))};try{i.call(t,f,u)}catch(e){u(e)}},pe=function(n){n.executing_||(n.executing_=!0,eu(n.executeCallbacks_,n))};g.prototype.executeCallbacks_=function(){for(var t,n,i,r;this.callbackEntries_&&this.callbackEntries_.length;)for(t=this.callbackEntries_,this.callbackEntries_=[],n=0;n<t.length;n++)if(this.currentStep_++,i=t[n],r=this.result_,2==this.state_)i.onFulfilled(r);else be(this),i.onRejected(r);this.executing_=!1};var we=function(n,t){if(f(t.stack)){var r=t.stack.split("\n",4)[3],i=t.message,i=i+Array(11-i.length).join(" ");n.stack_.push(i+r)}},be=function(n){for(;n&&n.hadUnhandledRejection_;n=n.parent_)n.hadUnhandledRejection_=!1},vh=function(n,t){n.hadUnhandledRejection_=!0;eu(function(){var r,i,u;if(n.hadUnhandledRejection_){if(t&&f(t.stack)&&n.stack_.length){for(r=["Promise trace:"],i=n;i;i=i.parent_){for(u=n.currentStep_;0<=u;u--)r.push(i.stack_[u]);r.push("Value: ["+(3==i.state_?"REJECTED":"FULFILLED")+"] <"+String(i.result_)+">")}t.stack+="\n\n"+r.join("\n")}yh.call(null,t)}})},yh=uu,ni=function(n){h.call(this,n)};u(ni,h);ni.prototype.name="cancel";a=function(n,t){if(this.sequence_=[],this.onCancelFunction_=n,this.defaultScope_=t||null,this.hadError_=this.fired_=!1,this.result_=void 0,this.silentlyCanceled_=this.blocking_=this.blocked_=!1,this.unhandledErrorId_=0,this.parent_=null,this.branches_=0,this.constructorStack_=null,Error.captureStackTrace){var i={stack:""};Error.captureStackTrace(i,a);"string"==typeof i.stack&&(this.constructorStack_=i.stack.replace(/^[^\n]*\n/,""))}};a.prototype.cancel=function(n){if(this.fired_)this.result_ instanceof a&&this.result_.cancel();else{if(this.parent_){var t=this.parent_;delete this.parent_;n?t.cancel(n):(t.branches_--,0>=t.branches_&&t.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||hu(this,new yt)}};a.prototype.continue_=function(n,t){this.blocked_=!1;gi(this,n,t)};gi=function(n,t,i){n.fired_=!0;n.result_=i;n.hadError_=!t;no(n)};su=function(n){if(n.fired_){if(!n.silentlyCanceled_)throw new tr;n.silentlyCanceled_=!1}};a.prototype.callback=function(n){su(this);de(n);gi(this,!0,n)};var hu=function(n,t){su(n);de(t);ke(n,t);gi(n,!1,t)},ke=function(n,t){n.constructorStack_&&bt(t)&&t.stack&&/^[^\n]+(\n   [^\n]+)+/.test(t.stack)&&(t.stack=t.stack+"\nDEFERRED OPERATION:\n"+n.constructorStack_)},de=function(n){r(!(n instanceof a),"An execution sequence may not be initiated with a blocking Deferred.")},nr=function(n,t,i,u){r(!n.blocking_,"Blocking Deferreds can not be re-used");n.sequence_.push([t,i,u]);n.fired_&&no(n)};a.prototype.then=function(n,t,i){var r,u,f=new g(function(n,t){r=n;u=t});return nr(this,r,function(n){n instanceof yt?f.cancel():u(n)}),f.then(n,t,i)};ae(a);var ge=function(n){return ks(n.sequence_,function(n){return y(n[1])})},no=function(n){var u,t,f,r;for(n.unhandledErrorId_&&n.fired_&&ge(n)&&(t=n.unhandledErrorId_,u=ti[t],u&&(i.clearTimeout(u.id_),delete ti[t]),n.unhandledErrorId_=0),n.parent_&&(n.parent_.branches_--,delete n.parent_),t=n.result_,f=u=!1;n.sequence_.length&&!n.blocked_;){var e=n.sequence_.shift(),o=e[0],h=e[1],e=e[2];if(o=n.hadError_?h:o)try{r=o.call(e||n.defaultScope_,t);void 0!==r&&(n.hadError_=n.hadError_&&(r==t||r instanceof Error),n.result_=t=r);ve(t)&&(f=!0,n.blocked_=!0)}catch(c){t=c;n.hadError_=!0;ke(n,t);ge(n)||(u=!0)}}n.result_=t;f&&(r=s(n.continue_,n,!0),f=s(n.continue_,n,!1),t instanceof a?(nr(t,r,f),t.blocking_=!0):t.then(r,f));u&&(t=new cu(t),ti[t.id_]=t,n.unhandledErrorId_=t.id_)},tr=function(){h.call(this)};u(tr,h);tr.prototype.message="Deferred has already fired";tr.prototype.name="AlreadyCalledError";yt=function(){h.call(this)};u(yt,h);yt.prototype.message="Deferred was canceled";yt.prototype.name="CanceledError";cu=function(n){this.id_=i.setTimeout(s(this.throwError,this),0);this.error_=n};cu.prototype.throwError=function(){r(ti[this.id_],"Cannot throw an error that is not scheduled.");delete ti[this.id_];throw this.error_;};var ti={},ph=function(n){var i={},o=i.document||document,t=document.createElement("SCRIPT"),f={script_:t,timeout_:void 0},r=new a(bh,f),u=null,e=null!=i.timeout?i.timeout:5e3;return 0<e&&(u=window.setTimeout(function(){ir(t,!0);hu(r,new lu(1,"Timeout reached for loading script "+n))},e),f.timeout_=u),t.onload=t.onreadystatechange=function(){t.readyState&&"loaded"!=t.readyState&&"complete"!=t.readyState||(ir(t,i.cleanupWhenDone||!1,u),r.callback(null))},t.onerror=function(){ir(t,!0,u);hu(r,new lu(0,"Error while loading script "+n))},oe(t,{type:"text/javascript",charset:"UTF-8",src:n}),wh(o).appendChild(t),r},wh=function(n){var t=n.getElementsByTagName("HEAD");return t&&0!=t.length?t[0]:n.documentElement},bh=function(){if(this&&this.script_){var n=this.script_;n&&"SCRIPT"==n.tagName&&ir(n,!0,this.timeout_)}},ir=function(n,t,r){null!=r&&i.clearTimeout(r);n.onload=ci;n.onerror=ci;n.onreadystatechange=ci;t&&window.setTimeout(function(){gt(n)},0)},lu=function(n,t){var i="Jsloader error (code #"+n+")";t&&(i+=": "+t);h.call(this,i);this.code=n};u(lu,h);rr=function(n){return rr[" "](n),n};rr[" "]=ci;au=!e||e&&9<=gr;to=e&&!l("9");at&&l("528");rt&&l("1.9b")||e&&l("8")||dr&&l("9.5")||at&&l("528");rt&&!l("8")||e&&l("9");k=function(n,t){this.type=n;this.currentTarget=this.target=t;this.defaultPrevented=this.propagationStopped_=!1;this.returnValue_=!0};k.prototype.disposeInternal=function(){};k.prototype.dispose=function(){};k.prototype.preventDefault=function(){this.defaultPrevented=!0;this.returnValue_=!1};ut=function(n,t){var r,i,u;if(k.call(this,n?n.type:""),this.relatedTarget=this.currentTarget=this.target=null,this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.event_=this.state=null,n){if(r=this.type=n.type,this.target=n.target||n.srcElement,this.currentTarget=t,i=n.relatedTarget,i){if(rt){n:{try{rr(i.nodeName);u=!0;break n}catch(f){}u=!1}u||(i=null)}}else"mouseover"==r?i=n.fromElement:"mouseout"==r&&(i=n.toElement);this.relatedTarget=i;this.offsetX=at||void 0!==n.offsetX?n.offsetX:n.layerX;this.offsetY=at||void 0!==n.offsetY?n.offsetY:n.layerY;this.clientX=void 0!==n.clientX?n.clientX:n.pageX;this.clientY=void 0!==n.clientY?n.clientY:n.pageY;this.screenX=n.screenX||0;this.screenY=n.screenY||0;this.button=n.button;this.keyCode=n.keyCode||0;this.charCode=n.charCode||("keypress"==r?n.keyCode:0);this.ctrlKey=n.ctrlKey;this.altKey=n.altKey;this.shiftKey=n.shiftKey;this.metaKey=n.metaKey;this.state=n.state;this.event_=n;n.defaultPrevented&&this.preventDefault()}};u(ut,k);ut.prototype.preventDefault=function(){ut.superClass_.preventDefault.call(this);var n=this.event_;if(n.preventDefault)n.preventDefault();else if(n.returnValue=!1,to)try{(n.ctrlKey||112<=n.keyCode&&123>=n.keyCode)&&(n.keyCode=-1)}catch(t){}};ut.prototype.disposeInternal=function(){};var io="closure_listenable_"+(1e6*Math.random()|0),ur=function(n){try{return!(!n||!n[io])}catch(t){return!1}},kh=0,dh=function(n,t,i,r,u){this.listener=n;this.proxy=null;this.src=t;this.type=i;this.capture=!!r;this.handler=u;this.key=++kh;this.removed=this.callOnce=!1},fr=function(n){n.removed=!0;n.listener=null;n.proxy=null;n.src=null;n.handler=null},ft=function(n){this.src=n;this.listeners={};this.typeCount_=0};ft.prototype.add=function(n,t,i,r,u){var f=n.toString(),e;return n=this.listeners[f],n||(n=this.listeners[f]=[],this.typeCount_++),e=vu(n,t,r,u),-1<e?(t=n[e],i||(t.callOnce=!1)):(t=new dh(t,this.src,f,!!r,u),t.callOnce=i,n.push(t)),t};ft.prototype.remove=function(n,t,i,u){if(n=n.toString(),!(n in this.listeners))return!1;var f=this.listeners[n];return t=vu(f,t,i,u),-1<t?(fr(f[t]),r(null!=f.length),c.splice.call(f,t,1),0==f.length&&(delete this.listeners[n],this.typeCount_--),!0):!1};er=function(n,t){var i=t.type,r;return(i in n.listeners)?(r=kf(n.listeners[i],t),r&&(fr(t),0==n.listeners[i].length&&(delete n.listeners[i],n.typeCount_--)),r):!1};ft.prototype.removeAll=function(n){var r,t,u,i;n=n&&n.toString();r=0;for(t in this.listeners)if(!n||t==n){for(u=this.listeners[t],i=0;i<u.length;i++)++r,fr(u[i]);delete this.listeners[t];this.typeCount_--}return r};ft.prototype.getListener=function(n,t,i,r){n=this.listeners[n.toString()];var u=-1;return n&&(u=vu(n,t,i,r)),-1<u?n[u]:null};var vu=function(n,t,i,r){for(var f,u=0;u<n.length;++u)if(f=n[u],!f.removed&&f.listener==t&&f.capture==!!i&&f.handler==r)return u;return-1},yu="closure_lm_"+(1e6*Math.random()|0),pu={},ro=0,ii=function(n,t,i,r,u){var f,e;if(ht(t)){for(f=0;f<t.length;f++)ii(n,t[f],i,r,u);return null}if(i=wu(i),ur(n))n=n.listen(t,i,r,u);else{if(!t)throw Error("Invalid event type");f=!!r;e=ri(n);e||(n[yu]=e=new ft(n));i=e.add(t,i,!1,r,u);i.proxy||(r=gh(),i.proxy=r,r.src=n,r.listener=i,n.addEventListener?n.addEventListener(t.toString(),r,f):n.attachEvent(fo(t.toString()),r),ro++);n=i}return n},gh=function(){var t=nc,n=au?function(i){return t.call(n.src,n.listener,i)}:function(i){return i=t.call(n.src,n.listener,i),i?void 0:i};return n},uo=function(n,t,i,r,u){if(ht(t))for(var f=0;f<t.length;f++)uo(n,t[f],i,r,u);else i=wu(i),ur(n)?n.unlisten(t,i,r,u):n&&(n=ri(n))&&(t=n.getListener(t,i,!!r,u))&&or(t)},or=function(n){var t,i,r;return"number"==typeof n||!n||n.removed?!1:(t=n.src,ur(t))?er(t.eventTargetListeners_,n):(i=n.type,r=n.proxy,t.removeEventListener?t.removeEventListener(i,r,n.capture):t.detachEvent&&t.detachEvent(fo(i),r),ro--,(i=ri(t))?(er(i,n),0==i.typeCount_&&(i.src=null,t[yu]=null)):fr(n),!0)},fo=function(n){return n in pu?pu[n]:pu[n]="on"+n},eo=function(n,t,i,r){var f=1,u;if((n=ri(n))&&(t=n.listeners[t.toString()]))for(t=t.concat(),n=0;n<t.length;n++)u=t[n],u&&u.capture==i&&!u.removed&&(f&=!1!==oo(u,r));return Boolean(f)},oo=function(n,t){var i=n.listener,r=n.handler||n.src;return n.callOnce&&or(n),i.call(r,t)},nc=function(n,t){var u,o,r,f,e;if(n.removed)return!0;if(!au){if(!(u=t))n:{for(u=["window","event"],o=i;r=u.shift();)if(null!=o[r])o=o[r];else{u=null;break n}u=o}if(r=u,u=new ut(r,this),o=!0,!(0>r.keyCode||void 0!=r.returnValue)){n:{if(f=!1,0==r.keyCode)try{r.keyCode=-1;break n}catch(s){f=!0}(f||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],f=u.currentTarget;f;f=f.parentNode)r.push(f);for(f=n.type,e=r.length-1;!u.propagationStopped_&&0<=e;e--)u.currentTarget=r[e],o&=eo(r[e],f,!0,u);for(e=0;!u.propagationStopped_&&e<r.length;e++)u.currentTarget=r[e],o&=eo(r[e],f,!1,u)}return o}return oo(n,new ut(t,this))},ri=function(n){return n=n[yu],n instanceof ft?n:null},so="__closure_events_fn_"+(1e9*Math.random()>>>0),wu=function(n){return(r(n,"Listener can not be null."),y(n))?n:(r(n.handleEvent,"An object listener must have handleEvent method."),n[so]||(n[so]=function(t){return n.handleEvent(t)}))},pt=function(n){this.handler_=n;this.keys_={}};u(pt,d);bu=[];t=pt.prototype;t.listen=function(n,t,i,r){var u,f;for(ht(t)||(t&&(bu[0]=t.toString()),t=bu),u=0;u<t.length;u++){if(f=ii(n,t[u],i||this.handleEvent,r||!1,this.handler_||this),!f)break;this.keys_[f.key]=f}return this};t.unlisten=function(n,t,i,r,u){if(ht(t))for(var f=0;f<t.length;f++)this.unlisten(n,t[f],i,r,u);else i=i||this.handleEvent,u=u||this.handler_||this,i=wu(i),r=!!r,t=ur(n)?n.getListener(t,i,r,u):n?(n=ri(n))?n.getListener(t,i,r,u):null:null,t&&(or(t),delete this.keys_[t.key]);return this};t.removeAll=function(){re(this.keys_,or);this.keys_={}};t.disposeInternal=function(){pt.superClass_.disposeInternal.call(this);this.removeAll()};t.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};w=function(){this.eventTargetListeners_=new ft(this);this.actualEventTarget_=this};u(w,d);w.prototype[io]=!0;t=w.prototype;t.parentEventTarget_=null;t.setParentEventTarget=function(n){this.parentEventTarget_=n};t.addEventListener=function(n,t,i,r){ii(this,n,t,i,r)};t.removeEventListener=function(n,t,i,r){uo(this,n,t,i,r)};t.dispatchEvent=function(n){var u,i,e,t,s,o;if(ku(this),i=this.parentEventTarget_,i)for(u=[],e=1;i;i=i.parentEventTarget_)u.push(i),r(1e3>++e,"infinite loop");if(i=this.actualEventTarget_,e=n.type||n,f(n)?n=new k(n,i):n instanceof k?n.target=n.target||i:(t=n,n=new k(e,i),ee(n,t)),t=!0,u)for(o=u.length-1;!n.propagationStopped_&&0<=o;o--)s=n.currentTarget=u[o],t=ui(s,e,!0,n)&&t;if(n.propagationStopped_||(s=n.currentTarget=i,t=ui(s,e,!0,n)&&t,n.propagationStopped_||(t=ui(s,e,!1,n)&&t)),u)for(o=0;!n.propagationStopped_&&o<u.length;o++)s=n.currentTarget=u[o],t=ui(s,e,!1,n)&&t;return t};t.disposeInternal=function(){w.superClass_.disposeInternal.call(this);this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0);this.parentEventTarget_=null};t.listen=function(n,t,i,r){return ku(this),this.eventTargetListeners_.add(String(n),t,!1,i,r)};t.unlisten=function(n,t,i,r){return this.eventTargetListeners_.remove(String(n),t,i,r)};ui=function(n,t,i,r){var f,e,u,o,s;if(t=n.eventTargetListeners_.listeners[String(t)],!t)return!0;for(t=t.concat(),f=!0,e=0;e<t.length;++e)u=t[e],u&&!u.removed&&u.capture==i&&(o=u.listener,s=u.handler||u.src,u.callOnce&&er(n.eventTargetListeners_,u),f=!1!==o.call(s,r)&&f);return f&&!1!=r.returnValue_};w.prototype.getListener=function(n,t,i,r){return this.eventTargetListeners_.getListener(String(n),t,i,r)};ku=function(n){r(n.eventTargetListeners_,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};nt=function(n){w.call(this);this.imageIdToRequestMap_={};this.imageIdToImageMap_={};this.handler_=new pt(this);this.parent_=n};u(nt,w);du=[e&&!l("11")?"readystatechange":"load","abort","error"];sr=function(n,t,i){(i=f(i)?i:i.src)&&(n.imageIdToRequestMap_[t]={src:i,corsRequestType:null})};nt.prototype.start=function(){var n=this.imageIdToRequestMap_;wr(nh(n),function(t){var r=n[t],i;r&&(delete n[t],!this.disposed_)&&(i=this.parent_?bi(this.parent_).createDom("img"):new Image,r.corsRequestType&&(i.crossOrigin=r.corsRequestType),this.handler_.listen(i,du,this.onNetworkEvent_),this.imageIdToImageMap_[t]=i,i.id=t,i.src=r.src)},this)};nt.prototype.onNetworkEvent_=function(n){var t=n.currentTarget;if(t){if("readystatechange"==n.type)if("complete"==t.readyState)n.type="load";else return;"undefined"==typeof t.naturalWidth&&("load"==n.type?(t.naturalWidth=t.width,t.naturalHeight=t.height):(t.naturalWidth=0,t.naturalHeight=0));this.dispatchEvent({type:n.type,target:t});!this.disposed_&&(n=t.id,delete this.imageIdToRequestMap_[n],t=this.imageIdToImageMap_[n])&&(delete this.imageIdToImageMap_[n],this.handler_.unlisten(t,du,this.onNetworkEvent_),ue(this.imageIdToImageMap_)&&ue(this.imageIdToRequestMap_)&&this.dispatchEvent("complete"))}};nt.prototype.disposeInternal=function(){delete this.imageIdToRequestMap_;delete this.imageIdToImageMap_;dt(this.handler_);nt.superClass_.disposeInternal.call(this)};tt=function(){};tt.getInstance=function(){return tt.instance_?tt.instance_:tt.instance_=new tt};tt.prototype.nextId_=0;b=function(n){w.call(this);this.dom_=n||bi()};u(b,w);t=b.prototype;t.idGenerator_=tt.getInstance();t.id_=null;t.inDocument_=!1;t.element_=null;t.parent_=null;t.children_=null;t.childIndex_=null;t.wasDecorated_=!1;t.getElement=function(){return this.element_};t.setParentEventTarget=function(n){if(this.parent_&&this.parent_!=n)throw Error("Method not supported");b.superClass_.setParentEventTarget.call(this,n)};t.getDomHelper=function(){return this.dom_};t.createDom=function(){this.element_=this.dom_.createElement("div")};var tc=function(n,t){if(n.inDocument_)throw Error("Component already rendered");n.element_||n.createDom();t?t.insertBefore(n.element_,null):n.dom_.document_.body.appendChild(n.element_);n.parent_&&!n.parent_.inDocument_||ho(n)},ho=function(n){n.inDocument_=!0;hr(n,function(n){!n.inDocument_&&n.getElement()&&ho(n)})},gu=function(n){hr(n,function(n){n.inDocument_&&gu(n)});n.googUiComponentHandler_&&n.googUiComponentHandler_.removeAll();n.inDocument_=!1};b.prototype.disposeInternal=function(){this.inDocument_&&gu(this);this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);hr(this,function(n){n.dispose()});!this.wasDecorated_&&this.element_&&gt(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;b.superClass_.disposeInternal.call(this)};hr=function(n,t){n.children_&&wr(n.children_,t,void 0)};b.prototype.removeChild=function(n,t){if(n){var i=f(n)?n:n.id_||(n.id_=":"+(n.idGenerator_.nextId_++).toString(36)),r;if(this.childIndex_&&i?(r=this.childIndex_,r=(i in r?r[i]:void 0)||null):r=null,n=r,i&&n){if(r=this.childIndex_,i in r&&delete r[i],kf(this.children_,n),t&&(gu(n),n.element_&&gt(n.element_)),i=n,null==i)throw Error("Unable to set parent component");i.parent_=null;b.superClass_.setParentEventTarget.call(i,null)}}if(!n)throw Error("Child is not in parent component");return n};et=function(n,t,i){b.call(this,i);this.captchaImage_=n;this.adImage_=t&&300==t.naturalWidth&&57==t.naturalHeight?t:null};u(et,b);et.prototype.createDom=function(){et.superClass_.createDom.call(this);var n=this.getElement();this.captchaImage_.alt=o.image_alt_text;this.getDomHelper().appendChild(n,this.captchaImage_);this.adImage_&&(this.adImage_.alt=o.image_alt_text,this.getDomHelper().appendChild(n,this.adImage_),this.adImage_&&nf(this.adImage_)&&(n.innerHTML+='<div id="recaptcha-ad-choices"><div class="recaptcha-ad-choices-collapsed"><img height="15" width="30" alt="AdChoices" border="0" src="//www.gstatic.com/recaptcha/api/img/adicon.png"/><\/div><div class="recaptcha-ad-choices-expanded"><a href="https://support.google.com/adsense/troubleshooter/1631343" target="_blank"><img height="15" width="75" alt="AdChoices" border="0" src="//www.gstatic.com/recaptcha/api/img/adchoices.png"/><\/a><\/div><\/div>'))};nf=function(n){var t=tf(n,"visibility");return n=tf(n,"display"),"hidden"!=t&&"none"!=n};tf=function(n,t){var i,r,u;n:{if(i=le(n),i.defaultView&&i.defaultView.getComputedStyle&&(i=i.defaultView.getComputedStyle(n,null))){i=i[t]||i.getPropertyValue(t)||"";break n}i=""}if(!(i=i||(n.currentStyle?n.currentStyle[t]:null))&&(i=n.style[pf(t)],"undefined"==typeof i)){i=n.style;n:if((r=pf(t),void 0===n.style[r])&&(u=(at?"Webkit":rt?"Moz":e?"ms":dr?"O":null)+ys(r),void 0!==n.style[u])){r=u;break n}i=i[r]||""}return i};et.prototype.disposeInternal=function(){delete this.captchaImage_;delete this.adImage_;et.superClass_.disposeInternal.call(this)};fi=function(n,t,i){this.listener_=n;this.interval_=t||0;this.handler_=i;this.callback_=s(this.doAction_,this)};u(fi,d);t=fi.prototype;t.id_=0;t.disposeInternal=function(){fi.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};t.start=function(n){this.stop();var t=this.callback_;if(n=void 0!==n?n:this.interval_,!y(t))if(t&&"function"==typeof t.handleEvent)t=s(t.handleEvent,t);else throw Error("Invalid listener argument");this.id_=2147483647<n?-1:i.setTimeout(t,n||0)};t.stop=function(){this.isActive()&&i.clearTimeout(this.id_);this.id_=0};t.isActive=function(){return 0!=this.id_};t.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};ei=function(n,t){this.listener_=n;this.handler_=t;this.delay_=new fi(s(this.onTick_,this),0,this)};u(ei,d);t=ei.prototype;t.interval_=0;t.runUntil_=0;t.disposeInternal=function(){this.delay_.dispose();delete this.listener_;delete this.handler_;ei.superClass_.disposeInternal.call(this)};t.start=function(n,t){this.stop();var i=t||0;this.interval_=Math.max(n||0,0);this.runUntil_=0>i?-1:ff()+i;this.delay_.start(0>i?this.interval_:Math.min(this.interval_,i))};t.stop=function(){this.delay_.stop()};t.isActive=function(){return this.delay_.isActive()};t.onSuccess=function(){};t.onFailure=function(){};t.onTick_=function(){if(this.listener_.call(this.handler_))this.onSuccess();else if(0>this.runUntil_)this.delay_.start(this.interval_);else{var n=this.runUntil_-ff();0>=n?this.onFailure():this.delay_.start(Math.min(this.interval_,n))}};wi("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));wi("action","cite","data","formaction","href","manifest","poster","src");wi("link","script","style");ai("".implementsGoogStringTypedString?"".getTypedStringValue():"");var co={sanitizedContentKindHtml:!0},lo={sanitizedContentJsStrChars:!0},ic={sanitizedContentKindText:!0},ot=function(){throw Error("Do not instantiate directly");};ot.prototype.contentDir=null;ot.prototype.toString=function(){return this.content};var rc=function(n){var t=yo,i;return r(t,"Soy template may not be null."),i=bi().createElement("DIV"),n=uc(t(n||ec,void 0,void 0)),t=n.match(fc),r(!t,"This template starts with a %s, which cannot be a child of a <div>, as required by soy internals. Consider using goog.soy.renderElement instead.\nTemplate output: %s",t&&t[0],n),i.innerHTML=n,1==i.childNodes.length&&(n=i.firstChild,1==n.nodeType)?n:i},uc=function(n){if(!bt(n))return String(n);if(n instanceof ot){if(n.contentKind===co)return ws(n.content);if(n.contentKind===ic)return ai(n.content)}return ps("Soy template output is unsafe for use as HTML: "+n),"zSoyz"},fc=/^<(body|caption|col|colgroup|head|html|tr|td|tbody|thead|tfoot)>/i,ec={};e&&l(8);oi=function(){ot.call(this)};u(oi,ot);oi.prototype.contentKind=co;si=function(){ot.call(this)};u(si,ot);si.prototype.contentKind=lo;rf=function(n){function t(){}return t.prototype=n.prototype,function(n,i){var r=new t;return r.content=String(n),void 0!==i&&(r.contentDir=i),r}};ao=rf(oi);rf(si),function(n){function t(){}return t.prototype=n.prototype,function(n,i){if(!String(n))return"";var r=new t;return r.content=String(n),void 0!==i&&(r.contentDir=i),r}}(oi);var vo=function(n){return null!=n&&n.contentKind===lo?(r(n.constructor===si),n.content):String(n).replace(hc,sc)},oc={"\x00":"\\x00","\b":"\\x08","\t":"\\t","\n":"\\n","\x0b":"\\x0b","\f":"\\f","\r":"\\r",'"':"\\x22",$:"\\x24","&":"\\x26","'":"\\x27","(":"\\x28",")":"\\x29","*":"\\x2a","+":"\\x2b",",":"\\x2c","-":"\\x2d",".":"\\x2e","/":"\\/",":":"\\x3a","<":"\\x3c","=":"\\x3d",">":"\\x3e","?":"\\x3f","[":"\\x5b","\\":"\\\\","]":"\\x5d","^":"\\x5e","{":"\\x7b","|":"\\x7c","}":"\\x7d","":"\\x85","\u2028":"\\u2028","\u2029":"\\u2029"},sc=function(n){return oc[n]},hc=/[\x00\x08-\x0d\x22\x26\x27\/\x3c-\x3e\\\x85\u2028\u2029]/g,yo=function(n){return ao('<script type="text/javascript">var challenge = \''+vo(n.challenge)+"'; var publisherId = '"+vo(n.publisherId)+"';"+("ca-mongoogle"==n.publisherId?'google_page_url = "3pcerttesting.com/dab/recaptcha.html";':"")+"\n    google_ad_client = publisherId;\n    google_ad_type = 'html';\n    google_ad_output = 'js';\n    google_image_size = '300x57';\n    google_captcha_token = challenge;\n    google_ad_request_done = function(ad) {\n      window.parent.recaptcha.ads.adutils.googleAdRequestDone(ad);\n    };\n    <\/script><script type=\"text/javascript\" src=\"//pagead2.googlesyndication.com/pagead/show_ads.js\"><\/script>")};yo.soyTemplateName="recaptcha.soy.ads.iframeAdsLoader.main";var po=function(){var n=i.google_ad;return!!(n&&n.token&&n.imageAdUrl&&n.hashedAnswer&&n.salt&&n.delayedImpressionUrl&&n.engagementUrl)},wo=function(){i.google_ad&&(i.google_ad=null)},cc=function(n){n=n||document.body;var t=i.google_ad;t&&t.searchLiftUrl&&(t=he("iframe",{src:'data:text/html;charset=utf-8,<body><img src="'+t.searchLiftUrl+'"><\/img><\/body>',style:"display:none"}),n.appendChild(t))},bo=0,ko=function(n){var t=new nt;sr(t,"recaptcha-url-"+bo++,n);t.start()},lc=function(n,t){var u=RecaptchaState.publisher_id,r,f;wo();r=he("iframe",{id:"recaptcha-loader-"+bo++,style:"display: none"});document.body.appendChild(r);f=r.contentWindow?r.contentWindow.document:r.contentDocument;f.open("text/html","replace");f.write(rc({challenge:n,publisherId:u}).innerHTML);f.close();u=new ei(function(){return!!i.google_ad});u.onSuccess=function(){gt(r);t()};u.onFailure=function(){gt(r);t()};u.start(50,500)};ct("recaptcha.ads.adutils.googleAdRequestDone",function(n){i.google_ad=n});go=function(){this.blockSize=-1};hi=function(){this.blockSize=-1;this.blockSize=64;this.chain_=Array(4);this.block_=Array(this.blockSize);this.totalLength_=this.blockLength_=0;this.reset()};u(hi,go);hi.prototype.reset=function(){this.chain_[0]=1732584193;this.chain_[1]=4023233417;this.chain_[2]=2562383102;this.chain_[3]=271733878;this.totalLength_=this.blockLength_=0};cr=function(n,t,i){var o,u;if(i||(i=0),o=Array(16),f(t))for(u=0;16>u;++u)o[u]=t.charCodeAt(i++)|t.charCodeAt(i++)<<8|t.charCodeAt(i++)<<16|t.charCodeAt(i++)<<24;else for(u=0;16>u;++u)o[u]=t[i++]|t[i++]<<8|t[i++]<<16|t[i++]<<24;t=n.chain_[0];i=n.chain_[1];var u=n.chain_[2],e=n.chain_[3],r=0,r=t+(e^i&(u^e))+o[0]+3614090360&4294967295;t=i+(r<<7&4294967295|r>>>25);r=e+(u^t&(i^u))+o[1]+3905402710&4294967295;e=t+(r<<12&4294967295|r>>>20);r=u+(i^e&(t^i))+o[2]+606105819&4294967295;u=e+(r<<17&4294967295|r>>>15);r=i+(t^u&(e^t))+o[3]+3250441966&4294967295;i=u+(r<<22&4294967295|r>>>10);r=t+(e^i&(u^e))+o[4]+4118548399&4294967295;t=i+(r<<7&4294967295|r>>>25);r=e+(u^t&(i^u))+o[5]+1200080426&4294967295;e=t+(r<<12&4294967295|r>>>20);r=u+(i^e&(t^i))+o[6]+2821735955&4294967295;u=e+(r<<17&4294967295|r>>>15);r=i+(t^u&(e^t))+o[7]+4249261313&4294967295;i=u+(r<<22&4294967295|r>>>10);r=t+(e^i&(u^e))+o[8]+1770035416&4294967295;t=i+(r<<7&4294967295|r>>>25);r=e+(u^t&(i^u))+o[9]+2336552879&4294967295;e=t+(r<<12&4294967295|r>>>20);r=u+(i^e&(t^i))+o[10]+4294925233&4294967295;u=e+(r<<17&4294967295|r>>>15);r=i+(t^u&(e^t))+o[11]+2304563134&4294967295;i=u+(r<<22&4294967295|r>>>10);r=t+(e^i&(u^e))+o[12]+1804603682&4294967295;t=i+(r<<7&4294967295|r>>>25);r=e+(u^t&(i^u))+o[13]+4254626195&4294967295;e=t+(r<<12&4294967295|r>>>20);r=u+(i^e&(t^i))+o[14]+2792965006&4294967295;u=e+(r<<17&4294967295|r>>>15);r=i+(t^u&(e^t))+o[15]+1236535329&4294967295;i=u+(r<<22&4294967295|r>>>10);r=t+(u^e&(i^u))+o[1]+4129170786&4294967295;t=i+(r<<5&4294967295|r>>>27);r=e+(i^u&(t^i))+o[6]+3225465664&4294967295;e=t+(r<<9&4294967295|r>>>23);r=u+(t^i&(e^t))+o[11]+643717713&4294967295;u=e+(r<<14&4294967295|r>>>18);r=i+(e^t&(u^e))+o[0]+3921069994&4294967295;i=u+(r<<20&4294967295|r>>>12);r=t+(u^e&(i^u))+o[5]+3593408605&4294967295;t=i+(r<<5&4294967295|r>>>27);r=e+(i^u&(t^i))+o[10]+38016083&4294967295;e=t+(r<<9&4294967295|r>>>23);r=u+(t^i&(e^t))+o[15]+3634488961&4294967295;u=e+(r<<14&4294967295|r>>>18);r=i+(e^t&(u^e))+o[4]+3889429448&4294967295;i=u+(r<<20&4294967295|r>>>12);r=t+(u^e&(i^u))+o[9]+568446438&4294967295;t=i+(r<<5&4294967295|r>>>27);r=e+(i^u&(t^i))+o[14]+3275163606&4294967295;e=t+(r<<9&4294967295|r>>>23);r=u+(t^i&(e^t))+o[3]+4107603335&4294967295;u=e+(r<<14&4294967295|r>>>18);r=i+(e^t&(u^e))+o[8]+1163531501&4294967295;i=u+(r<<20&4294967295|r>>>12);r=t+(u^e&(i^u))+o[13]+2850285829&4294967295;t=i+(r<<5&4294967295|r>>>27);r=e+(i^u&(t^i))+o[2]+4243563512&4294967295;e=t+(r<<9&4294967295|r>>>23);r=u+(t^i&(e^t))+o[7]+1735328473&4294967295;u=e+(r<<14&4294967295|r>>>18);r=i+(e^t&(u^e))+o[12]+2368359562&4294967295;i=u+(r<<20&4294967295|r>>>12);r=t+(i^u^e)+o[5]+4294588738&4294967295;t=i+(r<<4&4294967295|r>>>28);r=e+(t^i^u)+o[8]+2272392833&4294967295;e=t+(r<<11&4294967295|r>>>21);r=u+(e^t^i)+o[11]+1839030562&4294967295;u=e+(r<<16&4294967295|r>>>16);r=i+(u^e^t)+o[14]+4259657740&4294967295;i=u+(r<<23&4294967295|r>>>9);r=t+(i^u^e)+o[1]+2763975236&4294967295;t=i+(r<<4&4294967295|r>>>28);r=e+(t^i^u)+o[4]+1272893353&4294967295;e=t+(r<<11&4294967295|r>>>21);r=u+(e^t^i)+o[7]+4139469664&4294967295;u=e+(r<<16&4294967295|r>>>16);r=i+(u^e^t)+o[10]+3200236656&4294967295;i=u+(r<<23&4294967295|r>>>9);r=t+(i^u^e)+o[13]+681279174&4294967295;t=i+(r<<4&4294967295|r>>>28);r=e+(t^i^u)+o[0]+3936430074&4294967295;e=t+(r<<11&4294967295|r>>>21);r=u+(e^t^i)+o[3]+3572445317&4294967295;u=e+(r<<16&4294967295|r>>>16);r=i+(u^e^t)+o[6]+76029189&4294967295;i=u+(r<<23&4294967295|r>>>9);r=t+(i^u^e)+o[9]+3654602809&4294967295;t=i+(r<<4&4294967295|r>>>28);r=e+(t^i^u)+o[12]+3873151461&4294967295;e=t+(r<<11&4294967295|r>>>21);r=u+(e^t^i)+o[15]+530742520&4294967295;u=e+(r<<16&4294967295|r>>>16);r=i+(u^e^t)+o[2]+3299628645&4294967295;i=u+(r<<23&4294967295|r>>>9);r=t+(u^(i|~e))+o[0]+4096336452&4294967295;t=i+(r<<6&4294967295|r>>>26);r=e+(i^(t|~u))+o[7]+1126891415&4294967295;e=t+(r<<10&4294967295|r>>>22);r=u+(t^(e|~i))+o[14]+2878612391&4294967295;u=e+(r<<15&4294967295|r>>>17);r=i+(e^(u|~t))+o[5]+4237533241&4294967295;i=u+(r<<21&4294967295|r>>>11);r=t+(u^(i|~e))+o[12]+1700485571&4294967295;t=i+(r<<6&4294967295|r>>>26);r=e+(i^(t|~u))+o[3]+2399980690&4294967295;e=t+(r<<10&4294967295|r>>>22);r=u+(t^(e|~i))+o[10]+4293915773&4294967295;u=e+(r<<15&4294967295|r>>>17);r=i+(e^(u|~t))+o[1]+2240044497&4294967295;i=u+(r<<21&4294967295|r>>>11);r=t+(u^(i|~e))+o[8]+1873313359&4294967295;t=i+(r<<6&4294967295|r>>>26);r=e+(i^(t|~u))+o[15]+4264355552&4294967295;e=t+(r<<10&4294967295|r>>>22);r=u+(t^(e|~i))+o[6]+2734768916&4294967295;u=e+(r<<15&4294967295|r>>>17);r=i+(e^(u|~t))+o[13]+1309151649&4294967295;i=u+(r<<21&4294967295|r>>>11);r=t+(u^(i|~e))+o[4]+4149444226&4294967295;t=i+(r<<6&4294967295|r>>>26);r=e+(i^(t|~u))+o[11]+3174756917&4294967295;e=t+(r<<10&4294967295|r>>>22);r=u+(t^(e|~i))+o[2]+718787259&4294967295;u=e+(r<<15&4294967295|r>>>17);r=i+(e^(u|~t))+o[9]+3951481745&4294967295;n.chain_[0]=n.chain_[0]+t&4294967295;n.chain_[1]=n.chain_[1]+(u+(r<<21&4294967295|r>>>11))&4294967295;n.chain_[2]=n.chain_[2]+u&4294967295;n.chain_[3]=n.chain_[3]+e&4294967295};hi.prototype.update=function(n,t){void 0===t&&(t=n.length);for(var e=t-this.blockSize,u=this.block_,i=this.blockLength_,r=0;r<t;){if(0==i)for(;r<=e;)cr(this,n,r),r+=this.blockSize;if(f(n)){for(;r<t;)if(u[i++]=n.charCodeAt(r++),i==this.blockSize){cr(this,u);i=0;break}}else for(;r<t;)if(u[i++]=n[r++],i==this.blockSize){cr(this,u);i=0;break}}this.blockLength_=i;this.totalLength_+=t};st=function(){pt.call(this);this.callback_=this.element_=null;this.md5_=new hi};u(st,pt);ns=function(n,t,i,r,u){n.unwatch();n.element_=t;n.callback_=u;n.listen(t,"keyup",s(n.onChanged_,n,i,r))};st.prototype.unwatch=function(){this.element_&&this.callback_&&(this.removeAll(),this.callback_=this.element_=null)};st.prototype.onChanged_=function(n,t){var r,u,f,i,e;for(r=(r=this.element_.value)?r.replace(/[\s\xa0]+/g,"").toLowerCase():"",this.md5_.reset(),this.md5_.update(r+"."+t),r=this.md5_,u=Array((56>r.blockLength_?r.blockSize:2*r.blockSize)-r.blockLength_),u[0]=128,i=1;i<u.length-8;++i)u[i]=0;for(f=8*r.totalLength_,i=u.length-8;i<u.length;++i)u[i]=f&255,f/=256;for(r.update(u),u=Array(16),i=f=0;4>i;++i)for(e=0;32>e;e+=8)u[f++]=r.chain_[i]>>>e&255;gs(u).toLowerCase()==n.toLowerCase()&&this.callback_()};st.prototype.disposeInternal=function(){this.element_=null;st.superClass_.disposeInternal.call(this)};lr=function(n,t,i){this.adObject_=n;this.captchaImageUrl_=t;this.opt_successCallback_=i||null;ts(this)};u(lr,d);ts=function(n){var t=new nt,i;pi(n,ar(dt,t));sr(t,"recaptcha_challenge_image",n.captchaImageUrl_);sr(t,"recaptcha_ad_image",n.adObject_.imageAdUrl);i={};ii(t,"load",s(function(n,t){n[t.target.id]=t.target},n,i));ii(t,"complete",s(n.handleImagesLoaded_,n,i));t.start()};lr.prototype.handleImagesLoaded_=function(n){n=new et(n.recaptcha_challenge_image,n.recaptcha_ad_image);pi(this,ar(dt,n));var t=ru(document,"recaptcha_image");fh(t);tc(n,t);n.adImage_&&nf(n.adImage_)&&(ko(this.adObject_.delayedImpressionUrl),n=new st,pi(this,ar(dt,n)),ns(n,ru(document,"recaptcha_response_field"),this.adObject_.hashedAnswer,this.adObject_.salt,s(function(n,t){n.unwatch();ko(t)},this,n,this.adObject_.engagementUrl)),this.opt_successCallback_&&this.opt_successCallback_("04"+this.adObject_.token))};o=kt;ct("RecaptchaStr",o);v=i.RecaptchaOptions;ct("RecaptchaOptions",v);uf={tabindex:0,theme:"red",callback:null,lang:null,custom_theme_widget:null,custom_translations:null};ct("RecaptchaDefaultOptions",uf);n={widget:null,timer_id:-1,style_set:!1,theme:null,type:"image",ajax_verify_cb:null,th1:null,th2:null,th3:null,element:"",ad_captcha_plugin:null,reload_timeout:-1,force_reload:!1,$:function(n){return"string"==typeof n?document.getElementById(n):n},attachEvent:function(n,t,i){n&&n.addEventListener?n.addEventListener(t,i,!1):n&&n.attachEvent&&n.attachEvent("on"+t,i)},create:function(t,i,r){n.destroy();i&&(n.widget=n.$(i),n.element=i);n._init_options(r);n._call_challenge(t)},destroy:function(){var t=n.$("recaptcha_challenge_field");t&&t.parentNode.removeChild(t);-1!=n.timer_id&&clearInterval(n.timer_id);n.timer_id=-1;(t=n.$("recaptcha_image"))&&(t.innerHTML="");n.update_widget();n.widget&&("custom"!=n.theme?n.widget.innerHTML="":n.widget.style.display="none",n.widget=null)},focus_response_field:function(){var t=n.$("recaptcha_response_field");t&&t.focus()},get_challenge:function(){return"undefined"==typeof RecaptchaState?null:RecaptchaState.challenge},get_response:function(){var t=n.$("recaptcha_response_field");return t?t.value:null},ajax_verify:function(t){n.ajax_verify_cb=t;t=n.get_challenge()||"";var i=n.get_response()||"";t=n._get_api_server()+"/ajaxverify?c="+encodeURIComponent(t)+"&response="+encodeURIComponent(i);n._add_script(t)},_ajax_verify_callback:function(t){n.ajax_verify_cb(t)},_get_overridable_url:function(n){var t=window.location.protocol;if("undefined"!=typeof _RecaptchaOverrideApiServer)n=_RecaptchaOverrideApiServer;else if("undefined"!=typeof RecaptchaState&&"string"==typeof RecaptchaState.server&&0<RecaptchaState.server.length)return RecaptchaState.server.replace(/\/+$/,"");return t+"//"+n},_get_api_server:function(){return n._get_overridable_url("www.google.com/recaptcha/api")},_get_static_url_root:function(){return n._get_overridable_url("www.gstatic.com/recaptcha/api")},_call_challenge:function(t){t=n._get_api_server()+"/challenge?k="+t+"&ajax=1&cachestop="+Math.random();n.getLang_()&&(t+="&lang="+n.getLang_());"undefined"!=typeof v.extra_challenge_params&&(t+="&"+v.extra_challenge_params);n._add_script(t)},_add_script:function(t){var i=document.createElement("script");i.type="text/javascript";i.src=t;n._get_script_area().appendChild(i)},_get_script_area:function(){var n=document.getElementsByTagName("head");return!n||1>n.length?document.body:n[0]},_hash_merge:function(n){for(var r,i={},t=0;t<n.length;t++)for(r in n[t])i[r]=n[t][r];return i},_init_options:function(t){v=n._hash_merge([uf,t||{}])},challenge_callback_internal:function(){if(n.update_widget(),n._reset_timer(),o=n._hash_merge([kt,fs[n.getLang_()]||{},v.custom_translations||{}]),window.addEventListener&&window.addEventListener("unload",function(){n.destroy()},!1),n._is_ie()&&window.attachEvent&&window.attachEvent("onbeforeunload",function(){}),0<navigator.userAgent.indexOf("KHTML")){var t=document.createElement("iframe");t.src="about:blank";t.style.height="0px";t.style.width="0px";t.style.visibility="hidden";t.style.border="none";t.appendChild(document.createTextNode("This frame prevents back/forward cache problems in Safari."));document.body.appendChild(t)}n._finish_widget()},_add_css:function(t){if(-1!=navigator.appVersion.indexOf("MSIE 5"))document.write('<style type="text/css">'+t+"<\/style>");else{var i=document.createElement("style");i.type="text/css";i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t));n._get_script_area().appendChild(i)}},_set_style:function(t){n.style_set||(n.style_set=!0,n._add_css(t+"\n\n.recaptcha_is_showing_audio .recaptcha_only_if_image,.recaptcha_isnot_showing_audio .recaptcha_only_if_audio,.recaptcha_had_incorrect_sol .recaptcha_only_if_no_incorrect_sol,.recaptcha_nothad_incorrect_sol .recaptcha_only_if_incorrect_sol{display:none !important}"))},_init_builtin_theme:function(){var r=n.$,i=n._get_static_url_root(),t=p.VertCss,e=p.VertHtml,u=i+"/img/"+n.theme,f="gif",i=n.theme;"clean"==i&&(t=p.CleanCss,e=p.CleanHtml,f="png");t=t.replace(/IMGROOT/g,u);n._set_style(t);n.update_widget();n.widget.innerHTML='<div id="recaptcha_area">'+e+"<\/div>";t=n.getLang_();r("recaptcha_privacy")&&null!=t&&"en"==t.substring(0,2).toLowerCase()&&null!=o.privacy_and_terms&&0<o.privacy_and_terms.length&&(t=document.createElement("a"),t.href="http://www.google.com/intl/en/policies/",t.target="_blank",t.innerHTML=o.privacy_and_terms,r("recaptcha_privacy").appendChild(t));t=function(t,i,e,s){var h=r(t);h.src=u+"/"+i+"."+f;i=o[e];h.alt=i;t=r(t+"_btn");t.title=i;n.attachEvent(t,"click",s)};t("recaptcha_reload","refresh","refresh_btn",function(){n.reload_internal("r")});t("recaptcha_switch_audio","audio","audio_challenge",function(){n.switch_type("audio")});t("recaptcha_switch_img","text","visual_challenge",function(){n.switch_type("image")});t("recaptcha_whatsthis","help","help_btn",n.showhelp);"clean"==i&&(r("recaptcha_logo").src=u+"/logo."+f);r("recaptcha_table").className="recaptchatable recaptcha_theme_"+n.theme;i=function(n,t){var i=r(n);i&&(RecaptchaState.rtl&&"span"==i.tagName.toLowerCase()&&(i.dir="rtl"),i.appendChild(document.createTextNode(o[t])))};i("recaptcha_instructions_image","instructions_visual");i("recaptcha_instructions_audio","instructions_audio");i("recaptcha_instructions_error","incorrect_try_again");r("recaptcha_instructions_image")||r("recaptcha_instructions_audio")||(i="audio"==n.type?o.instructions_audio:o.instructions_visual,i=i.replace(/:$/,""),r("recaptcha_response_field").setAttribute("placeholder",i))},_finish_widget:function(){var i=n.$,r=v,t=r.theme;t in{blackglass:1,clean:1,custom:1,red:1,white:1}||(t="red");n.theme||(n.theme=t);"custom"!=n.theme?n._init_builtin_theme():n._set_style("");t=document.createElement("span");t.id="recaptcha_challenge_field_holder";t.style.display="none";i("recaptcha_response_field").parentNode.insertBefore(t,i("recaptcha_response_field"));i("recaptcha_response_field").setAttribute("autocomplete","off");i("recaptcha_image").style.width="300px";i("recaptcha_image").style.height="57px";i("recaptcha_challenge_field_holder").innerHTML='<input type="hidden" name="recaptcha_challenge_field" id="recaptcha_challenge_field" value=""/>';n.th_init();n.should_focus=!1;n.th3||n.force_reload?(n._set_challenge(RecaptchaState.challenge,"image",!0),setTimeout(function(){n.reload_internal("i")},100)):n._set_challenge(RecaptchaState.challenge,"image",!1);n.updateTabIndexes_();n.update_widget();n.widget&&(n.widget.style.display="");r.callback&&r.callback()},updateTabIndexes_:function(){var i=n.$,t=v;t.tabindex&&(t=t.tabindex,i("recaptcha_response_field").tabIndex=t++,"audio"==n.type&&i("recaptcha_audio_play_again")&&(i("recaptcha_audio_play_again").tabIndex=t++,i("recaptcha_audio_download"),i("recaptcha_audio_download").tabIndex=t++),"custom"!=n.theme&&(i("recaptcha_reload_btn").tabIndex=t++,i("recaptcha_switch_audio_btn").tabIndex=t++,i("recaptcha_switch_img_btn").tabIndex=t++,i("recaptcha_whatsthis_btn").tabIndex=t,i("recaptcha_privacy").tabIndex=t++))},switch_type:function(t){if(!((new Date).getTime()<n.reload_timeout)&&(n.type=t,n.reload_internal("audio"==n.type?"a":"v"),"custom"!=n.theme)){t=n.$;var i="audio"==n.type?o.instructions_audio:o.instructions_visual,i=i.replace(/:$/,"");t("recaptcha_response_field").setAttribute("placeholder",i)}},reload:function(){n.reload_internal("r")},reload_internal:function(t){var r=v,u=RecaptchaState,i=(new Date).getTime();i<n.reload_timeout||(n.reload_timeout=i+1e3,"undefined"==typeof t&&(t="r"),i=n._get_api_server()+"/reload?c="+u.challenge+"&k="+u.site+"&reason="+t+"&type="+n.type,n.getLang_()&&(i+="&lang="+n.getLang_()),"undefined"!=typeof r.extra_challenge_params&&(i+="&"+r.extra_challenge_params),n.th_callback_invoke(),n.th1&&(i+="&th="+n.th1,n.th1=""),"audio"==n.type&&(i=r.audio_beta_12_08?i+"&audio_beta_12_08=1":i+"&new_audio_default=1"),n.should_focus="t"!=t&&"i"!=t,n._add_script(i),dt(n.ad_captcha_plugin),u.publisher_id=null)},th_callback_invoke:function(){if(n.th3)try{var t=n.th3.exec();t&&1600>t.length&&(n.th1=t)}catch(i){n.th1=""}},finish_reload:function(t,i,r,u){RecaptchaState.payload_url=r;RecaptchaState.is_incorrect=!1;RecaptchaState.publisher_id=u;n._set_challenge(t,i,!1);n.updateTabIndexes_()},_set_challenge:function(t,i,r){"image"==i&&RecaptchaState.publisher_id?lc(t,function(){n._set_challenge_internal(t,i,r)}):n._set_challenge_internal(t,i,r)},_set_challenge_internal:function(t,i,r){var u=n.$,f=RecaptchaState;f.challenge=t;n.type=i;u("recaptcha_challenge_field").value=f.challenge;r||("audio"==i?(u("recaptcha_image").innerHTML=n.getAudioCaptchaHtml(),n._loop_playback()):"image"==i&&(t=f.payload_url,t||(t=n._get_api_server()+"/image?c="+f.challenge,n.th_callback_invoke(),n.th1&&(t+="&th="+n.th1,n.th1="")),cc(u("recaptcha_widget_div")),po()?n.ad_captcha_plugin=new lr(th(),t,function(n){RecaptchaState.challenge=n;u("recaptcha_challenge_field").value=n}):u("recaptcha_image").innerHTML='<img id="recaptcha_challenge_image" alt="'+o.image_alt_text+'" height="57" width="300" src="'+t+'" />',wo()));n._css_toggle("recaptcha_had_incorrect_sol","recaptcha_nothad_incorrect_sol",f.is_incorrect);n._css_toggle("recaptcha_is_showing_audio","recaptcha_isnot_showing_audio","audio"==i);n._clear_input();n.should_focus&&n.focus_response_field();n._reset_timer()},_reset_timer:function(){clearInterval(n.timer_id);var t=Math.max(1e3*(RecaptchaState.timeout-60),6e4);return n.timer_id=setInterval(function(){n.reload_internal("t")},t),t},showhelp:function(){window.open(n._get_help_link(),"recaptcha_popup","width=460,height=580,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes")},_clear_input:function(){n.$("recaptcha_response_field").value=""},_displayerror:function(t){var i=n.$;i("recaptcha_image").innerHTML="";i("recaptcha_image").appendChild(document.createTextNode(t))},reloaderror:function(t){n._displayerror(t)},_is_ie:function(){return 0<navigator.userAgent.indexOf("MSIE")&&!window.opera},_css_toggle:function(t,i,r){var u;n.update_widget();u=n.widget;u||(u=document.body);var f=u.className,f=f.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," "),f=f.replace(new RegExp("(^|\\s+)"+i+"(\\s+|$)")," ");u.className=f+(" "+(r?t:i))},_get_help_link:function(){var t=n._get_api_server().replace(/\/[a-zA-Z0-9]+\/?$/,"/help"),t=t+("?c="+RecaptchaState.challenge);return n.getLang_()&&(t+="&hl="+n.getLang_()),t},playAgain:function(){n.$("recaptcha_image").innerHTML=n.getAudioCaptchaHtml();n._loop_playback()},_loop_playback:function(){var t=n.$("recaptcha_audio_play_again");t&&n.attachEvent(t,"click",function(){return n.playAgain(),!1})},getAudioCaptchaHtml:function(){var t=RecaptchaState.payload_url;t||(t=n._get_api_server()+"/audio.mp3?c="+RecaptchaState.challenge,n.th_callback_invoke(),n.th1&&(t+="&th="+n.th1,n.th1=""));var i=n._get_static_url_root()+"/img/audiocaptcha.swf?v2",i=n._is_ie()?'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="audiocaptcha" width="0" height="0" codebase="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="'+i+'" /><param name="quality" value="high" /><param name="bgcolor" value="#869ca7" /><param name="allowScriptAccess" value="always" /><\/object><br/>':'<embed src="'+i+'" quality="high" bgcolor="#869ca7" width="0" height="0" name="audiocaptcha" align="middle" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /><\/embed>',r="";return n.checkFlashVer()&&(r="<br/>"+n.getSpan_('<a id="recaptcha_audio_play_again" class="recaptcha_audio_cant_hear_link">'+o.play_again+"<\/a>")),r+="<br/>"+n.getSpan_('<a id="recaptcha_audio_download" class="recaptcha_audio_cant_hear_link" target="_blank" href="'+t+'">'+o.cant_hear_this+"<\/a>"),i+r},getSpan_:function(n){return"<span"+(RecaptchaState&&RecaptchaState.rtl?' dir="rtl"':"")+">"+n+"<\/span>"},gethttpwavurl:function(){if("audio"!=n.type)return"";var t=RecaptchaState.payload_url;return t||(t=n._get_api_server()+"/image?c="+RecaptchaState.challenge,n.th_callback_invoke(),n.th1&&(t+="&th="+n.th1,n.th1="")),t},checkFlashVer:function(){var t=-1!=navigator.appVersion.indexOf("MSIE"),i=-1!=navigator.appVersion.toLowerCase().indexOf("win"),r=-1!=navigator.userAgent.indexOf("Opera"),n=-1;if(null!=navigator.plugins&&0<navigator.plugins.length)(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"])&&(n=navigator.plugins["Shockwave Flash"+(navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"")].description.split(" ")[2].split(".")[0]);else if(t&&i&&!r)try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7").GetVariable("$version").split(" ")[1].split(",")[0]}catch(u){}return 9<=n},getLang_:function(){return v.lang?v.lang:"undefined"!=typeof RecaptchaState&&RecaptchaState.lang?RecaptchaState.lang:null},challenge_callback:function(){if(n.force_reload=!!RecaptchaState.force_reload,RecaptchaState.t3){var t=RecaptchaState.t1?nu(iu(RecaptchaState.t1)):"",u=RecaptchaState.t2?nu(iu(RecaptchaState.t2)):"",r=RecaptchaState.t3?nu(iu(RecaptchaState.t3)):"";if(n.th2=r,t)u=ph(t),nr(u,n.challenge_callback_internal,null,void 0),nr(u,null,n.challenge_callback_internal,void 0);else{if(i.execScript)i.execScript(u,"JavaScript");else if(i.eval)null==li&&(i.eval("var _et_ = 1;"),"undefined"!=typeof i._et_?(delete i._et_,li=!0):li=!1),li?i.eval(u):(t=i.document,r=t.createElement("script"),r.type="text/javascript",r.defer=!1,r.appendChild(t.createTextNode(u)),t.body.appendChild(r),t.body.removeChild(r));else throw Error("goog.globalEval not available");n.challenge_callback_internal()}}else n.challenge_callback_internal()},th_init:function(){try{i.thintinel&&i.thintinel.th&&(n.th3=new i.thintinel.th(n.th2),n.th2="")}catch(t){}},update_widget:function(){n.element&&(n.widget=n.$(n.element))}};ct("Recaptcha",n)})();(function(){var l=this,tt=l._,e=Array.prototype,w=Object.prototype,it=Function.prototype,rt=e.push,i=e.slice,f=w.toString,ut=w.hasOwnProperty,ft=Array.isArray,b=Object.keys,a=it.bind,n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t},r,t,v,o,u,s,k,y,h,nt,c;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=n),exports._=n):l._=n;n.VERSION="1.7.0";r=function(n,t,i){if(t===void 0)return n;switch(i==null?3:i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}};t=function(t,i,u){return t==null?n.identity:n.isFunction(t)?r(t,i,u):n.isObject(t)?n.matches(t):n.property(t)};n.iteratee=function(n,i){return t(n,i)};n.each=n.forEach=function(t,i,u){var f,e,o;if(t==null)return t;if(i=r(i,u),e=t.length,e===+e)for(f=0;f<e;f++)i(t[f],f,t);else for(o=n.keys(t),f=0,e=o.length;f<e;f++)i(t[o[f]],o[f],t);return t};n.map=n.collect=function(i,r,u){var f;if(i==null)return[];r=t(r,u);var e=i.length!==+i.length&&n.keys(i),s=(e||i).length,h=Array(s),o;for(f=0;f<s;f++)o=e?e[f]:f,h[f]=r(i[o],o,i);return h};v="Reduce of empty array with no initial value";n.reduce=n.foldl=n.inject=function(t,i,u,f){t==null&&(t=[]);i=r(i,f,4);var o=t.length!==+t.length&&n.keys(t),h=(o||t).length,e=0,s;if(arguments.length<3){if(!h)throw new TypeError(v);u=t[o?o[e++]:e++]}for(;e<h;e++)s=o?o[e]:e,u=i(u,t[s],s,t);return u};n.reduceRight=n.foldr=function(t,i,u,f){t==null&&(t=[]);i=r(i,f,4);var o=t.length!==+t.length&&n.keys(t),e=(o||t).length,s;if(arguments.length<3){if(!e)throw new TypeError(v);u=t[o?o[--e]:--e]}while(e--)s=o?o[e]:e,u=i(u,t[s],s,t);return u};n.find=n.detect=function(i,r,u){var f;return r=t(r,u),n.some(i,function(n,t,i){if(r(n,t,i))return f=n,!0}),f};n.filter=n.select=function(i,r,u){var f=[];return i==null?f:(r=t(r,u),n.each(i,function(n,t,i){r(n,t,i)&&f.push(n)}),f)};n.reject=function(i,r,u){return n.filter(i,n.negate(t(r)),u)};n.every=n.all=function(i,r,u){if(i==null)return!0;r=t(r,u);for(var e=i.length!==+i.length&&n.keys(i),s=(e||i).length,o,f=0;f<s;f++)if(o=e?e[f]:f,!r(i[o],o,i))return!1;return!0};n.some=n.any=function(i,r,u){if(i==null)return!1;r=t(r,u);for(var e=i.length!==+i.length&&n.keys(i),s=(e||i).length,o,f=0;f<s;f++)if(o=e?e[f]:f,r(i[o],o,i))return!0;return!1};n.contains=n.include=function(t,i){return t==null?!1:(t.length!==+t.length&&(t=n.values(t)),n.indexOf(t,i)>=0)};n.invoke=function(t,r){var u=i.call(arguments,2),f=n.isFunction(r);return n.map(t,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matches(i))};n.findWhere=function(t,i){return n.find(t,n.matches(i))};n.max=function(i,r,u){var f=-Infinity,h=-Infinity,s,e,o,c;if(r==null&&i!=null)for(i=i.length===+i.length?i:n.values(i),o=0,c=i.length;o<c;o++)s=i[o],s>f&&(f=s);else r=t(r,u),n.each(i,function(n,t,i){e=r(n,t,i);(e>h||e===-Infinity&&f===-Infinity)&&(f=n,h=e)});return f};n.min=function(i,r,u){var f=Infinity,h=Infinity,s,e,o,c;if(r==null&&i!=null)for(i=i.length===+i.length?i:n.values(i),o=0,c=i.length;o<c;o++)s=i[o],s<f&&(f=s);else r=t(r,u),n.each(i,function(n,t,i){e=r(n,t,i);(e<h||e===Infinity&&f===Infinity)&&(f=n,h=e)});return f};n.shuffle=function(t){for(var f=t&&t.length===+t.length?t:n.values(t),e=f.length,r=Array(e),u,i=0;i<e;i++)u=n.random(0,i),u!==i&&(r[i]=r[u]),r[u]=f[i];return r};n.sample=function(t,i,r){return i==null||r?(t.length!==+t.length&&(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,i))};n.sortBy=function(i,r,u){return r=t(r,u),n.pluck(n.map(i,function(n,t,i){return{value:n,index:t,criteria:r(n,t,i)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(i<r||r===void 0)return-1}return n.index-t.index}),"value")};o=function(i){return function(r,u,f){var e={};return u=t(u,f),n.each(r,function(n,t){var f=u(n,t,r);i(e,n,f)}),e}};n.groupBy=o(function(t,i,r){n.has(t,r)?t[r].push(i):t[r]=[i]});n.indexBy=o(function(n,t,i){n[i]=t});n.countBy=o(function(t,i,r){n.has(t,r)?t[r]++:t[r]=1});n.sortedIndex=function(n,i,r,u){var e;r=t(r,u,1);for(var s=r(i),f=0,o=n.length;f<o;)e=f+o>>>1,r(n[e])<s?f=e+1:o=e;return f};n.toArray=function(t){return t?n.isArray(t)?i.call(t):t.length===+t.length?n.map(t,n.identity):n.values(t):[]};n.size=function(t){return t==null?0:t.length===+t.length?t.length:n.keys(t).length};n.partition=function(i,r,u){r=t(r,u);var f=[],e=[];return n.each(i,function(n,t,i){(r(n,t,i)?f:e).push(n)}),[f,e]};n.first=n.head=n.take=function(t,i,r){if(t!=null)return i==null||r?t[0]:n.initial(t,t.length-i)};n.initial=function(n,t,r){return i.call(n,0,Math.max(0,n.length-(t==null||r?1:t)))};n.last=function(t,i,r){if(t!=null)return i==null||r?t[t.length-1]:n.rest(t,Math.max(0,t.length-i))};n.rest=n.tail=n.drop=function(n,t,r){return i.call(n,t==null||r?1:t)};n.compact=function(t){return n.filter(t,n.identity)};u=function(t,i,r,f){for(var o=[],l=0,e,h,c,s=f||0,a=t&&t.length;s<a;s++)if(e=t[s],e&&e.length>=0&&(n.isArray(e)||n.isArguments(e)))for(i||(e=u(e,i,r)),h=0,c=e.length,o.length+=c;h<c;)o[l++]=e[h++];else r||(o[l++]=e);return o};n.flatten=function(n,t){return u(n,t,!1)};n.without=function(t){return n.difference(t,i.call(arguments,1))};n.uniq=n.unique=function(i,r,u,f){var o,h,s,l,e,c;if(i==null)return[];for(n.isBoolean(r)||(f=u,u=r,r=!1),u!=null&&(u=t(u,f)),o=[],h=[],s=0,l=i.length;s<l;s++)e=i[s],c=u?u(e,s,i):e,r?(s&&h===c||o.push(e),h=c):u?n.contains(h,c)||(h.push(c),o.push(e)):n.contains(o,e)||o.push(e);return o};n.union=function(){return n.uniq(u(arguments,!0,!0))};n.intersection=function(t){var r,e,u,o,f,i;if(t==null)return[];for(r=[],e=arguments.length,u=0,o=t.length;u<o;u++)if(f=t[u],!n.contains(r,f)){for(i=1;i<e;i++)if(!n.contains(arguments[i],f))break;i===e&&r.push(f)}return r};n.difference=function(t){var i=u(arguments,!0,!0,1);return n.filter(t,function(t){return!n.contains(i,t)})};n.zip=function(t){if(t==null)return[];for(var i=n.max(arguments,"length").length,r=Array(i);i-->0;)r[i]=n.pluck(arguments,i);return r};n.unzip=function(t){return n.zip.apply(null,t)};n.object=function(n,t){var r,i,u;if(n==null)return{};for(r={},i=0,u=n.length;i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){var u=0,f=t&&t.length;if(typeof r=="number")u=r<0?Math.max(0,f+r):r;else if(r)return u=n.sortedIndex(t,i),t[u]===i?u:-1;for(;u<f;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){var r=n?n.length:0;for(typeof i=="number"&&(r=i<0?r+i+1:Math.min(r,i+1));--r>=0;)if(n[r]===t)return r;return-1};n.range=function(n,t,i){var u,f,r;for(arguments.length<=1&&(t=n||0,n=0),i=i||1,u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;r<u;r++,n+=i)f[r]=n;return f};s=function(){};n.bind=function(t,r){var u,f;if(a&&t.bind===a)return a.apply(t,i.call(arguments,1));if(!n.isFunction(t))throw new TypeError("Bind must be called on a function");return u=i.call(arguments,2),f=function(){var e,o;return(this instanceof f)?(s.prototype=t.prototype,e=new s,s.prototype=null,o=t.apply(e,u.concat(i.call(arguments))),n.isObject(o))?o:e:t.apply(r,u.concat(i.call(arguments)))}};n.partial=function(t){var r=i.call(arguments,1);return function(){for(var f=0,i=r.slice(),u=0,e=i.length;u<e;u++)i[u]===n&&(i[u]=arguments[f++]);while(f<arguments.length)i.push(arguments[f++]);return t.apply(this,i)}};n.bindAll=function(t){var i,u=arguments.length,r;if(u<=1)throw new Error("bindAll must be passed function names");for(i=1;i<u;i++)r=arguments[i],t[r]=n.bind(t[r],t);return t};n.memoize=function(t,i){var r=function(u){var f=r.cache,e=""+(i?i.apply(this,arguments):u);return n.has(f,e)||(f[e]=t.apply(this,arguments)),f[e]};return r.cache={},r};n.delay=function(n,t){var r=i.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)};n.defer=function(t){return n.delay.apply(n,[t,1].concat(i.call(arguments,1)))};n.throttle=function(t,i,r){var f,e,s,u=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now();u=null;s=t.apply(f,e);u||(f=e=null)},function(){var l=n.now(),c;return o||r.leading!==!1||(o=l),c=i-(l-o),f=this,e=arguments,c<=0||c>i?(u&&(clearTimeout(u),u=null),o=l,s=t.apply(f,e),u||(f=e=null)):u||r.trailing===!1||(u=setTimeout(h,c)),s}};n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;c<i&&c>=0?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),u||(e=f=null)))};return function(){e=this;f=arguments;s=n.now();var c=r&&!u;return u||(u=setTimeout(h,i)),c&&(o=t.apply(e,f),e=f=null),o}};n.wrap=function(t,i){return n.partial(i,t)};n.negate=function(n){return function(){return!n.apply(this,arguments)}};n.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.before=function(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}};n.once=n.partial(n.before,2);k=!{toString:null}.propertyIsEnumerable("toString");y=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];n.keys=function(t){var i,u,f,r;if(!n.isObject(t))return[];if(b)return b(t);i=[];for(u in t)n.has(t,u)&&i.push(u);if(k)for(f=y.length;f--;)r=y[f],n.has(t,r)&&!n.contains(i,r)&&i.push(r);return i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;i<f;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var r=[],i;for(i in t)n.isFunction(t[i])&&r.push(i);return r.sort()};n.extend=function(t){var r,u,i,f;if(!n.isObject(t))return t;for(i=1,f=arguments.length;i<f;i++){r=arguments[i];for(u in r)t[u]=r[u]}return t};n.pick=function(t,i,f){var o={},e,h,c,s,l;if(t==null)return o;if(n.isFunction(i)){i=r(i,f);for(e in t)h=t[e],i(h,e,t)&&(o[e]=h)}else for(c=u(arguments,!1,!1,1),t=new Object(t),s=0,l=c.length;s<l;s++)e=c[s],e in t&&(o[e]=t[e]);return o};n.omit=function(t,i,r){if(n.isFunction(i))i=n.negate(i);else{var f=n.map(u(arguments,!1,!1,1),String);i=function(t,i){return!n.contains(f,i)}}return n.pick(t,i,r)};n.defaults=function(t){var i,f,u,r;if(!n.isObject(t))return t;for(i=1,f=arguments.length;i<f;i++){u=arguments[i];for(r in u)t[r]===void 0&&(t[r]=u[r])}return t};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};h=function(t,i,r,u){var l,y,s,c,a,e,o,p,v;if(t===i)return t!==0||1/t==1/i;if(t==null||i==null)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),l=f.call(t),l!==f.call(i))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:+t==0?1/+t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}if(y=l==="[object Array]",!y&&(typeof t!="object"||typeof i!="object"||(s=t.constructor,c=i.constructor,s!==c&&!(n.isFunction(s)&&s instanceof s&&n.isFunction(c)&&c instanceof c)&&"constructor"in t&&"constructor"in i)))return!1;for(a=r.length;a--;)if(r[a]===t)return u[a]===i;if(r.push(t),u.push(i),y){if(e=t.length,o=e===i.length,o)while(e--)if(!(o=h(t[e],i[e],r,u)))break}else if(p=n.keys(t),e=p.length,o=n.keys(i).length===e,o)while(e--)if(v=p[e],!(o=n.has(i,v)&&h(t[v],i[v],r,u)))break;return r.pop(),u.pop(),o};n.isEqual=function(n,t){return h(n,t,[],[])};n.isEmpty=function(t){if(t==null)return!0;if(n.isArray(t)||n.isString(t)||n.isArguments(t))return t.length===0;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!!(n&&n.nodeType===1)};n.isArray=ft||function(n){return f.call(n)==="[object Array]"};n.isObject=function(n){var t=typeof n;return t==="function"||t==="object"&&!!n};n.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){n["is"+t]=function(n){return f.call(n)==="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return n.has(t,"callee")});typeof/./!="function"&&(n.isFunction=function(n){return typeof n=="function"||!1});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!==+t};n.isBoolean=function(n){return n===!0||n===!1||f.call(n)==="[object Boolean]"};n.isNull=function(n){return n===null};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return n!=null&&ut.call(n,t)};n.noConflict=function(){return l._=tt,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.noop=function(){};n.property=function(n){return function(t){if(t!=null)return t[n]}};n.matches=function(t){var i=n.pairs(t),r=i.length;return function(n){var t,u,f;if(n==null)return!r;for(n=new Object(n),t=0;t<r;t++)if(u=i[t],f=u[0],u[1]!==n[f]||!(f in n))return!1;return!0}};n.times=function(n,t,i){var f=Array(Math.max(0,n)),u;for(t=r(t,i,1),u=0;u<n;u++)f[u]=t(u);return f};n.random=function(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};var d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},et=n.invert(d),g=function(t){var r=function(n){return t[n]},i="(?:"+n.keys(t).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=n==null?"":""+n,u.test(n)?n.replace(f,r):n}};n.escape=g(d);n.unescape=g(et);n.result=function(t,i,r){var u=t==null?void 0:t[i];return u===void 0?r:n.isFunction(u)?t[i]():u};nt=0;n.uniqueId=function(n){var t=++nt+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var p=/(.)^/,ot={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},st=/\\|'|\r|\n|\u2028|\u2029/g,ht=function(n){return"\\"+ot[n]};n.template=function(t,i,r){var o,f,h;!i&&r&&(i=r);i=n.defaults({},i,n.templateSettings);var c=RegExp([(i.escape||p).source,(i.interpolate||p).source,(i.evaluate||p).source].join("|")+"|$","g"),e=0,u="__p+='";t.replace(c,function(n,i,r,f,o){return u+=t.slice(e,o).replace(st,ht),e=o+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n});u+="';\n";i.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{o=new Function(i.variable||"obj","_",u)}catch(s){s.source=u;throw s;}return f=function(t){return o.call(this,t,n)},h=i.variable||"obj",f.source="function("+h+"){\n"+u+"}",f};n.chain=function(t){var i=n(t);return i._chain=!0,i};c=function(t,i){return t._chain?n(i).chain():i};n.mixin=function(t){n.each(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return rt.apply(t,arguments),c(this,r.apply(n,t))}})};n.mixin(n);n.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=e[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),(t==="shift"||t==="splice")&&n.length===0&&delete n[0],c(this,n)}});n.each(["concat","join","slice"],function(t){var i=e[t];n.prototype[t]=function(){return c(this,i.apply(this._wrapped,arguments))}});n.prototype.value=function(){return this._wrapped};typeof define=="function"&&define.amd&&define("underscore",[],function(){return n})}).call(this);$.fn.uploadFile=function(n,t,i,r,u){var h,s,e=$(this),f,o,c=!1,l,a;if(e.size()>1)throw new Error("uploadFile: Not possible to call uploadFile on a jquery object with more than one element");if(!$(e[0]).is('[type="file"]'))throw new Error("uploadFile: Not possible to call uploadFile on a non-file input type");$.fn.uploadFile.increment=($.fn.uploadFile.increment||0)+1;h="asyncForm"+$.fn.uploadFile.increment;s="asyncFormIFrame"+$.fn.uploadFile.increment;o=$('<iframe id="'+s+'" name="'+s+'" src="" style="display:none">');f=$('<form id="'+h+'" class="file-shim" action="'+n+'"><\/form>');f.attr("target",s);f.attr("method","POST");f.attr("enctype","multipart/form-data");f.attr("encoding","multipart/form-data");a=NextGen.Logger.errorWrap(function(){var s=null,n,h,l;c=!0;try{if(n=o[0],h=n.contentWindow?n.contentWindow.document:n.contentDocument||n.document,!h)throw new Error("There was an invalid response from the server. Please try a reduced file size.");if(l=h.getElementById("response"),!l)throw new Error("No response tag.");s=$.parseJSON(l.innerHTML);e.data("sharedCacheKey",s.SharedCacheKey);i&&i(s,e)}catch(a){r?r(e,{success:!1,error:a}):NextGen.Logger.error(a)}finally{e.detach();t.before(e).remove();f.remove();u&&u(s,e)}});l=NextGen.Logger.errorWrap(function(){o.off("load").on("load",function(){setTimeout(a,100)});f[0].submit()});o.on("load",function(){setTimeout(l,100)});return $("body").append(f),e.before(t).detach().appendTo(f),o.appendTo(f),{timeout:function(n,t){setTimeout(function(){var n,r,u;if(!c){try{if(n=o[0],r=n.contentWindow?n.contentWindow.document:n.contentDocument||n.document,r&&(u=r.getElementById("response"),u)){i($.parseJSON(u.innerHTML));return}}catch(f){}t&&t()}},n)}}};window.eventsair_vendor=1;(function(n){function r(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function f(n){return n===undefined}var t={},e=n.TraceKit,u=[].slice,i="?";t.noConflict=function(){return n.TraceKit=e,t};t.wrap=function(n){function i(){try{return n.apply(this,arguments)}catch(i){throw t.report(i),i;}}return i};t.report=function(){function c(n){f.push(n)}function l(n){for(var t=f.length-1;t>=0;--t)f[t]===n&&f.splice(t,1)}function o(n,i){var e=null,o;if(!i||t.collectWindowErrors){for(o in f)if(r(f,o))try{f[o].apply(null,[n].concat(u.call(arguments,2)))}catch(s){e=s}if(e)throw e;}}function s(r){var s=u.call(arguments,1),h,f;if(i){if(e===r)return;h=i;i=null;e=null;o.apply(null,[h,null].concat(s))}f=t.computeStackTrace(r);throw i=f,e=r,n.setTimeout(function(){e===r&&(i=null,e=null,o.apply(null,[f,null].concat(s)))},f.incomplete?2e3:0),r;}var f=[],e=null,i=null,h=n.onerror;return n.onerror=function(n,r,u,f,s){var l=null,c;return s?l=t.computeStackTrace(s):i?(t.computeStackTrace.augmentStackTraceWithInitialElement(i,r,u,n),l=i,i=null,e=null):(c={url:r,line:u,column:f},c.func=t.computeStackTrace.guessFunctionName(c.url,c.line),c.context=t.computeStackTrace.gatherContext(c.url,c.line),l={mode:"onerror",message:n,url:document.location.href,stack:[c],useragent:navigator.userAgent}),o(l,"from window.onerror"),h?h.apply(this,arguments):!1},s.subscribe=c,s.unsubscribe=l,s}();t.computeStackTrace=function(){function b(i){function u(){try{return new n.XMLHttpRequest}catch(t){return new n.ActiveXObject("Microsoft.XMLHTTP")}}if(!t.remoteFetching)return"";try{var r=u();return r.open("GET",i,!1),r.send(""),r.responseText}catch(f){return""}}function o(n){if(!r(v,n)){var t="";n=n||"";-1!==n.indexOf(document.domain)&&(t=b(n));v[n]=t?t.split("\n"):[]}return v[n]}function e(n,t){var e,r="",s=o(n),u;if(!s.length)return i;for(u=0;10>u;++u)if((r=s[t-u]+r,!f(r))&&((e=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/.exec(r))||(e=/function ([^(]*)\(([^)]*)\)/.exec(r))))return e[1];return i}function s(n,i){var u=o(n),r;if(!u.length)return null;var e=[],s=Math.floor(t.linesOfContext/2),h=s+t.linesOfContext%2,c=Math.max(0,i-s-1),l=Math.min(u.length,i+h-1);for(i-=1,r=c;l>r;++r)f(u[r])||e.push(u[r]);return e.length>0?e:null}function h(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function y(n){return h(n).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function c(n,t){for(var i,r,u=0,f=t.length;f>u;++u)if((i=o(t[u])).length&&(i=i.join("\n"),r=n.exec(i)))return{url:t[u],line:i.substring(0,r.index).split("\n").length,column:r.index-i.lastIndexOf("\n",r.index)-1};return null}function a(n,t,i){var u,r=o(t),f=RegExp("\\b"+h(n)+"\\b");return i-=1,r&&r.length>i&&(u=f.exec(r[i]))?u.index:null}function k(t){for(var l,v,p,w,u,r,i,f,e=[n.location.href],a=document.getElementsByTagName("script"),o=""+t,s=0;a.length>s;++s)l=a[s],l.src&&e.push(l.src);return((i=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(o))?(v=i[1]?"\\s+"+i[1]:"",p=i[2].split(",").join("\\s*,\\s*"),u=h(i[3]).replace(/;$/,";?"),r=RegExp("function"+v+"\\s*\\(\\s*"+p+"\\s*\\)\\s*{\\s*"+u+"\\s*}")):r=RegExp(h(o).replace(/\s+/g,"\\s+")),f=c(r,e))?f:(i=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(o))&&((w=i[1],u=y(i[2]),r=RegExp("on"+w+"=[\\'\"]\\s*"+u+"\\s*[\\'\"]","i"),f=c(r,e[0]))||(r=RegExp(u),f=c(r,e)))?f:null}function d(n){if(!n.stack)return null;for(var t,r,o=n.stack.split("\n"),u=[],h=/^(.*) is undefined$/.exec(n.message),f=0,c=o.length;c>f;++f){if(t=/^\s*(\S*)(?:\((.*?)\))?@((?:file|http|https).*?):(\d+)(?::(\d+))?\s*$/i.exec(o[f]))r={url:t[3],func:t[1]||i,args:t[2]?t[2].split(","):"",line:+t[4],column:t[5]?+t[5]:null};else if(t=/^\s*at (?:((?:\[object object\])?\S+) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i.exec(o[f]))r={url:t[2],func:t[1]||i,line:+t[3],column:t[4]?+t[4]:null};else{if(!(t=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i.exec(o[f])))continue;r={url:t[2],func:t[1]||i,line:+t[3],column:t[4]?+t[4]:null}}!r.func&&r.line&&(r.func=e(r.url,r.line));r.line&&(r.context=s(r.url,r.line));u.push(r)}return u[0]&&u[0].line&&!u[0].column&&h&&(u[0].column=a(h[1],u[0].url,u[0].line)),u.length?{mode:"stack",name:n.name,message:n.message,url:document.location.href,stack:u,useragent:navigator.userAgent}:null}function g(n){for(var t,i,o=n.stacktrace,u=o.split("\n"),f=[],r=0,h=u.length;h>r;r+=2)if(i=/ line (\d+), column (\d+) in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\) in (.*):\s*$/i.exec(u[r])){if(t={line:+i[1],column:+i[2],func:i[3]||i[4],args:i[5]?i[5].split(","):[],url:i[6]},!t.func&&t.line&&(t.func=e(t.url,t.line)),t.line)try{t.context=s(t.url,t.line)}catch(c){}t.context||(t.context=[u[r+1]]);f.push(t)}return f.length?{mode:"stacktrace",name:n.name,message:n.message,url:document.location.href,stack:f,useragent:navigator.userAgent}:null}function nt(t){var h=t.message.split("\n"),i,g,w,b,a,tt;if(4>h.length)return null;var f,u,k,l,p=[],v=document.getElementsByTagName("script"),d=[];for(u in v)r(v,u)&&!v[u].src&&d.push(v[u]);for(u=2,k=h.length;k>u;u+=2){if(i=null,f=/^\s*Line (\d+) of linked script ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i.exec(h[u]))i={url:f[2],func:f[3],line:+f[1]};else if(f=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i.exec(h[u]))i={url:f[3],func:f[4]},g=+f[1],w=d[f[2]-1],w&&(l=o(i.url))&&(l=l.join("\n"),b=l.indexOf(w.innerText),b>=0&&(i.line=g+l.substring(0,b).split("\n").length));else if(f=/^\s*Line (\d+) of function script\s*$/i.exec(h[u])){var nt=n.location.href.replace(/#.*$/,""),it=f[1],rt=RegExp(y(h[u+1]));l=c(rt,[nt]);i={url:nt,line:l?l.line:it,func:""}}i&&(i.func||(i.func=e(i.url,i.line)),a=s(i.url,i.line),tt=a?a[Math.floor(a.length/2)]:null,i.context=a&&tt.replace(/^\s*/,"")===h[u+1].replace(/^\s*/,"")?a:[h[u+1]],p.push(i))}return p.length?{mode:"multiline",name:t.name,message:h[0],url:document.location.href,stack:p,useragent:navigator.userAgent}:null}function p(n,t,i,r){var u={url:t,line:i},f;if(u.url&&u.line){if(n.incomplete=!1,u.func||(u.func=e(u.url,u.line)),u.context||(u.context=s(u.url,u.line)),f=/ '([^']+)' /.exec(r),f&&(u.column=a(f[1],u.url,u.line)),n.stack.length>0&&n.stack[0].url===u.url){if(n.stack[0].line===u.line)return!1;if(!n.stack[0].line&&n.stack[0].func===u.func)return n.stack[0].line=u.line,n.stack[0].context=u.context,!1}return n.stack.unshift(u),n.partial=!0,!0}return n.incomplete=!0,!1}function w(n,r){for(var c,l,v,f,s,h=[],y={},b=!1,o=w.caller;o&&!b;o=o.caller)o!==u&&o!==t.report&&((f={url:null,func:i,line:null,column:null},o.name?f.func=o.name:(v=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i.exec(""+o))&&(f.func=v[1]),s=k(o))&&(f.url=s.url,f.line=s.line,f.func===i&&(f.func=e(f.url,f.line)),c=/ '([^']+)' /.exec(n.message||n.description),c&&(f.column=a(c[1],s.url,s.line))),y[""+o]?b=!0:y[""+o]=!0,h.push(f));return r&&h.splice(0,r),l={mode:"callers",name:n.name,message:n.message,url:document.location.href,stack:h,useragent:navigator.userAgent},p(l,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),l}function u(n,t){var i=null;t=null==t?0:+t;try{if(i=g(n))return i}catch(r){if(l)throw r;}try{if(i=d(n))return i}catch(r){if(l)throw r;}try{if(i=nt(n))return i}catch(r){if(l)throw r;}try{if(i=w(n,t+1))return i}catch(r){if(l)throw r;}return{mode:"failed"}}function tt(n){n=(null==n?0:+n)+1;try{throw Error();}catch(t){return u(t,n+1)}return null}var l=!1,v={};return u.augmentStackTraceWithInitialElement=p,u.guessFunctionName=e,u.gatherContext=s,u.ofCaller=tt,u}(),function(){var i=function(i){var r=n[i];n[i]=function(){var n=u.call(arguments),i=n[0];return"function"==typeof i&&(n[0]=t.wrap(i)),r.apply?r.apply(this,n):r(n[0],n[1])}};i("setTimeout");i("setInterval")}();t.remoteFetching||(t.remoteFetching=!0);t.collectWindowErrors||(t.collectWindowErrors=!0);(!t.linesOfContext||1>t.linesOfContext)&&(t.linesOfContext=11);n.TraceKit=t})(window),function(n,t){"use strict";var r,u,i;n&&(r=n.event.add,n.event.add=function(i,u,f,e,o){var s;return f.handler?(s=f.handler,f.handler=t.wrap(f.handler)):(s=f,f=t.wrap(f)),f.guid=s.guid?s.guid:s.guid=n.guid++,r.call(this,i,u,f,e,o)},u=n.fn.ready,n.fn.ready=function(n){return u.call(this,t.wrap(n))},i=n.ajax,n.ajax=function(r,u){"object"==typeof r&&(u=r,r=void 0);u=u||{};for(var f,o=["complete","error","success"];f=o.pop();)n.isFunction(u[f])&&(u[f]=t.wrap(u[f]));try{return r?i.call(this,r,u):i.call(this,u)}catch(e){throw t.report(e),e;}})}(window.jQuery,window.TraceKit),function(n,t,i){function ut(n){var t=n,i=n.split("//")[1];if(i){var e=i.indexOf("?"),r=(""+i).substring(0,e),u=r.split("/").slice(0,4).join("/"),f=r.substring(0,48);t=u.length<f.length?u:f;t!==r&&(t+="..")}return t}function p(n,t,u,f){var e="AJAX Error: "+(t.statusText||"unknown")+" "+(u.type||"unknown")+" "+(ut(u.url)||"unknown");r.send(f||n.type,{status:t.status,statusText:t.statusText,type:u.type,url:u.url,ajaxErrorMessage:e,contentType:u.contentType,data:u.data?u.data.slice(0,10240):i})}function u(t,i){n.console&&n.console.log&&it&&(n.console.log(t),i&&n.console.log(i))}function w(){return s&&""!==s?!0:(u("Raygun API key has not been configured, make sure you call Raygun.init(yourApiKey)"),!1)}function b(n,t){var i,r={};for(i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r}function ft(n,t){return null!=t?n.concat(t):n}function k(n,t){for(var i=0;n.length>i;i++)t.call(null,i,n[i])}function d(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function et(){return Math.floor(9007199254740992*Math.random())}function o(){var t=document.documentElement,i=document.getElementsByTagName("body")[0],r=n.innerWidth||t.clientWidth||i.clientWidth,u=n.innerHeight||t.clientHeight||i.clientHeight;return{width:r,height:u}}function g(n){var r=(new Date).toJSON(),t;try{t="raygunjs="+r+"="+et();localStorage[t]===i&&(localStorage[t]=n)}catch(f){u("Raygun4JS: LocalStorage full, cannot save exception")}}function c(){for(var n in localStorage)"raygunjs="===n.substring(0,9)&&(nt(JSON.parse(localStorage[n])),localStorage.removeItem(n))}function l(t,r){var l=[],v={},h,c;t.stack&&t.stack.length&&k(t.stack,function(n,t){l.push({LineNumber:t.line,ColumnNumber:t.column,ClassName:"line "+t.line+", column "+t.column,FileName:t.url,MethodName:t.func||"[anonymous]"})});n.location.search&&n.location.search.length>1&&k(n.location.search.substring(1).split("&"),function(n,t){var i=t.split("=");i&&2===i.length&&(v[decodeURIComponent(i[0])]=i[1])});r===i&&(r={});d(r.customData)&&(r.customData="function"==typeof f?f():f);d(r.tags)&&(r.tags=y);var e=n.screen||{width:o().width,height:o().height,colorDepth:8},p=r.customData&&r.customData.ajaxErrorMessage,s=r.customData;try{JSON.stringify(s)}catch(w){h="Cannot add custom data; may contain circular reference";s={error:h};u("Raygun4JS: "+h)}c={OccurredOn:new Date,Details:{Error:{ClassName:t.name,Message:p||t.message||r.status||"Script error",StackTrace:l},Environment:{UtcOffset:(new Date).getTimezoneOffset()/-60,"User-Language":navigator.userLanguage,"Document-Mode":document.documentMode,"Browser-Width":o().width,"Browser-Height":o().height,"Screen-Width":e.width,"Screen-Height":e.height,"Color-Depth":e.colorDepth,Browser:navigator.appCodeName,"Browser-Name":navigator.appName,"Browser-Version":navigator.appVersion,Platform:navigator.platform},Client:{Name:"raygun-js",Version:"1.8.4"},UserCustomData:s,Tags:r.tags,Request:{Url:document.location.href,QueryString:v,Headers:{"User-Agent":navigator.userAgent,Referer:document.referrer,Host:document.domain}},Version:tt||"Not supplied"}};a&&(c.Details.User=a);nt(c)}function nt(n){if(w()){u("Sending exception data to Raygun:",n);var t=ct+"/entries?apikey="+encodeURIComponent(s);st(t,JSON.stringify(n))}}function ot(t,i){var r;return r=new n.XMLHttpRequest,"withCredentials"in r?r.open(t,i,!0):n.XDomainRequest&&(rt&&(i=i.slice(6)),r=new n.XDomainRequest,r.open(t,i)),r.timeout=1e4,r}function st(t,r){var f=ot("POST",t,r);return"withCredentials"in f?(f.onreadystatechange=function(){4===f.readyState&&(202===f.status?c():v&&403!==f.status&&400!==f.status&&g(r))},f.onload=function(){u("logged error to Raygun")}):n.XDomainRequest&&(f.ontimeout=function(){v&&(u("Raygun: saved error locally"),g(r))},f.onload=function(){u("logged error to Raygun");c()}),f.onerror=function(){u("failed to log error to Raygun")},f?(f.send(r),i):(u("CORS not supported"),i)}var s,a,tt,e,h=TraceKit.noConflict(),ht=n.Raygun,it=!1,rt=!1,v=!1,f={},y=[],ct="https://api.raygun.io",r;t&&(e=t(document));r={noConflict:function(){return n.Raygun=ht,r},init:function(n,t,i){return s=n,h.remoteFetching=!1,f=i,t&&(rt=t.allowInsecureSubmissions||!1,t.debugMode&&(it=t.debugMode)),c(),r},withCustomData:function(n){return f=n,r},withTags:function(n){y=n},attach:function(){return w()?(h.report.subscribe(l),e&&e.ajaxError(p),r):i},detach:function(){return h.report.unsubscribe(l),e&&e.unbind("ajaxError",p),r},send:function(n,t,i){try{l(h.computeStackTrace(n),{customData:"function"==typeof f?b(f(),t):b(f,t),tags:ft(y,i)})}catch(u){if(n!==u)throw u;}return r},setUser:function(n){return a={Identifier:n},r},setVersion:function(n){return tt=n,r},saveIfOffline:function(n){return n!==i&&"boolean"==typeof n&&(v=n),r}};n.Raygun=r}(window,window.jQuery);var Handlebars=function(){var r=function(){"use strict";function n(n){this.string=n}var t;return n.prototype.toString=function(){return""+this.string},t=n}(),t=function(n){"use strict";function f(n){return c[n]||"&amp;"}function e(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}function o(n){return n instanceof h?n.toString():n||0===n?(n=""+n,a.test(n)?n.replace(l,f):n):""}function s(n){return n||0===n?u(n)&&0===n.length?!0:!1:!0}var t={},h=n,c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},l=/[&<>"'`]/g,a=/[&<>"'`]/,i,r,u;return t.extend=e,i=Object.prototype.toString,t.toString=i,r=function(n){return"function"==typeof n},r(/x/)&&(r=function(n){return"function"==typeof n&&"[object Function]"===i.call(n)}),t.isFunction=r,u=Array.isArray||function(n){return n&&"object"==typeof n?"[object Array]"===i.call(n):!1},t.isArray=u,t.escapeExpression=o,t.isEmpty=s,t}(r),n=function(){"use strict";function t(t,i){var u,f,r;for(i&&i.firstLine&&(u=i.firstLine,t+=" - "+u+":"+i.firstColumn),f=Error.prototype.constructor.call(this,t),r=0;r<n.length;r++)this[n[r]]=f[n[r]];u&&(this.lineNumber=u,this.column=i.firstColumn)}var i,n=["description","fileName","lineNumber","message","name","number","stack"];return t.prototype=new Error,i=t}(),i=function(n,t){"use strict";function e(n,t){this.helpers=n||{};this.partials=t||{};p(this)}function p(n){n.registerHelper("helperMissing",function(n){if(2===arguments.length)return void 0;throw new h("Missing helper: '"+n+"'");});n.registerHelper("blockHelperMissing",function(t,i){var r=i.inverse||function(){},u=i.fn;return f(t)&&(t=t.call(this)),t===!0?u(this):t===!1||null==t?r(this):a(t)?t.length>0?n.helpers.each(t,i):r(this):u(t)});n.registerHelper("each",function(n,t){var i,s=t.fn,c=t.inverse,r=0,u="",h,e;if(f(n)&&(n=n.call(this)),t.data&&(i=o(t.data)),n&&"object"==typeof n)if(a(n))for(h=n.length;h>r;r++)i&&(i.index=r,i.first=0===r,i.last=r===n.length-1),u+=s(n[r],{data:i});else for(e in n)n.hasOwnProperty(e)&&(i&&(i.key=e,i.index=r,i.first=0===r),u+=s(n[e],{data:i}),r++);return 0===r&&(u=c(this)),u});n.registerHelper("if",function(n,t){return f(n)&&(n=n.call(this)),!t.hash.includeZero&&!n||r.isEmpty(n)?t.inverse(this):t.fn(this)});n.registerHelper("unless",function(t,i){return n.helpers["if"].call(this,t,{fn:i.inverse,inverse:i.fn,hash:i.hash})});n.registerHelper("with",function(n,t){return f(n)&&(n=n.call(this)),r.isEmpty(n)?void 0:t.fn(n)});n.registerHelper("log",function(t,i){var r=i.data&&null!=i.data.level?parseInt(i.data.level,10):1;n.log(r,t)})}function s(n,t){u.log(n,t)}var i={},r=n,h=t,c,l,u,o;i.VERSION="1.3.0";c=4;i.COMPILER_REVISION=c;l={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};i.REVISION_CHANGES=l;var a=r.isArray,f=r.isFunction,v=r.toString,y="[object Object]";return i.HandlebarsEnvironment=e,e.prototype={constructor:e,logger:u,log:s,registerHelper:function(n,t,i){if(v.call(n)===y){if(i||t)throw new h("Arg not supported with multiple helpers");r.extend(this.helpers,n)}else i&&(t.not=i),this.helpers[n]=t},registerPartial:function(n,t){v.call(n)===y?r.extend(this.partials,n):this.partials[n]=t}},u={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(n,t){if(u.level<=n){var i=u.methodMap[n];"undefined"!=typeof console&&console[i]&&console[i].call(console,t)}}},i.logger=u,i.log=s,o=function(n){var t={};return r.extend(t,n),t},i.createFrame=o,i}(t,n),f=function(n,t,i){"use strict";function s(n){var t=n&&n[0]||1,i=v,r,f;if(t!==i){if(i>t){r=o[i];f=o[t];throw new u("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+f+").");}throw new u("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+n[1]+").");}}function h(n,t){if(!t)throw new u("No environment passed to template");var r=function(n,i,r,f,e,o){var s=t.VM.invokePartial.apply(this,arguments),h;if(null!=s)return s;if(t.compile)return h={helpers:f,partials:e,data:o},e[i]=t.compile(n,{data:void 0!==o},t),e[i](r,h);throw new u("The partial "+i+" could not be compiled when running in runtime-only mode");},i={escapeExpression:e.escapeExpression,invokePartial:r,programs:[],program:function(n,t,i){var r=this.programs[n];return i?r=f(n,t,i):r||(r=this.programs[n]=f(n,t)),r},merge:function(n,t){var i=n||t;return n&&t&&n!==t&&(i={},e.extend(i,t),e.extend(i,n)),i},programWithDepth:t.VM.programWithDepth,noop:t.VM.noop,compilerInfo:null};return function(r,u){var f,e,o,s;return u=u||{},o=u.partial?u:t,u.partial||(f=u.helpers,e=u.partials),s=n.call(i,o,r,f,e,u.data),u.partial||t.VM.checkRevision(i.compilerInfo),s}}function c(n,t,i){var u=Array.prototype.slice.call(arguments,3),r=function(n,r){return r=r||{},t.apply(this,[n,r.data||i].concat(u))};return r.program=n,r.depth=u.length,r}function f(n,t,i){var r=function(n,r){return r=r||{},t(n,r.data||i)};return r.program=n,r.depth=0,r}function l(n,t,i,r,f,e){var o={partial:!0,helpers:r,partials:f,data:e};if(void 0===n)throw new u("The partial "+t+" could not be found");if(n instanceof Function)return n(i,o)}function a(){return""}var r={},e=n,u=t,v=i.COMPILER_REVISION,o=i.REVISION_CHANGES;return r.checkRevision=s,r.template=h,r.programWithDepth=c,r.program=f,r.invokePartial=l,r.noop=a,r}(t,n,i),e=function(n,t,i,r,u){"use strict";var c,f=n,l=t,a=i,e=r,o=u,s=function(){var n=new f.HandlebarsEnvironment;return e.extend(n,f),n.SafeString=l,n.Exception=a,n.Utils=e,n.VM=o,n.template=function(t){return o.template(t,n)},n},h=s();return h.create=s,c=h}(i,r,n,t,f),u=function(n){"use strict";function t(n){n=n||{};this.firstLine=n.first_line;this.firstColumn=n.first_column;this.lastColumn=n.last_column;this.lastLine=n.last_line}var r=n,i={ProgramNode:function(n,r,u,f){var o,e;3===arguments.length?(f=u,u=null):2===arguments.length&&(f=r,r=null);t.call(this,f);this.type="program";this.statements=n;this.strip={};u?(e=u[0],e?(o={first_line:e.firstLine,last_line:e.lastLine,last_column:e.lastColumn,first_column:e.firstColumn},this.inverse=new i.ProgramNode(u,r,o)):this.inverse=new i.ProgramNode(u,r),this.strip.right=r.left):r&&(this.strip.left=r.right)},MustacheNode:function(n,r,u,f,e){if(t.call(this,e),this.type="mustache",this.strip=f,null!=u&&u.charAt){var o=u.charAt(3)||u.charAt(2);this.escaped="{"!==o&&"&"!==o}else this.escaped=!!u;this.sexpr=n instanceof i.SexprNode?n:new i.SexprNode(n,r);this.sexpr.isRoot=!0;this.id=this.sexpr.id;this.params=this.sexpr.params;this.hash=this.sexpr.hash;this.eligibleHelper=this.sexpr.eligibleHelper;this.isHelper=this.sexpr.isHelper},SexprNode:function(n,i,r){t.call(this,r);this.type="sexpr";this.hash=i;var u=this.id=n[0],f=this.params=n.slice(1),e=this.eligibleHelper=u.isSimple;this.isHelper=e&&(f.length||i)},PartialNode:function(n,i,r,u){t.call(this,u);this.type="partial";this.partialName=n;this.context=i;this.strip=r},BlockNode:function(n,i,u,f,e){if(t.call(this,e),n.sexpr.id.original!==f.path.original)throw new r(n.sexpr.id.original+" doesn't match "+f.path.original,this);this.type="block";this.mustache=n;this.program=i;this.inverse=u;this.strip={left:n.strip.left,right:f.strip.right};(i||u).strip.left=n.strip.right;(u||i).strip.right=f.strip.left;u&&!i&&(this.isInverse=!0)},ContentNode:function(n,i){t.call(this,i);this.type="content";this.string=n},HashNode:function(n,i){t.call(this,i);this.type="hash";this.pairs=n},IdNode:function(n,i){var u;t.call(this,i);this.type="ID";for(var o="",f=[],s=0,e=0,h=n.length;h>e;e++)if(u=n[e].part,o+=(n[e].separator||"")+u,".."===u||"."===u||"this"===u){if(f.length>0)throw new r("Invalid path: "+o,this);".."===u?s++:this.isScoped=!0}else f.push(u);this.original=o;this.parts=f;this.string=f.join(".");this.depth=s;this.isSimple=1===n.length&&!this.isScoped&&0===s;this.stringModeValue=this.string},PartialNameNode:function(n,i){t.call(this,i);this.type="PARTIAL_NAME";this.name=n.original},DataNode:function(n,i){t.call(this,i);this.type="DATA";this.id=n},StringNode:function(n,i){t.call(this,i);this.type="STRING";this.original=this.string=this.stringModeValue=n},IntegerNode:function(n,i){t.call(this,i);this.type="INTEGER";this.original=this.integer=n;this.stringModeValue=Number(n)},BooleanNode:function(n,i){t.call(this,i);this.type="BOOLEAN";this.bool=n;this.stringModeValue="true"===n},CommentNode:function(n,i){t.call(this,i);this.type="comment";this.comment=n}};return i}(n),o=function(){"use strict";return function(){function n(n,t){return{left:"~"===n.charAt(2),right:"~"===t.charAt(0)||"~"===t.charAt(1)}}function t(){this.yy={}}var i={trace:function(){},yy:{},symbols_:{error:2,root:3,statements:4,EOF:5,program:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,sexpr:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,CLOSE_UNESCAPED:24,OPEN_PARTIAL:25,partialName:26,partial_option0:27,sexpr_repetition0:28,sexpr_option0:29,dataName:30,param:31,STRING:32,INTEGER:33,BOOLEAN:34,OPEN_SEXPR:35,CLOSE_SEXPR:36,hash:37,hash_repetition_plus0:38,hashSegment:39,ID:40,EQUALS:41,DATA:42,pathSegments:43,SEP:44,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",32:"STRING",33:"INTEGER",34:"BOOLEAN",35:"OPEN_SEXPR",36:"CLOSE_SEXPR",40:"ID",41:"EQUALS",42:"DATA",44:"SEP"},productions_:[0,[3,2],[3,1],[6,2],[6,3],[6,2],[6,1],[6,1],[6,0],[4,1],[4,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,4],[7,2],[17,3],[17,1],[31,1],[31,1],[31,1],[31,1],[31,1],[31,3],[37,1],[39,3],[26,1],[26,1],[26,1],[30,2],[21,1],[43,3],[43,1],[27,0],[27,1],[28,0],[28,2],[29,0],[29,1],[38,1],[38,2]],performAction:function(t,i,r,u,f,e){var o=e.length-1;switch(f){case 1:return new u.ProgramNode(e[o-1],this._$);case 2:return new u.ProgramNode([],this._$);case 3:this.$=new u.ProgramNode([],e[o-1],e[o],this._$);break;case 4:this.$=new u.ProgramNode(e[o-2],e[o-1],e[o],this._$);break;case 5:this.$=new u.ProgramNode(e[o-1],e[o],[],this._$);break;case 6:this.$=new u.ProgramNode(e[o],this._$);break;case 7:this.$=new u.ProgramNode([],this._$);break;case 8:this.$=new u.ProgramNode([],this._$);break;case 9:this.$=[e[o]];break;case 10:e[o-1].push(e[o]);this.$=e[o-1];break;case 11:this.$=new u.BlockNode(e[o-2],e[o-1].inverse,e[o-1],e[o],this._$);break;case 12:this.$=new u.BlockNode(e[o-2],e[o-1],e[o-1].inverse,e[o],this._$);break;case 13:this.$=e[o];break;case 14:this.$=e[o];break;case 15:this.$=new u.ContentNode(e[o],this._$);break;case 16:this.$=new u.CommentNode(e[o],this._$);break;case 17:this.$=new u.MustacheNode(e[o-1],null,e[o-2],n(e[o-2],e[o]),this._$);break;case 18:this.$=new u.MustacheNode(e[o-1],null,e[o-2],n(e[o-2],e[o]),this._$);break;case 19:this.$={path:e[o-1],strip:n(e[o-2],e[o])};break;case 20:this.$=new u.MustacheNode(e[o-1],null,e[o-2],n(e[o-2],e[o]),this._$);break;case 21:this.$=new u.MustacheNode(e[o-1],null,e[o-2],n(e[o-2],e[o]),this._$);break;case 22:this.$=new u.PartialNode(e[o-2],e[o-1],n(e[o-3],e[o]),this._$);break;case 23:this.$=n(e[o-1],e[o]);break;case 24:this.$=new u.SexprNode([e[o-2]].concat(e[o-1]),e[o],this._$);break;case 25:this.$=new u.SexprNode([e[o]],null,this._$);break;case 26:this.$=e[o];break;case 27:this.$=new u.StringNode(e[o],this._$);break;case 28:this.$=new u.IntegerNode(e[o],this._$);break;case 29:this.$=new u.BooleanNode(e[o],this._$);break;case 30:this.$=e[o];break;case 31:e[o-1].isHelper=!0;this.$=e[o-1];break;case 32:this.$=new u.HashNode(e[o],this._$);break;case 33:this.$=[e[o-2],e[o]];break;case 34:this.$=new u.PartialNameNode(e[o],this._$);break;case 35:this.$=new u.PartialNameNode(new u.StringNode(e[o],this._$),this._$);break;case 36:this.$=new u.PartialNameNode(new u.IntegerNode(e[o],this._$));break;case 37:this.$=new u.DataNode(e[o],this._$);break;case 38:this.$=new u.IdNode(e[o],this._$);break;case 39:e[o-2].push({part:e[o],separator:e[o-1]});this.$=e[o-2];break;case 40:this.$=[{part:e[o]}];break;case 43:this.$=[];break;case 44:e[o-1].push(e[o]);break;case 47:this.$=[e[o]];break;case 48:e[o-1].push(e[o])}},table:[{3:1,4:2,5:[1,3],8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[3]},{5:[1,16],8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[2,2]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{4:20,6:18,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{4:20,6:22,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{17:23,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:29,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:30,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:31,21:24,30:25,40:[1,28],42:[1,27],43:26},{21:33,26:32,32:[1,34],33:[1,35],40:[1,28],43:26},{1:[2,1]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{10:36,20:[1,37]},{4:38,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,7],22:[1,13],23:[1,14],25:[1,15]},{7:39,8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,6],22:[1,13],23:[1,14],25:[1,15]},{17:23,18:[1,40],21:24,30:25,40:[1,28],42:[1,27],43:26},{10:41,20:[1,37]},{18:[1,42]},{18:[2,43],24:[2,43],28:43,32:[2,43],33:[2,43],34:[2,43],35:[2,43],36:[2,43],40:[2,43],42:[2,43]},{18:[2,25],24:[2,25],36:[2,25]},{18:[2,38],24:[2,38],32:[2,38],33:[2,38],34:[2,38],35:[2,38],36:[2,38],40:[2,38],42:[2,38],44:[1,44]},{21:45,40:[1,28],43:26},{18:[2,40],24:[2,40],32:[2,40],33:[2,40],34:[2,40],35:[2,40],36:[2,40],40:[2,40],42:[2,40],44:[2,40]},{18:[1,46]},{18:[1,47]},{24:[1,48]},{18:[2,41],21:50,27:49,40:[1,28],43:26},{18:[2,34],40:[2,34]},{18:[2,35],40:[2,35]},{18:[2,36],40:[2,36]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{21:51,40:[1,28],43:26},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,3],22:[1,13],23:[1,14],25:[1,15]},{4:52,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,5],22:[1,13],23:[1,14],25:[1,15]},{14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]},{18:[2,45],21:56,24:[2,45],29:53,30:60,31:54,32:[1,57],33:[1,58],34:[1,59],35:[1,61],36:[2,45],37:55,38:62,39:63,40:[1,64],42:[1,27],43:26},{40:[1,65]},{18:[2,37],24:[2,37],32:[2,37],33:[2,37],34:[2,37],35:[2,37],36:[2,37],40:[2,37],42:[2,37]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,66]},{18:[2,42]},{18:[1,67]},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],25:[1,15]},{18:[2,24],24:[2,24],36:[2,24]},{18:[2,44],24:[2,44],32:[2,44],33:[2,44],34:[2,44],35:[2,44],36:[2,44],40:[2,44],42:[2,44]},{18:[2,46],24:[2,46],36:[2,46]},{18:[2,26],24:[2,26],32:[2,26],33:[2,26],34:[2,26],35:[2,26],36:[2,26],40:[2,26],42:[2,26]},{18:[2,27],24:[2,27],32:[2,27],33:[2,27],34:[2,27],35:[2,27],36:[2,27],40:[2,27],42:[2,27]},{18:[2,28],24:[2,28],32:[2,28],33:[2,28],34:[2,28],35:[2,28],36:[2,28],40:[2,28],42:[2,28]},{18:[2,29],24:[2,29],32:[2,29],33:[2,29],34:[2,29],35:[2,29],36:[2,29],40:[2,29],42:[2,29]},{18:[2,30],24:[2,30],32:[2,30],33:[2,30],34:[2,30],35:[2,30],36:[2,30],40:[2,30],42:[2,30]},{17:68,21:24,30:25,40:[1,28],42:[1,27],43:26},{18:[2,32],24:[2,32],36:[2,32],39:69,40:[1,70]},{18:[2,47],24:[2,47],36:[2,47],40:[2,47]},{18:[2,40],24:[2,40],32:[2,40],33:[2,40],34:[2,40],35:[2,40],36:[2,40],40:[2,40],41:[1,71],42:[2,40],44:[2,40]},{18:[2,39],24:[2,39],32:[2,39],33:[2,39],34:[2,39],35:[2,39],36:[2,39],40:[2,39],42:[2,39],44:[2,39]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{36:[1,72]},{18:[2,48],24:[2,48],36:[2,48],40:[2,48]},{41:[1,71]},{21:56,30:60,31:73,32:[1,57],33:[1,58],34:[1,59],35:[1,61],40:[1,28],42:[1,27],43:26},{18:[2,31],24:[2,31],32:[2,31],33:[2,31],34:[2,31],35:[2,31],36:[2,31],40:[2,31],42:[2,31]},{18:[2,33],24:[2,33],36:[2,33],40:[2,33]}],defaultActions:{3:[2,2],16:[2,1],50:[2,42]},parseError:function(n){throw new Error(n);},parse:function(n){function it(){var n;return n=k.lexer.lex()||1,"number"!=typeof n&&(n=k.symbols_[n]||n),n}var k=this,r=[0],e=[null],t=[],h=this.table,d="",c=0,g=0,y=0,l,nt,i,p,o,u,w,a,f,tt,v,s,b;for(this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={}),l=this.lexer.yylloc,t.push(l),nt=this.lexer.options&&this.lexer.options.ranges,"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError),s={};;){if((o=r[r.length-1],this.defaultActions[o]?u=this.defaultActions[o]:((null===i||"undefined"==typeof i)&&(i=it()),u=h[o]&&h[o][i]),"undefined"==typeof u||!u.length||!u[0])&&(b="",!y)){v=[];for(a in h[o])this.terminals_[a]&&a>2&&v.push("'"+this.terminals_[a]+"'");b=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[i]||i)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==i?"end of input":"'"+(this.terminals_[i]||i)+"'");this.parseError(b,{text:this.lexer.match,token:this.terminals_[i]||i,line:this.lexer.yylineno,loc:l,expected:v})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+o+", token: "+i);switch(u[0]){case 1:r.push(i);e.push(this.lexer.yytext);t.push(this.lexer.yylloc);r.push(u[1]);i=null;p?(i=p,p=null):(g=this.lexer.yyleng,d=this.lexer.yytext,c=this.lexer.yylineno,l=this.lexer.yylloc,y>0&&y--);break;case 2:if(f=this.productions_[u[1]][1],s.$=e[e.length-f],s._$={first_line:t[t.length-(f||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(f||1)].first_column,last_column:t[t.length-1].last_column},nt&&(s._$.range=[t[t.length-(f||1)].range[0],t[t.length-1].range[1]]),w=this.performAction.call(s,d,g,c,this.yy,u[1],e,t),"undefined"!=typeof w)return w;f&&(r=r.slice(0,-2*f),e=e.slice(0,-1*f),t=t.slice(0,-1*f));r.push(this.productions_[u[1]][0]);e.push(s.$);t.push(s._$);tt=h[r[r.length-2]][r[r.length-1]];r.push(tt);break;case 3:return!0}}return!0}},r=function(){var n={EOF:1,parseError:function(n,t){if(!this.yy.parser)throw new Error(n);this.yy.parser.parseError(n,t)},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0],t;return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,t=n.match(/(?:\r\n?|\n).*/g),t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var i=n.length,t=n.split(/(?:\r\n?|\n)/g),r,u;return this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i-1),this.offset-=i,r=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1),u=this.yylloc.range,this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===r.length?this.yylloc.first_column:0)+r[r.length-t.length].length-t[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+t+"^"},next:function(){var f,n,r,e,t,u,i;if(this.done)return this.EOF;for(this._input||(this.done=!0),this._more||(this.yytext="",this.match=""),u=this._currentRules(),i=0;i<u.length&&(r=this._input.match(this.rules[u[i]]),!r||n&&!(r[0].length>n[0].length)||(n=r,e=i,this.options.flex));i++);return n?(t=n[0].match(/(?:\r\n?|\n).*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-t[t.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],f=this.performAction.call(this,this.yy,this,u[e],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f?f:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return"undefined"!=typeof n?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return n.options={},n.performAction=function(n,t,i){function r(n,i){return t.yytext=t.yytext.substr(n,t.yyleng-i)}switch(i){case 0:if("\\\\"===t.yytext.slice(-2)?(r(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(r(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 14;break;case 1:return 14;case 2:return this.popState(),14;case 3:return r(0,4),this.popState(),15;case 4:return 35;case 5:return 36;case 6:return 25;case 7:return 16;case 8:return 20;case 9:return 19;case 10:return 19;case 11:return 23;case 12:return 22;case 13:this.popState();this.begin("com");break;case 14:return r(3,5),this.popState(),15;case 15:return 22;case 16:return 41;case 17:return 40;case 18:return 40;case 19:return 44;case 21:return this.popState(),24;case 22:return this.popState(),18;case 23:return t.yytext=r(1,2).replace(/\\"/g,'"'),32;case 24:return t.yytext=r(1,2).replace(/\\'/g,"'"),32;case 25:return 42;case 26:return 34;case 27:return 34;case 28:return 33;case 29:return 40;case 30:return t.yytext=r(1,2),40;case 31:return"INVALID";case 32:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[3],inclusive:!1},INITIAL:{rules:[0,1,32],inclusive:!0}},n}();return i.lexer=r,t.prototype=i,i.Parser=t,new t}()}(),s=function(n,t){"use strict";function f(n){return n.constructor===u.ProgramNode?n:(r.yy=u,r.parse(n))}var i={},r=n,u=t;return i.parser=r,i.parse=f,i}(o,u),h=function(n){"use strict";function r(){}function u(n,t,r){if(null==n||"string"!=typeof n&&n.constructor!==r.AST.ProgramNode)throw new i("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+n);t=t||{};"data"in t||(t.data=!0);var u=r.parse(n),f=(new r.Compiler).compile(u,t);return(new r.JavaScriptCompiler).compile(f,t)}function f(n,t,r){function f(){var i=r.parse(n),u=(new r.Compiler).compile(i,t),f=(new r.JavaScriptCompiler).compile(u,t,void 0,!0);return r.template(f)}if(null==n||"string"!=typeof n&&n.constructor!==r.AST.ProgramNode)throw new i("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+n);t=t||{};"data"in t||(t.data=!0);var u;return function(n,t){return u||(u=f()),u.call(this,n,t)}}var t={},i=n;return t.Compiler=r,r.prototype={compiler:r,disassemble:function(){for(var i,n,r,t,e=this.opcodes,u=[],f=0,o=e.length;o>f;f++)if(n=e[f],"DECLARE"===n.opcode)u.push("DECLARE "+n.name+"="+n.value);else{for(r=[],i=0;i<n.args.length;i++)t=n.args[i],"string"==typeof t&&(t='"'+t.replace("\n","\\n")+'"'),r.push(t);u.push(n.opcode+" "+r.join(" "))}return u.join("\n")},equals:function(n){var i=this.opcodes.length,t,r,f,u;if(n.opcodes.length!==i)return!1;for(t=0;i>t;t++){if(r=this.opcodes[t],f=n.opcodes[t],r.opcode!==f.opcode||r.args.length!==f.args.length)return!1;for(u=0;u<r.args.length;u++)if(r.args[u]!==f.args[u])return!1}if(i=this.children.length,n.children.length!==i)return!1;for(t=0;i>t;t++)if(!this.children[t].equals(n.children[t]))return!1;return!0},guid:0,compile:function(n,t){var i,r;if(this.opcodes=[],this.children=[],this.depths={list:[]},this.options=t,i=this.options.knownHelpers,this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0},i)for(r in i)this.options.knownHelpers[r]=i[r];return this.accept(n)},accept:function(n){var t,i=n.strip||{};return i.left&&this.opcode("strip"),t=this[n.type](n),i.right&&this.opcode("strip"),t},program:function(n){for(var i=n.statements,t=0,r=i.length;r>t;t++)this.accept(i[t]);return this.isSimple=1===r,this.depths.list=this.depths.list.sort(function(n,t){return n-t}),this},compileProgram:function(n){var r,t=(new this.compiler).compile(n,this.options),u=this.guid++,i,f;for(this.usePartial=this.usePartial||t.usePartial,this.children[u]=t,i=0,f=t.depths.list.length;f>i;i++)r=t.depths.list[i],2>r||this.addDepth(r-1);return u},block:function(n){var f=n.mustache,t=n.program,i=n.inverse,r,u;t&&(t=this.compileProgram(t));i&&(i=this.compileProgram(i));r=f.sexpr;u=this.classifySexpr(r);"helper"===u?this.helperSexpr(r,t,i):"simple"===u?(this.simpleSexpr(r),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("blockValue")):(this.ambiguousSexpr(r,t,i),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue"));this.opcode("append")},hash:function(n){var r,t,u=n.pairs,i,f;for(this.opcode("pushHash"),i=0,f=u.length;f>i;i++)r=u[i],t=r[1],this.options.stringParams?(t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",t.stringModeValue,t.type),"sexpr"===t.type&&this.sexpr(t)):this.accept(t),this.opcode("assignToHash",r[0]);this.opcode("popHash")},partial:function(n){var t=n.partialName;this.usePartial=!0;n.context?this.ID(n.context):this.opcode("push","depth0");this.opcode("invokePartial",t.name);this.opcode("append")},content:function(n){this.opcode("appendContent",n.string)},mustache:function(n){this.sexpr(n.sexpr);n.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousSexpr:function(n,t,i){var r=n.id,u=r.parts[0],f=null!=t||null!=i;this.opcode("getContext",r.depth);this.opcode("pushProgram",t);this.opcode("pushProgram",i);this.opcode("invokeAmbiguous",u,f)},simpleSexpr:function(n){var t=n.id;"DATA"===t.type?this.DATA(t):t.parts.length?this.ID(t):(this.addDepth(t.depth),this.opcode("getContext",t.depth),this.opcode("pushContext"));this.opcode("resolvePossibleLambda")},helperSexpr:function(n,t,r){var f=this.setupFullMustacheParams(n,t,r),u=n.id.parts[0];if(this.options.knownHelpers[u])this.opcode("invokeKnownHelper",f.length,u);else{if(this.options.knownHelpersOnly)throw new i("You specified knownHelpersOnly, but used the unknown helper "+u,n);this.opcode("invokeHelper",f.length,u,n.isRoot)}},sexpr:function(n){var t=this.classifySexpr(n);"simple"===t?this.simpleSexpr(n):"helper"===t?this.helperSexpr(n):this.ambiguousSexpr(n)},ID:function(n){var i,t,r;for(this.addDepth(n.depth),this.opcode("getContext",n.depth),i=n.parts[0],i?this.opcode("lookupOnContext",n.parts[0]):this.opcode("pushContext"),t=1,r=n.parts.length;r>t;t++)this.opcode("lookup",n.parts[t])},DATA:function(n){if(this.options.data=!0,n.id.isScoped||n.id.depth)throw new i("Scoped data references are not supported: "+n.original,n);this.opcode("lookupData");for(var r=n.id.parts,t=0,u=r.length;u>t;t++)this.opcode("lookup",r[t])},STRING:function(n){this.opcode("pushString",n.string)},INTEGER:function(n){this.opcode("pushLiteral",n.integer)},BOOLEAN:function(n){this.opcode("pushLiteral",n.bool)},comment:function(){},opcode:function(n){this.opcodes.push({opcode:n,args:[].slice.call(arguments,1)})},declare:function(n,t){this.opcodes.push({opcode:"DECLARE",name:n,value:t})},addDepth:function(n){0!==n&&(this.depths[n]||(this.depths[n]=!0,this.depths.list.push(n)))},classifySexpr:function(n){var t=n.isHelper,i=n.eligibleHelper,r=this.options,u;return i&&!t&&(u=n.id.parts[0],r.knownHelpers[u]?t=!0:r.knownHelpersOnly&&(i=!1)),t?"helper":i?"ambiguous":"simple"},pushParams:function(n){for(var t,i=n.length;i--;)t=n[i],this.options.stringParams?(t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",t.stringModeValue,t.type),"sexpr"===t.type&&this.sexpr(t)):this[t.type](t)},setupFullMustacheParams:function(n,t,i){var r=n.params;return this.pushParams(r),this.opcode("pushProgram",t),this.opcode("pushProgram",i),n.hash?this.hash(n.hash):this.opcode("emptyHash"),r}},t.precompile=u,t.compile=f,t}(n),c=function(n,t){"use strict";function r(n){this.value=n}function i(){}var s,h=n.COMPILER_REVISION,c=n.REVISION_CHANGES,f=n.log,e=t;i.prototype={nameLookup:function(n,t){var u,r;return 0===n.indexOf("depth")&&(u=!0),r=/^[0-9]+$/.test(t)?n+"["+t+"]":i.isValidJavaScriptVariableName(t)?n+"."+t:n+"['"+t+"']",u?"("+n+" && "+r+")":r},compilerInfo:function(){var n=h,t=c[n];return"this.compilerInfo = ["+n+",'"+t+"'];\n"},appendToBuffer:function(n){return this.environment.isSimple?"return "+n+";":{appendToBuffer:!0,content:n,toString:function(){return"buffer += "+n+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(n,t,i,r){var u,o,s;for(this.environment=n,this.options=t||{},f("debug",this.environment.disassemble()+"\n\n"),this.name=this.environment.name,this.isChild=!!i,this.context=i||{programs:[],environments:[],aliases:{}},this.preamble(),this.stackSlot=0,this.stackVars=[],this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(n,t),o=n.opcodes,this.i=0,s=o.length;this.i<s;this.i++)u=o[this.i],"DECLARE"===u.opcode?this[u.name]=u.value:this[u.opcode].apply(this,u.args),u.opcode!==this.stripNext&&(this.stripNext=!1);if(this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new e("Compile completed with content left on stack");return this.createFunctionContext(r)},preamble:function(){var n=[],i,t;this.isChild?n.push(""):(i=this.namespace,t="helpers = this.merge(helpers, "+i+".helpers);",this.environment.usePartial&&(t=t+" partials = this.merge(partials, "+i+".partials);"),this.options.data&&(t+=" data = data || {};"),n.push(t));this.environment.isSimple?n.push(""):n.push(", buffer = "+this.initializeBuffer());this.lastContext=0;this.source=n},createFunctionContext:function(n){var o=this.stackVars.concat(this.registers.list),i,t,e;if(o.length>0&&(this.source[1]=this.source[1]+", "+o.join(", ")),!this.isChild)for(i in this.context.aliases)this.context.aliases.hasOwnProperty(i)&&(this.source[1]=this.source[1]+", "+i+"="+this.context.aliases[i]);this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+";");this.isChild||(this.source[1]+="\n"+this.context.programs.join("\n")+"\n");this.environment.isSimple||this.pushSource("return buffer;");for(var r=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"],u=0,s=this.environment.depths.list.length;s>u;u++)r.push("depth"+this.environment.depths.list[u]);return(t=this.mergeSource(),this.isChild||(t=this.compilerInfo()+t),n)?(r.push(t),Function.apply(this,r)):(e="function "+(this.name||"")+"("+r.join(",")+") {\n  "+t+"}",f("debug",e+"\n\n"),e)},mergeSource:function(){for(var t,n,i="",r=0,u=this.source.length;u>r;r++)t=this.source[r],t.appendToBuffer?n=n?n+"\n    + "+t.content:t.content:(n&&(i+="buffer += "+n+";\n  ",n=void 0),i+=t+"\n  ");return i},blockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var n=["depth0"];this.setupParams(0,n);this.replaceStack(function(t){return n.splice(1,0,t),"blockHelperMissing.call("+n.join(", ")+")"})},ambiguousBlockValue:function(){var n,t;this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";n=["depth0"];this.setupParams(0,n);t=this.topStack();n.splice(1,0,t);this.pushSource("if (!"+this.lastHelper+") { "+t+" = blockHelperMissing.call("+n.join(", ")+"); }")},appendContent:function(n){this.pendingContent&&(n=this.pendingContent+n);this.stripNext&&(n=n.replace(/^\s+/,""));this.pendingContent=n},strip:function(){this.pendingContent&&(this.pendingContent=this.pendingContent.replace(/\s+$/,""));this.stripNext="strip"},append:function(){this.flushInline();var n=this.popStack();this.pushSource("if("+n+" || "+n+" === 0) { "+this.appendToBuffer(n)+" }");this.environment.isSimple&&this.pushSource("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.context.aliases.escapeExpression="this.escapeExpression";this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(n){this.lastContext!==n&&(this.lastContext=n)},lookupOnContext:function(n){this.push(this.nameLookup("depth"+this.lastContext,n,"context"))},pushContext:function(){this.pushStackLiteral("depth"+this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='"function"';this.replaceStack(function(n){return"typeof "+n+" === functionType ? "+n+".apply(depth0) : "+n})},lookup:function(n){this.replaceStack(function(t){return t+" == null || "+t+" === false ? "+t+" : "+this.nameLookup(t,n,"context")})},lookupData:function(){this.pushStackLiteral("data")},pushStringParam:function(n,t){this.pushStackLiteral("depth"+this.lastContext);this.pushString(t);"sexpr"!==t&&("string"==typeof n?this.pushString(n):this.pushStackLiteral(n))},emptyHash:function(){this.pushStackLiteral("{}");this.options.stringParams&&(this.push("{}"),this.push("{}"))},pushHash:function(){this.hash&&this.hashes.push(this.hash);this.hash={values:[],types:[],contexts:[]}},popHash:function(){var n=this.hash;this.hash=this.hashes.pop();this.options.stringParams&&(this.push("{"+n.contexts.join(",")+"}"),this.push("{"+n.types.join(",")+"}"));this.push("{\n    "+n.values.join(",\n    ")+"\n  }")},pushString:function(n){this.pushStackLiteral(this.quotedString(n))},push:function(n){return this.inlineStack.push(n),n},pushLiteral:function(n){this.pushStackLiteral(n)},pushProgram:function(n){null!=n?this.pushStackLiteral(this.programExpression(n)):this.pushStackLiteral(null)},invokeHelper:function(n,t,i){this.context.aliases.helperMissing="helpers.helperMissing";this.useRegister("helper");var r=this.lastHelper=this.setupHelper(n,t,!0),f=this.nameLookup("depth"+this.lastContext,t,"context"),u="helper = "+r.name+" || "+f;r.paramsInit&&(u+=","+r.paramsInit);this.push("("+u+",helper ? helper.call("+r.callParams+") : helperMissing.call("+r.helperMissingParams+"))");i||this.flushInline()},invokeKnownHelper:function(n,t){var i=this.setupHelper(n,t);this.push(i.name+".call("+i.callParams+")")},invokeAmbiguous:function(n,t){this.context.aliases.functionType='"function"';this.useRegister("helper");this.emptyHash();var i=this.setupHelper(0,n,t),u=this.lastHelper=this.nameLookup("helpers",n,"helper"),f=this.nameLookup("depth"+this.lastContext,n,"context"),r=this.nextStack();i.paramsInit&&this.pushSource(i.paramsInit);this.pushSource("if (helper = "+u+") { "+r+" = helper.call("+i.callParams+"); }");this.pushSource("else { helper = "+f+"; "+r+" = typeof helper === functionType ? helper.call("+i.callParams+") : helper; }")},invokePartial:function(n){var t=[this.nameLookup("partials",n,"partial"),"'"+n+"'",this.popStack(),"helpers","partials"];this.options.data&&t.push("data");this.context.aliases.self="this";this.push("self.invokePartial("+t.join(", ")+")")},assignToHash:function(n){var i,r,u=this.popStack(),t;this.options.stringParams&&(r=this.popStack(),i=this.popStack());t=this.hash;i&&t.contexts.push("'"+n+"': "+i);r&&t.types.push("'"+n+"': "+r);t.values.push("'"+n+"': ("+u+")")},compiler:i,compileChildren:function(n,t){for(var i,r,f,e=n.children,u=0,o=e.length;o>u;u++)r=e[u],f=new this.compiler,i=this.matchExistingProgram(r),null==i?(this.context.programs.push(""),i=this.context.programs.length,r.index=i,r.name="program"+i,this.context.programs[i]=f.compile(r,t,this.context),this.context.environments[i]=r):(r.index=i,r.name="program"+i)},matchExistingProgram:function(n){for(var i,t=0,r=this.context.environments.length;r>t;t++)if(i=this.context.environments[t],i&&i.equals(n))return t},programExpression:function(n){if(this.context.aliases.self="this",null==n)return"self.noop";for(var t,i=this.environment.children[n],r=i.depths.list,u=[i.index,i.name,"data"],f=0,e=r.length;e>f;f++)t=r[f],1===t?u.push("depth0"):u.push("depth"+(t-1));return(0===r.length?"self.program(":"self.programWithDepth(")+u.join(", ")+")"},register:function(n,t){this.useRegister(n);this.pushSource(n+" = "+t+";")},useRegister:function(n){this.registers[n]||(this.registers[n]=!0,this.registers.list.push(n))},pushStackLiteral:function(n){return this.push(new r(n))},pushSource:function(n){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=void 0);n&&this.source.push(n)},pushStack:function(n){this.flushInline();var t=this.incrStack();return n&&this.pushSource(t+" = "+n+";"),this.compileStack.push(t),t},replaceStack:function(n){var t,u,o,f="",s=this.isInline(),i,h,e;return s?(i=this.popStack(!0),i instanceof r?(t=i.value,o=!0):(u=!this.stackSlot,h=u?this.incrStack():this.topStackName(),f="("+this.push(h)+" = "+i+"),",t=this.topStack())):t=this.topStack(),e=n.call(this,t),s?(o||this.popStack(),u&&this.stackSlot--,this.push("("+f+e+")")):(/^stack/.test(t)||(t=this.nextStack()),this.pushSource(t+" = ("+f+e+");")),t},nextStack:function(){return this.pushStack()},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var i=this.inlineStack,n,u,t;if(i.length)for(this.inlineStack=[],n=0,u=i.length;u>n;n++)t=i[n],t instanceof r?this.compileStack.push(t):this.pushStack(t)},isInline:function(){return this.inlineStack.length},popStack:function(n){var i=this.isInline(),t=(i?this.inlineStack:this.compileStack).pop();if(!n&&t instanceof r)return t.value;if(!i){if(!this.stackSlot)throw new e("Invalid stack pop");this.stackSlot--}return t},topStack:function(n){var i=this.isInline()?this.inlineStack:this.compileStack,t=i[i.length-1];return!n&&t instanceof r?t.value:t},quotedString:function(n){return'"'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},setupHelper:function(n,t,i){var r=[],u=this.setupParams(n,r,i),f=this.nameLookup("helpers",t,"helper");return{params:r,paramsInit:u,name:f,callParams:["depth0"].concat(r).join(", "),helperMissingParams:i&&["depth0",this.quotedString(t)].concat(r).join(", ")}},setupOptions:function(n,t){var e,r,u,i=[],o=[],s=[],f;for(i.push("hash:"+this.popStack()),this.options.stringParams&&(i.push("hashTypes:"+this.popStack()),i.push("hashContexts:"+this.popStack())),r=this.popStack(),u=this.popStack(),(u||r)&&(u||(this.context.aliases.self="this",u="self.noop"),r||(this.context.aliases.self="this",r="self.noop"),i.push("inverse:"+r),i.push("fn:"+u)),f=0;n>f;f++)e=this.popStack(),t.push(e),this.options.stringParams&&(s.push(this.popStack()),o.push(this.popStack()));return this.options.stringParams&&(i.push("contexts:["+o.join(",")+"]"),i.push("types:["+s.join(",")+"]")),this.options.data&&i.push("data:data"),i},setupParams:function(n,t,i){var r="{"+this.setupOptions(n,t).join(",")+"}";return i?(this.useRegister("options"),t.push("options"),"options="+r):(t.push(r),"")}};for(var o="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),l=i.RESERVED_WORDS={},u=0,a=o.length;a>u;u++)l[o[u]]=!0;return i.isValidJavaScriptVariableName=function(n){return!i.RESERVED_WORDS[n]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(n)?!0:!1},s=i}(i,n);return function(n,t,i,r,u){"use strict";var o,f=n,s=t,h=i.parser,c=i.parse,l=r.Compiler,a=r.compile,v=r.precompile,y=u,p=f.create,e=function(){var n=p();return n.compile=function(t,i){return a(t,i,n)},n.precompile=function(t,i){return v(t,i,n)},n.AST=s,n.Compiler=l,n.JavaScriptCompiler=y,n.Parser=h,n.parse=c,n};return f=e(),f.create=e,o=f}(e,u,s,h,c)}();!function(n,t){function u(){return new Date(Date.UTC.apply(Date,arguments))}function e(){var n=new Date;return u(n.getFullYear(),n.getMonth(),n.getDate())}function y(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function c(n){return function(){return this[n].apply(this,arguments)}}function p(t,i){function o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function w(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(v,function(n,t){t in i&&(u[t]=i[t])}),u}var l=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;r>t;t++)if(this[t].valueOf()===i)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new l;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),f=function(t,r){this._process_options(r);this.dates=new l;this.viewDate=this.o.defaultViewDate;this.focusDate=null;this.element=n(t);this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .btn"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&0===this.component.length&&(this.component=!1);this.picker=n(i.template);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.viewMode=this.o.startView;this.o.calendarWeeks&&this.picker.find("tfoot .today, tfoot .clear").attr("colspan",function(n,t){return parseInt(t)+1});this._allow_update=!1;this.setStartDate(this._o.startDate);this.setEndDate(this._o.endDate);this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);this.setDatesDisabled(this.o.datesDisabled);this.fillDow();this.fillMonths();this._allow_update=!0;this.update();this.showMode();this.isInline&&this.show()},h,a,o,s,v,r,i;f.prototype={constructor:f,_process_options:function(f){var o,c,a,v,h,l;this._o=n.extend({},this._o,f);o=this.o=n.extend({},this._o);c=o.language;switch(r[c]||(c=c.split("-")[0],r[c]||(c=s.language)),o.language=c,o.startView){case 2:case"decade":o.startView=2;break;case 1:case"year":o.startView=1;break;default:o.startView=0}switch(o.minViewMode){case 1:case"months":o.minViewMode=1;break;case 2:case"years":o.minViewMode=2;break;default:o.minViewMode=0}if(o.startView=Math.max(o.startView,o.minViewMode),o.multidate!==!0&&(o.multidate=Number(o.multidate)||!1,o.multidate!==!1&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7,a=i.parseFormat(o.format),(o.startDate!==-1/0&&(o.startDate=o.startDate?o.startDate instanceof Date?this._local_to_utc(this._zero_time(o.startDate)):i.parseDate(o.startDate,a,o.language):-1/0),1/0!==o.endDate&&(o.endDate=o.endDate?o.endDate instanceof Date?this._local_to_utc(this._zero_time(o.endDate)):i.parseDate(o.endDate,a,o.language):1/0),o.daysOfWeekDisabled=o.daysOfWeekDisabled||[],n.isArray(o.daysOfWeekDisabled)||(o.daysOfWeekDisabled=o.daysOfWeekDisabled.split(/[,\s]*/)),o.daysOfWeekDisabled=n.map(o.daysOfWeekDisabled,function(n){return parseInt(n,10)}),o.datesDisabled=o.datesDisabled||[],n.isArray(o.datesDisabled))||(v=[],v.push(i.parseDate(o.datesDisabled,a,o.language)),o.datesDisabled=v),o.datesDisabled=n.map(o.datesDisabled,function(n){return i.parseDate(n,a,o.language)}),h=String(o.orientation).toLowerCase().split(/\s+/g),l=o.orientation.toLowerCase(),h=n.grep(h,function(n){return/^auto|left|right|top|bottom$/.test(n)}),o.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===h.length)switch(h[0]){case"top":case"bottom":o.orientation.y=h[0];break;case"left":case"right":o.orientation.x=h[0]}else l=n.grep(h,function(n){return/^left|right$/.test(n)}),o.orientation.x=l[0]||"auto",l=n.grep(h,function(n){return/^top|bottom$/.test(n)}),o.orientation.y=l[0]||"auto";if(o.defaultViewDate){var y=o.defaultViewDate.year||(new Date).getFullYear(),p=o.defaultViewDate.month||0,w=o.defaultViewDate.day||1;o.defaultViewDate=u(y,p,w)}else o.defaultViewDate=e();o.showOnFocus=o.showOnFocus!==t?o.showOnFocus:!0},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){-1===n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:n.proxy(this.keydown,this)};this.o.showOnFocus===!0&&(t.focus=n.proxy(this.show,this));this.isInput?this._events=[[this.element,t]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),t],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!this.element.attr("readonly")||this.o.enableOnReadonly!==!1)return(this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this)},hide:function(){return this.isInline?this:this.picker.is(":visible")?(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"),this):this},remove:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},_utc_to_local:function(n){return n&&new Date(n.getTime()+6e4*n.getTimezoneOffset())},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return"undefined"!=typeof n?new Date(n):null},clearDates:function(){var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input"));n&&n.val("").change();this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,n.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:c("setDates"),setUTCDate:c("setUTCDates"),setValue:function(){var n=this.getFormattedDate();return this.isInput?this.element.val(n).change():this.component&&this.element.find("input").val(n).change(),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this.updateNavArrows(),this},setDatesDisabled:function(n){this._process_options({datesDisabled:n});this.update();this.updateNavArrows()},place:function(){var p,s,u,w;if(this.isInline)return this;var f=this.picker.outerWidth(),e=this.picker.outerHeight(),h=n(this.o.container).width(),b=n(this.o.container).height(),c=n(this.o.container).scrollTop(),l=n(this.o.container).offset(),a=[];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==t&&a.push(parseInt(t))});var v=Math.max.apply(Math,a)+10,r=this.component?this.component.parent().offset():this.element.offset(),y=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=r.left-l.left,i=r.top-l.top;return this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=f-o)):r.left<0?(this.picker.addClass("datepicker-orient-left"),t-=r.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t=r.left+o-f):this.picker.addClass("datepicker-orient-left"),u=this.o.orientation.y,("auto"===u&&(p=-c+i-e,s=c+b-(i+y+e),u=Math.max(p,s)===s?"top":"bottom"),this.picker.addClass("datepicker-orient-"+u),"top"===u?i+=y:i-=e+parseInt(this.picker.css("padding-top")),this.o.rtl)?(w=h-(t+o),this.picker.css({top:i,right:w,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var r=this.dates.copy(),t=[],u=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),u=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language)},this)),t=n.grep(t,n.proxy(function(n){return n<this.o.startDate||n>this.o.endDate||!n},this),!0),this.dates.replace(t),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),u?this.setValue():t.length&&String(r)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&r.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var t=this.o.weekStart,n="<tr>",i;for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(n,t){return parseInt(t)+1}),i='<th class="cw">&#160;<\/th>',n+=i);t<this.o.weekStart+7;)n+='<th class="dow">'+r[this.o.language].daysMin[t++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;12>t;)n+='<span class="month">'+r[this.o.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>f)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===u.getFullYear()&&t.getUTCMonth()===u.getMonth()&&t.getUTCDate()===u.getDate()&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled))&&i.push("disabled"),this.o.datesDisabled.length>0&&n.grep(this.o.datesDisabled,function(n){return y(t,n)}).length>0&&i.push("disabled","disabled-date"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),-1!==n.inArray(t.valueOf(),this.range)&&i.push("selected")),i},fill:function(){var y,g=new Date(this.viewDate),f=g.getUTCFullYear(),p=g.getUTCMonth(),w=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,ft=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,b=1/0!==this.o.endDate?this.o.endDate.getUTCFullYear():1/0,et=1/0!==this.o.endDate?this.o.endDate.getUTCMonth():1/0,ot=r[this.o.language].today||r.en.today||"",st=r[this.o.language].clear||r.en.clear||"",e,k,c,h,s,o,l,it,rt,a,ut,v;if(!isNaN(f)&&!isNaN(p)){for(this.picker.find(".datepicker-days thead .datepicker-switch").text(r[this.o.language].months[p]+" "+f),this.picker.find("tfoot .today").text(ot).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(st).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths(),e=u(f,p-1,28),k=i.getDaysInMonth(e.getUTCFullYear(),e.getUTCMonth()),e.setUTCDate(k),e.setUTCDate(k-(e.getUTCDay()-this.o.weekStart+7)%7),c=new Date(e),c.setUTCDate(c.getUTCDate()+42),c=c.valueOf(),s=[];e.valueOf()<c;){if(e.getUTCDay()===this.o.weekStart&&(s.push("<tr>"),this.o.calendarWeeks)){var nt=new Date(+e+(this.o.weekStart-e.getUTCDay()-7)%7*864e5),tt=new Date(Number(nt)+(11-nt.getUTCDay())%7*864e5),d=new Date(Number(d=u(tt.getUTCFullYear(),0,1))+(11-d.getUTCDay())%7*864e5),ht=(tt-d)/6048e5+1;s.push('<td class="cw">'+ht+"<\/td>")}(h=this.getClassNames(e),h.push("day"),this.o.beforeShowDay!==n.noop)&&(o=this.o.beforeShowDay(this._utc_to_local(e)),o===t?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),o.enabled===!1&&h.push("disabled"),o.classes&&(h=h.concat(o.classes.split(/\s+/))),o.tooltip&&(y=o.tooltip));h=n.unique(h);s.push('<td class="'+h.join(" ")+'"'+(y?' title="'+y+'"':"")+">"+e.getUTCDate()+"<\/td>");y=null;e.getUTCDay()===this.o.weekEnd&&s.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(s.join("")),l=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active"),(n.each(this.dates,function(n,t){t.getUTCFullYear()===f&&l.eq(t.getUTCMonth()).addClass("active")}),(w>f||f>b)&&l.addClass("disabled"),f===w&&l.slice(0,ft).addClass("disabled"),f===b&&l.slice(et+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop)&&(it=this,n.each(l,function(t,i){if(!n(i).hasClass("disabled")){var r=new Date(f,t,1),u=it.o.beforeShowMonth(r);u===!1&&n(i).addClass("disabled")}})),s="",f=10*parseInt(f/10,10),rt=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,ut=n.map(this.dates,function(n){return n.getUTCFullYear()}),v=-1;11>v;v++)a=["year"],-1===v?a.push("old"):10===v&&a.push("new"),-1!==n.inArray(f,ut)&&a.push("active"),(w>f||f>b)&&a.push("disabled"),s+='<span class="'+a.join(" ")+'">'+f+"<\/span>",f+=1;rt.html(s)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.picker.find(".prev").css(this.o.startDate!==-1/0&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?{visibility:"hidden"}:{visibility:"visible"});this.picker.find(".next").css(1/0!==this.o.endDate&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?{visibility:"hidden"}:{visibility:"visible"});break;case 1:case 2:this.picker.find(".prev").css(this.o.startDate!==-1/0&&n<=this.o.startDate.getUTCFullYear()?{visibility:"hidden"}:{visibility:"visible"});this.picker.find(".next").css(1/0!==this.o.endDate&&n>=this.o.endDate.getUTCFullYear()?{visibility:"hidden"}:{visibility:"visible"})}}},click:function(t){var e,f,o,r,h,s,c;if(t.preventDefault(),r=n(t.target).closest("span, td, th"),1===r.length)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":h=i.modes[this.viewMode].navStep*("prev"===r[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h);this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h);1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":s=new Date;s=u(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0);this.showMode(-2);c="linked"===this.o.todayBtn?null:"view";this._setDate(s,c);break;case"clear":this.clearDates()}break;case"span":r.hasClass("disabled")||(this.viewDate.setUTCDate(1),r.hasClass("month")?(o=1,f=r.parent().find("span").index(r),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(u(e,f,o))):(o=1,f=0,e=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(u(e,f,o))),this.showMode(-1),this.fill());break;case"td":r.hasClass("day")&&!r.hasClass("disabled")&&(o=parseInt(r.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),r.hasClass("old")?0===f?(f=11,e-=1):f-=1:r.hasClass("new")&&(11===f?(f=0,e+=1):f+=1),this._setDate(u(e,f,o)))}this.picker.is(":visible")&&this._focused_from&&n(this._focused_from).focus();delete this._focused_from},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),-1!==t?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n));t&&"view"!==t||(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&"view"===t||this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();!this.o.autoclose||t&&"date"!==t||this.hide()},moveMonth:function(n,i){var e;if(!n)return t;if(!i)return n;var u,f,r=new Date(n.valueOf()),o=r.getUTCDate(),s=r.getUTCMonth(),h=Math.abs(i);if(i=i>0?1:-1,1===h)f=-1===i?function(){return r.getUTCMonth()===s}:function(){return r.getUTCMonth()!==u},u=s+i,r.setUTCMonth(u),(0>u||u>11)&&(u=(u+12)%12);else{for(e=0;h>e;e++)r=this.moveMonth(r,i);u=r.getUTCMonth();r.setUTCDate(o);f=function(){return u!==r.getUTCMonth()}}for(;f();)r.setUTCDate(--o),r.setUTCMonth(u);return r},moveYear:function(n,t){return this.moveMonth(n,12*t)},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var t,u,i,o,r,f;if(!this.picker.is(":visible"))return void(27===n.keyCode&&this.show());o=!1;r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=37===n.keyCode?-1:1;n.ctrlKey?(u=this.moveYear(this.dates.get(-1)||e(),t),i=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(u=this.moveMonth(this.dates.get(-1)||e(),t),i=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(u=new Date(this.dates.get(-1)||e()),u.setUTCDate(u.getUTCDate()+t),i=new Date(r),i.setUTCDate(r.getUTCDate()+t));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=38===n.keyCode?-1:1;n.ctrlKey?(u=this.moveYear(this.dates.get(-1)||e(),t),i=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(u=this.moveMonth(this.dates.get(-1)||e(),t),i=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(u=new Date(this.dates.get(-1)||e()),u.setUTCDate(u.getUTCDate()+7*t),i=new Date(r),i.setUTCDate(r.getUTCDate()+7*t));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(r),o=!0);this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),"function"==typeof n.stopPropagation?n.stopPropagation():n.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}o&&(this._trigger(this.dates.length?"changeDate":"clearDate"),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+n)));this.picker.children("div").hide().filter(".datepicker-"+i.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};h=function(t,i){this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;o.call(n(this.inputs),i).bind("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")});this.updateDates()};h.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var e=n(t.target).data("datepicker"),i=e.getUTCDate(),f=n.inArray(t.target,this.inputs),r=f-1,u=f+1,o=this.inputs.length;if(-1!==f){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t.setUTCDate(i)}),i<this.dates[r])for(;r>=0&&i<this.dates[r];)this.pickers[r--].setUTCDate(i);else if(i>this.dates[u])for(;o>u&&i>this.dates[u];)this.pickers[u++].setUTCDate(i);this.updateDates();delete this.updating}}},remove:function(){n.map(this.pickers,function(n){n.remove()});delete this.element.data().datepicker}};a=n.fn.datepicker;o=function(i){var u=Array.apply(null,arguments),r;return u.shift(),this.each(function(){var o=n(this),e=o.data("datepicker"),l="object"==typeof i&&i,v;if(!e){var a=p(this,"date"),y=n.extend({},s,a,l),b=w(y.language),c=n.extend({},s,b,a,l);o.hasClass("input-daterange")||c.inputs?(v={inputs:c.inputs||o.find("input").toArray()},o.data("datepicker",e=new h(this,n.extend(c,v)))):o.data("datepicker",e=new f(this,c))}if("string"==typeof i&&"function"==typeof e[i]&&(r=e[i].apply(e,u),r!==t))return!1}),r!==t?r:this};n.fn.datepicker=o;s=n.fn.datepicker.defaults={autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,container:"body"};v=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=f;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}};i={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,"\x00").split("\x00"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(e,o,s){function nt(){var n=this.slice(0,c[h].length),t=c[h].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var v,y,h,tt,c,a,it,d,w;if(!e)return t;if(e instanceof Date)return e;if("string"==typeof o&&(o=i.parseFormat(o)),tt=/([\-+]\d+)([dmwy])/,c=e.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,h=0;h<c.length;h++)switch(v=tt.exec(c[h]),y=parseInt(v[1]),v[2]){case"d":e.setUTCDate(e.getUTCDate()+y);break;case"m":e=f.prototype.moveMonth.call(f.prototype,e,y);break;case"w":e.setUTCDate(e.getUTCDate()+7*y);break;case"y":e=f.prototype.moveYear.call(f.prototype,e,y)}return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0)}c=e&&e.match(this.nonpunctuation)||[];e=new Date;var p,b,k={},g=["yyyy","yy","M","MM","m","mm","d","dd"],l={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;0>t;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(l.M=l.MM=l.mm=l.m,l.dd=l.d,e=u(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),a=o.parts.slice(),c.length!==a.length&&(a=n(a).filter(function(t,i){return-1!==n.inArray(i,g)}).toArray()),c.length===a.length){for(h=0,it=a.length;it>h;h++){if(p=parseInt(c[h],10),v=a[h],isNaN(p))switch(v){case"MM":b=n(r[s].months).filter(nt);p=n.inArray(b[0],r[s].months)+1;break;case"M":b=n(r[s].monthsShort).filter(nt);p=n.inArray(b[0],r[s].monthsShort)+1}k[v]=p}for(h=0;h<g.length;h++)w=g[h],w in k&&!isNaN(k[w])&&(d=new Date(e),l[w](d,k[w]),isNaN(d)||(e=d))}return e},formatDate:function(t,u,f){var e;if(!t)return"";"string"==typeof u&&(u=i.parseFormat(u));e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;h>=o;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">&#171;<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">&#187;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=a,this};n.fn.datepicker.version="1.4.0";n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})}(window.jQuery);var wysihtml5={version:"0.3.0",commands:{},dom:{},quirks:{},toolbar:{},lang:{},selection:{},views:{},INVISIBLE_SPACE:"﻿",EMPTY_FUNCTION:function(){},ELEMENT_NODE:1,TEXT_NODE:3,BACKSPACE_KEY:8,ENTER_KEY:13,ESCAPE_KEY:27,SPACE_KEY:32,DELETE_KEY:46},Base;window.rangy=function(){function t(n,t){var i=typeof n[t];return i==k||!!(i==b&&n[t])||"unknown"==i}function e(n,t){return!!(typeof n[t]==b&&n[t])}function p(n,t){return typeof n[t]!=f}function s(n){return function(t,i){for(var r=i.length;r--;)if(!n(t,i[r]))return!1;return!0}}function w(n){return n&&c(n,tt)&&l(n,nt)}function i(t){window.alert("Rangy not supported in your browser. Reason: "+t);n.initialized=!0;n.supported=!1}function h(){if(!n.initialized){var r,f=!1,u=!1;for(t(document,"createRange")&&(r=document.createRange(),c(r,g)&&l(r,d)&&(f=!0),r.detach()),(r=e(document,"body")?document.body:document.getElementsByTagName("body")[0])&&t(r,"createTextRange")&&(r=r.createTextRange(),w(r)&&(u=!0)),f||u||i("Neither Range nor TextRange are implemented"),n.initialized=!0,n.features={implementsDomRange:f,implementsTextRange:u},f=v.concat(a),u=0,r=f.length;u<r;++u)try{f[u](n)}catch(o){e(window,"console")&&t(window.console,"log")&&window.console.log("Init listener threw an exception. Continuing.",o)}}}function u(n){this.name=n;this.supported=this.initialized=!1}var b="object",k="function",f="undefined",d="startContainer startOffset endContainer endOffset collapsed commonAncestorContainer START_TO_START START_TO_END END_TO_START END_TO_END".split(" "),g="setStart setStartBefore setStartAfter setEnd setEndBefore setEndAfter collapse selectNode selectNodeContents compareBoundaryPoints deleteContents extractContents cloneContents insertNode surroundContents cloneRange toString detach".split(" "),nt="boundingHeight boundingLeft boundingTop boundingWidth htmlText text".split(" "),tt="collapse compareEndPoints duplicate getBookmark moveToBookmark moveToElementText parentElement pasteHTML select setEndPoint getBoundingClientRect".split(" "),c=s(t),r=s(e),l=s(p),n={version:"1.2.2",initialized:!1,supported:!0,util:{isHostMethod:t,isHostObject:e,isHostProperty:p,areHostMethods:c,areHostObjects:r,areHostProperties:l,isTextRange:w},features:{},modules:{},config:{alertOnWarn:!1,preferTextRange:!1}},a,v,o,y;if(n.fail=i,n.warn=function(t){t="Rangy warning: "+t;n.config.alertOnWarn?window.alert(t):typeof window.console!=f&&typeof window.console.log!=f&&window.console.log(t)},{}.hasOwnProperty?n.util.extend=function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])}:i("hasOwnProperty not supported"),a=[],v=[],n.init=h,n.addInitListener=function(t){n.initialized?t(n):a.push(t)},o=[],n.addCreateMissingNativeApiListener=function(n){o.push(n)},n.createMissingNativeApi=function(n){n=n||window;h();for(var t=0,i=o.length;t<i;++t)o[t](n)},u.prototype.fail=function(n){this.initialized=!0;this.supported=!1;throw Error("Module '"+this.name+"' failed to load: "+n);},u.prototype.warn=function(t){n.warn("Module "+this.name+": "+t)},u.prototype.createError=function(n){return Error("Error in Rangy "+this.name+" module: "+n)},n.createModule=function(t,i){var r=new u(t);n.modules[t]=r;v.push(function(n){i(n,r);r.initialized=!0;r.supported=!0})},n.requireModules=function(t){for(var f=0,e=t.length,i,r;f<e;++f){if(r=t[f],i=n.modules[r],!i||!(i instanceof u))throw Error("Module '"+r+"' not found");if(!i.supported)throw Error("Module '"+r+"' not supported");}},y=!1,r=function(){y||(y=!0,n.initialized||h())},typeof window==f)i("No window found");else if(typeof document==f)i("No document found");else return t(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",r,!1),t(window,"addEventListener")?window.addEventListener("load",r,!1):t(window,"attachEvent")?window.attachEvent("onload",r):i("Window does not have required addEventListener or attachEvent method"),n}();rangy.createModule("DomUtil",function(n,t){function o(n){for(var t=0;n=n.previousSibling;)t++;return t}function l(n,t){for(var r=[],i=n;i;i=i.parentNode)r.push(i);for(i=t;i;i=i.parentNode)if(c(r,i))return i;return null}function u(n,t,i){for(i=i?n:n.parentNode;i;){if(n=i.parentNode,n===t)return i;i=n}return null}function s(n){return n=n.nodeType,3==n||4==n||8==n}function a(n,t){var i=t.nextSibling,r=t.parentNode;return i?r.insertBefore(n,i):r.appendChild(n),n}function e(n){if(9==n.nodeType)return n;if(typeof n.ownerDocument!=i)return n.ownerDocument;if(typeof n.document!=i)return n.document;if(n.parentNode)return e(n.parentNode);throw Error("getDocument: no document found for node");}function v(n){return n?s(n)?'"'+n.data+'"':1==n.nodeType?"<"+n.nodeName+(n.id?' id="'+n.id+'"':"")+">["+n.childNodes.length+"]":n.nodeName:"[No node]"}function y(n){this._next=this.root=n}function p(n,t){this.node=n;this.offset=t}function h(n){this.code=this[n];this.codeName=n;this.message="DOMException: "+this.codeName}var i="undefined",r=n.util,f,c;r.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||t.fail("document missing a Node creation method");r.isHostMethod(document,"getElementsByTagName")||t.fail("document missing getElementsByTagName method");f=document.createElement("div");r.areHostMethods(f,["insertBefore","appendChild","cloneNode"])||t.fail("Incomplete Element implementation");r.isHostProperty(f,"innerHTML")||t.fail("Element is missing innerHTML property");f=document.createTextNode("test");r.areHostMethods(f,["splitText","deleteData","insertData","appendData","cloneNode"])||t.fail("Incomplete Text Node implementation");c=function(n,t){for(var i=n.length;i--;)if(n[i]===t)return!0;return!1};y.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var n=this._current=this._next,t;if(this._current){if(t=n.firstChild,!t)for(t=null;n!==this.root&&!(t=n.nextSibling);)n=n.parentNode;this._next=t}return this._current},detach:function(){this._current=this._next=this.root=null}};p.prototype={equals:function(n){return this.node===n.node&this.offset==n.offset},inspect:function(){return"[DomPosition("+v(this.node)+":"+this.offset+")]"}};h.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11};h.prototype.toString=function(){return this.message};n.dom={arrayContains:c,isHtmlNamespace:function(n){var t;return typeof n.namespaceURI==i||null===(t=n.namespaceURI)||"http://www.w3.org/1999/xhtml"==t},parentElement:function(n){return n=n.parentNode,1==n.nodeType?n:null},getNodeIndex:o,getNodeLength:function(n){var t;return s(n)?n.length:(t=n.childNodes)?t.length:0},getCommonAncestor:l,isAncestorOf:function(n,t,i){for(t=i?t:t.parentNode;t;){if(t===n)return!0;t=t.parentNode}return!1},getClosestAncestorIn:u,isCharacterDataNode:s,insertAfter:a,splitDataNode:function(n,t){var i=n.cloneNode(!1);return i.deleteData(0,t),n.deleteData(t,n.length-t),a(i,n),i},getDocument:e,getWindow:function(n){if(n=e(n),typeof n.defaultView!=i)return n.defaultView;if(typeof n.parentWindow!=i)return n.parentWindow;throw Error("Cannot get a window object for node");},getIframeWindow:function(n){if(typeof n.contentWindow!=i)return n.contentWindow;if(typeof n.contentDocument!=i)return n.contentDocument.defaultView;throw Error("getIframeWindow: No Window object found for iframe element");},getIframeDocument:function(n){if(typeof n.contentDocument!=i)return n.contentDocument;if(typeof n.contentWindow!=i)return n.contentWindow.document;throw Error("getIframeWindow: No Document object found for iframe element");},getBody:function(n){return r.isHostObject(n,"body")?n.body:n.getElementsByTagName("body")[0]},getRootContainer:function(n){for(var t;t=n.parentNode;)n=t;return n},comparePoints:function(n,t,i,r){var f;if(n==i)return t===r?0:t<r?-1:1;if(f=u(i,n,!0))return t<=o(f)?-1:1;if(f=u(n,i,!0))return o(f)<r?-1:1;if(t=l(n,i),n=n===t?t:u(n,t,!0),i=i===t?t:u(i,t,!0),n===i)throw Error("comparePoints got to case 4 and childA and childB are the same!");for(t=t.firstChild;t;){if(t===n)return-1;if(t===i)return 1;t=t.nextSibling}throw Error("Should not be here!");},inspectNode:v,fragmentFromNodeChildren:function(n){for(var t=e(n).createDocumentFragment(),i;i=n.firstChild;)t.appendChild(i);return t},createIterator:function(n){return new y(n)},DomPosition:p};n.DOMException=h});rangy.createModule("DomRange",function(n){function c(n,i){return 3!=n.nodeType&&(t.isAncestorOf(n,i.startContainer,!0)||t.isAncestorOf(n,i.endContainer,!0))}function r(n){return t.getDocument(n.startContainer)}function et(n,t,i){if(t=n._listeners[t])for(var r=0,u=t.length;r<u;++r)t[r].call(n,{target:n,args:i})}function ot(n){return new ni(n.parentNode,t.getNodeIndex(n))}function b(n){return new ni(n.parentNode,t.getNodeIndex(n)+1)}function st(n,i,r){var u=11==n.nodeType?n.firstChild:n;return t.isCharacterDataNode(i)?r==i.length?t.insertAfter(n,i):i.parentNode.insertBefore(n,0==r?i:t.splitDataNode(i,r)):r>=i.childNodes.length?i.appendChild(n):i.insertBefore(n,i.childNodes[r]),u}function ht(n){for(var t,i,u=r(n.range).createDocumentFragment();i=n.next();){if(t=n.isPartiallySelectedSubtree(),i=i.cloneNode(!t),t&&(t=n.getSubtreeIterator(),i.appendChild(ht(t)),t.detach(!0)),10==i.nodeType)throw new e("HIERARCHY_REQUEST_ERR");u.appendChild(i)}return u}function y(n,i,r){for(var u,f,r=r||{stop:!1};u=n.next();)if(n.isPartiallySelectedSubtree()){if(!1===i(u)){r.stop=!0;break}else if(u=n.getSubtreeIterator(),y(u,i,r),u.detach(!0),r.stop)break}else for(u=t.createIterator(u);f=u.next();)if(!1===i(f)){r.stop=!0;return}}function ct(n){for(var t;n.next();)n.isPartiallySelectedSubtree()?(t=n.getSubtreeIterator(),ct(t),t.detach(!0)):n.remove()}function lt(n){for(var t,u=r(n.range).createDocumentFragment(),i;t=n.next();){if(n.isPartiallySelectedSubtree()?(t=t.cloneNode(!1),i=n.getSubtreeIterator(),t.appendChild(lt(i)),i.detach(!0)):n.remove(),10==t.nodeType)throw new e("HIERARCHY_REQUEST_ERR");u.appendChild(t)}return u}function at(n,t,i){var u=!(!t||!t.length),f,e=!!i,r;return u&&(f=RegExp("^("+t.join("|")+")$")),r=[],y(new o(n,!1),function(n){(!u||f.test(n.nodeType))&&(!e||i(n))&&r.push(n)}),r}function vt(n){return"["+("undefined"==typeof n.getName?"Range":n.getName())+"("+t.inspectNode(n.startContainer)+":"+n.startOffset+", "+t.inspectNode(n.endContainer)+":"+n.endOffset+")]"}function o(n,i){if(this.range=n,this.clonePartiallySelectedTextNodes=i,!n.collapsed){this.sc=n.startContainer;this.so=n.startOffset;this.ec=n.endContainer;this.eo=n.endOffset;var r=n.commonAncestorContainer;this.sc===this.ec&&t.isCharacterDataNode(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc===r&&!t.isCharacterDataNode(this.sc)?this.sc.childNodes[this.so]:t.getClosestAncestorIn(this.sc,r,!0),this._last=this.ec===r&&!t.isCharacterDataNode(this.ec)?this.ec.childNodes[this.eo-1]:t.getClosestAncestorIn(this.ec,r,!0))}}function s(n){this.code=this[n];this.codeName=n;this.message="RangeException: "+this.codeName}function yt(n,t,i){this.nodes=at(n,t,i);this._next=this.nodes[0];this._position=0}function k(n){return function(i,r){for(var f,u=r?i:i.parentNode;u;){if(f=u.nodeType,t.arrayContains(n,f))return u;u=u.parentNode}return null}}function l(n,t){if(li(n,t))throw new s("INVALID_NODE_TYPE_ERR");}function f(n){if(!n.startContainer)throw new e("INVALID_STATE_ERR");}function a(n,i){if(!t.arrayContains(i,n.nodeType))throw new s("INVALID_NODE_TYPE_ERR");}function d(n,i){if(0>i||i>(t.isCharacterDataNode(n)?n.length:n.childNodes.length))throw new e("INDEX_SIZE_ERR");}function g(n,t){if(w(n,!0)!==w(t,!0))throw new e("WRONG_DOCUMENT_ERR");}function h(n){if(ci(n,!0))throw new e("NO_MODIFICATION_ALLOWED_ERR");}function p(n,t){if(!n)throw new e(t);}function i(n){if(f(n),!t.arrayContains(tt,n.startContainer.nodeType)&&!w(n.startContainer,!0)||!t.arrayContains(tt,n.endContainer.nodeType)&&!w(n.endContainer,!0)||!(n.startOffset<=(t.isCharacterDataNode(n.startContainer)?n.startContainer.length:n.startContainer.childNodes.length))||!(n.endOffset<=(t.isCharacterDataNode(n.endContainer)?n.endContainer.length:n.endContainer.childNodes.length)))throw Error("Range error: Range is no longer valid after DOM mutation ("+n.inspect()+")");}function nt(){}function pt(n){n.START_TO_START=ut;n.START_TO_END=ri;n.END_TO_END=ai;n.END_TO_START=ui;n.NODE_BEFORE=fi;n.NODE_AFTER=ei;n.NODE_BEFORE_AND_AFTER=oi;n.NODE_INSIDE=ft}function wt(n){pt(n);pt(n.prototype)}function bt(n,r){return function(){i(this);var u=this.startContainer,f=this.startOffset,e=this.commonAncestorContainer,s=new o(this,!0);return u!==e&&(u=t.getClosestAncestorIn(u,e,!0),f=b(u),u=f.node,f=f.offset),y(s,h),s.reset(),e=n(s),s.detach(),r(this,u,f,u,f),e}}function kt(r,u,e){function s(n,t){return function(i){f(this);a(i,ti);a(v(i),tt);i=(n?ot:b)(i);(t?y:p)(this,i.node,i.offset)}}function y(n,i,r){var f=n.endContainer,e=n.endOffset;(i!==n.startContainer||r!==n.startOffset)&&((v(i)!=v(f)||1==t.comparePoints(i,r,f,e))&&(f=i,e=r),u(n,i,r,f,e))}function p(n,i,r){var f=n.startContainer,e=n.startOffset;(i!==n.endContainer||r!==n.endOffset)&&((v(i)!=v(f)||-1==t.comparePoints(i,r,f,e))&&(f=i,e=r),u(n,f,e,i,r))}r.prototype=new nt;n.util.extend(r.prototype,{setStart:function(n,t){f(this);l(n,!0);d(n,t);y(this,n,t)},setEnd:function(n,t){f(this);l(n,!0);d(n,t);p(this,n,t)},setStartBefore:s(!0,!0),setStartAfter:s(!1,!0),setEndBefore:s(!0,!1),setEndAfter:s(!1,!1),collapse:function(n){i(this);n?u(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):u(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(n){f(this);l(n,!0);u(this,n,0,n,t.getNodeLength(n))},selectNode:function(n){f(this);l(n,!1);a(n,ti);var t=ot(n),n=b(n);u(this,t.node,t.offset,n.node,n.offset)},extractContents:bt(lt,u),deleteContents:bt(ct,u),canSurroundContents:function(){i(this);h(this.startContainer);h(this.endContainer);var n=new o(this,!0),t=n._first&&c(n._first,this)||n._last&&c(n._last,this);return n.detach(),!t},detach:function(){e(this)},splitBoundaries:function(){i(this);var n=this.startContainer,e=this.startOffset,r=this.endContainer,f=this.endOffset,o=n===r;t.isCharacterDataNode(r)&&0<f&&f<r.length&&t.splitDataNode(r,f);t.isCharacterDataNode(n)&&0<e&&e<n.length&&(n=t.splitDataNode(n,e),o?(f-=e,r=n):r==n.parentNode&&f>=t.getNodeIndex(n)&&f++,e=0);u(this,n,e,r,f)},normalizeBoundaries:function(){i(this);var f=this.startContainer,e=this.startOffset,n=this.endContainer,r=this.endOffset,o=function(t){var i=t.nextSibling;i&&i.nodeType==t.nodeType&&(n=t,r=t.length,t.appendData(i.data),i.parentNode.removeChild(i))},h=function(i){var u=i.previousSibling,o;u&&u.nodeType==i.nodeType&&(f=i,o=i.length,e=u.length,i.insertData(0,u.data),u.parentNode.removeChild(u),f==n?(r+=e,n=f):n==i.parentNode&&(u=t.getNodeIndex(i),r==u?(n=i,r=o):r>u&&r--))},s=!0;t.isCharacterDataNode(n)?n.length==r&&o(n):(0<r&&(s=n.childNodes[r-1])&&t.isCharacterDataNode(s)&&o(s),s=!this.collapsed);s?t.isCharacterDataNode(f)?0==e&&h(f):e<f.childNodes.length&&(o=f.childNodes[e])&&t.isCharacterDataNode(o)&&h(o):(f=n,e=r);u(this,f,e,n,r)},collapseToPoint:function(n,t){f(this);l(n,!0);d(n,t);(n!==this.startContainer||t!==this.startOffset||n!==this.endContainer||t!==this.endOffset)&&u(this,n,t,n,t)}});wt(r)}function dt(n){n.collapsed=n.startContainer===n.endContainer&&n.startOffset===n.endOffset;n.commonAncestorContainer=n.collapsed?n.startContainer:t.getCommonAncestor(n.startContainer,n.endContainer)}function gt(n,t,i,r,u){var f=n.startContainer!==t||n.startOffset!==i,e=n.endContainer!==r||n.endOffset!==u;n.startContainer=t;n.startOffset=i;n.endContainer=r;n.endOffset=u;dt(n);et(n,"boundarychange",{startMoved:f,endMoved:e})}function u(n){this.startContainer=n;this.startOffset=0;this.endContainer=n;this.endOffset=0;this._listeners={boundarychange:[],detach:[]};dt(this)}n.requireModules(["DomUtil"]);var t=n.dom,ni=t.DomPosition,e=n.DOMException;o.prototype={_current:null,_next:null,_first:null,_last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null;this._next=this._first},hasNext:function(){return!!this._next},next:function(){var n=this._current=this._next;return n&&(this._next=n!==this._last?n.nextSibling:null,t.isCharacterDataNode(n)&&this.clonePartiallySelectedTextNodes&&(n===this.ec&&(n=n.cloneNode(!0)).deleteData(this.eo,n.length-this.eo),this._current===this.sc&&(n=n.cloneNode(!0)).deleteData(0,this.so))),n},remove:function(){var n=this._current,i,r;t.isCharacterDataNode(n)&&(n===this.sc||n===this.ec)?(i=n===this.sc?this.so:0,r=n===this.ec?this.eo:n.length,i!=r&&n.deleteData(i,r-i)):n.parentNode&&n.parentNode.removeChild(n)},isPartiallySelectedSubtree:function(){return c(this._current,this.range)},getSubtreeIterator:function(){var n;if(this.isSingleCharacterDataNode)n=this.range.cloneRange(),n.collapse();else{n=new u(r(this.range));var i=this._current,f=i,e=0,s=i,h=t.getNodeLength(i);t.isAncestorOf(i,this.sc,!0)&&(f=this.sc,e=this.so);t.isAncestorOf(i,this.ec,!0)&&(s=this.ec,h=this.eo);gt(n,f,e,s,h)}return new o(n,this.clonePartiallySelectedTextNodes)},detach:function(n){n&&this.range.detach();this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}};s.prototype={BAD_BOUNDARYPOINTS_ERR:1,INVALID_NODE_TYPE_ERR:2};s.prototype.toString=function(){return this.message};yt.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){return this._current=this._next,this._next=this.nodes[++this._position],this._current},detach:function(){this._current=this._next=this.nodes=null}};var ti=[1,3,4,5,7,8,10],tt=[2,9,11],si=[1,3,4,5,7,8,10,11],hi=[1,3,4,5,7,8],v=t.getRootContainer,w=k([9,11]),ci=k([5,6,10,12]),li=k([6,10,12]),ii=document.createElement("style"),it=!1;try{ii.innerHTML="<b>x<\/b>";it=3==ii.firstChild.nodeType}catch(vi){}n.features.htmlParsingConforms=it;var rt="startContainer startOffset endContainer endOffset collapsed commonAncestorContainer".split(" "),ut=0,ri=1,ai=2,ui=3,fi=0,ei=1,oi=2,ft=3;nt.prototype={attachListener:function(n,t){this._listeners[n].push(t)},compareBoundaryPoints:function(n,r){i(this);g(this.startContainer,r.startContainer);var u=n==ui||n==ut?"start":"end",f=n==ri||n==ut?"start":"end";return t.comparePoints(this[u+"Container"],this[u+"Offset"],r[f+"Container"],r[f+"Offset"])},insertNode:function(n){if(i(this),a(n,si),h(this.startContainer),t.isAncestorOf(n,this.startContainer,!0))throw new e("HIERARCHY_REQUEST_ERR");this.setStartBefore(st(n,this.startContainer,this.startOffset))},cloneContents:function(){i(this);var n,u;return this.collapsed?r(this).createDocumentFragment():this.startContainer===this.endContainer&&t.isCharacterDataNode(this.startContainer)?(n=this.startContainer.cloneNode(!0),n.data=n.data.slice(this.startOffset,this.endOffset),u=r(this).createDocumentFragment(),u.appendChild(n),u):(u=new o(this,!0),n=ht(u),u.detach(),n)},canSurroundContents:function(){i(this);h(this.startContainer);h(this.endContainer);var n=new o(this,!0),t=n._first&&c(n._first,this)||n._last&&c(n._last,this);return n.detach(),!t},surroundContents:function(n){if(a(n,hi),!this.canSurroundContents())throw new s("BAD_BOUNDARYPOINTS_ERR");var t=this.extractContents();if(n.hasChildNodes())for(;n.lastChild;)n.removeChild(n.lastChild);st(n,this.startContainer,this.startOffset);n.appendChild(t);this.selectNode(n)},cloneRange:function(){i(this);for(var t=new u(r(this)),f=rt.length,n;f--;)n=rt[f],t[n]=this[n];return t},toString:function(){var r,n;return(i(this),n=this.startContainer,n===this.endContainer&&t.isCharacterDataNode(n))?3==n.nodeType||4==n.nodeType?n.data.slice(this.startOffset,this.endOffset):"":(r=[],n=new o(this,!0),y(n,function(n){(3==n.nodeType||4==n.nodeType)&&r.push(n.data)}),n.detach(),r.join(""))},compareNode:function(n){i(this);var r=n.parentNode,u=t.getNodeIndex(n);if(!r)throw new e("NOT_FOUND_ERR");return n=this.comparePoint(r,u),r=this.comparePoint(r,u+1),0>n?0<r?oi:fi:0<r?ei:ft},comparePoint:function(n,r){return i(this),p(n,"HIERARCHY_REQUEST_ERR"),g(n,this.startContainer),0>t.comparePoints(n,r,this.startContainer,this.startOffset)?-1:0<t.comparePoints(n,r,this.endContainer,this.endOffset)?1:0},createContextualFragment:it?function(n){var r=this.startContainer,u=t.getDocument(r),i;if(!r)throw new e("INVALID_STATE_ERR");return i=null,1==r.nodeType?i=r:t.isCharacterDataNode(r)&&(i=t.parentElement(r)),i=null===i||"HTML"==i.nodeName&&t.isHtmlNamespace(t.getDocument(i).documentElement)&&t.isHtmlNamespace(i)?u.createElement("body"):i.cloneNode(!1),i.innerHTML=n,t.fragmentFromNodeChildren(i)}:function(n){f(this);var i=r(this).createElement("body");return i.innerHTML=n,t.fragmentFromNodeChildren(i)},toHtml:function(){i(this);var n=r(this).createElement("div");return n.appendChild(this.cloneContents()),n.innerHTML},intersectsNode:function(n,u){var e,o,f;return(i(this),p(n,"NOT_FOUND_ERR"),t.getDocument(n)!==r(this))?!1:(f=n.parentNode,e=t.getNodeIndex(n),p(f,"NOT_FOUND_ERR"),o=t.comparePoints(f,e,this.endContainer,this.endOffset),f=t.comparePoints(f,e+1,this.startContainer,this.startOffset),u?0>=o&&0<=f:0>o&&0<f)},isPointInRange:function(n,r){return i(this),p(n,"HIERARCHY_REQUEST_ERR"),g(n,this.startContainer),0<=t.comparePoints(n,r,this.startContainer,this.startOffset)&&0>=t.comparePoints(n,r,this.endContainer,this.endOffset)},intersectsRange:function(n,u){if(i(this),r(n)!=r(this))throw new e("WRONG_DOCUMENT_ERR");var f=t.comparePoints(this.startContainer,this.startOffset,n.endContainer,n.endOffset),o=t.comparePoints(this.endContainer,this.endOffset,n.startContainer,n.startOffset);return u?0>=f&&0<=o:0>f&&0<o},intersection:function(n){if(this.intersectsRange(n)){var r=t.comparePoints(this.startContainer,this.startOffset,n.startContainer,n.startOffset),u=t.comparePoints(this.endContainer,this.endOffset,n.endContainer,n.endOffset),i=this.cloneRange();return-1==r&&i.setStart(n.startContainer,n.startOffset),1==u&&i.setEnd(n.endContainer,n.endOffset),i}return null},union:function(n){if(this.intersectsRange(n,!0)){var i=this.cloneRange();return-1==t.comparePoints(n.startContainer,n.startOffset,this.startContainer,this.startOffset)&&i.setStart(n.startContainer,n.startOffset),1==t.comparePoints(n.endContainer,n.endOffset,this.endContainer,this.endOffset)&&i.setEnd(n.endContainer,n.endOffset),i}throw new s("Ranges do not intersect");},containsNode:function(n,t){return t?this.intersectsNode(n,!1):this.compareNode(n)==ft},containsNodeContents:function(n){return 0<=this.comparePoint(n,0)&&0>=this.comparePoint(n,t.getNodeLength(n))},containsRange:function(n){return this.intersection(n).equals(n)},containsNodeText:function(n){var t=this.cloneRange(),i;return t.selectNode(n),i=t.getNodes([3]),0<i.length?(t.setStart(i[0],0),n=i.pop(),t.setEnd(n,n.length),n=this.containsRange(t),t.detach(),n):this.containsNodeContents(n)},createNodeIterator:function(n,t){return i(this),new yt(this,n,t)},getNodes:function(n,t){return i(this),at(this,n,t)},getDocument:function(){return r(this)},collapseBefore:function(n){f(this);this.setEndBefore(n);this.collapse(!1)},collapseAfter:function(n){f(this);this.setStartAfter(n);this.collapse(!0)},getName:function(){return"DomRange"},equals:function(n){return u.rangesEqual(this,n)},inspect:function(){return vt(this)}};kt(u,gt,function(n){f(n);n.startContainer=n.startOffset=n.endContainer=n.endOffset=null;n.collapsed=n.commonAncestorContainer=null;et(n,"detach",null);n._listeners=null});n.rangePrototype=nt.prototype;u.rangeProperties=rt;u.RangeIterator=o;u.copyComparisonConstants=wt;u.createPrototypeRange=kt;u.inspect=vt;u.getRangeDocument=r;u.rangesEqual=function(n,t){return n.startContainer===t.startContainer&&n.startOffset===t.startOffset&&n.endContainer===t.endContainer&&n.endOffset===t.endOffset};n.DomRange=u;n.RangeException=s});rangy.createModule("WrappedRange",function(n){function f(n,i,u,f){var s=n.duplicate(),e,i,h,o;if(s.collapse(u),e=s.parentElement(),t.isAncestorOf(i,e,!0)||(e=i),!e.canHaveHTML)return new r(e.parentNode,t.getNodeIndex(e));i=t.getDocument(e).createElement("span");o=u?"StartToStart":"StartToEnd";do e.insertBefore(i,i.previousSibling),s.moveToElementText(i);while(0<(h=s.compareEndPoints(o,n))&&i.previousSibling);if(o=i.nextSibling,-1==h&&o&&t.isCharacterDataNode(o)){if(s.setEndPoint(u?"EndToStart":"EndToEnd",n),/[\r\n]/.test(o.data))for(e=s.duplicate(),u=e.text.replace(/\r\n/g,"\r").length,u=e.moveStart("character",u);-1==e.compareEndPoints("StartToEnd",e);)u++,e.moveStart("character",1);else u=s.text.length;e=new r(o,u)}else o=(f||!u)&&i.previousSibling,e=(u=(f||u)&&i.nextSibling)&&t.isCharacterDataNode(u)?new r(u,0):o&&t.isCharacterDataNode(o)?new r(o,o.length):new r(e,t.getNodeIndex(i));return i.parentNode.removeChild(i),e}function e(n,i){var r,f,o=n.offset,u=t.getDocument(n.node),e=u.body.createTextRange(),s=t.isCharacterDataNode(n.node);return s?(r=n.node,f=r.parentNode):(r=n.node.childNodes,r=o<r.length?r[o]:null,f=n.node),u=u.createElement("span"),u.innerHTML="&#feff;",r?f.insertBefore(u,r):f.appendChild(u),e.moveToElementText(u),e.collapse(!i),f.removeChild(u),s&&e[i?"moveStart":"moveEnd"]("character",o),e}var o;n.requireModules(["DomUtil","DomRange"]);var i,t=n.dom,r=t.DomPosition,u=n.DomRange;!n.features.implementsDomRange||n.features.implementsTextRange&&n.config.preferTextRange?n.features.implementsTextRange&&(i=function(n){this.textRange=n;this.refresh()},i.prototype=new u(document),i.prototype.refresh=function(){var i,n,r=this.textRange,u;i=r.parentElement();u=r.duplicate();u.collapse(!0);n=u.parentElement();u=r.duplicate();u.collapse(!1);r=u.parentElement();n=n==r?n:t.getCommonAncestor(n,r);n=n==i?n:t.getCommonAncestor(i,n);0==this.textRange.compareEndPoints("StartToEnd",this.textRange)?n=i=f(this.textRange,n,!0,!0):(i=f(this.textRange,n,!0,!1),n=f(this.textRange,n,!1,!1));this.setStart(i.node,i.offset);this.setEnd(n.node,n.offset)},u.copyComparisonConstants(i),o=function(){return this}(),"undefined"==typeof o.Range&&(o.Range=i),n.createNativeRange=function(n){return n=n||document,n.body.createTextRange()}):(function(){function o(n){for(var i=h.length,t;i--;)t=h[i],n[t]=n.nativeRange[t]}var r,h=u.rangeProperties,s,e,f;i=function(n){if(!n)throw Error("Range must be specified");this.nativeRange=n;o(this)};u.createPrototypeRange(i,function(n,t,i,r,u){var f=n.endContainer!==r||n.endOffset!=u;(n.startContainer!==t||n.startOffset!=i||f)&&(n.setEnd(r,u),n.setStart(t,i))},function(n){n.nativeRange.detach();n.detached=!0;for(var t=h.length,i;t--;)i=h[t],n[i]=null});r=i.prototype;r.selectNode=function(n){this.nativeRange.selectNode(n);o(this)};r.deleteContents=function(){this.nativeRange.deleteContents();o(this)};r.extractContents=function(){var n=this.nativeRange.extractContents();return o(this),n};r.cloneContents=function(){return this.nativeRange.cloneContents()};r.surroundContents=function(n){this.nativeRange.surroundContents(n);o(this)};r.collapse=function(n){this.nativeRange.collapse(n);o(this)};r.cloneRange=function(){return new i(this.nativeRange.cloneRange())};r.refresh=function(){o(this)};r.toString=function(){return this.nativeRange.toString()};e=document.createTextNode("test");t.getBody(document).appendChild(e);f=document.createRange();f.setStart(e,0);f.setEnd(e,0);try{f.setStart(e,1);r.setStart=function(n,t){this.nativeRange.setStart(n,t);o(this)};r.setEnd=function(n,t){this.nativeRange.setEnd(n,t);o(this)};s=function(n){return function(t){this.nativeRange[n](t);o(this)}}}catch(c){r.setStart=function(n,t){try{this.nativeRange.setStart(n,t)}catch(i){this.nativeRange.setEnd(n,t);this.nativeRange.setStart(n,t)}o(this)};r.setEnd=function(n,t){try{this.nativeRange.setEnd(n,t)}catch(i){this.nativeRange.setStart(n,t);this.nativeRange.setEnd(n,t)}o(this)};s=function(n,t){return function(i){try{this.nativeRange[n](i)}catch(r){this.nativeRange[t](i);this.nativeRange[n](i)}o(this)}}}r.setStartBefore=s("setStartBefore","setEndBefore");r.setStartAfter=s("setStartAfter","setEndAfter");r.setEndBefore=s("setEndBefore","setStartBefore");r.setEndAfter=s("setEndAfter","setStartAfter");f.selectNodeContents(e);r.selectNodeContents=f.startContainer==e&&f.endContainer==e&&0==f.startOffset&&f.endOffset==e.length?function(n){this.nativeRange.selectNodeContents(n);o(this)}:function(n){this.setStart(n,0);this.setEnd(n,u.getEndOffset(n))};f.selectNodeContents(e);f.setEnd(e,3);s=document.createRange();s.selectNodeContents(e);s.setEnd(e,4);s.setStart(e,2);r.compareBoundaryPoints=-1==f.compareBoundaryPoints(f.START_TO_END,s)&1==f.compareBoundaryPoints(f.END_TO_START,s)?function(n,t){return t=t.nativeRange||t,n==t.START_TO_END?n=t.END_TO_START:n==t.END_TO_START&&(n=t.START_TO_END),this.nativeRange.compareBoundaryPoints(n,t)}:function(n,t){return this.nativeRange.compareBoundaryPoints(n,t.nativeRange||t)};n.util.isHostMethod(f,"createContextualFragment")&&(r.createContextualFragment=function(n){return this.nativeRange.createContextualFragment(n)});t.getBody(document).removeChild(e);f.detach();s.detach()}(),n.createNativeRange=function(n){return n=n||document,n.createRange()});n.features.implementsTextRange&&(i.rangeToTextRange=function(n){if(n.collapsed)return e(new r(n.startContainer,n.startOffset),!0);var i=e(new r(n.startContainer,n.startOffset),!0),u=e(new r(n.endContainer,n.endOffset),!1),n=t.getDocument(n.startContainer).body.createTextRange();return n.setEndPoint("StartToStart",i),n.setEndPoint("EndToEnd",u),n});i.prototype.getName=function(){return"WrappedRange"};n.WrappedRange=i;n.createRange=function(t){return t=t||document,new i(n.createNativeRange(t))};n.createRangyRange=function(n){return n=n||document,new u(n)};n.createIframeRange=function(i){return n.createRange(t.getIframeDocument(i))};n.createIframeRangyRange=function(i){return n.createRangyRange(t.getIframeDocument(i))};n.addCreateMissingNativeApiListener(function(t){t=t.document;typeof t.createRange=="undefined"&&(t.createRange=function(){return n.createRange(this)});t=t=null})});rangy.createModule("WrappedSelection",function(n,t){function kt(n){return(n||window).getSelection()}function ct(n){return(n||window).document.selection}function c(n,t,i){var r=i?"end":"start",i=i?"start":"end";n.anchorNode=t[r+"Container"];n.anchorOffset=t[r+"Offset"];n.focusNode=t[i+"Container"];n.focusOffset=t[i+"Offset"]}function o(n){n.anchorNode=n.focusNode=null;n.anchorOffset=n.focusOffset=0;n.rangeCount=0;n.isCollapsed=!0;n._ranges.length=0}function ut(t){var i;return t instanceof s?(i=t._selectionNativeRange,i||(i=n.createNativeRange(r.getDocument(t.startContainer)),i.setEnd(t.endContainer,t.endOffset),i.setStart(t.startContainer,t.startOffset),t._selectionNativeRange=i,t.attachListener("detach",function(){this._selectionNativeRange=null}))):t instanceof k?i=t.nativeRange:n.features.implementsDomRange&&t instanceof r.getWindow(t.startContainer).Range&&(i=t),i}function ft(n){var i=n.getNodes(),t,u;n:if(i.length&&1==i[0].nodeType){for(t=1,u=i.length;t<u;++t)if(!r.isAncestorOf(i[0],i[t])){t=!1;break n}t=!0}else t=!1;if(!t)throw Error("getSingleElementFromRange: range "+n.inspect()+" did not consist of a single element");return i[0]}function lt(n,t){var i=new k(t);n._ranges=[i];c(n,i,!1);n.rangeCount=1;n.isCollapsed=i.collapsed}function l(t){var i,f,e,u;if(t._ranges.length=0,"None"==t.docSelection.type)o(t);else if(i=t.docSelection.createRange(),i&&"undefined"!=typeof i.text)lt(t,i);else{for(t.rangeCount=i.length,e=r.getDocument(i.item(0)),u=0;u<t.rangeCount;++u)f=n.createRange(e),f.selectNode(i.item(u)),t._ranges.push(f);t.isCollapsed=1==t.rangeCount&&t._ranges[0].collapsed;c(t,t._ranges[t.rangeCount-1],!1)}}function at(n,t){for(var u=n.docSelection.createRange(),e=ft(t),i=r.getDocument(u.item(0)),i=r.getBody(i).createControlRange(),f=0,o=u.length;f<o;++f)i.add(u.item(f));try{i.add(e)}catch(s){throw Error("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)");}i.select();l(n)}function b(n,t,i){this.nativeSelection=n;this.docSelection=t;this._ranges=[];this.win=i;this.refresh()}function vt(n,t){for(var i=r.getDocument(t[0].startContainer),i=r.getBody(i).createControlRange(),u=0,f;u<rangeCount;++u){f=ft(t[u]);try{i.add(f)}catch(e){throw Error("setRanges(): Element within the one of the specified Ranges could not be added to control selection (does it have layout?)");}}i.select();l(n)}function yt(n,t){if(n.anchorNode&&r.getDocument(n.anchorNode)!==r.getDocument(t))throw new d("WRONG_DOCUMENT_ERR");}function pt(n){var i=[],u=new wt(n.anchorNode,n.anchorOffset),f=new wt(n.focusNode,n.focusOffset),e="function"==typeof n.getName?n.getName():"Selection",t,r;if("undefined"!=typeof n.rangeCount)for(t=0,r=n.rangeCount;t<r;++t)i[t]=s.inspect(n.getRangeAt(t));return"["+e+"(Ranges: "+i.join(", ")+")(anchor: "+u.inspect()+", focus: "+f.inspect()+"]"}var nt,et,tt,ot,e,i,it,st,rt,ht,w;n.requireModules(["DomUtil","DomRange","WrappedRange"]);n.config.checkSelectionRanges=!0;var r=n.dom,f=n.util,s=n.DomRange,k=n.WrappedRange,d=n.DOMException,wt=r.DomPosition,a,g,u=n.util.isHostMethod(window,"getSelection"),v=n.util.isHostObject(document,"selection"),y=v&&(!u||n.config.preferTextRange);y?(a=ct,n.isSelectionValid=function(n){var n=(n||window).document,t=n.selection;return"None"!=t.type||r.getDocument(t.createRange().parentElement())==n}):u?(a=kt,n.isSelectionValid=function(){return!0}):t.fail("Neither document.selection or window.getSelection() detected.");n.getNativeSelection=a;var u=a(),bt=n.createNativeRange(document),p=r.getBody(document),h=f.areHostObjects(u,f.areHostProperties(u,["anchorOffset","focusOffset"]));if(n.features.selectionHasAnchorAndFocus=h,nt=f.isHostMethod(u,"extend"),n.features.selectionHasExtend=nt,et="number"==typeof u.rangeCount,n.features.selectionHasRangeCount=et,tt=!1,ot=!0,f.areHostMethods(u,["addRange","getRangeAt","removeAllRanges"])&&"number"==typeof u.rangeCount&&n.features.implementsDomRange&&function(){var i=document.createElement("iframe"),n,u;p.appendChild(i);n=r.getIframeDocument(i);n.open();n.write("<html><head><\/head><body>12<\/body><\/html>");n.close();var t=r.getIframeWindow(i).getSelection(),f=n.documentElement.lastChild.firstChild,n=n.createRange();n.setStart(f,1);n.collapse(!0);t.addRange(n);ot=t.rangeCount==1;t.removeAllRanges();u=n.cloneRange();n.setStart(f,0);u.setEnd(f,2);t.addRange(n);t.addRange(u);tt=t.rangeCount==2;n.detach();u.detach();p.removeChild(i)}(),n.features.selectionSupportsMultipleRanges=tt,n.features.collapsedNonEditableSelectionsSupported=ot,e=!1,p&&f.isHostMethod(p,"createControlRange")&&(i=p.createControlRange(),f.areHostProperties(i,["item","add"])&&(e=!0)),n.features.implementsControlRange=e,g=h?function(n){return n.anchorNode===n.focusNode&&n.anchorOffset===n.focusOffset}:function(n){return n.rangeCount?n.getRangeAt(n.rangeCount-1).collapsed:!1},f.isHostMethod(u,"getRangeAt")?it=function(n,t){try{return n.getRangeAt(t)}catch(i){return null}}:h&&(it=function(t){var i=r.getDocument(t.anchorNode),i=n.createRange(i);return i.setStart(t.anchorNode,t.anchorOffset),i.setEnd(t.focusNode,t.focusOffset),i.collapsed!==this.isCollapsed&&(i.setStart(t.focusNode,t.focusOffset),i.setEnd(t.anchorNode,t.anchorOffset)),i}),n.getSelection=function(n){var n=n||window,t=n._rangySelection,i=a(n),r=v?ct(n):null;return t?(t.nativeSelection=i,t.docSelection=r,t.refresh(n)):(t=new b(i,r,n),n._rangySelection=t),t},n.getIframeSelection=function(t){return n.getSelection(r.getIframeWindow(t))},i=b.prototype,!y&&h&&f.areHostMethods(u,["removeAllRanges","addRange"]))i.removeAllRanges=function(){this.nativeSelection.removeAllRanges();o(this)},st=function(t,i){var r=s.getRangeDocument(i),r=n.createRange(r);r.collapseToPoint(i.endContainer,i.endOffset);t.nativeSelection.addRange(ut(r));t.nativeSelection.extend(i.startContainer,i.startOffset);t.refresh()},i.addRange=et?function(t,i){if(e&&v&&this.docSelection.type=="Control")at(this,t);else if(i&&nt)st(this,t);else{var r;tt?r=this.rangeCount:(this.removeAllRanges(),r=0);this.nativeSelection.addRange(ut(t));this.rangeCount=this.nativeSelection.rangeCount;this.rangeCount==r+1?(n.config.checkSelectionRanges&&(r=it(this.nativeSelection,this.rangeCount-1))&&!s.rangesEqual(r,t)&&(t=new k(r)),this._ranges[this.rangeCount-1]=t,c(this,t,w(this.nativeSelection)),this.isCollapsed=g(this)):this.refresh()}}:function(n,t){t&&nt?st(this,n):(this.nativeSelection.addRange(ut(n)),this.refresh())},i.setRanges=function(n){if(e&&n.length>1)vt(this,n);else{this.removeAllRanges();for(var t=0,i=n.length;t<i;++t)this.addRange(n[t])}};else if(f.isHostMethod(u,"empty")&&f.isHostMethod(bt,"select")&&e&&y)i.removeAllRanges=function(){var n,t;try{this.docSelection.empty();this.docSelection.type!="None"&&(this.anchorNode?n=r.getDocument(this.anchorNode):this.docSelection.type=="Control"&&(t=this.docSelection.createRange(),t.length&&(n=r.getDocument(t.item(0)).body.createTextRange())),n&&(n.body.createTextRange().select(),this.docSelection.empty()))}catch(i){}o(this)},i.addRange=function(n){this.docSelection.type=="Control"?at(this,n):(k.rangeToTextRange(n).select(),this._ranges[0]=n,this.rangeCount=1,this.isCollapsed=this._ranges[0].collapsed,c(this,n,!1))},i.setRanges=function(n){this.removeAllRanges();var t=n.length;t>1?vt(this,n):t&&this.addRange(n[0])};else return t.fail("No means of selecting a Range or TextRange was found"),!1;if(i.getRangeAt=function(n){if(n<0||n>=this.rangeCount)throw new d("INDEX_SIZE_ERR");return this._ranges[n]},y)rt=function(t){var i;n.isSelectionValid(t.win)?i=t.docSelection.createRange():(i=r.getBody(t.win.document).createTextRange(),i.collapse(!0));t.docSelection.type=="Control"?l(t):i&&typeof i.text!="undefined"?lt(t,i):o(t)};else if(f.isHostMethod(u,"getRangeAt")&&"number"==typeof u.rangeCount)rt=function(t){if(e&&v&&t.docSelection.type=="Control")l(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var i=0,r=t.rangeCount;i<r;++i)t._ranges[i]=new n.WrappedRange(t.nativeSelection.getRangeAt(i));c(t,t._ranges[t.rangeCount-1],w(t.nativeSelection));t.isCollapsed=g(t)}else o(t)};else if(h&&"boolean"==typeof u.isCollapsed&&"boolean"==typeof bt.collapsed&&n.features.implementsDomRange)rt=function(n){var t;t=n.nativeSelection;t.anchorNode?(t=it(t,0),n._ranges=[t],n.rangeCount=1,t=n.nativeSelection,n.anchorNode=t.anchorNode,n.anchorOffset=t.anchorOffset,n.focusNode=t.focusNode,n.focusOffset=t.focusOffset,n.isCollapsed=g(n)):o(n)};else return t.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;i.refresh=function(n){var t=n?this._ranges.slice(0):null;if(rt(this),n){if(n=t.length,n!=this._ranges.length)return!1;for(;n--;)if(!s.rangesEqual(t[n],this._ranges[n]))return!1;return!0}};ht=function(n,t){var r=n.getAllRanges(),u=!1,i,f;for(n.removeAllRanges(),i=0,f=r.length;i<f;++i)u||t!==r[i]?n.addRange(r[i]):u=!0;n.rangeCount||o(n)};i.removeRange=e?function(n){if(this.docSelection.type=="Control"){for(var t=this.docSelection.createRange(),n=ft(n),i=r.getDocument(t.item(0)),i=r.getBody(i).createControlRange(),f,e=!1,u=0,o=t.length;u<o;++u)f=t.item(u),f!==n||e?i.add(t.item(u)):e=!0;i.select();l(this)}else ht(this,n)}:function(n){ht(this,n)};!y&&h&&n.features.implementsDomRange?(w=function(n){var t=!1;return n.anchorNode&&(t=r.comparePoints(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)==1),t},i.isBackwards=function(){return w(this)}):w=i.isBackwards=function(){return!1};i.toString=function(){for(var t=[],n=0,i=this.rangeCount;n<i;++n)t[n]=""+this._ranges[n];return t.join("")};i.collapse=function(t,i){yt(this,t);var u=n.createRange(r.getDocument(t));u.collapseToPoint(t,i);this.removeAllRanges();this.addRange(u);this.isCollapsed=!0};i.collapseToStart=function(){if(this.rangeCount){var n=this._ranges[0];this.collapse(n.startContainer,n.startOffset)}else throw new d("INVALID_STATE_ERR");};i.collapseToEnd=function(){if(this.rangeCount){var n=this._ranges[this.rangeCount-1];this.collapse(n.endContainer,n.endOffset)}else throw new d("INVALID_STATE_ERR");};i.selectAllChildren=function(t){yt(this,t);var i=n.createRange(r.getDocument(t));i.selectNodeContents(t);this.removeAllRanges();this.addRange(i)};i.deleteFromDocument=function(){var n,t,i;if(e&&v&&this.docSelection.type=="Control"){for(n=this.docSelection.createRange();n.length;)t=n.item(0),n.remove(t),t.parentNode.removeChild(t);this.refresh()}else if(this.rangeCount){for(n=this.getAllRanges(),this.removeAllRanges(),t=0,i=n.length;t<i;++t)n[t].deleteContents();this.addRange(n[i-1])}};i.getAllRanges=function(){return this._ranges.slice(0)};i.setSingleRange=function(n){this.setRanges([n])};i.containsNode=function(n,t){for(var i=0,r=this._ranges.length;i<r;++i)if(this._ranges[i].containsNode(n,t))return!0;return!1};i.toHtml=function(){var n="";if(this.rangeCount){for(var n=s.getRangeDocument(this._ranges[0]).createElement("div"),t=0,i=this._ranges.length;t<i;++t)n.appendChild(this._ranges[t].cloneContents());n=n.innerHTML}return n};i.getName=function(){return"WrappedSelection"};i.inspect=function(){return pt(this)};i.detach=function(){this.win=this.anchorNode=this.focusNode=this.win._rangySelection=null};b.inspect=pt;n.Selection=b;n.selectionPrototype=i;n.addCreateMissingNativeApiListener(function(t){typeof t.getSelection=="undefined"&&(t.getSelection=function(){return n.getSelection(this)});t=null})});Base=function(){};Base.extend=function(n,t){var u=Base.prototype.extend,r,f,i;return Base._prototyping=!0,r=new this,u.call(r,n),r.base=function(){},delete Base._prototyping,f=r.constructor,i=r.constructor=function(){if(!Base._prototyping)if(this._constructing||this.constructor==i)this._constructing=!0,f.apply(this,arguments),delete this._constructing;else if(null!=arguments[0])return(arguments[0].extend||u).call(arguments[0],r)},i.ancestor=this,i.extend=this.extend,i.forEach=this.forEach,i.implement=this.implement,i.prototype=r,i.toString=this.toString,i.valueOf=function(n){return"object"==n?i:f.valueOf()},u.call(i,t),"function"==typeof i.init&&i.init(),i};Base.prototype={extend:function(n,t){var r,f,t,u,i;if(1<arguments.length)r=this[n],r&&"function"==typeof t&&(!r.valueOf||r.valueOf()!=t.valueOf())&&/\bbase\b/.test(t)&&(f=t.valueOf(),t=function(){var t=this.base||Base.prototype.base,n;return this.base=r,n=f.apply(this,arguments),this.base=t,n},t.valueOf=function(n){return"object"==n?t:f},t.toString=Base.toString),this[n]=t;else if(n){u=Base.prototype.extend;Base._prototyping||"function"==typeof this||(u=this.extend||u);for(var e={toSource:null},o=["constructor","toString","valueOf"],s=Base._prototyping?0:1;i=o[s++];)n[i]!=e[i]&&u.call(this,i,n[i]);for(i in n)e[i]||u.call(this,i,n[i])}return this}};Base=Base.extend({constructor:function(n){this.extend(n)}},{ancestor:Object,version:"1.1",forEach:function(n,t,i){for(var r in n)void 0===this.prototype[r]&&t.call(i,n[r],r,n)},implement:function(){for(var n=0;n<arguments.length;n++)"function"==typeof arguments[n]?arguments[n](this.prototype):this.prototype.extend(arguments[n]);return this},toString:function(){return""+this.valueOf()}});wysihtml5.browser=function(){var t=navigator.userAgent,r=document.createElement("div"),n=-1!==t.indexOf("MSIE")&&-1===t.indexOf("Opera"),i=-1!==t.indexOf("Gecko")&&-1===t.indexOf("KHTML"),u=-1!==t.indexOf("AppleWebKit/"),e=-1!==t.indexOf("Chrome/"),f=-1!==t.indexOf("Opera/");return{USER_AGENT:t,supported:function(){var n=this.USER_AGENT.toLowerCase(),t="contentEditable"in r,i=document.execCommand&&document.queryCommandSupported&&document.queryCommandState,u=document.querySelector&&document.querySelectorAll,n=this.isIos()&&5>(/ipad|iphone|ipod/.test(n)&&n.match(/ os (\d+).+? like mac os x/)||[,0])[1]||-1!==n.indexOf("opera mobi")||-1!==n.indexOf("hpwos/");return t&&i&&u&&!n},isTouchDevice:function(){return this.supportsEvent("touchmove")},isIos:function(){var n=this.USER_AGENT.toLowerCase();return-1!==n.indexOf("webkit")&&-1!==n.indexOf("mobile")},supportsSandboxedIframes:function(){return n},throwsMixedContentWarningWhenIframeSrcIsEmpty:function(){return!("querySelector"in document)},displaysCaretInEmptyContentEditableCorrectly:function(){return!i},hasCurrentStyleProperty:function(){return"currentStyle"in r},insertsLineBreaksOnReturn:function(){return i},supportsPlaceholderAttributeOn:function(n){return"placeholder"in n},supportsEvent:function(n){var t;return(t="on"+n in r)||(r.setAttribute("on"+n,"return;"),t="function"==typeof r["on"+n]),t},supportsEventsInIframeCorrectly:function(){return!f},firesOnDropOnlyWhenOnDragOverIsCancelled:function(){return u||i},supportsDataTransfer:function(){try{return u&&(window.Clipboard||window.DataTransfer).prototype.getData}catch(n){return!1}},supportsHTML5Tags:function(n){return n=n.createElement("div"),n.innerHTML="<article>foo<\/article>","<article>foo<\/article>"===n.innerHTML.toLowerCase()},supportsCommand:function(){var t={formatBlock:n,insertUnorderedList:n||f||u,insertOrderedList:n||f||u},r={insertHTML:i};return function(n,i){if(!t[i]){try{return n.queryCommandSupported(i)}catch(u){}try{return n.queryCommandEnabled(i)}catch(f){return!!r[i]}}return!1}}(),doesAutoLinkingInContentEditable:function(){return n},canDisableAutoLinking:function(){return this.supportsCommand(document,"AutoUrlDetect")},clearsContentEditableCorrectly:function(){return i||f||u},supportsGetAttributeCorrectly:function(){return"1"!=document.createElement("td").getAttribute("rowspan")},canSelectImagesInContentEditable:function(){return i||n||f},clearsListsInContentEditableCorrectly:function(){return i||n||u},autoScrollsToCaret:function(){return!u},autoClosesUnclosedTags:function(){var n=r.cloneNode(!1),t;return n.innerHTML="<p><div><\/div>",n=n.innerHTML.toLowerCase(),t="<p><\/p><div><\/div>"===n||"<p><div><\/div><\/p>"===n,this.autoClosesUnclosedTags=function(){return t},t},supportsNativeGetElementsByClassName:function(){return-1!==(""+document.getElementsByClassName).indexOf("[native code]")},supportsSelectionModify:function(){return"getSelection"in window&&"modify"in window.getSelection()},supportsClassList:function(){return"classList"in r},needsSpaceAfterLineBreak:function(){return f},supportsSpeechApiOn:function(n){return 11<=(t.match(/Chrome\/(\d+)/)||[,0])[1]&&("onwebkitspeechchange"in n||"speech"in n)},crashesWhenDefineProperty:function(t){return n&&("XMLHttpRequest"===t||"XDomainRequest"===t)},doesAsyncFocus:function(){return n},hasProblemsSettingCaretAfterImg:function(){return n},hasUndoInContextMenu:function(){return i||e||f}}}();wysihtml5.lang.array=function(n){return{contains:function(t){if(n.indexOf)return-1!==n.indexOf(t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return!0;return!1},without:function(t){for(var t=wysihtml5.lang.array(t),r=[],i=0,u=n.length;i<u;i++)t.contains(n[i])||r.push(n[i]);return r},get:function(){for(var t=0,r=n.length,i=[];t<r;t++)i.push(n[t]);return i}}};wysihtml5.lang.Dispatcher=Base.extend({observe:function(n,t){return this.events=this.events||{},this.events[n]=this.events[n]||[],this.events[n].push(t),this},on:function(){return this.observe.apply(this,wysihtml5.lang.array(arguments).get())},fire:function(n,t){this.events=this.events||{};for(var r=this.events[n]||[],i=0;i<r.length;i++)r[i].call(this,t);return this},stopObserving:function(n,t){this.events=this.events||{};var i=0,r,u;if(n){for(r=this.events[n]||[],u=[];i<r.length;i++)r[i]!==t&&t&&u.push(r[i]);this.events[n]=u}else this.events={};return this}});wysihtml5.lang.object=function(n){return{merge:function(t){for(var i in t)n[i]=t[i];return this},get:function(){return n},clone:function(){var i={},t;for(t in n)i[t]=n[t];return i},isArray:function(){return"[object Array]"===Object.prototype.toString.call(n)}}},function(){var n=/^\s+/,t=/\s+$/;wysihtml5.lang.string=function(i){return i=""+i,{trim:function(){return i.replace(n,"").replace(t,"")},interpolate:function(n){for(var t in n)i=this.replace("#{"+t+"}").by(n[t]);return i},replace:function(n){return{by:function(t){return i.split(n).join(t)}}}}}}(),function(n){function e(n){return n.replace(t,function(n,t){var r=(t.match(u)||[])[1]||"",i=o[r],t=t.replace(u,""),e;return t.split(i).length>t.split(r).length&&(t+=r,r=""),e=i=t,t.length>f&&(e=e.substr(0,f)+"..."),"www."===i.substr(0,4)&&(i="http://"+i),'<a href="'+i+'">'+e+"<\/a>"+r})}function i(u){var s,f,o;if(!r.contains(u.nodeName))if(u.nodeType===n.TEXT_NODE&&u.data.match(t)){for(s=u.parentNode,f=s.ownerDocument,o=f._wysihtml5_tempElement,o||(o=f._wysihtml5_tempElement=f.createElement("div")),f=o,f.innerHTML="<span><\/span>"+e(u.data),f.removeChild(f.firstChild);f.firstChild;)s.insertBefore(f.firstChild,u);s.removeChild(u)}else{for(s=n.lang.array(u.childNodes).get(),f=s.length,o=0;o<f;o++)i(s[o]);return u}}var r=n.lang.array("CODE PRE A SCRIPT HEAD TITLE STYLE".split(" ")),t=/((https?:\/\/|www\.)[^\s<]{3,})/gi,u=/([^\w\/\-](,?))$/i,f=100,o={")":"(","]":"[","}":"{"};n.dom.autoLink=function(n){var t,u;n:{for(t=n;t.parentNode;){if(t=t.parentNode,u=t.nodeName,r.contains(u)){t=!0;break n}if("body"===u)break}t=!1}return t?n:(n===n.ownerDocument.documentElement&&(n=n.ownerDocument.body),i(n))};n.dom.autoLink.URL_REG_EXP=t}(wysihtml5),function(n){var i=n.browser.supportsClassList(),t=n.dom;t.addClass=function(n,r){if(i)return n.classList.add(r);t.hasClass(n,r)||(n.className+=" "+r)};t.removeClass=function(n,t){if(i)return n.classList.remove(t);n.className=n.className.replace(RegExp("(^|\\s+)"+t+"(\\s+|$)")," ")};t.hasClass=function(n,t){if(i)return n.classList.contains(t);var r=n.className;return 0<r.length&&(r==t||RegExp("(^|\\s)"+t+"(\\s|$)").test(r))}}(wysihtml5);wysihtml5.dom.contains=function(){var n=document.documentElement;return n.contains?function(n,t){return t.nodeType!==wysihtml5.ELEMENT_NODE&&(t=t.parentNode),n!==t&&n.contains(t)}:n.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:void 0}();wysihtml5.dom.convertToList=function(){function n(n,t){var i=n.createElement("li");return t.appendChild(i),i}return function(t,i){if("UL"===t.nodeName||"OL"===t.nodeName||"MENU"===t.nodeName)return t;for(var h=t.ownerDocument,s=h.createElement(i),o=t.querySelectorAll("br"),c=o.length,r,e,l,u,f=0;f<c;f++)for(r=o[f];(e=r.parentNode)&&e!==t&&e.lastChild===r;){if("block"===wysihtml5.dom.getStyle("display").from(e)){e.removeChild(r);break}wysihtml5.dom.insert(r).after(r.parentNode)}for(o=wysihtml5.lang.array(t.childNodes).get(),c=o.length,f=0;f<c;f++)u=u||n(h,s),r=o[f],e="block"===wysihtml5.dom.getStyle("display").from(r),l="BR"===r.nodeName,e?(u=u.firstChild?n(h,s):u,u.appendChild(r),u=null):l?u=u.firstChild?null:u:u.appendChild(r);return t.parentNode.replaceChild(s,t),s}}();wysihtml5.dom.copyAttributes=function(n){return{from:function(t){return{to:function(i){for(var r,u=0,f=n.length;u<f;u++)r=n[u],"undefined"!=typeof t[r]&&""!==t[r]&&(i[r]=t[r]);return{andTo:arguments.callee}}}}}},function(n){var t=["-webkit-box-sizing","-moz-box-sizing","-ms-box-sizing","box-sizing"],i=function(i){var u,r,f;n:for(r=0,f=t.length;r<f;r++)if("border-box"===n.getStyle(t[r]).from(i)){u=t[r];break n}return u?parseInt(n.getStyle("width").from(i),10)<i.offsetWidth:!1};n.copyStyles=function(r){return{from:function(u){i(u)&&(r=wysihtml5.lang.array(r).without(t));for(var o="",s=r.length,f=0,e;f<s;f++)e=r[f],o+=e+":"+n.getStyle(e).from(u)+";";return{to:function(t){n.setStyles(o).on(t);return{andTo:arguments.callee}}}}}}}(wysihtml5.dom),function(n){n.dom.delegate=function(t,i,r,u){return n.dom.observe(t,r,function(r){for(var f=r.target,e=n.lang.array(t.querySelectorAll(i));f&&f!==t;){if(e.contains(f)){u.call(f,r);break}f=f.parentNode}})}}(wysihtml5);wysihtml5.dom.getAsDom=function(){var n="abbr article aside audio bdi canvas command datalist details figcaption figure footer header hgroup keygen mark meter nav output progress rp rt ruby svg section source summary time track video wbr".split(" ");return function(t,i){var i=i||document,r,u,f;if("object"==typeof t&&t.nodeType)r=i.createElement("div"),r.appendChild(t);else if(wysihtml5.browser.supportsHTML5Tags(i))r=i.createElement("div"),r.innerHTML=t;else{if(r=i,!r._wysihtml5_supportsHTML5Tags){for(u=0,f=n.length;u<f;u++)r.createElement(n[u]);r._wysihtml5_supportsHTML5Tags=!0}r=i;u=r.createElement("div");u.style.display="none";r.body.appendChild(u);try{u.innerHTML=t}catch(e){}r.body.removeChild(u);r=u}return r}}();wysihtml5.dom.getParentElement=function(){function n(n,t){return!t||!t.length?!0:"string"==typeof t?n===t:wysihtml5.lang.array(t).contains(n)}return function(t,i,r){var u,f;if(r=r||50,i.className||i.classRegExp){n:{for(var e=i.nodeName,o=i.className,i=i.classRegExp;r--&&t&&"BODY"!==t.nodeName;){if((u=t.nodeType===wysihtml5.ELEMENT_NODE)&&(u=n(t.nodeName,e))&&(u=o,f=(t.className||"").match(i)||[],u=u?f[f.length-1]===u:!!f.length),u)break n;t=t.parentNode}t=null}return t}n:{for(e=i.nodeName,o=r;o--&&t&&"BODY"!==t.nodeName;){if(n(t.nodeName,e))break n;t=t.parentNode}t=null}return t}}();wysihtml5.dom.getStyle=function(){function n(n){return n.replace(i,function(n){return n.charAt(1).toUpperCase()})}var t={float:"styleFloat"in document.createElement("div").style?"styleFloat":"cssFloat"},i=/\-[a-z]/g;return function(i){return{from:function(r){var f,u,h;if(r.nodeType===wysihtml5.ELEMENT_NODE){var u=r.ownerDocument,f=t[i]||n(i),e=r.style,o=r.currentStyle,s=e[f];if(s)return s;if(o)try{return o[f]}catch(c){}if(f=u.defaultView||u.parentWindow,u=("height"===i||"width"===i)&&"TEXTAREA"===r.nodeName,f.getComputedStyle)return u&&(h=e.overflow,e.overflow="hidden"),r=f.getComputedStyle(r,null).getPropertyValue(i),u&&(e.overflow=h||""),r}}}}}();wysihtml5.dom.hasElementWithTagName=function(){var n={},t=1;return function(i,r){var f=(i._wysihtml5_identifier||(i._wysihtml5_identifier=t++))+":"+r,u=n[f];return u||(u=n[f]=i.getElementsByTagName(r)),0<u.length}}(),function(n){var t={},i=1;n.dom.hasElementWithClassName=function(r,u){if(!n.browser.supportsNativeGetElementsByClassName())return!!r.querySelector("."+u);var e=(r._wysihtml5_identifier||(r._wysihtml5_identifier=i++))+":"+u,f=t[e];return f||(f=t[e]=r.getElementsByClassName(u)),0<f.length}}(wysihtml5);wysihtml5.dom.insert=function(n){return{after:function(t){t.parentNode.insertBefore(n,t.nextSibling)},before:function(t){t.parentNode.insertBefore(n,t)},into:function(t){t.appendChild(n)}}};wysihtml5.dom.insertCSS=function(n){return n=n.join("\n"),{into:function(t){var r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.type="text/css";i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n));r&&r.appendChild(i)}}};wysihtml5.dom.observe=function(n,t,i){for(var t="string"==typeof t?[t]:t,r,u,f=0,e=t.length;f<e;f++)u=t[f],n.addEventListener?n.addEventListener(u,i,!1):(r=function(t){"target"in t||(t.target=t.srcElement);t.preventDefault=t.preventDefault||function(){this.returnValue=!1};t.stopPropagation=t.stopPropagation||function(){this.cancelBubble=!0};i.call(n,t)},n.attachEvent("on"+u,r));return{stop:function(){for(var u,f=0,e=t.length;f<e;f++)u=t[f],n.removeEventListener?n.removeEventListener(u,i,!1):n.detachEvent("on"+u,r)}}};wysihtml5.dom.parse=function(){function t(n,i){var o=n.childNodes,s=o.length,f,e;if(f=u[n.nodeType],e=0,f=f&&f(n),!f)return null;for(e=0;e<s;e++)(newChild=t(o[e],i))&&f.appendChild(newChild);return i&&1>=f.childNodes.length&&f.nodeName.toLowerCase()===r&&!f.attributes.length?f.firstChild:f}function i(n,t){var t=t.toLowerCase(),i,r;if((i="IMG"==n.nodeName)&&(i="src"==t)){try{r=n.complete&&!n.mozMatchesSelector(":-moz-broken")}catch(u){n.complete&&"complete"===n.readyState&&(r=!0)}i=!0===r}return i?n.src:o&&"outerHTML"in n?-1!=n.outerHTML.toLowerCase().indexOf(" "+t+"=")?n.getAttribute(t):null:n.getAttribute(t)}var u={1:function(t){var u,o,e=n.tags,w,d,c;if((o=t.nodeName.toLowerCase(),u=t.scopeName,t._wysihtml5)||(t._wysihtml5=1,"wysihtml5-temp"===t.className))return null;if(u&&"HTML"!=u&&(o=u+":"+o),"outerHTML"in t&&!wysihtml5.browser.autoClosesUnclosedTags()&&"P"===t.nodeName&&"<\/p>"!==t.outerHTML.slice(-4).toLowerCase()&&(o="div"),o in e){if(u=e[o],!u||u.remove)return null;u="string"==typeof u?{rename_tag:u}:u}else if(t.firstChild)u={rename_tag:r};else return null;o=t.ownerDocument.createElement(u.rename_tag||o);var e={},v=u.set_class,y=u.add_class,l=u.set_attributes,b=u.check_attributes,p=n.classes,k=0,a=[];if(u=[],w=[],d=[],l&&(e=wysihtml5.lang.object(l).clone()),b)for(c in b)(l=s[b[c]])&&(l=l(i(t,c)),"string"==typeof l&&(e[c]=l));if(v&&a.push(v),y)for(c in y)(l=h[y[c]])&&(v=l(i(t,c)),"string"==typeof v&&a.push(v));for(p["_wysihtml5-temp-placeholder"]=1,(d=t.getAttribute("class"))&&(a=a.concat(d.split(f))),y=a.length;k<y;k++)t=a[k],p[t]&&u.push(t);for(p=u.length;p--;)t=u[p],wysihtml5.lang.array(w).contains(t)||w.unshift(t);w.length&&(e["class"]=w.join(" "));for(c in e)try{o.setAttribute(c,e[c])}catch(g){}return e.src&&("undefined"!=typeof e.width&&o.setAttribute("width",e.width),"undefined"!=typeof e.height&&o.setAttribute("height",e.height)),o},3:function(n){return n.ownerDocument.createTextNode(n.data)}},r="span",f=/\s+/,e={tags:{},classes:{}},n={},o=!wysihtml5.browser.supportsGetAttributeCorrectly(),s={url:function(){var n=/^https?:\/\//i;return function(t){return!t||!t.match(n)?null:t.replace(n,function(n){return n.toLowerCase()})}}(),alt:function(){var n=/[^ a-z0-9_\-]/gi;return function(t){return t?t.replace(n,""):""}}(),numbers:function(){var n=/\D/g;return function(t){return(t=(t||"").replace(n,""))||null}}()},h={align_img:function(){var n={left:"wysiwyg-float-left",right:"wysiwyg-float-right"};return function(t){return n[(""+t).toLowerCase()]}}(),align_text:function(){var n={left:"wysiwyg-text-align-left",right:"wysiwyg-text-align-right",center:"wysiwyg-text-align-center",justify:"wysiwyg-text-align-justify"};return function(t){return n[(""+t).toLowerCase()]}}(),clear_br:function(){var n={left:"wysiwyg-clear-left",right:"wysiwyg-clear-right",both:"wysiwyg-clear-both",all:"wysiwyg-clear-both"};return function(t){return n[(""+t).toLowerCase()]}}(),size_font:function(){var n={1:"wysiwyg-font-size-xx-small",2:"wysiwyg-font-size-small",3:"wysiwyg-font-size-medium",4:"wysiwyg-font-size-large",5:"wysiwyg-font-size-x-large",6:"wysiwyg-font-size-xx-large",7:"wysiwyg-font-size-xx-large","-":"wysiwyg-font-size-smaller","+":"wysiwyg-font-size-larger"};return function(t){return n[(""+t).charAt(0)]}}()};return function(i,r,u,f){wysihtml5.lang.object(n).merge(e).merge(r).get();for(var u=u||i.ownerDocument||document,r=u.createDocumentFragment(),o="string"==typeof i,i=o?wysihtml5.dom.getAsDom(i,u):i;i.firstChild;)u=i.firstChild,i.removeChild(u),(u=t(u,f))&&r.appendChild(u);return i.innerHTML="",i.appendChild(r),o?wysihtml5.quirks.getCorrectInnerHTML(i):i}}();wysihtml5.dom.removeEmptyTextNodes=function(n){for(var i=wysihtml5.lang.array(n.childNodes).get(),r=i.length,t=0;t<r;t++)n=i[t],n.nodeType===wysihtml5.TEXT_NODE&&""===n.data&&n.parentNode.removeChild(n)};wysihtml5.dom.renameElement=function(n,t){for(var i=n.ownerDocument.createElement(t),r;r=n.firstChild;)i.appendChild(r);return wysihtml5.dom.copyAttributes(["align","className"]).from(n).to(i),n.parentNode.replaceChild(i,n),i};wysihtml5.dom.replaceWithChildNodes=function(n){if(n.parentNode)if(n.firstChild){for(var t=n.ownerDocument.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);n.parentNode.replaceChild(t,n)}else n.parentNode.removeChild(n)},function(n){function t(n){var t=n.ownerDocument.createElement("br");n.appendChild(t)}n.resolveList=function(i){if(!("MENU"!==i.nodeName&&"UL"!==i.nodeName&&"OL"!==i.nodeName)){var f=i.ownerDocument.createDocumentFragment(),r=i.previousElementSibling||i.previousSibling,o,e,u;for(r&&"block"!==n.getStyle("display").from(r)&&t(f);u=i.firstChild;){for(o=u.lastChild;r=u.firstChild;)e=(e=r===o)&&"block"!==n.getStyle("display").from(r)&&"BR"!==r.nodeName,f.appendChild(r),e&&t(f);u.parentNode.removeChild(u)}i.parentNode.replaceChild(f,i)}}}(wysihtml5.dom),function(n){var t=document,i="parent top opener frameElement frames localStorage globalStorage sessionStorage indexedDB".split(" "),r="open close openDialog showModalDialog alert confirm prompt openDatabase postMessage XMLHttpRequest XDomainRequest".split(" "),u=["referrer","write","open","close"];n.dom.Sandbox=Base.extend({constructor:function(t,i){this.callback=t||n.EMPTY_FUNCTION;this.config=n.lang.object({}).merge(i).get();this.iframe=this._createIframe()},insertInto:function(n){"string"==typeof n&&(n=t.getElementById(n));n.appendChild(this.iframe)},getIframe:function(){return this.iframe},getWindow:function(){this._readyError()},getDocument:function(){this._readyError()},destroy:function(){var n=this.getIframe();n.parentNode.removeChild(n)},_readyError:function(){throw Error("wysihtml5.Sandbox: Sandbox iframe isn't loaded yet");},_createIframe:function(){var r=this,i=t.createElement("iframe");i.className="wysihtml5-sandbox";n.dom.setAttributes({security:"restricted",allowtransparency:"true",frameborder:0,width:0,height:0,marginwidth:0,marginheight:0}).on(i);return n.browser.throwsMixedContentWarningWhenIframeSrcIsEmpty()&&(i.src="javascript:'<html><\/html>'"),i.onload=function(){i.onreadystatechange=i.onload=null;r._onLoadIframe(i)},i.onreadystatechange=function(){/loaded|complete/.test(i.readyState)&&(i.onreadystatechange=i.onload=null,r._onLoadIframe(i))},i},_onLoadIframe:function(f){var o,e;if(n.dom.contains(t.documentElement,f)){var c=this,h=f.contentWindow,s=f.contentWindow.document,e=this._getHtml({charset:t.characterSet||t.charset||"utf-8",stylesheets:this.config.stylesheets});if(s.open("text/html","replace"),s.write(e),s.close(),this.getWindow=function(){return f.contentWindow},this.getDocument=function(){return f.contentWindow.document},h.onerror=function(n,t,i){throw Error("wysihtml5.Sandbox: "+n,t,i);},!n.browser.supportsSandboxedIframes()){for(e=0,o=i.length;e<o;e++)this._unset(h,i[e]);for(e=0,o=r.length;e<o;e++)this._unset(h,r[e],n.EMPTY_FUNCTION);for(e=0,o=u.length;e<o;e++)this._unset(s,u[e]);this._unset(s,"cookie","",!0)}this.loaded=!0;setTimeout(function(){c.callback(c)},0)}},_getHtml:function(t){var i=t.stylesheets,u="",r=0,f;if(i="string"==typeof i?[i]:i)for(f=i.length;r<f;r++)u+='<link rel="stylesheet" href="'+i[r]+'">';return t.stylesheets=u,n.lang.string('<!DOCTYPE html><html><head><meta charset="#{charset}">#{stylesheets}<\/head><body><\/body><\/html>').interpolate(t)},_unset:function(t,i,r,u){try{t[i]=r}catch(e){}try{t.__defineGetter__(i,function(){return r})}catch(o){}if(u)try{t.__defineSetter__(i,function(){})}catch(s){}if(!n.browser.crashesWhenDefineProperty(i))try{var f={get:function(){return r}};u&&(f.set=function(){});Object.defineProperty(t,i,f)}catch(h){}}})}(wysihtml5),function(){var n={className:"class"};wysihtml5.dom.setAttributes=function(t){return{on:function(i){for(var r in t)i.setAttribute(n[r]||r,t[r])}}}}();wysihtml5.dom.setStyles=function(n){return{on:function(t){if(t=t.style,"string"==typeof n)t.cssText+=";"+n;else for(var i in n)"float"===i?(t.cssFloat=n[i],t.styleFloat=n[i]):t[i]=n[i]}}},function(n){n.simulatePlaceholder=function(t,i,r){var u=function(){i.hasPlaceholderSet()&&i.clear();n.removeClass(i.element,"placeholder")},f=function(){i.isEmpty()&&(i.setValue(r),n.addClass(i.element,"placeholder"))};t.observe("set_placeholder",f).observe("unset_placeholder",u).observe("focus:composer",u).observe("paste:composer",u).observe("blur:composer",f);f()}}(wysihtml5.dom),function(n){var t=document.documentElement;"textContent"in t?(n.setTextContent=function(n,t){n.textContent=t},n.getTextContent=function(n){return n.textContent}):"innerText"in t?(n.setTextContent=function(n,t){n.innerText=t},n.getTextContent=function(n){return n.innerText}):(n.setTextContent=function(n,t){n.nodeValue=t},n.getTextContent=function(n){return n.nodeValue})}(wysihtml5.dom);wysihtml5.quirks.cleanPastedHTML=function(){var n={"a u":wysihtml5.dom.replaceWithChildNodes};return function(t,i,r){var i=i||n,r=r||t.ownerDocument||document,o="string"==typeof t,u,s,f,e=0,t=o?wysihtml5.dom.getAsDom(t,r):t;for(f in i)for(u=t.querySelectorAll(f),r=i[f],s=u.length;e<s;e++)r(u[e]);return o?t.innerHTML:t}}(),function(n){var t=n.dom;n.quirks.ensureProperClearing=function(){var n=function(){var n=this;setTimeout(function(){var t=n.innerHTML.toLowerCase();("<p>&nbsp;<\/p>"==t||"<p>&nbsp;<\/p><p>&nbsp;<\/p>"==t)&&(n.innerHTML="")},0)};return function(i){t.observe(i.element,["cut","keydown"],n)}}();n.quirks.ensureProperClearingOfLists=function(){var i=["OL","UL","MENU"];return function(r){t.observe(r.element,"keydown",function(u){if(u.keyCode===n.BACKSPACE_KEY){var f=r.selection.getSelectedNode(),u=r.element;u.firstChild&&n.lang.array(i).contains(u.firstChild.nodeName)&&(f=t.getParentElement(f,{nodeName:i}))&&f==u.firstChild&&1>=f.childNodes.length&&(f.firstChild?""===f.firstChild.innerHTML:1)&&f.parentNode.removeChild(f)}})}}()}(wysihtml5),function(n){n.quirks.getCorrectInnerHTML=function(t){var i=t.innerHTML,t,u,f,e,r;if(-1===i.indexOf("%7E"))return i;for(t=t.querySelectorAll("[href*='~'], [src*='~']"),r=0,e=t.length;r<e;r++)u=t[r].href||t[r].src,f=n.lang.string(u).replace("~").by("%7E"),i=n.lang.string(i).replace(f).by(u);return i}}(wysihtml5),function(n){var t=n.dom,i="LI P H1 H2 H3 H4 H5 H6".split(" "),r=["UL","OL","MENU"];n.quirks.insertLineBreakOnReturn=function(u){function f(i){if(i=t.getParentElement(i,{nodeName:["P","DIV"]},2)){var r=document.createTextNode(n.INVISIBLE_SPACE);t.insert(r).before(i);t.replaceWithChildNodes(i);u.selection.selectNode(r)}}t.observe(u.element.ownerDocument,"keydown",function(e){var o=e.keyCode,s;e.shiftKey||o!==n.ENTER_KEY&&o!==n.BACKSPACE_KEY||(s=u.selection.getSelectedNode(),(s=t.getParentElement(s,{nodeName:i},4))?"LI"===s.nodeName&&(o===n.ENTER_KEY||o===n.BACKSPACE_KEY)?setTimeout(function(){var n=u.selection.getSelectedNode(),i;n&&((i=t.getParentElement(n,{nodeName:r},2))||f(n))},0):s.nodeName.match(/H[1-6]/)&&o===n.ENTER_KEY&&setTimeout(function(){f(u.selection.getSelectedNode())},0):o===n.ENTER_KEY&&!n.browser.insertsLineBreaksOnReturn()&&(u.commands.exec("insertLineBreak"),e.preventDefault()))})}}(wysihtml5),function(n){n.quirks.redraw=function(t){n.dom.addClass(t,"wysihtml5-quirks-redraw");n.dom.removeClass(t,"wysihtml5-quirks-redraw");try{var i=t.ownerDocument;i.execCommand("italic",!1,null);i.execCommand("italic",!1,null)}catch(r){}}}(wysihtml5),function(n){var t=n.dom;n.Selection=Base.extend({constructor:function(n){window.rangy.init();this.editor=n;this.composer=n.composer;this.doc=this.composer.doc},getBookmark:function(){var n=this.getRange();return n&&n.cloneRange()},setBookmark:function(n){n&&this.setSelection(n)},setBefore:function(n){var t=rangy.createRange(this.doc);return t.setStartBefore(n),t.setEndBefore(n),this.setSelection(t)},setAfter:function(n){var t=rangy.createRange(this.doc);return t.setStartAfter(n),t.setEndAfter(n),this.setSelection(t)},selectNode:function(i){var r=rangy.createRange(this.doc),o=i.nodeType===n.ELEMENT_NODE,f="canHaveHTML"in i?i.canHaveHTML:"IMG"!==i.nodeName,u=o?i.innerHTML:i.data,u=""===u||u===n.INVISIBLE_SPACE,e=t.getStyle("display").from(i),e="block"===e||"list-item"===e;if(u&&o&&f)try{i.innerHTML=n.INVISIBLE_SPACE}catch(s){}f?r.selectNodeContents(i):r.selectNode(i);f&&u&&o?r.collapse(e):f&&u&&(r.setStartAfter(i),r.setEndAfter(i));this.setSelection(r)},getSelectedNode:function(n){return n&&this.doc.selection&&"Control"===this.doc.selection.type&&(n=this.doc.selection.createRange())&&n.length?n.item(0):(n=this.getSelection(this.doc),n.focusNode===n.anchorNode?n.focusNode:(n=this.getRange(this.doc))?n.commonAncestorContainer:this.doc.body)},executeAndRestore:function(t,i){var u=this.doc.body,e=i&&u.scrollTop,o=i&&u.scrollLeft,f='<span class="_wysihtml5-temp-placeholder">'+n.INVISIBLE_SPACE+"<\/span>",r=this.getRange(this.doc);if(r){f=r.createContextualFragment(f);r.insertNode(f);try{t(r.startContainer,r.endContainer)}catch(s){setTimeout(function(){throw s;},0)}(caretPlaceholder=this.doc.querySelector("._wysihtml5-temp-placeholder"))?(r=rangy.createRange(this.doc),r.selectNode(caretPlaceholder),r.deleteContents(),this.setSelection(r)):u.focus();i&&(u.scrollTop=e,u.scrollLeft=o);try{caretPlaceholder.parentNode.removeChild(caretPlaceholder)}catch(h){}}else t(u,u)},executeAndRestoreSimple:function(n){var i,f,t=this.getRange(),r=this.doc.body,u;if(t){i=t.getNodes([3]);r=i[0]||t.startContainer;u=i[i.length-1]||t.endContainer;i=r===t.startContainer?t.startOffset:0;f=u===t.endContainer?t.endOffset:u.length;try{n(t.startContainer,t.endContainer)}catch(e){setTimeout(function(){throw e;},0)}n=rangy.createRange(this.doc);try{n.setStart(r,i)}catch(o){}try{n.setEnd(u,f)}catch(s){}try{this.setSelection(n)}catch(h){}}else n(r,r)},insertHTML:function(n){var n=rangy.createRange(this.doc).createContextualFragment(n),t=n.lastChild;this.insertNode(n);t&&this.setAfter(t)},insertNode:function(n){var t=this.getRange();t&&t.insertNode(n)},surround:function(n){var t=this.getRange();if(t)try{t.surroundContents(n);this.selectNode(n)}catch(i){n.appendChild(t.extractContents());t.insertNode(n)}},scrollIntoView:function(){var r=this.doc,t=r.documentElement.scrollHeight>r.documentElement.offsetHeight,i,u;if((i=r._wysihtml5ScrollIntoViewElement)||(i=r.createElement("span"),i.innerHTML=n.INVISIBLE_SPACE),i=r._wysihtml5ScrollIntoViewElement=i,t){if(this.insertNode(i),t=i,u=0,t.parentNode)do u+=t.offsetTop||0,t=t.offsetParent;while(t);t=u;i.parentNode.removeChild(i);t>r.body.scrollTop&&(r.body.scrollTop=t)}},selectLine:function(){n.browser.supportsSelectionModify()?this._selectLine_W3C():this.doc.selection&&this._selectLine_MSIE()},_selectLine_W3C:function(){var n=this.doc.defaultView.getSelection();n.modify("extend","left","lineboundary");n.modify("extend","right","lineboundary")},_selectLine_MSIE:function(){var t=this.doc.selection.createRange(),i=t.boundingTop,r=this.doc.body.scrollWidth,n;if(t.moveToPoint){for(0===i&&(n=this.doc.createElement("span"),this.insertNode(n),i=n.offsetTop,n.parentNode.removeChild(n)),i+=1,n=-10;n<r;n+=2)try{t.moveToPoint(n,i);break}catch(u){}for(n=this.doc.selection.createRange();0<=r;r--)try{n.moveToPoint(r,i);break}catch(f){}t.setEndPoint("EndToEnd",n);t.select()}},getText:function(){var n=this.getSelection();return n?n.toString():""},getNodes:function(n,t){var i=this.getRange();return i?i.getNodes([n],t):[]},getRange:function(){var n=this.getSelection();return n&&n.rangeCount&&n.getRangeAt(0)},getSelection:function(){return rangy.getSelection(this.doc.defaultView||this.doc.parentWindow)},setSelection:function(n){return rangy.getSelection(this.doc.defaultView||this.doc.parentWindow).setSingleRange(n)}})}(wysihtml5),function(n,t){function u(n,i){return t.dom.isCharacterDataNode(n)?0==i?!!n.previousSibling:i==n.length?!!n.nextSibling:!0:0<i&&i<n.childNodes.length}function i(n,r,u){var f,e;if(t.dom.isCharacterDataNode(r)&&(0==u?(u=t.dom.getNodeIndex(r),r=r.parentNode):u==r.length?(u=t.dom.getNodeIndex(r)+1,r=r.parentNode):f=t.dom.splitDataNode(r,u)),!f){for(f=r.cloneNode(!1),f.id&&f.removeAttribute("id");e=r.childNodes[u];)f.appendChild(e);t.dom.insertAfter(f,r)}return r==n?f:i(n,f.parentNode,t.dom.getNodeIndex(f))}function r(t){this.firstTextNode=(this.isElementMerge=t.nodeType==n.ELEMENT_NODE)?t.lastChild:t;this.textNodes=[this.firstTextNode]}function f(n,t,i,r){this.tagNames=n||[o];this.cssClass=t||"";this.similarClassRegExp=i;this.normalize=r;this.applyToAnyTagName=!1}var o="span",e=/\s+/g;r.prototype={doMerge:function(){for(var r=[],i,n,t=0,u=this.textNodes.length;t<u;++t)i=this.textNodes[t],n=i.parentNode,r[t]=i.data,t&&(n.removeChild(i),n.hasChildNodes()||n.parentNode.removeChild(n));return this.firstTextNode.data=r=r.join("")},getLength:function(){for(var n=this.textNodes.length,t=0;n--;)t+=this.textNodes[n].length;return t},toString:function(){for(var t=[],n=0,i=this.textNodes.length;n<i;++n)t[n]="'"+this.textNodes[n].data+"'";return"[Merge("+t.join(",")+")]"}};f.prototype={getAncestorWithClass:function(i){for(var r,u;i;){if(this.cssClass?(r=this.cssClass,i.className)?(u=i.className.match(this.similarClassRegExp)||[],r=u[u.length-1]===r):r=!1:r=!0,i.nodeType==n.ELEMENT_NODE&&t.dom.arrayContains(this.tagNames,i.tagName.toLowerCase())&&r)return i;i=i.parentNode}return!1},postApply:function(n,t){for(var s=n[0],f=n[n.length-1],e=[],i,h=s,l=f,a=0,v=f.length,o,y,u=0,c=n.length;u<c;++u)(o=n[u],y=this.getAdjacentMergeableTextNode(o.parentNode,!1))?(i||(i=new r(y),e.push(i)),i.textNodes.push(o),o===s&&(h=i.firstTextNode,a=h.length),o===f)&&(l=i.firstTextNode,v=i.getLength()):i=null;if((s=this.getAdjacentMergeableTextNode(f.parentNode,!0))&&(i||(i=new r(f),e.push(i)),i.textNodes.push(s)),e.length){for(u=0,c=e.length;u<c;++u)e[u].doMerge();t.setStart(h,a);t.setEnd(l,v)}},getAdjacentMergeableTextNode:function(t,i){var r=t.nodeType==n.TEXT_NODE,f=r?t.parentNode:t,u=i?"nextSibling":"previousSibling";if(r){if((r=t[u])&&r.nodeType==n.TEXT_NODE)return r}else if((r=f[u])&&this.areElementsMergeable(t,r))return r[i?"firstChild":"lastChild"];return null},areElementsMergeable:function(n,i){var r,o,f,u;if((r=t.dom.arrayContains(this.tagNames,(n.tagName||"").toLowerCase()))&&(r=t.dom.arrayContains(this.tagNames,(i.tagName||"").toLowerCase()))&&(r=n.className.replace(e," ")==i.className.replace(e," ")))n:if(n.attributes.length!=i.attributes.length)r=!1;else{for(r=0,o=n.attributes.length;r<o;++r)if(f=n.attributes[r],u=f.name,"class"!=u&&(u=i.attributes.getNamedItem(u),f.specified!=u.specified||f.specified&&f.nodeValue!==u.nodeValue)){r=!1;break n}r=!0}return r},createContainer:function(n){return n=n.createElement(this.tagNames[0]),this.cssClass&&(n.className=this.cssClass),n},applyToTextNode:function(n){var i=n.parentNode;1==i.childNodes.length&&t.dom.arrayContains(this.tagNames,i.tagName.toLowerCase())?this.cssClass&&(n=this.cssClass,i.className?(i.className&&(i.className=i.className.replace(this.similarClassRegExp,"")),i.className+=" "+n):i.className=n):(i=this.createContainer(t.dom.getDocument(n)),n.parentNode.insertBefore(i,n),i.appendChild(n))},isRemovable:function(i){return t.dom.arrayContains(this.tagNames,i.tagName.toLowerCase())&&n.lang.string(i.className).trim()==this.cssClass},undoToTextNode:function(n,t,r){if(t.containsNode(r)||(n=t.cloneRange(),n.selectNode(r),n.isPointInRange(t.endContainer,t.endOffset)&&u(t.endContainer,t.endOffset)&&(i(r,t.endContainer,t.endOffset),t.setEndAfter(r)),n.isPointInRange(t.startContainer,t.startOffset)&&u(t.startContainer,t.startOffset)&&(r=i(r,t.startContainer,t.startOffset))),this.similarClassRegExp&&r.className&&(r.className=r.className.replace(this.similarClassRegExp,"")),this.isRemovable(r)){for(t=r,r=t.parentNode;t.firstChild;)r.insertBefore(t.firstChild,t);r.removeChild(t)}},applyToRange:function(t){var i=t.getNodes([n.TEXT_NODE]),r,u,f;if(!i.length)try{r=this.createContainer(t.endContainer.ownerDocument);t.surroundContents(r);this.selectNode(t,r);return}catch(e){}if(t.splitBoundaries(),i=t.getNodes([n.TEXT_NODE]),i.length){for(u=0,f=i.length;u<f;++u)r=i[u],this.getAncestorWithClass(r)||this.applyToTextNode(r);t.setStart(i[0],0);r=i[i.length-1];t.setEnd(r,r.length);this.normalize&&this.postApply(i,t)}},undoToRange:function(t){var i=t.getNodes([n.TEXT_NODE]),r,e,u,f;for(i.length?(t.splitBoundaries(),i=t.getNodes([n.TEXT_NODE])):(i=t.endContainer.ownerDocument.createTextNode(n.INVISIBLE_SPACE),t.insertNode(i),t.selectNode(i),i=[i]),u=0,f=i.length;u<f;++u)r=i[u],(e=this.getAncestorWithClass(r))&&this.undoToTextNode(r,t,e);1==f?this.selectNode(t,i[0]):(t.setStart(i[0],0),r=i[i.length-1],t.setEnd(r,r.length),this.normalize&&this.postApply(i,t))},selectNode:function(t,i){var u=i.nodeType===n.ELEMENT_NODE,f="canHaveHTML"in i?i.canHaveHTML:!0,r=u?i.innerHTML:i.data;if((r=""===r||r===n.INVISIBLE_SPACE)&&u&&f)try{i.innerHTML=n.INVISIBLE_SPACE}catch(e){}t.selectNodeContents(i);r&&u?t.collapse(!1):r&&(t.setStartAfter(i),t.setEndAfter(i))},getTextSelectedByRange:function(n,t){var r=t.cloneRange(),i;return r.selectNodeContents(n),i=r.intersection(t),i=i?i.toString():"",r.detach(),i},isAppliedToRange:function(t){var f=[],i,u=t.getNodes([n.TEXT_NODE]),r,e,o;if(!u.length)return(i=this.getAncestorWithClass(t.startContainer))?[i]:!1;for(r=0,e=u.length;r<e;++r){if(o=this.getTextSelectedByRange(u[r],t),i=this.getAncestorWithClass(u[r]),""!=o&&!i)return!1;f.push(i)}return f},toggleRange:function(n){this.isAppliedToRange(n)?this.undoToRange(n):this.applyToRange(n)}};n.selection.HTMLApplier=f}(wysihtml5,rangy);wysihtml5.Commands=Base.extend({constructor:function(n){this.editor=n;this.composer=n.composer;this.doc=this.composer.doc},support:function(n){return wysihtml5.browser.supportsCommand(this.doc,n)},exec:function(n,t){var i=wysihtml5.commands[n],u=wysihtml5.lang.array(arguments).get(),f=i&&i.exec,r=null;if(this.editor.fire("beforecommand:composer"),f)u.unshift(this.composer),r=f.apply(i,u);else try{r=this.doc.execCommand(n,!1,t)}catch(e){}return this.editor.fire("aftercommand:composer"),r},state:function(n){var t=wysihtml5.commands[n],i=wysihtml5.lang.array(arguments).get(),r=t&&t.state;if(r)return i.unshift(this.composer),r.apply(t,i);try{return this.doc.queryCommandState(n)}catch(u){return!1}},value:function(n){var t=wysihtml5.commands[n],i=t&&t.value;if(i)return i.call(t,this.composer,n);try{return this.doc.queryCommandValue(n)}catch(r){return null}}}),function(n){n.commands.bold={exec:function(t,i){return n.commands.formatInline.exec(t,i,"b")},state:function(t,i){return n.commands.formatInline.state(t,i,"b")},value:function(){}}}(wysihtml5),function(n){function u(u,f){var c=u.doc,s="_wysihtml5-temp-"+ +new Date,h=0,l,e,o;for(n.commands.formatInline.exec(u,i,r,s,/non-matching-class/g),l=c.querySelectorAll(r+"."+s),s=l.length;h<s;h++)for(o in e=l[h],e.removeAttribute("class"),f)e.setAttribute(o,f[o]);h=e;1===s&&(o=t.getTextContent(e),s=!!e.querySelector("*"),o=""===o||o===n.INVISIBLE_SPACE,!s&&o&&(t.setTextContent(e,f.text||e.href),c=c.createTextNode(" "),u.selection.setAfter(e),u.selection.insertNode(c),h=c));u.selection.setAfter(h)}var i,r="A",t=n.dom;n.commands.createLink={exec:function(n,i,r){var f=this.state(n,i);f?n.selection.executeAndRestore(function(){for(var e=f.length,i=0,n,r,u;i<e;i++)n=f[i],r=t.getParentElement(n,{nodeName:"code"}),u=t.getTextContent(n),u.match(t.autoLink.URL_REG_EXP)&&!r?t.renameElement(n,"code"):t.replaceWithChildNodes(n)}):(r="object"==typeof r?r:{href:r},u(n,r))},state:function(t,i){return n.commands.formatInline.state(t,i,"A")},value:function(){return i}}}(wysihtml5),function(n){var t=/wysiwyg-font-size-[a-z\-]+/g;n.commands.fontSize={exec:function(i,r,u){return n.commands.formatInline.exec(i,r,"span","wysiwyg-font-size-"+u,t)},state:function(i,r,u){return n.commands.formatInline.state(i,r,"span","wysiwyg-font-size-"+u,t)},value:function(){}}}(wysihtml5),function(n){var t=/wysiwyg-color-[a-z]+/g;n.commands.foreColor={exec:function(i,r,u){return n.commands.formatInline.exec(i,r,"span","wysiwyg-color-"+u,t)},state:function(i,r,u){return n.commands.formatInline.state(i,r,"span","wysiwyg-color-"+u,t)},value:function(){}}}(wysihtml5),function(n){function i(t){for(t=t.previousSibling;t&&t.nodeType===n.TEXT_NODE&&!n.lang.string(t.data).trim();)t=t.previousSibling;return t}function r(t){for(t=t.nextSibling;t&&t.nodeType===n.TEXT_NODE&&!n.lang.string(t.data).trim();)t=t.nextSibling;return t}function u(n){return"BR"===n.nodeName||"block"===t.getStyle("display").from(n)?!0:!1}function e(i,r,u,f){if(f)var e=t.observe(i,"DOMNodeInserted",function(i){var i=i.target,r;i.nodeType===n.ELEMENT_NODE&&(r=t.getStyle("display").from(i),"inline"!==r.substr(0,6)&&(i.className+=" "+f))});i.execCommand(r,!1,u);e&&e.stop()}function o(n,t){n.selection.selectLine();n.selection.surround(t);var u=r(t),f=i(t);u&&"BR"===u.nodeName&&u.parentNode.removeChild(u);f&&"BR"===f.nodeName&&f.parentNode.removeChild(f);(u=t.lastChild)&&"BR"===u.nodeName&&u.parentNode.removeChild(u);n.selection.selectNode(t)}var t=n.dom,f="H1 H2 H3 H4 H5 H6 P BLOCKQUOTE DIV".split(" ");n.commands.formatBlock={exec:function(s,h,c,l,a){var y=s.doc,v=this.state(s,h,c,l,a),p,c="string"==typeof c?c.toUpperCase():c;if(v)s.selection.executeAndRestoreSimple(function(){var f;if(a&&(v.className=v.className.replace(a,"")),f=!!n.lang.string(v.className).trim(),f||v.nodeName!==(c||"DIV"))f&&t.renameElement(v,"DIV");else{var f=v,o=f.ownerDocument,e=r(f),s=i(f);e&&!u(e)&&f.parentNode.insertBefore(o.createElement("br"),e);s&&!u(s)&&f.parentNode.insertBefore(o.createElement("br"),f);t.replaceWithChildNodes(v)}});else{if((null===c||n.lang.array(f).contains(c))&&(p=s.selection.getSelectedNode(),v=t.getParentElement(p,{nodeName:f}))){s.selection.executeAndRestoreSimple(function(){if(c&&(v=t.renameElement(v,c)),l){var n=v;n.className?(n.className=n.className.replace(a,""),n.className+=" "+l):n.className=l}});return}s.commands.support(h)?e(y,h,c||"DIV",l):(v=y.createElement(c||"DIV"),l&&(v.className=l),o(s,v))}},state:function(n,i,r,u,f){return r="string"==typeof r?r.toUpperCase():r,n=n.selection.getSelectedNode(),t.getParentElement(n,{nodeName:r,className:u,classRegExp:f})},value:function(){}}}(wysihtml5),function(n){function i(i,u,f){var e=i+":"+u;if(!t[e]){var s=t,h=n.selection.HTMLApplier,o=r[i],i=o?[i.toLowerCase(),o.toLowerCase()]:[i.toLowerCase()];s[e]=new h(i,u,f,!0)}return t[e]}var r={strong:"b",em:"i",b:"strong",i:"em"},t={};n.commands.formatInline={exec:function(n,t,r,u,f){if(t=n.selection.getRange(),!t)return!1;i(r,u,f).toggleRange(t);n.selection.setSelection(t)},state:function(t,u,f,e,o){var u=t.doc,s=r[f]||f;return!n.dom.hasElementWithTagName(u,f)&&!n.dom.hasElementWithTagName(u,s)||e&&!n.dom.hasElementWithClassName(u,e)?!1:(t=t.selection.getRange(),t?i(f,e,o).isAppliedToRange(t):!1)},value:function(){}}}(wysihtml5),function(n){n.commands.insertHTML={exec:function(n,t,i){n.commands.support(t)?n.doc.execCommand(t,!1,i):n.selection.insertHTML(i)},state:function(){return!1},value:function(){}}}(wysihtml5),function(n){n.commands.insertImage={exec:function(t,i,r){var r="object"==typeof r?r:{src:r},f=t.doc,i=this.state(t),u;if(i)t.selection.setBefore(i),r=i.parentNode,r.removeChild(i),n.dom.removeEmptyTextNodes(r),"A"===r.nodeName&&!r.firstChild&&(t.selection.setAfter(r),r.parentNode.removeChild(r)),n.quirks.redraw(t.element);else{i=f.createElement("IMG");for(u in r)i[u]=r[u];t.selection.insertNode(i);n.browser.hasProblemsSettingCaretAfterImg()?(r=f.createTextNode(n.INVISIBLE_SPACE),t.selection.insertNode(r),t.selection.setAfter(r)):t.selection.setAfter(i)}},state:function(t){var i;return n.dom.hasElementWithTagName(t.doc,"IMG")?(i=t.selection.getSelectedNode(),!i)?!1:"IMG"===i.nodeName?i:i.nodeType!==n.ELEMENT_NODE?!1:(i=t.selection.getText(),i=n.lang.string(i).trim())?!1:(t=t.selection.getNodes(n.ELEMENT_NODE,function(n){return"IMG"===n.nodeName}),1!==t.length?!1:t[0]):!1},value:function(n){return(n=this.state(n))&&n.src}}}(wysihtml5),function(n){var t="<br>"+(n.browser.needsSpaceAfterLineBreak()?" ":"");n.commands.insertLineBreak={exec:function(i,r){i.commands.support(r)?(i.doc.execCommand(r,!1,null),n.browser.autoScrollsToCaret()||i.selection.scrollIntoView()):i.commands.exec("insertHTML",t)},state:function(){return!1},value:function(){}}}(wysihtml5),function(n){n.commands.insertOrderedList={exec:function(t,i){var u=t.doc,r=t.selection.getSelectedNode(),f=n.dom.getParentElement(r,{nodeName:"OL"}),o=n.dom.getParentElement(r,{nodeName:"UL"}),r="_wysihtml5-temp-"+(new Date).getTime(),e;t.commands.support(i)?u.execCommand(i,!1,null):f?t.selection.executeAndRestoreSimple(function(){n.dom.resolveList(f)}):o?t.selection.executeAndRestoreSimple(function(){n.dom.renameElement(o,"ol")}):(t.commands.exec("formatBlock","div",r),e=u.querySelector("."+r),u=""===e.innerHTML||e.innerHTML===n.INVISIBLE_SPACE,t.selection.executeAndRestoreSimple(function(){f=n.dom.convertToList(e,"ol")}),u&&t.selection.selectNode(f.querySelector("li")))},state:function(t){return t=t.selection.getSelectedNode(),n.dom.getParentElement(t,{nodeName:"OL"})},value:function(){}}}(wysihtml5),function(n){n.commands.insertUnorderedList={exec:function(t,i){var u=t.doc,r=t.selection.getSelectedNode(),f=n.dom.getParentElement(r,{nodeName:"UL"}),o=n.dom.getParentElement(r,{nodeName:"OL"}),r="_wysihtml5-temp-"+(new Date).getTime(),e;t.commands.support(i)?u.execCommand(i,!1,null):f?t.selection.executeAndRestoreSimple(function(){n.dom.resolveList(f)}):o?t.selection.executeAndRestoreSimple(function(){n.dom.renameElement(o,"ul")}):(t.commands.exec("formatBlock","div",r),e=u.querySelector("."+r),u=""===e.innerHTML||e.innerHTML===n.INVISIBLE_SPACE,t.selection.executeAndRestoreSimple(function(){f=n.dom.convertToList(e,"ul")}),u&&t.selection.selectNode(f.querySelector("li")))},state:function(t){return t=t.selection.getSelectedNode(),n.dom.getParentElement(t,{nodeName:"UL"})},value:function(){}}}(wysihtml5),function(n){n.commands.italic={exec:function(t,i){return n.commands.formatInline.exec(t,i,"i")},state:function(t,i){return n.commands.formatInline.state(t,i,"i")},value:function(){}}}(wysihtml5),function(n){var t=/wysiwyg-text-align-[a-z]+/g;n.commands.justifyCenter={exec:function(i){return n.commands.formatBlock.exec(i,"formatBlock",null,"wysiwyg-text-align-center",t)},state:function(i){return n.commands.formatBlock.state(i,"formatBlock",null,"wysiwyg-text-align-center",t)},value:function(){}}}(wysihtml5),function(n){var t=/wysiwyg-text-align-[a-z]+/g;n.commands.justifyLeft={exec:function(i){return n.commands.formatBlock.exec(i,"formatBlock",null,"wysiwyg-text-align-left",t)},state:function(i){return n.commands.formatBlock.state(i,"formatBlock",null,"wysiwyg-text-align-left",t)},value:function(){}}}(wysihtml5),function(n){var t=/wysiwyg-text-align-[a-z]+/g;n.commands.justifyRight={exec:function(i){return n.commands.formatBlock.exec(i,"formatBlock",null,"wysiwyg-text-align-right",t)},state:function(i){return n.commands.formatBlock.state(i,"formatBlock",null,"wysiwyg-text-align-right",t)},value:function(){}}}(wysihtml5),function(n){n.commands.underline={exec:function(t,i){return n.commands.formatInline.exec(t,i,"u")},state:function(t,i){return n.commands.formatInline.state(t,i,"u")},value:function(){}}}(wysihtml5),function(n){var i='<span id="_wysihtml5-undo" class="_wysihtml5-temp">'+n.INVISIBLE_SPACE+"<\/span>",r='<span id="_wysihtml5-redo" class="_wysihtml5-temp">'+n.INVISIBLE_SPACE+"<\/span>",t=n.dom;n.UndoManager=n.lang.Dispatcher.extend({constructor:function(n){this.editor=n;this.composer=n.composer;this.element=this.composer.element;this.history=[this.composer.getValue()];this.position=1;this.composer.commands.support("insertHTML")&&this._observe()},_observe:function(){var u=this,f=this.composer.sandbox.getDocument(),o,s,h,e;t.observe(this.element,"keydown",function(n){if(!(n.altKey||!n.ctrlKey&&!n.metaKey)){var t=n.keyCode,i=90===t&&n.shiftKey||89===t;90===t&&!n.shiftKey?(u.undo(),n.preventDefault()):i&&(u.redo(),n.preventDefault())}});t.observe(this.element,"keydown",function(n){n=n.keyCode;n!==o&&(o=n,(8===n||46===n)&&u.transact())});n.browser.hasUndoInContextMenu()&&(e=function(){for(var n;n=f.querySelector("._wysihtml5-temp");)n.parentNode.removeChild(n);clearInterval(s)},t.observe(this.element,"contextmenu",function(){e();u.composer.selection.executeAndRestoreSimple(function(){u.element.lastChild&&u.composer.selection.setAfter(u.element.lastChild);f.execCommand("insertHTML",!1,i);f.execCommand("insertHTML",!1,r);f.execCommand("undo",!1,null)});s=setInterval(function(){f.getElementById("_wysihtml5-redo")?(e(),u.redo()):f.getElementById("_wysihtml5-undo")||(e(),u.undo())},400);h||(h=!0,t.observe(document,"mousedown",e),t.observe(f,["mousedown","paste","cut","copy"],e))}));this.editor.observe("newword:composer",function(){u.transact()}).observe("beforecommand:composer",function(){u.transact()})},transact:function(){var t=this.history[this.position-1],n=this.composer.getValue();n!=t&&(40<(this.history.length=this.position)&&(this.history.shift(),this.position--),this.position++,this.history.push(n))},undo:function(){this.transact();1>=this.position||(this.set(this.history[--this.position-1]),this.editor.fire("undo:composer"))},redo:function(){this.position>=this.history.length||(this.set(this.history[++this.position-1]),this.editor.fire("redo:composer"))},set:function(n){this.composer.setValue(n);this.editor.focus(!0)}})}(wysihtml5);wysihtml5.views.View=Base.extend({constructor:function(n,t,i){this.parent=n;this.element=t;this.config=i;this._observeViewChange()},_observeViewChange:function(){var n=this;this.parent.observe("beforeload",function(){n.parent.observe("change_view",function(t){t===n.name?(n.parent.currentView=n,n.show(),setTimeout(function(){n.focus()},0)):n.hide()})})},focus:function(){if(this.element.ownerDocument.querySelector(":focus")!==this.element)try{this.element.focus()}catch(n){}},hide:function(){this.element.style.display="none"},show:function(){this.element.style.display=""},disable:function(){this.element.setAttribute("disabled","disabled")},enable:function(){this.element.removeAttribute("disabled")}}),function(n){var t=n.dom,i=n.browser;n.views.Composer=n.views.View.extend({name:"composer",CARET_HACK:"<br>",constructor:function(n,t,i){this.base(n,t,i);this.textarea=this.parent.textarea;this._initSandbox()},clear:function(){this.element.innerHTML=i.displaysCaretInEmptyContentEditableCorrectly()?"":this.CARET_HACK},getValue:function(t){var i=this.isEmpty()?"":n.quirks.getCorrectInnerHTML(this.element);return t&&(i=this.parent.parse(i)),n.lang.string(i).replace(n.INVISIBLE_SPACE).by("")},setValue:function(n,t){t&&(n=this.parent.parse(n));this.element.innerHTML=n},show:function(){this.iframe.style.display=this._displayStyle||"";this.disable();this.enable()},hide:function(){this._displayStyle=t.getStyle("display").from(this.iframe);"none"===this._displayStyle&&(this._displayStyle=null);this.iframe.style.display="none"},disable:function(){this.element.removeAttribute("contentEditable");this.base()},enable:function(){this.element.setAttribute("contentEditable","true");this.base()},focus:function(t){n.browser.doesAsyncFocus()&&this.hasPlaceholderSet()&&this.clear();this.base();var i=this.element.lastChild;t&&i&&("BR"===i.nodeName?this.selection.setBefore(this.element.lastChild):this.selection.setAfter(this.element.lastChild))},getTextContent:function(){return t.getTextContent(this.element)},hasPlaceholderSet:function(){return this.getTextContent()==this.textarea.element.getAttribute("placeholder")},isEmpty:function(){var n=this.element.innerHTML;return""===n||n===this.CARET_HACK||this.hasPlaceholderSet()||""===this.getTextContent()&&!this.element.querySelector("blockquote, ul, ol, img, embed, object, table, iframe, svg, video, audio, button, input, select, textarea")},_initSandbox:function(){var r=this,n,i;this.sandbox=new t.Sandbox(function(){r._create()},{stylesheets:this.config.stylesheets});this.iframe=this.sandbox.getIframe();n=document.createElement("input");n.type="hidden";n.name="_wysihtml5_mode";n.value=1;i=this.textarea.element;t.insert(this.iframe).after(i);t.insert(n).after(i)},_create:function(){var u=this,r;this.doc=this.sandbox.getDocument();this.element=this.doc.body;this.textarea=this.parent.textarea;this.element.innerHTML=this.textarea.getValue(!0);this.enable();this.selection=new n.Selection(this.parent);this.commands=new n.Commands(this.parent);t.copyAttributes("className spellcheck title lang dir accessKey".split(" ")).from(this.textarea.element).to(this.element);t.addClass(this.element,this.config.composerClassName);this.config.style&&this.style();this.observe();r=this.config.name;r&&(t.addClass(this.element,r),t.addClass(this.iframe,r));(r="string"==typeof this.config.placeholder?this.config.placeholder:this.textarea.element.getAttribute("placeholder"))&&t.simulatePlaceholder(this.parent,this,r);this.commands.exec("styleWithCSS",!1);this._initAutoLinking();this._initObjectResizing();this._initUndoManager();(this.textarea.element.hasAttribute("autofocus")||document.querySelector(":focus")==this.textarea.element)&&setTimeout(function(){u.focus()},100);n.quirks.insertLineBreakOnReturn(this);i.clearsContentEditableCorrectly()||n.quirks.ensureProperClearing(this);i.clearsListsInContentEditableCorrectly()||n.quirks.ensureProperClearingOfLists(this);this.initSync&&this.config.sync&&this.initSync();this.textarea.hide();this.parent.fire("beforeload").fire("load")},_initAutoLinking:function(){var r=this,u=i.canDisableAutoLinking(),f=i.doesAutoLinkingInContentEditable();if(u&&this.commands.exec("autoUrlDetect",!1),this.config.autoLink){(!f||f&&u)&&this.parent.observe("newword:composer",function(){r.selection.executeAndRestore(function(n,i){t.autoLink(i.parentNode)})});var o=this.sandbox.getDocument().getElementsByTagName("a"),s=t.autoLink.URL_REG_EXP,e=function(i){return i=n.lang.string(t.getTextContent(i)).trim(),"www."===i.substr(0,4)&&(i="http://"+i),i};t.observe(this.element,"keydown",function(n){if(o.length){var n=r.selection.getSelectedNode(n.target.ownerDocument),i=t.getParentElement(n,{nodeName:"A"},4),u;i&&(u=e(i),setTimeout(function(){var n=e(i);n!==u&&n.match(s)&&i.setAttribute("href",n)},0))}})}},_initObjectResizing:function(){var u=["width","height"],f=u.length,r=this.element;this.commands.exec("enableObjectResizing",this.config.allowObjectResizing);this.config.allowObjectResizing?i.supportsEvent("resizeend")&&t.observe(r,"resizeend",function(t){for(var t=t.target||t.srcElement,e=t.style,o=0,i;o<f;o++)i=u[o],e[i]&&(t.setAttribute(i,parseInt(e[i],10)),e[i]="");n.quirks.redraw(r)}):i.supportsEvent("resizestart")&&t.observe(r,"resizestart",function(n){n.preventDefault()})},_initUndoManager:function(){new n.UndoManager(this.parent)}})}(wysihtml5),function(n){var t=n.dom,i=document,u=window,e=i.createElement("div"),r="background-color color cursor font-family font-size font-style font-variant font-weight line-height letter-spacing text-align text-decoration text-indent text-rendering word-break word-wrap word-spacing".split(" "),f="background-color border-collapse border-bottom-color border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-style border-top-width clear display float margin-bottom margin-left margin-right margin-top outline-color outline-offset outline-width outline-style padding-left padding-right padding-top padding-bottom position top left right bottom z-index vertical-align text-align -webkit-box-sizing -moz-box-sizing -ms-box-sizing box-sizing -webkit-box-shadow -moz-box-shadow -ms-box-shadow box-shadow -webkit-border-top-right-radius -moz-border-radius-topright border-top-right-radius -webkit-border-bottom-right-radius -moz-border-radius-bottomright border-bottom-right-radius -webkit-border-bottom-left-radius -moz-border-radius-bottomleft border-bottom-left-radius -webkit-border-top-left-radius -moz-border-radius-topleft border-top-left-radius width height".split(" "),o="width height top left right bottom".split(" "),s=["html             { height: 100%; }","body             { min-height: 100%; padding: 0; margin: 0; margin-top: -1px; padding-top: 1px; }","._wysihtml5-temp { display: none; }",n.browser.isGecko?"body.placeholder { color: graytext !important; }":"body.placeholder { color: #a9a9a9 !important; }","body[disabled]   { background-color: #eee !important; color: #999 !important; cursor: default !important; }","img:-moz-broken  { -moz-force-broken-image-icon: 1; height: 24px; width: 24px; }"],h=function(n){if(n.setActive)try{n.setActive()}catch(o){}else{var r=n.style,f=i.documentElement.scrollTop||i.body.scrollTop,e=i.documentElement.scrollLeft||i.body.scrollLeft,r={position:r.position,top:r.top,left:r.left,WebkitUserSelect:r.WebkitUserSelect};t.setStyles({position:"absolute",top:"-99999px",left:"-99999px",WebkitUserSelect:"none"}).on(n);n.focus();t.setStyles(r).on(n);u.scrollTo&&u.scrollTo(e,f)}};n.views.Composer.prototype.style=function(){var l=this,a=i.querySelector(":focus"),c=this.textarea.element,v=c.hasAttribute("placeholder"),w=v&&c.getAttribute("placeholder"),y,p;return this.focusStylesHost=this.focusStylesHost||e.cloneNode(!1),this.blurStylesHost=this.blurStylesHost||e.cloneNode(!1),v&&c.removeAttribute("placeholder"),c===a&&c.blur(),t.copyStyles(f).from(c).to(this.iframe).andTo(this.blurStylesHost),t.copyStyles(r).from(c).to(this.element).andTo(this.blurStylesHost),t.insertCSS(s).into(this.element.ownerDocument),h(c),t.copyStyles(f).from(c).to(this.focusStylesHost),t.copyStyles(r).from(c).to(this.focusStylesHost),y=n.lang.array(f).without(["display"]),a?a.focus():c.blur(),v&&c.setAttribute("placeholder",w),n.browser.hasCurrentStyleProperty()||(p=t.observe(u,"resize",function(){if(t.contains(document.documentElement,l.iframe)){var n=t.getStyle("display").from(c),i=t.getStyle("display").from(l.iframe);c.style.display="";l.iframe.style.display="none";t.copyStyles(o).from(c).to(l.iframe).andTo(l.focusStylesHost).andTo(l.blurStylesHost);l.iframe.style.display=i;c.style.display=n}else p.stop()})),this.parent.observe("focus:composer",function(){t.copyStyles(y).from(l.focusStylesHost).to(l.iframe);t.copyStyles(r).from(l.focusStylesHost).to(l.element)}),this.parent.observe("blur:composer",function(){t.copyStyles(y).from(l.blurStylesHost).to(l.iframe);t.copyStyles(r).from(l.blurStylesHost).to(l.element)}),this}}(wysihtml5),function(n){var t=n.dom,i=n.browser,r={66:"bold",73:"italic",85:"underline"};n.views.Composer.prototype.observe=function(){var u=this,o=this.getValue(),s=this.sandbox.getIframe(),f=this.element,h=i.supportsEventsInIframeCorrectly()?f:this.sandbox.getWindow(),l=i.supportsEvent("drop")?["drop","paste"]:["dragdrop","paste"],e,c;t.observe(s,"DOMNodeRemoved",function(){clearInterval(e);u.parent.fire("destroy:composer")});e=setInterval(function(){t.contains(document.documentElement,s)||(clearInterval(e),u.parent.fire("destroy:composer"))},250);t.observe(h,"focus",function(){u.parent.fire("focus").fire("focus:composer");setTimeout(function(){o=u.getValue()},0)});t.observe(h,"blur",function(){o!==u.getValue()&&u.parent.fire("change").fire("change:composer");u.parent.fire("blur").fire("blur:composer")});n.browser.isIos()&&t.observe(f,"blur",function(){var n=f.ownerDocument.createElement("input"),t=document.documentElement.scrollTop||document.body.scrollTop,i=document.documentElement.scrollLeft||document.body.scrollLeft;try{u.selection.insertNode(n)}catch(r){f.appendChild(n)}n.focus();n.parentNode.removeChild(n);window.scrollTo(i,t)});t.observe(f,"dragenter",function(){u.parent.fire("unset_placeholder")});i.firesOnDropOnlyWhenOnDragOverIsCancelled()&&t.observe(f,["dragover","dragenter"],function(n){n.preventDefault()});t.observe(f,l,function(n){var t=n.dataTransfer,r;t&&i.supportsDataTransfer()&&(r=t.getData("text/html")||t.getData("text/plain"));r?(f.focus(),u.commands.exec("insertHTML",r),u.parent.fire("paste").fire("paste:composer"),n.stopPropagation(),n.preventDefault()):setTimeout(function(){u.parent.fire("paste").fire("paste:composer")},0)});t.observe(f,"keyup",function(t){t=t.keyCode;(t===n.SPACE_KEY||t===n.ENTER_KEY)&&u.parent.fire("newword:composer")});this.parent.observe("paste:composer",function(){setTimeout(function(){u.parent.fire("newword:composer")},0)});i.canSelectImagesInContentEditable()||t.observe(f,"mousedown",function(n){var t=n.target;"IMG"===t.nodeName&&(u.selection.selectNode(t),n.preventDefault())});t.observe(f,"keydown",function(n){var t=r[n.keyCode];(n.ctrlKey||n.metaKey)&&!n.altKey&&t&&(u.commands.exec(t),n.preventDefault())});t.observe(f,"keydown",function(t){var r=u.selection.getSelectedNode(!0),i=t.keyCode;r&&"IMG"===r.nodeName&&(i===n.BACKSPACE_KEY||i===n.DELETE_KEY)&&(i=r.parentNode,i.removeChild(r),"A"===i.nodeName&&!i.firstChild&&i.parentNode.removeChild(i),setTimeout(function(){n.quirks.redraw(f)},0),t.preventDefault())});c={IMG:"Image: ",A:"Link: "};t.observe(f,"mouseover",function(n){var n=n.target,t=n.nodeName;"A"!==t&&"IMG"!==t||n.hasAttribute("title")||(t=c[t]+(n.getAttribute("href")||n.getAttribute("src")),n.setAttribute("title",t))})}}(wysihtml5),function(n){n.views.Synchronizer=Base.extend({constructor:function(n,t,i){this.editor=n;this.textarea=t;this.composer=i;this._observe()},fromComposerToTextarea:function(t){this.textarea.setValue(n.lang.string(this.composer.getValue()).trim(),t)},fromTextareaToComposer:function(n){var t=this.textarea.getValue();t?this.composer.setValue(t,n):(this.composer.clear(),this.editor.fire("set_placeholder"))},sync:function(n){"textarea"===this.editor.currentView.name?this.fromTextareaToComposer(n):this.fromComposerToTextarea(n)},_observe:function(){var i,t=this,r=this.textarea.element.form,u=function(){i=setInterval(function(){t.fromComposerToTextarea()},400)},f=function(){clearInterval(i);i=null};u();r&&(n.dom.observe(r,"submit",function(){t.sync(!0)}),n.dom.observe(r,"reset",function(){setTimeout(function(){t.fromTextareaToComposer()},0)}));this.editor.observe("change_view",function(n){n!=="composer"||i?n==="textarea"&&(t.fromComposerToTextarea(!0),f()):(t.fromTextareaToComposer(!0),u())});this.editor.observe("destroy:composer",f)}})}(wysihtml5);wysihtml5.views.Textarea=wysihtml5.views.View.extend({name:"textarea",constructor:function(n,t,i){this.base(n,t,i);this._observe()},clear:function(){this.element.value=""},getValue:function(n){var t=this.isEmpty()?"":this.element.value;return n&&(t=this.parent.parse(t)),t},setValue:function(n,t){t&&(n=this.parent.parse(n));this.element.value=n},hasPlaceholderSet:function(){var t=wysihtml5.browser.supportsPlaceholderAttributeOn(this.element),i=this.element.getAttribute("placeholder")||null,n=this.element.value;return t&&!n||n===i},isEmpty:function(){return!wysihtml5.lang.string(this.element.value).trim()||this.hasPlaceholderSet()},_observe:function(){var t=this.element,n=this.parent,i={focusin:"focus",focusout:"blur"},r=wysihtml5.browser.supportsEvent("focusin")?["focusin","focusout","change"]:["focus","blur","change"];n.observe("beforeload",function(){wysihtml5.dom.observe(t,r,function(t){t=i[t.type]||t.type;n.fire(t).fire(t+":textarea")});wysihtml5.dom.observe(t,["paste","drop"],function(){setTimeout(function(){n.fire("paste").fire("paste:textarea")},0)})})}}),function(n){var t=n.dom;n.toolbar.Dialog=n.lang.Dispatcher.extend({constructor:function(n,t){this.link=n;this.container=t},_observe:function(){var i,r;if(!this._observed){i=this;r=function(n){var t=i._serialize();t==i.elementToChange?i.fire("edit",t):i.fire("save",t);i.hide();n.preventDefault();n.stopPropagation()};t.observe(i.link,"click",function(){t.hasClass(i.link,"wysihtml5-command-dialog-opened")&&setTimeout(function(){i.hide()},0)});t.observe(this.container,"keydown",function(t){var u=t.keyCode;u===n.ENTER_KEY&&r(t);u===n.ESCAPE_KEY&&i.hide()});t.delegate(this.container,"[data-wysihtml5-dialog-action=save]","click",r);t.delegate(this.container,"[data-wysihtml5-dialog-action=cancel]","click",function(n){i.fire("cancel");i.hide();n.preventDefault();n.stopPropagation()});for(var f=this.container.querySelectorAll("input, select, textarea"),u=0,e=f.length,o=function(){clearInterval(i.interval)};u<e;u++)t.observe(f[u],"change",o);this._observed=!0}},_serialize:function(){for(var i=this.elementToChange||{},t=this.container.querySelectorAll("[data-wysihtml5-dialog-field]"),r=t.length,n=0;n<r;n++)i[t[n].getAttribute("data-wysihtml5-dialog-field")]=t[n].value;return i},_interpolate:function(n){for(var t,i,f=document.querySelector(":focus"),u=this.container.querySelectorAll("[data-wysihtml5-dialog-field]"),e=u.length,r=0;r<e;r++)t=u[r],t===f||n&&"hidden"===t.type||(i=t.getAttribute("data-wysihtml5-dialog-field"),i=this.elementToChange?this.elementToChange[i]||"":t.defaultValue,t.value=i)},show:function(n){var r=this,i=this.container.querySelector("input, select, textarea");if(this.elementToChange=n,this._observe(),this._interpolate(),n&&(this.interval=setInterval(function(){r._interpolate(!0)},500)),t.addClass(this.link,"wysihtml5-command-dialog-opened"),this.container.style.display="",this.fire("show"),i&&!n)try{i.focus()}catch(u){}},hide:function(){clearInterval(this.interval);this.elementToChange=null;t.removeClass(this.link,"wysihtml5-command-dialog-opened");this.container.style.display="none";this.fire("hide")}})}(wysihtml5),function(n){var t=n.dom,r={position:"relative"},i={left:0,margin:0,opacity:0,overflow:"hidden",padding:0,position:"absolute",top:0,zIndex:1},u={cursor:"inherit",fontSize:"50px",height:"50px",marginTop:"-25px",outline:0,padding:0,position:"absolute",right:"-4px",top:"50%"},f={"x-webkit-speech":"",speech:""};n.toolbar.Speech=function(e,o){var s=document.createElement("input"),h;if(n.browser.supportsSpeechApiOn(s)){h=document.createElement("div");n.lang.object(i).merge({width:o.offsetWidth+"px",height:o.offsetHeight+"px"});t.insert(s).into(h);t.insert(h).into(o);t.setStyles(u).on(s);t.setAttributes(f).on(s);t.setStyles(i).on(h);t.setStyles(r).on(o);t.observe(s,"onwebkitspeechchange"in s?"webkitspeechchange":"speechchange",function(){e.execCommand("insertText",s.value);s.value=""});t.observe(s,"click",function(n){t.hasClass(o,"wysihtml5-command-disabled")&&n.preventDefault();n.stopPropagation()})}else o.style.display="none"}}(wysihtml5),function(n){var t=n.dom;n.toolbar.Toolbar=Base.extend({constructor:function(t,i){this.editor=t;this.container="string"==typeof i?document.getElementById(i):i;this.composer=t.composer;this._getLinks("command");this._getLinks("action");this._observe();this.show();for(var u=this.container.querySelectorAll("[data-wysihtml5-command=insertSpeech]"),f=u.length,r=0;r<f;r++)new n.toolbar.Speech(this,u[r])},_getLinks:function(t){for(var e=this[t+"Links"]=n.lang.array(this.container.querySelectorAll("[data-wysihtml5-"+t+"]")).get(),h=e.length,u=0,c=this[t+"Mapping"]={},i,o,r,f,s;u<h;u++)i=e[u],r=i.getAttribute("data-wysihtml5-"+t),f=i.getAttribute("data-wysihtml5-"+t+"-value"),o=this.container.querySelector("[data-wysihtml5-"+t+"-group='"+r+"']"),s=this._getDialog(i,r),c[r+":"+f]={link:i,group:o,name:r,value:f,dialog:s,state:!1}},_getDialog:function(t,i){var r=this,u=this.container.querySelector("[data-wysihtml5-dialog='"+i+"']"),f,e;return u&&(f=new n.toolbar.Dialog(t,u),f.observe("show",function(){e=r.composer.selection.getBookmark();r.editor.fire("show:dialog",{command:i,dialogContainer:u,commandLink:t})}),f.observe("save",function(n){e&&r.composer.selection.setBookmark(e);r._execCommand(i,n);r.editor.fire("save:dialog",{command:i,dialogContainer:u,commandLink:t})}),f.observe("cancel",function(){r.editor.focus(!1);r.editor.fire("cancel:dialog",{command:i,dialogContainer:u,commandLink:t})})),f},execCommand:function(n,t){if(!this.commandsDisabled){var i=this.commandMapping[n+":"+t];i&&i.dialog&&!i.state?i.dialog.show():this._execCommand(n,t)}},_execCommand:function(n,t){this.editor.focus(!1);this.composer.commands.exec(n,t);this._updateLinkStates()},execAction:function(n){var t=this.editor;switch(n){case"change_view":t.currentView===t.textarea?t.fire("change_view","composer"):t.fire("change_view","textarea")}},_observe:function(){for(var n=this,r=this.editor,i=this.container,f=this.commandLinks.concat(this.actionLinks),e=f.length,u=0;u<e;u++)t.setAttributes({href:"javascript:;",unselectable:"on"}).on(f[u]);t.delegate(i,"[data-wysihtml5-command]","mousedown",function(n){n.preventDefault()});t.delegate(i,"[data-wysihtml5-command]","click",function(t){var i=this.getAttribute("data-wysihtml5-command"),r=this.getAttribute("data-wysihtml5-command-value");n.execCommand(i,r);t.preventDefault()});t.delegate(i,"[data-wysihtml5-action]","click",function(t){var i=this.getAttribute("data-wysihtml5-action");n.execAction(i);t.preventDefault()});r.observe("focus:composer",function(){n.bookmark=null;clearInterval(n.interval);n.interval=setInterval(function(){n._updateLinkStates()},500)});r.observe("blur:composer",function(){clearInterval(n.interval)});r.observe("destroy:composer",function(){clearInterval(n.interval)});r.observe("change_view",function(r){setTimeout(function(){n.commandsDisabled="composer"!==r;n._updateLinkStates();n.commandsDisabled?t.addClass(i,"wysihtml5-commands-disabled"):t.removeClass(i,"wysihtml5-commands-disabled")},0)})},_updateLinkStates:function(){var u=this.commandMapping,e=this.actionMapping,f,r,i;for(f in u)(i=u[f],this.commandsDisabled?(r=!1,t.removeClass(i.link,"wysihtml5-command-active"),i.group&&t.removeClass(i.group,"wysihtml5-command-active"),i.dialog&&i.dialog.hide()):(r=this.composer.commands.state(i.name,i.value),n.lang.object(r).isArray()&&(r=1===r.length?r[0]:!0),t.removeClass(i.link,"wysihtml5-command-disabled"),i.group&&t.removeClass(i.group,"wysihtml5-command-disabled")),i.state!==r)&&((i.state=r)?(t.addClass(i.link,"wysihtml5-command-active"),i.group&&t.addClass(i.group,"wysihtml5-command-active"),i.dialog&&("object"==typeof r?i.dialog.show(r):i.dialog.hide())):(t.removeClass(i.link,"wysihtml5-command-active"),i.group&&t.removeClass(i.group,"wysihtml5-command-active"),i.dialog&&i.dialog.hide()));for(f in e)u=e[f],"change_view"===u.name&&(u.state=this.editor.currentView===this.editor.textarea,u.state?t.addClass(u.link,"wysihtml5-action-active"):t.removeClass(u.link,"wysihtml5-action-active"))},show:function(){this.container.style.display=""},hide:function(){this.container.style.display="none"}})}(wysihtml5),function(n){var t={name:void 0,style:!0,toolbar:void 0,autoLink:!0,parserRules:{tags:{br:{},span:{},div:{},p:{}},classes:{}},parser:n.dom.parse,composerClassName:"wysihtml5-editor",bodyClassName:"wysihtml5-supported",stylesheets:[],placeholderText:void 0,allowObjectResizing:!0,supportTouchDevices:!0};n.Editor=n.lang.Dispatcher.extend({constructor:function(i,r){if(this.textareaElement="string"==typeof i?document.getElementById(i):i,this.config=n.lang.object({}).merge(t).merge(r).get(),this.currentView=this.textarea=new n.views.Textarea(this,this.textareaElement,this.config),this._isCompatible=n.browser.supported(),this._isCompatible&&(this.config.supportTouchDevices||!n.browser.isTouchDevice())){n.dom.addClass(document.body,this.config.bodyClassName);this.currentView=this.composer=new n.views.Composer(this,this.textareaElement,this.config);"function"==typeof this.config.parser&&this._initParser();this.observe("beforeload",function(){this.synchronizer=new n.views.Synchronizer(this,this.textarea,this.composer);this.config.toolbar&&(this.toolbar=new n.toolbar.Toolbar(this,this.config.toolbar))});try{console.log("Heya! This page is using wysihtml5 for rich text editing. Check out https://github.com/xing/wysihtml5")}catch(f){}}else{var u=this;setTimeout(function(){u.fire("beforeload").fire("load")},0)}},isCompatible:function(){return this._isCompatible},clear:function(){return this.currentView.clear(),this},getValue:function(n){return this.currentView.getValue(n)},setValue:function(n,t){return n?(this.currentView.setValue(n,t),this):this.clear()},focus:function(n){return this.currentView.focus(n),this},disable:function(){return this.currentView.disable(),this},enable:function(){return this.currentView.enable(),this},isEmpty:function(){return this.currentView.isEmpty()},hasPlaceholderSet:function(){return this.currentView.hasPlaceholderSet()},parse:function(t){var i=this.config.parser(t,this.config.parserRules,this.composer.sandbox.getDocument(),!0);return"object"==typeof t&&n.quirks.redraw(t),i},_initParser:function(){this.observe("paste:composer",function(){var t=this;t.composer.selection.executeAndRestore(function(){n.quirks.cleanPastedHTML(t.composer.element);t.parse(t.composer.element)},!0)});this.observe("paste:textarea",function(){this.textarea.setValue(this.parse(this.textarea.getValue()))})}})}(wysihtml5);!function(n,t){"use strict";var f={"font-styles":function(n,t){var i=t&&t.size?" btn-"+t.size:"";return"<li class='dropdown'><a class='btn dropdown-toggle "+i+" btn-default' data-toggle='dropdown' href='#'><i class='glyphicon glyphicon-font'><\/i>&nbsp;<span class='current-font'>"+n.font_styles.normal+"<\/span>&nbsp;<b class='caret'><\/b><\/a><ul class='dropdown-menu'><li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='div' tabindex='-1'>"+n.font_styles.normal+"<\/a><\/li><li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1' tabindex='-1'>"+n.font_styles.h1+"<\/a><\/li><li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2' tabindex='-1'>"+n.font_styles.h2+"<\/a><\/li><li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3' tabindex='-1'>"+n.font_styles.h3+"<\/a><\/li><li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h4'>"+n.font_styles.h4+"<\/a><\/li><li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h5'>"+n.font_styles.h5+"<\/a><\/li><li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h6'>"+n.font_styles.h6+"<\/a><\/li><\/ul><\/li>"},emphasis:function(n,t){var i=t&&t.size?" btn-"+t.size:"";return"<li><div class='btn-group'><a class='btn "+i+" btn-default' data-wysihtml5-command='bold' title='CTRL+B' tabindex='-1'>"+n.emphasis.bold+"<\/a><a class='btn "+i+" btn-default' data-wysihtml5-command='italic' title='CTRL+I' tabindex='-1'>"+n.emphasis.italic+"<\/a><a class='btn "+i+" btn-default' data-wysihtml5-command='underline' title='CTRL+U' tabindex='-1'>"+n.emphasis.underline+"<\/a><\/div><\/li>"},lists:function(n,t){var i=t&&t.size?" btn-"+t.size:"";return"<li><div class='btn-group'><a class='btn "+i+" btn-default' data-wysihtml5-command='insertUnorderedList' title='"+n.lists.unordered+"' tabindex='-1'><i class='glyphicon glyphicon-list'><\/i><\/a><a class='btn "+i+" btn-default' data-wysihtml5-command='insertOrderedList' title='"+n.lists.ordered+"' tabindex='-1'><i class='glyphicon glyphicon-th-list'><\/i><\/a><a class='btn "+i+" btn-default' data-wysihtml5-command='Outdent' title='"+n.lists.outdent+"' tabindex='-1'><i class='glyphicon glyphicon-indent-right'><\/i><\/a><a class='btn -"+i+" btn-default' data-wysihtml5-command='Indent' title='"+n.lists.indent+"' tabindex='-1'><i class='glyphicon glyphicon-indent-left'><\/i><\/a><\/div><\/li>"},link:function(n,t){var i=t&&t.size?" btn-"+t.size:"";return"<li><div class='bootstrap-wysihtml5-insert-link-modal modal fade'><div class='modal-dialog'><div class='modal-content'><div class='modal-header'><a class='close' data-dismiss='modal'>&times;<\/a><h4>"+n.link.insert+"<\/h4><\/div><div class='modal-body'><input value='http://' class='bootstrap-wysihtml5-insert-link-url form-control'><label class='checkbox'> <input type='checkbox' class='bootstrap-wysihtml5-insert-link-target' checked>"+n.link.target+"<\/label><\/div><div class='modal-footer'><button class='btn btn-default' data-dismiss='modal'>"+n.link.cancel+"<\/button><button href='#' class='btn btn-primary' data-dismiss='modal'>"+n.link.insert+"<\/button><\/div><\/div><\/div><\/div><a class='btn "+i+" btn-default' data-wysihtml5-command='createLink' title='"+n.link.insert+"' tabindex='-1'><i class='glyphicon glyphicon-share'><\/i><\/a><\/li>"},image:function(n,t){var i=t&&t.size?" btn-"+t.size:"";return"<li><div class='bootstrap-wysihtml5-insert-image-modal modal fade'><div class='modal-dialog'><div class='modal-content'><div class='modal-header'><a class='close' data-dismiss='modal'>&times;<\/a><h4>"+n.image.insert+"<\/h4><\/div><div class='modal-body'><input value='http://' class='bootstrap-wysihtml5-insert-image-url form-control'><\/div><div class='modal-footer'><button class='btn btn-default' data-dismiss='modal'>"+n.image.cancel+"<\/button><button class='btn btn-primary' data-dismiss='modal'>"+n.image.insert+"<\/button><\/div><\/div><\/div><\/div><a class='btn "+i+" btn-default' data-wysihtml5-command='insertImage' title='"+n.image.insert+"' tabindex='-1'><i class='glyphicon glyphicon-picture'><\/i><\/a><\/li>"},html:function(n,t){var i=t&&t.size?" btn-"+t.size:"";return"<li><div class='btn-group'><a class='btn "+i+" btn-default' data-wysihtml5-action='change_view' title='"+n.html.edit+"' tabindex='-1'><i class='glyphicon glyphicon-pencil'><\/i><\/a><\/div><\/li>"},color:function(n,t){var i=t&&t.size?" btn-"+t.size:"";return"<li class='dropdown'><a class='btn dropdown-toggle "+i+" btn-default' data-toggle='dropdown' href='#' tabindex='-1'><span class='current-color'>"+n.colours.black+"<\/span>&nbsp;<b class='caret'><\/b><\/a><ul class='dropdown-menu'><li><div class='wysihtml5-colors' data-wysihtml5-command-value='black'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='black'>"+n.colours.black+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='silver'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='silver'>"+n.colours.silver+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='gray'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='gray'>"+n.colours.gray+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='maroon'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='maroon'>"+n.colours.maroon+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='red'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='red'>"+n.colours.red+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='purple'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='purple'>"+n.colours.purple+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='green'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='green'>"+n.colours.green+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='olive'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='olive'>"+n.colours.olive+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='navy'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='navy'>"+n.colours.navy+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='blue'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='blue'>"+n.colours.blue+"<\/a><\/li><li><div class='wysihtml5-colors' data-wysihtml5-command-value='orange'><\/div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='orange'>"+n.colours.orange+"<\/a><\/li><\/ul><\/li>"}},o=function(n,t,i){return f[n](t,i)},u=function(t,i){var u,e;this.el=t;u=i||r;for(e in u.customTemplates)f[e]=u.customTemplates[e];this.toolbar=this.createToolbar(t,u);this.editor=this.createEditor(i);window.editor=this.editor;n("iframe.wysihtml5-sandbox").each(function(t,i){n(i.contentWindow).off("focus.wysihtml5").on({"focus.wysihtml5":function(){n("li.dropdown").removeClass("open")}})})},i,r,e;u.prototype={constructor:u,createEditor:function(i){var r,u;if(i=i||{},i=n.extend(!0,{},i),i.toolbar=this.toolbar[0],r=new t.Editor(this.el[0],i),i&&i.events)for(u in i.events)r.on(u,i.events[u]);return r},createToolbar:function(t,i){var h=this,f=n("<ul/>",{"class":"wysihtml5-toolbar",style:"display:none"}),c=i.locale||r.locale||"en",u,s;for(u in r)s=!1,i[u]!==undefined?i[u]===!0&&(s=!0):s=r[u],s===!0&&(f.append(o(u,e[c],i)),u==="html"&&this.initHtml(f),u==="link"&&this.initInsertLink(f),u==="image"&&this.initInsertImage(f));if(i.toolbar)for(u in i.toolbar)f.append(i.toolbar[u]);return f.find("a[data-wysihtml5-command='formatBlock']").click(function(t){var i=t.target||t.srcElement,r=n(i);h.toolbar.find(".current-font").text(r.html())}),f.find("a[data-wysihtml5-command='foreColor']").click(function(t){var i=t.target||t.srcElement,r=n(i);h.toolbar.find(".current-color").text(r.html())}),this.el.before(f),f},initHtml:function(n){var t="a[data-wysihtml5-action='change_view']";n.find(t).click(function(){n.find("a.btn").not(t).toggleClass("disabled")})},initInsertImage:function(t){var r=this,i=t.find(".bootstrap-wysihtml5-insert-image-modal"),u=i.find(".bootstrap-wysihtml5-insert-image-url"),o=i.find(".btn-primary"),s=u.val(),f,e=function(){var n=u.val();u.val(s);r.editor.currentView.element.focus();f&&(r.editor.composer.selection.setBookmark(f),f=null);r.editor.composer.commands.exec("insertImage",n)};u.keypress(function(n){n.which==13&&(e(),i.modal("hide"))});o.click(e);i.on("shown",function(){u.focus()});i.on("hide",function(){r.editor.currentView.element.focus()});t.find("a[data-wysihtml5-command=insertImage]").click(function(){var t=n(this).hasClass("wysihtml5-command-active");if(t)return!0;r.editor.currentView.element.focus(!1);f=r.editor.composer.selection.getBookmark();i.appendTo("body").modal("show");i.on("click.dismiss.modal",'[data-dismiss="modal"]',function(n){n.stopPropagation()});return!1})},initInsertLink:function(t){var r=this,i=t.find(".bootstrap-wysihtml5-insert-link-modal"),u=i.find(".bootstrap-wysihtml5-insert-link-url"),o=i.find(".bootstrap-wysihtml5-insert-link-target"),s=i.find(".btn-primary"),h=u.val(),f,e=function(){var t=u.val(),n;u.val(h);r.editor.currentView.element.focus();f&&(r.editor.composer.selection.setBookmark(f),f=null);n=o.prop("checked");r.editor.composer.commands.exec("createLink",{href:t,target:n?"_blank":"_self",rel:n?"nofollow":""})};u.keypress(function(n){n.which==13&&(e(),i.modal("hide"))});s.click(e);i.on("shown",function(){u.focus()});i.on("hide",function(){r.editor.currentView.element.focus()});t.find("a[data-wysihtml5-command=createLink]").click(function(){var t=n(this).hasClass("wysihtml5-command-active");if(t)return!0;r.editor.currentView.element.focus(!1);f=r.editor.composer.selection.getBookmark();i.appendTo("body").modal("show");i.on("click.dismiss.modal",'[data-dismiss="modal"]',function(n){n.stopPropagation()});return!1})}};i={resetDefaults:function(){n.fn.wysihtml5.defaultOptions=n.extend(!0,{},n.fn.wysihtml5.defaultOptionsCache)},bypassDefaults:function(t){return this.each(function(){var i=n(this);i.data("wysihtml5",new u(i,t))})},shallowExtend:function(t){var r=n.extend({},n.fn.wysihtml5.defaultOptions,t||{},n(this).data()),u=this;return i.bypassDefaults.apply(u,[r])},deepExtend:function(t){var r=n.extend(!0,{},n.fn.wysihtml5.defaultOptions,t||{}),u=this;return i.bypassDefaults.apply(u,[r])},init:function(n){var t=this;return i.shallowExtend.apply(t,[n])}};n.fn.wysihtml5=function(t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.wysihtml5");else return i.init.apply(this,arguments)};n.fn.wysihtml5.Constructor=u;r=n.fn.wysihtml5.defaultOptions={"font-styles":!0,color:!1,emphasis:!0,lists:!0,html:!1,link:!0,image:!0,size:"sm",events:{},parserRules:{classes:{"wysiwyg-color-silver":1,"wysiwyg-color-gray":1,"wysiwyg-color-white":1,"wysiwyg-color-maroon":1,"wysiwyg-color-red":1,"wysiwyg-color-purple":1,"wysiwyg-color-fuchsia":1,"wysiwyg-color-green":1,"wysiwyg-color-lime":1,"wysiwyg-color-olive":1,"wysiwyg-color-yellow":1,"wysiwyg-color-navy":1,"wysiwyg-color-blue":1,"wysiwyg-color-teal":1,"wysiwyg-color-aqua":1,"wysiwyg-color-orange":1},tags:{b:{},i:{},br:{},ol:{},ul:{},li:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},blockquote:{},u:1,img:{check_attributes:{width:"numbers",alt:"alt",src:"url",height:"numbers"}},a:{check_attributes:{href:"url",target:"alt",rel:"alt"}},span:1,div:1,code:1,pre:1}},stylesheets:["/Content/bootstrap3-wysiwyg5-color.css"],locale:"en"};typeof n.fn.wysihtml5.defaultOptionsCache=="undefined"&&(n.fn.wysihtml5.defaultOptionsCache=n.extend(!0,{},n.fn.wysihtml5.defaultOptions));e=n.fn.wysihtml5.locale={en:{font_styles:{normal:"Normal text",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6"},emphasis:{bold:"Bold",italic:"Italic",underline:"Underline"},lists:{unordered:"Unordered list",ordered:"Ordered list",outdent:"Outdent",indent:"Indent"},link:{insert:"Insert link",cancel:"Cancel",target:"Open link in new window"},image:{insert:"Insert image",cancel:"Cancel"},html:{edit:"Edit HTML"},colours:{black:"Black",silver:"Silver",gray:"Grey",maroon:"Maroon",red:"Red",purple:"Purple",green:"Green",olive:"Olive",navy:"Navy",blue:"Blue",orange:"Orange"}}}}(window.jQuery,window.wysihtml5);(function(n){function d(n,t,i){switch(arguments.length){case 2:return null!=n?n:t;case 3:return null!=n?n:null!=t?t:i;default:throw new Error("Implement me");}}function ft(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function g(n,i){function u(){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}var r=!0;return o(function(){return r&&(u(),r=!1),i.apply(this,arguments)},i)}function ii(n,t){return function(i){return r(n.call(this,i),t)}}function cr(n,t){return function(i){return this.lang().ordinal(n.call(this,i),t)}}function ri(){}function et(n){hi(n);o(this,n)}function ot(n){var t=fi(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*h+6e4*s+36e5*o;this._days=+e+7*f;this._months=+u+3*r+12*i;this._data={};this._bubble()}function o(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.hasOwnProperty("toString")&&(n.toString=t.toString),t.hasOwnProperty("valueOf")&&(n.valueOf=t.valueOf),n}function lr(n){var t,i={};for(t in n)n.hasOwnProperty(t)&&nr.hasOwnProperty(t)&&(i[t]=n[t]);return i}function y(n){return 0>n?Math.ceil(n):Math.floor(n)}function r(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function st(n,i,r,u){var o=i._milliseconds,f=i._days,e=i._months;u=null==u?!0:u;o&&n._d.setTime(+n._d+o*r);f&&bi(n,"Date",wt(n,"Date")+f*r);e&&wi(n,wt(n,"Month")+e*r);u&&t.updateOffset(n,f||e)}function rt(n){return"[object Array]"===Object.prototype.toString.call(n)}function ar(n){return"[object Date]"===Object.prototype.toString.call(n)||n instanceof Date}function ui(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;e>u;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function s(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=hf[n]||cf[t]||t}return n}function fi(n){var i,t,r={};for(t in n)n.hasOwnProperty(t)&&(i=s(t),i&&(r[i]=n[t]));return r}function vr(i){var r,u;if(0===i.indexOf("week"))r=7,u="day";else{if(0!==i.indexOf("month"))return;r=12;u="month"}t[i]=function(f,e){var o,s,c=t.fn._lang[i],h=[];if("number"==typeof f&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t.fn._lang,i,f||"")},null!=e)return s(e);for(o=0;r>o;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function ht(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function ei(n,i,r){return b(t([n,11,31+i-r]),i,r).week}function oi(n){return si(n)?366:365}function si(n){return n%4==0&&n%100!=0||n%400==0}function hi(n){var t;n._a&&-2===n._pf.overflow&&(t=n._a[l]<0||n._a[l]>11?l:n._a[e]<1||n._a[e]>ht(n._a[c],n._a[l])?e:n._a[a]<0||n._a[a]>23?a:n._a[nt]<0||n._a[nt]>59?nt:n._a[tt]<0||n._a[tt]>59?tt:n._a[it]<0||n._a[it]>999?it:-1,n._pf._overflowDayOfYear&&(c>t||t>e)&&(t=e),n._pf.overflow=t)}function ci(n){return null==n._isValid&&(n._isValid=!isNaN(n._d.getTime())&&n._pf.overflow<0&&!n._pf.empty&&!n._pf.invalidMonth&&!n._pf.nullInput&&!n._pf.invalidFormat&&!n._pf.userInvalidated,n._strict&&(n._isValid=n._isValid&&0===n._pf.charsLeftOver&&0===n._pf.unusedTokens.length)),n._isValid}function ct(n){return n?n.toLowerCase().replace("_","-"):n}function lt(n,i){return i._isUTC?t(n).zone(i._offset||0):t(n).local()}function yr(n,t){return t.abbr=n,p[n]||(p[n]=new ri),p[n].set(t),p[n]}function pr(n){delete p[n]}function f(n){var r,u,i,f,e=0,o=function(n){if(!p[n]&&tr)try{require("./lang/"+n)}catch(t){}return p[n]};if(!n)return t.fn._lang;if(!rt(n)){if(u=o(n))return u;n=[n]}for(;e<n.length;){for(f=ct(n[e]).split("-"),r=f.length,i=ct(n[e+1]),i=i?i.split("-"):null;r>0;){if(u=o(f.slice(0,r).join("-")))return u;if(i&&i.length>=r&&ui(f,i,!0)>=r-1)break;r--}e++}return t.fn._lang}function wr(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function br(n){for(var i=n.match(ir),t=0,r=i.length;r>t;t++)i[t]=v[i[t]]?v[i[t]]:wr(i[t]);return function(u){var f="";for(t=0;r>t;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function at(n,t){return n.isValid()?(t=li(t,n.lang()),ti[t]||(ti[t]=br(t)),ti[t](n)):n.lang().invalidDate()}function li(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ut.lastIndex=0;i>=0&&ut.test(n);)n=n.replace(ut,r),ut.lastIndex=0,i-=1;return n}function kr(n,t){var i=t._strict;switch(n){case"Q":return ur;case"DDDD":return er;case"YYYY":case"GGGG":case"gggg":return i?uf:bu;case"Y":case"G":case"g":return ef;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?ff:ku;case"S":if(i)return ur;case"SS":if(i)return fr;case"SSS":if(i)return er;case"DDD":return wu;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return gu;case"a":case"A":return f(t._l)._meridiemParse;case"X":return tf;case"Z":case"ZZ":return kt;case"T":return nf;case"SSSS":return du;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?fr:rr;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return rr;case"Do":return rf;default:return new RegExp(ru(iu(n.replace("\\","")),"i"))}}function ai(n){n=n||"";var r=n.match(kt)||[],f=r[r.length-1]||[],t=(f+"").match(sf)||["-",0,0],u=+(60*t[1])+i(t[2]);return"+"===t[0]?-u:u}function dr(n,r,u){var s,o=u._a;switch(n){case"Q":null!=r&&(o[l]=3*(i(r)-1));break;case"M":case"MM":null!=r&&(o[l]=i(r)-1);break;case"MMM":case"MMMM":s=f(u._l).monthsParse(r);null!=s?o[l]=s:u._pf.invalidMonth=r;break;case"D":case"DD":null!=r&&(o[e]=i(r));break;case"Do":null!=r&&(o[e]=i(parseInt(r,10)));break;case"DDD":case"DDDD":null!=r&&(u._dayOfYear=i(r));break;case"YY":o[c]=t.parseTwoDigitYear(r);break;case"YYYY":case"YYYYY":case"YYYYYY":o[c]=i(r);break;case"a":case"A":u._isPm=f(u._l).isPM(r);break;case"H":case"HH":case"h":case"hh":o[a]=i(r);break;case"m":case"mm":o[nt]=i(r);break;case"s":case"ss":o[tt]=i(r);break;case"S":case"SS":case"SSS":case"SSSS":o[it]=i(1e3*("0."+r));break;case"X":u._d=new Date(1e3*parseFloat(r));break;case"Z":case"ZZ":u._useUTC=!0;u._tzm=ai(r);break;case"dd":case"ddd":case"dddd":s=f(u._l).weekdaysParse(r);null!=s?(u._w=u._w||{},u._w.d=s):u._pf.invalidWeekday=r;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":n=n.substr(0,1);case"gggg":case"GGGG":case"GGGGG":n=n.substr(0,2);r&&(u._w=u._w||{},u._w[n]=i(r));break;case"gg":case"GG":u._w=u._w||{};u._w[n]=t.parseTwoDigitYear(r)}}function gr(n){var i,s,e,u,r,o,h,l;i=n._w;null!=i.GG||null!=i.W||null!=i.E?(r=1,o=4,s=d(i.GG,n._a[c],b(t(),1,4).year),e=d(i.W,1),u=d(i.E,1)):(l=f(n._l),r=l._week.dow,o=l._week.doy,s=d(i.gg,n._a[c],b(t(),r,o).year),e=d(i.w,1),null!=i.d?(u=i.d,r>u&&++e):u=null!=i.e?i.e+r:r);h=lu(s,e,u,o,r);n._a[c]=h.year;n._dayOfYear=h.dayOfYear}function vt(n){var t,i,r,u,f=[];if(!n._d){for(r=tu(n),n._w&&null==n._a[e]&&null==n._a[l]&&gr(n),n._dayOfYear&&(u=d(n._a[c],r[c]),n._dayOfYear>oi(u)&&(n._pf._overflowDayOfYear=!0),i=pt(u,0,n._dayOfYear),n._a[l]=i.getUTCMonth(),n._a[e]=i.getUTCDate()),t=0;3>t&&null==n._a[t];++t)n._a[t]=f[t]=r[t];for(;7>t;t++)n._a[t]=f[t]=null==n._a[t]?2===t?1:0:n._a[t];n._d=(n._useUTC?pt:ou).apply(null,f);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()+n._tzm)}}function nu(n){var t;n._d||(t=fi(n._i),n._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],vt(n))}function tu(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function yt(n){if(n._f===t.ISO_8601)return void vi(n);n._a=[];n._pf.empty=!0;for(var i,u,s,c=f(n._l),r=""+n._i,l=r.length,h=0,o=li(n._f,c).match(ir)||[],e=0;e<o.length;e++)u=o[e],i=(r.match(kr(u,n))||[])[0],i&&(s=r.substr(0,r.indexOf(i)),s.length>0&&n._pf.unusedInput.push(s),r=r.slice(r.indexOf(i)+i.length),h+=i.length),v[u]?(i?n._pf.empty=!1:n._pf.unusedTokens.push(u),dr(u,i,n)):n._strict&&!i&&n._pf.unusedTokens.push(u);n._pf.charsLeftOver=l-h;r.length>0&&n._pf.unusedInput.push(r);n._isPm&&n._a[a]<12&&(n._a[a]+=12);n._isPm===!1&&12===n._a[a]&&(n._a[a]=0);vt(n);hi(n)}function iu(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function ru(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function uu(n){var t,f,u,r,i;if(0===n._f.length)return n._pf.invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=o({},n),t._pf=ft(),t._f=n._f[r],yt(t),ci(t)&&(i+=t._pf.charsLeftOver,i+=10*t._pf.unusedTokens.length,t._pf.score=i,(null==u||u>i)&&(u=i,f=t));o(n,f||t)}function vi(n){var t,i,r=n._i,u=of.exec(r);if(u){for(n._pf.iso=!0,t=0,i=dt.length;i>t;t++)if(dt[t][1].exec(r)){n._f=dt[t][0]+(u[6]||" ");break}for(t=0,i=gt.length;i>t;t++)if(gt[t][1].exec(r)){n._f+=gt[t][0];break}r.match(kt)&&(n._f+="Z");yt(n)}else n._isValid=!1}function fu(n){vi(n);n._isValid===!1&&(delete n._isValid,t.createFromInputFallback(n))}function eu(i){var r=i._i,u=vu.exec(r);r===n?i._d=new Date:u?i._d=new Date(+u[1]):"string"==typeof r?fu(i):rt(r)?(i._a=r.slice(0),vt(i)):ar(r)?i._d=new Date(+r):"object"==typeof r?nu(i):"number"==typeof r?i._d=new Date(r):t.createFromInputFallback(i)}function ou(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 1970>n&&o.setFullYear(n),o}function pt(n){var t=new Date(Date.UTC.apply(null,arguments));return 1970>n&&t.setUTCFullYear(n),t}function su(n,t){if("string"==typeof n)if(isNaN(n)){if(n=t.weekdaysParse(n),"number"!=typeof n)return null}else n=parseInt(n,10);return n}function hu(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function cu(n,t,i){var o=k(Math.abs(n)/1e3),u=k(o/60),f=k(u/60),r=k(f/24),s=k(r/365),e=o<w.s&&["s",o]||1===u&&["m"]||u<w.m&&["mm",u]||1===f&&["h"]||f<w.h&&["hh",f]||1===r&&["d"]||r<=w.dd&&["dd",r]||r<=w.dm&&["M"]||r<w.dy&&["MM",k(r/30)]||1===s&&["y"]||["yy",s];return e[2]=t,e[3]=n>0,e[4]=i,hu.apply({},e)}function b(n,i,r){var f,e=r-i,u=r-n.day();return u>e&&(u-=7),e-7>u&&(u+=7),f=t(n).add("d",u),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function lu(n,t,i,r,u){var o,e,f=pt(n,0,1).getUTCDay();return f=0===f?7:f,i=null!=i?i:u,o=u-f+(f>r?7:0)-(u>f?7:0),e=7*(t-1)+(i-u)+o+1,{year:e>0?n:n-1,dayOfYear:e>0?e:oi(n-1)+e}}function yi(i){var r=i._i,u=i._f;return null===r||u===n&&""===r?t.invalid({nullInput:!0}):("string"==typeof r&&(i._i=r=f().preparse(r)),t.isMoment(r)?(i=lr(r),i._d=new Date(+r._d)):u?rt(u)?uu(i):yt(i):eu(i),new et(i))}function pi(n,i){var u,r;if(1===i.length&&rt(i[0])&&(i=i[0]),!i.length)return t();for(u=i[0],r=1;r<i.length;++r)i[r][n](u)&&(u=i[r]);return u}function wi(n,t){var i;return"string"==typeof t&&(t=n.lang().monthsParse(t),"number"!=typeof t)?n:(i=Math.min(n.date(),ht(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function wt(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function bi(n,t,i){return"Month"===t?wi(n,i):n._d["set"+(n._isUTC?"UTC":"")+t](i)}function h(n,i){return function(r){return null!=r?(bi(this,n,r),t.updateOffset(this,i),this):wt(this,n)}}function au(n){t.duration.fn[n]=function(){return this._data[n]}}function ki(n,i){t.duration.fn["as"+n]=function(){return+this/i}}function di(n){"undefined"==typeof ender&&(gi=bt.moment,bt.moment=n?g("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",t):t)}for(var t,gi,u,bt="undefined"!=typeof global?global:this,k=Math.round,c=0,l=1,e=2,a=3,nt=4,tt=5,it=6,p={},nr={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_tzm:null,_isUTC:null,_offset:null,_pf:null,_lang:null},tr="undefined"!=typeof module&&module.exports,vu=/^\/?Date\((\-?\d+)/i,yu=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,pu=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,ir=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,ut=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,rr=/\d\d?/,wu=/\d{1,3}/,bu=/\d{1,4}/,ku=/[+\-]?\d{1,6}/,du=/\d+/,gu=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,kt=/Z|[\+\-]\d\d:?\d\d/gi,nf=/T/i,tf=/[\+\-]?\d+(\.\d{1,3})?/,rf=/\d{1,2}/,ur=/\d/,fr=/\d\d/,er=/\d{3}/,uf=/\d{4}/,ff=/[+-]?\d{6}/,ef=/[+-]?\d+/,of=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],gt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],sf=/([\+\-]|\d\d)/gi,ni=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),hf={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},cf={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},ti={},w={s:45,m:45,h:22,dd:25,dm:45,dy:345},or="DDD w W M D d".split(" "),sr="M D H h m s w W".split(" "),v={M:function(){return this.month()+1},MMM:function(n){return this.lang().monthsShort(this,n)},MMMM:function(n){return this.lang().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.lang().weekdaysMin(this,n)},ddd:function(n){return this.lang().weekdaysShort(this,n)},dddd:function(n){return this.lang().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var n=this.year(),t=n>=0?"+":"-";return t+r(Math.abs(n),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return r(i(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+r(i(n/60),2)+":"+r(i(n)%60,2)},ZZ:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+r(i(n/60),2)+r(i(n)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},hr=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];or.length;)u=or.pop(),v[u+"o"]=cr(v[u],u);for(;sr.length;)u=sr.pop(),v[u+u]=ii(v[u],2);for(v.DDDD=ii(v.DDD,3),o(ri.prototype,{set:function(n){var t,i;for(i in n)t=n[i],"function"==typeof t?this[i]=t:this["_"+i]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n){var i,r,u;for(this._monthsParse||(this._monthsParse=[]),i=0;12>i;i++)if(this._monthsParse[i]||(r=t.utc([2e3,i]),u="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),this._monthsParse[i].test(n))return i},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;7>i;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return"p"===(n+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t){var i=this._calendar[n];return"function"==typeof i?i.apply(t):i},_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"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return"function"==typeof u?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return"function"==typeof i?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",preparse:function(n){return n},postformat:function(n){return n},week:function(n){return b(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){var f;return"boolean"==typeof r&&(u=r,r=n),f={},f._isAMomentObject=!0,f._i=t,f._f=i,f._l=r,f._strict=u,f._isUTC=!1,f._pf=ft(),yi(f)},t.suppressDeprecationWarnings=!1,t.createFromInputFallback=g("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(n){n._d=new Date(n._i)}),t.min=function(){var n=[].slice.call(arguments,0);return pi("isBefore",n)},t.max=function(){var n=[].slice.call(arguments,0);return pi("isAfter",n)},t.utc=function(t,i,r,u){var f;return"boolean"==typeof r&&(u=r,r=n),f={},f._isAMomentObject=!0,f._useUTC=!0,f._isUTC=!0,f._l=r,f._i=t,f._f=i,f._strict=u,f._pf=ft(),yi(f).utc()},t.unix=function(n){return t(1e3*n)},t.duration=function(n,r){var f,h,o,s=n,u=null;return t.isDuration(n)?s={ms:n._milliseconds,d:n._days,M:n._months}:"number"==typeof n?(s={},r?s[r]=n:s.milliseconds=n):(u=yu.exec(n))?(f="-"===u[1]?-1:1,s={y:0,d:i(u[e])*f,h:i(u[a])*f,m:i(u[nt])*f,s:i(u[tt])*f,ms:i(u[it])*f}):(u=pu.exec(n))&&(f="-"===u[1]?-1:1,o=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*f},s={y:o(u[2]),M:o(u[3]),d:o(u[4]),h:o(u[5]),m:o(u[6]),s:o(u[7]),w:o(u[8])}),h=new ot(s),t.isDuration(n)&&n.hasOwnProperty("_lang")&&(h._lang=n._lang),h},t.version="2.7.0",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.ISO_8601=function(){},t.momentProperties=nr,t.updateOffset=function(){},t.relativeTimeThreshold=function(t,i){return w[t]===n?!1:(w[t]=i,!0)},t.lang=function(n,i){var r;return n?(i?yr(ct(n),i):null===i?(pr(n),n="en"):p[n]||f(n),r=t.duration.fn._lang=t.fn._lang=f(n),r._abbr):t.fn._lang._abbr},t.langData=function(n){return n&&n._lang&&n._lang._abbr&&(n=n._lang._abbr),f(n)},t.isMoment=function(n){return n instanceof et||null!=n&&n.hasOwnProperty("_isAMomentObject")},t.isDuration=function(n){return n instanceof ot},u=hr.length-1;u>=0;--u)vr(hr[u]);t.normalizeUnits=function(n){return s(n)};t.invalid=function(n){var i=t.utc(NaN);return null!=n?o(i._pf,n):i._pf.userInvalidated=!0,i};t.parseZone=function(){return t.apply(null,arguments).parseZone()};t.parseTwoDigitYear=function(n){return i(n)+(i(n)>68?1900:2e3)};o(t.fn=et.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var n=t(this).utc();return 0<n.year()&&n.year()<=9999?at(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):at(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return ci(this)},isDSTShifted:function(){return this._a?this.isValid()&&ui(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return o({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(n){var i=at(this,n||t.defaultFormat);return this.lang().postformat(i)},add:function(n,i){var r;return r="string"==typeof n&&"string"==typeof i?t.duration(isNaN(+i)?+n:+i,isNaN(+i)?i:n):"string"==typeof n?t.duration(+i,n):t.duration(n,i),st(this,r,1),this},subtract:function(n,i){var r;return r="string"==typeof n&&"string"==typeof i?t.duration(isNaN(+i)?+n:+i,isNaN(+i)?i:n):"string"==typeof n?t.duration(+i,n):t.duration(n,i),st(this,r,-1),this},diff:function(n,i,r){var u,e,f=lt(n,this),o=6e4*(this.zone()-f.zone());return i=s(i),"year"===i||"month"===i?(u=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-t(this).startOf("month")-(f-t(f).startOf("month")))/u,e-=6e4*(this.zone()-t(this).startOf("month").zone()-(f.zone()-t(f).startOf("month").zone()))/u,"year"===i&&(e/=12)):(u=this-f,e="second"===i?u/1e3:"minute"===i?u/6e4:"hour"===i?u/36e5:"day"===i?(u-o)/864e5:"week"===i?(u-o)/6048e5:u),r?e:y(e)},from:function(n,i){return t.duration(this.diff(n)).lang(this.lang()._abbr).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(n){var r=n||t(),u=lt(r,this).startOf("day"),i=this.diff(u,"days",!0),f=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(this.lang().calendar(f,this))},isLeapYear:function(){return si(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=su(n,this.lang()),this.add({d:n-t})):t},month:h("Month",!0),startOf:function(n){switch(n=s(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n?this.weekday(0):"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(n){return n=s(n),this.startOf(n).add("isoWeek"===n?"week":n,1).subtract("ms",1)},isAfter:function(n,i){return i="undefined"!=typeof i?i:"millisecond",+this.clone().startOf(i)>+t(n).startOf(i)},isBefore:function(n,i){return i="undefined"!=typeof i?i:"millisecond",+this.clone().startOf(i)<+t(n).startOf(i)},isSame:function(n,t){return t=t||"ms",+this.clone().startOf(t)==+lt(n,this).startOf(t)},min:g("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),this>n?this:n}),max:g("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),n>this?this:n}),zone:function(n,i){var r=this._offset||0;return null==n?this._isUTC?r:this._d.getTimezoneOffset():("string"==typeof n&&(n=ai(n)),Math.abs(n)<16&&(n=60*n),this._offset=n,this._isUTC=!0,r!==n&&(!i||this._changeInProgress?st(this,t.duration(r-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(n){return n=n?t(n).zone():0,(this.zone()-n)%60==0},daysInMonth:function(){return ht(this.year(),this.month())},dayOfYear:function(n){var i=k((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return null==n?i:this.add("d",n-i)},quarter:function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)},weekYear:function(n){var t=b(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==n?t:this.add("y",n-t)},isoWeekYear:function(n){var t=b(this,1,4).year;return null==n?t:this.add("y",n-t)},week:function(n){var t=this.lang().week(this);return null==n?t:this.add("d",7*(n-t))},isoWeek:function(n){var t=b(this,1,4).week;return null==n?t:this.add("d",7*(n-t))},weekday:function(n){var t=(this.day()+7-this.lang()._week.dow)%7;return null==n?t:this.add("d",n-t)},isoWeekday:function(n){return null==n?this.day()||7:this.day(this.day()%7?n:n-7)},isoWeeksInYear:function(){return ei(this.year(),1,4)},weeksInYear:function(){var n=this._lang._week;return ei(this.year(),n.dow,n.doy)},get:function(n){return n=s(n),this[n]()},set:function(n,t){return n=s(n),"function"==typeof this[n]&&this[n](t),this},lang:function(t){return t===n?this._lang:(this._lang=f(t),this)}});t.fn.millisecond=t.fn.milliseconds=h("Milliseconds",!1);t.fn.second=t.fn.seconds=h("Seconds",!1);t.fn.minute=t.fn.minutes=h("Minutes",!1);t.fn.hour=t.fn.hours=h("Hours",!0);t.fn.date=h("Date",!0);t.fn.dates=g("dates accessor is deprecated. Use date instead.",h("Date",!0));t.fn.year=h("FullYear",!0);t.fn.years=g("years accessor is deprecated. Use year instead.",h("FullYear",!0));t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.quarters=t.fn.quarter;t.fn.toJSON=t.fn.toISOString;o(t.duration.fn=ot.prototype,{_bubble:function(){var t,i,r,e,o=this._milliseconds,u=this._days,f=this._months,n=this._data;n.milliseconds=o%1e3;t=y(o/1e3);n.seconds=t%60;i=y(t/60);n.minutes=i%60;r=y(i/60);n.hours=r%24;u+=y(r/24);n.days=u%30;f+=y(u/30);n.months=f%12;e=y(f/12);n.years=e},weeks:function(){return y(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*i(this._months/12)},humanize:function(n){var i=+this,t=cu(i,!n,this.lang());return n&&(t=this.lang().pastFuture(i,t)),this.lang().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=s(n),this[n.toLowerCase()+"s"]()},as:function(n){return n=s(n),this["as"+n.charAt(0).toUpperCase()+n.slice(1)+"s"]()},lang:t.fn.lang,toIsoString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"}});for(u in ni)ni.hasOwnProperty(u)&&(ki(u,ni[u]),au(u.toLowerCase()));ki("Weeks",6048e5);t.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()};t.lang("en",{ordinal:function(n){var t=n%10,r=1===i(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+r}});tr?module.exports=t:"function"==typeof define&&define.amd?(define("moment",function(n,i,r){return r.config&&r.config()&&r.config().noGlobal===!0&&(bt.moment=gi),t}),di(!0)):di()}).call(this);(function(n){var t,rt,h,o,w,c,wt,l="Close",bt="BeforeClose",ii="AfterClose",ri="BeforeAppend",ut="MarkupParse",ft="Open",kt="Change",et="mfp",u="."+et,b="mfp-ready",dt="mfp-removing",ot="mfp-prevent-close",k=function(){},st=!!window.jQuery,f=n(window),r=function(n,i){t.ev.on(et+n+u,i)},e=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(et+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},ht=function(i){return i===wt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),wt=i),t.currTemplate.closeBtn},ct=function(){n.magnificPopup.instance||(t=new k,t.init(),n.magnificPopup.instance=t)},ui=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==n.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in n)return!0;return!1},v,d,g,nt,lt,s,ni,vt,ti,tt,pt,it;k.prototype={constructor:k,init:function(){var i=navigator.appVersion;t.isIE7=-1!==i.indexOf("MSIE 7.");t.isIE8=-1!==i.indexOf("MSIE 8.");t.isLowIE=t.isIE7||t.isIE8;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=ui();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);o=n(document);t.popupsCache={}},open:function(s){var l,a,w,k,v,d,y,g,p;if(h||(h=n(document.body)),s.isObj===!1){for(t.items=s.items.toArray(),t.index=0,w=s.items,l=0;w.length>l;l++)if(a=w[l],a.parsed&&(a=a.el[0]),a===s.el[0]){t.index=l;break}}else t.items=n.isArray(s.items)?s.items:[s.items],t.index=s.index||0;if(t.isOpen)return t.updateItemHTML(),void 0;for(t.types=[],c="",t.ev=s.mainEl&&s.mainEl.length?s.mainEl.eq(0):o,s.key?(t.popupsCache[s.key]||(t.popupsCache[s.key]={}),t.currTemplate=t.popupsCache[s.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,s),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=e("bg").on("click"+u,function(){t.close()}),t.wrap=e("wrap").attr("tabindex",-1).on("click"+u,function(n){t._checkIfClose(n.target)&&t.close()}),t.container=e("container",t.wrap)),t.contentContainer=e("content"),t.st.preloader&&(t.preloader=e("preloader",t.container,t.st.tLoading)),k=n.magnificPopup.modules,l=0;k.length>l;l++)v=k[l],v=v.charAt(0).toUpperCase()+v.slice(1),t["init"+v].call(t);return i("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(r(ut,function(n,t,i,r){i.close_replaceWith=ht(r.type)}),c+=" mfp-close-btn-in"):t.wrap.append(ht())),t.st.alignTop&&(c+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:f.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+u,function(n){27===n.keyCode&&t.close()}),f.on("resize"+u,function(){t.updateSize()}),t.st.closeOnContentClick||(c+=" mfp-auto-cursor"),c&&t.wrap.addClass(c),d=t.wH=f.height(),y={},t.fixedContentPos&&t._hasScrollBar(d)&&(g=t._getScrollbarSize(),g&&(y.marginRight=g)),t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):y.overflow="hidden"),p=t.st.mainClass,t.isIE7&&(p+=" mfp-ie7"),p&&t._addClassToMFP(p),t.updateItemHTML(),i("BuildControls"),n("html").css(y),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||h),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(b),t._setFocus()):t.bgOverlay.addClass(b);o.on("focusin"+u,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),i(ft),s},close:function(){t.isOpen&&(i(bt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(dt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,f;i(l);r=dt+" "+b+" ";(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(r+=t.st.mainClass+" "),t._removeClassFromMFP(r),t.fixedContentPos)&&(f={marginRight:""},t.isIE7?n("body, html").css("overflow",""):f.overflow="",n("html").css(f));o.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(ii)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||f.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;(i("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=u,t.currTemplate[r])||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);w&&w!==u.type&&t.container.removeClass("mfp-"+w+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(kt,u);w=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(ht()):t.content=n:t.content="";i(ri);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var o,u=t.items[r],e,f;if(u.tagName?u={el:n(u)}:(o=u.type,u={data:u,src:u.src}),u.el){for(e=t.types,f=0;e.length>f;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;i||(i={});r="click.magnificPopup";i.mainEl=n;i.items?(i.isObj=!0,n.off(r).on(r,u)):(i.isObj=!1,i.delegate?n.off(r).on(r,i.delegate,u):(i.items=n,n.off(r).on(r,u)))},_openClick:function(i,r,u){var o=void 0!==u.midClick?u.midClick:n.magnificPopup.defaults.midClick,e;if(o||2!==i.which&&!i.ctrlKey&&!i.metaKey){if(e=void 0!==u.disableOn?u.disableOn:n.magnificPopup.defaults.disableOn,e)if(n.isFunction(e)){if(!e.call(t))return!0}else if(e>f.width())return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){rt!==n&&t.container.removeClass("mfp-s-"+rt);r||"loading"!==n||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);rt=n}},_checkIfClose:function(i){if(!n(i).hasClass(ot)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?o.height():document.body.scrollHeight)>(n||f.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return(t._setFocus(),!1)},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(ut,[t,r,f]);n.each(r,function(n,i){var r,f;if(void 0===i||i===!1)return!0;(e=n.split("_"),e.length>1)?(r=t.find(u+"-"+e[0]),r.length>0&&(f=e[1],"replaceWith"===f?r[0]!==i[0]&&r.replaceWith(i):"img"===f?r.is("img")?r.attr("src",i):r.replaceWith('<img src="'+i+'" class="'+r.attr("class")+'" />'):r.attr(e[1],i))):t.find(u+"-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var n=document.createElement("div");n.id="mfp-sbm";n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:k.prototype,modules:[],open:function(t,i){return ct(),t=t?n.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return n.magnificPopup.instance&&n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;<\/button>',tClose:"Close (Esc)",tLoading:"Loading..."}};n.fn.magnificPopup=function(i){var r,u,f,e;return ct(),r=n(this),"string"==typeof i?"open"===i?(f=st?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(i=n.extend(!0,{},i),st?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};nt="inline";lt=function(){g&&(d.after(g.addClass(v)).detach(),g=null)};n.magnificPopup.registerModule(nt,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(nt);r(l+"."+nt,function(){lt()})},getInline:function(i,r){var f,u,o;return(lt(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(o=u[0].parentNode,o&&o.tagName&&(d||(v=f.hiddenClass,d=e(v),v="mfp-"+v),g=u.after(d).detach().removeClass(v)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});var y,p="ajax",at=function(){y&&h.removeClass(y)},gt=function(){at();t.req&&t.req.abort()};n.magnificPopup.registerModule(p,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content<\/a> could not be loaded.'},proto:{initAjax:function(){t.types.push(p);y=t.st.ajax.cursor;r(l+"."+p,gt);r("BeforeChange."+p,gt)},getAjax:function(r){y&&h.addClass(y);t.updateStatus("loading");var u=n.extend({url:r.src,success:function(u,f,e){var o={data:u,xhr:e};i("ParseAjax",o);t.appendContent(n(o.data),p);r.finished=!0;at();t._setFocus();setTimeout(function(){t.wrap.addClass(b)},16);t.updateStatus("ready");i("AjaxContentAdded")},error:function(){at();r.finished=r.loadError=!0;t.updateStatus("error",t.st.ajax.tError.replace("%url%",r.src))}},t.st.ajax.settings);return t.req=n.ajax(u),""}}});ni=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><figure><div class="mfp-img"><\/div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/figcaption><\/figure><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image");r(ft+i,function(){"image"===t.currItem.type&&n.cursor&&h.addClass(n.cursor)});r(l+i,function(){n.cursor&&h.removeClass(n.cursor);f.off("resize"+u)});r("Resize"+i,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,s&&clearInterval(s),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){s&&clearInterval(s);s=setInterval(function(){return u.naturalWidth>0?(t._onImageHasSize(n),void 0):(i>200&&clearInterval(s),i++,3===i?r(10):40===i?r(50):100===i&&r(500),void 0)},f)};r(1)},getImage:function(r,u){var e=0,o=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(e++,200>e?setTimeout(o,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return l.length&&(f=document.createElement("img"),f.className="mfp-img",r.img=n(f).on("load.mfploader",o).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),f=r.img[0],f.naturalWidth>0?r.hasSize=!0:f.width||(r.hasSize=!1)),t._parseMarkup(u,{title:ni(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize?(s&&clearInterval(s),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});ti=function(){return void 0===vt&&(vt=void 0!==document.createElement("p").style.MozTransform),vt};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var u,f=t.st.zoom,o=".zoom";if(f.enabled&&t.supportsTransition){var e,n,h=f.duration,c=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),u="all "+f.duration/1e3+"s "+f.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=u,r.css(t),r},s=function(){t.content.css("visibility","visible")};r("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.content.css("visibility","hidden"),u=t._getItemToZoom(),!u)return s(),void 0;n=c(u);n.css(t._getOffset());t.wrap.append(n);e=setTimeout(function(){n.css(t._getOffset(!0));e=setTimeout(function(){s();setTimeout(function(){n.remove();u=n=null;i("ZoomAnimationEnded")},16)},h)},16)}});r(bt+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.st.removalDelay=h,!u){if(u=t._getItemToZoom(),!u)return;n=c(u)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(l+o,function(){t._allowZoom()&&(s(),n&&n.remove(),u=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(st?r.innerHeight():r[0].offsetHeight)-o-e},ti()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var a="iframe",fi="//about:blank",yt=function(n){if(t.currTemplate[a]){var i=t.currTemplate[a].find("iframe");i.length&&(n||(i[0].src=fi),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(a,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(a);r("BeforeChange",function(n,t,i){t!==i&&(t===a?yt():i===a&&yt(!0))});r(l+"."+a,function(){yt()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return(this.id&&(u="string"==typeof this.id?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1)}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});tt=function(n){var i=t.items.length;return n>i-1?n-i:0>n?i+n:n};pt=function(n,t,i){return n.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery",f=Boolean(n.fn.mfpFastClick);return t.direction=!0,u&&u.enabled?(c+=" mfp-gallery",r(ft+i,function(){u.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return(t.next(),!1)});o.on("keydown"+i,function(n){37===n.keyCode?t.prev():39===n.keyCode&&t.next()})}),r("UpdateStatus"+i,function(n,i){i.text&&(i.text=pt(i.text,t.currItem.index,t.items.length))}),r(ut+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?pt(u.tCounter,f.index,e):""}),r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var o=u.arrowMarkup,i=t.arrowLeft=n(o.replace(/%title%/gi,u.tPrev).replace(/%dir%/gi,"left")).addClass(ot),r=t.arrowRight=n(o.replace(/%title%/gi,u.tNext).replace(/%dir%/gi,"right")).addClass(ot),s=f?"mfpFastClick":"click";i[s](function(){t.prev()});r[s](function(){t.next()});t.isIE7&&(e("b",i[0],!1,!0),e("a",i[0],!1,!0),e("b",r[0],!1,!0),e("a",r[0],!1,!0));t.container.append(i.add(r))}}),r(kt+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)}),r(l+i,function(){o.off(i);t.wrap.off("click"+i);t.arrowLeft&&f&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick();t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0;t.index=tt(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=tt(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;(t.direction?u:r)>=n;n++)t._preloadItem(t.index+n);for(n=1;(t.direction?r:u)>=n;n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=tt(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);"image"===u.type&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});it="retina";n.magnificPopup.registerModule(it,{options:{replaceSrc:function(n){return n.src.replace(/\.\w+$/,function(n){return"@2x"+n})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=t.st.retina,n=i.ratio;n=isNaN(n)?n():n;n>1&&(r("ImageHasSize."+it,function(t,i){i.img.css({"max-width":i.img[0].naturalWidth/n,width:"100%"})}),r("ElementParse."+it,function(t,r){r.src=i.replaceSrc(r,n)}))}}}}),function(){var u=1e3,i="ontouchstart"in window,r=function(){f.off("touchmove"+t+" touchend"+t)},t=".mfpFastClick";n.fn.mfpFastClick=function(e){return n(this).each(function(){var s,l=n(this),a,v,y,h,o,c;if(i)l.on("touchstart"+t,function(n){h=!1;c=1;o=n.originalEvent?n.originalEvent.touches[0]:n.touches[0];v=o.clientX;y=o.clientY;f.on("touchmove"+t,function(n){o=n.originalEvent?n.originalEvent.touches:n.touches;c=o.length;o=o[0];(Math.abs(o.clientX-v)>10||Math.abs(o.clientY-y)>10)&&(h=!0,r())}).on("touchend"+t,function(n){r();h||c>1||(s=!0,n.preventDefault(),clearTimeout(a),a=setTimeout(function(){s=!1},u),e())})});l.on("click"+t,function(){s||e()})})};n.fn.destroyMfpFastClick=function(){n(this).off("touchstart"+t+" click"+t);i&&f.off("touchmove"+t+" touchend"+t)}}();ct()})(window.jQuery||window.Zepto);!function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return"undefined"==typeof n},toStr:function(n){return t.isUndefined(n)||null===n?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if((r=i.call(null,u,n,t)))return!1}),!!r):r},mixin:n.extend,getUniqueId:function(){var n=0;return function(){return n++}}(),templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f,e,o=this,s=arguments;return f=function(){r=null;i||(u=n.apply(o,s))},e=i&&!r,clearTimeout(r),r=setTimeout(f,t),e&&(u=n.apply(o,s)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,0>=h?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},noop:function(){}}}(),l="0.10.5",a=function(){"use strict";function n(n){return n=t.toStr(n),n?n.split(/\s+/):[]}function i(n){return n=t.toStr(n),n?n.split(/\W+/):[]}function r(n){return function(){var i=[].slice.call(arguments,0);return function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:i,whitespace:n,obj:{nonword:r(i),whitespace:r(n)}}}(),o=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100;this.reset();this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var i,r=this.list.tail;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key]);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return(this.list.moveToFront(t),t.val)},reset:function(){this.size=0;this.hash={};this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),i}(),v=function(){"use strict";function i(n){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix))}function r(){return(new Date).getTime()}function u(n){return JSON.stringify(t.isUndefined(n)?null:n)}function f(n){return JSON.parse(n)}var n,e;try{n=window.localStorage;n.setItem("~~~","!");n.removeItem("~~~")}catch(o){n=null}return e=n&&window.JSON?{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),f(n.getItem(this._prefix(t)))},set:function(i,f,e){return t.isNumber(e)?n.setItem(this._ttlKey(i),u(r()+e)):n.removeItem(this._ttlKey(i)),n.setItem(this._prefix(i),u(f))},remove:function(t){return n.removeItem(this._ttlKey(t)),n.removeItem(this._prefix(t)),this},clear:function(){for(var r,i=[],u=n.length,t=0;u>t;t++)(r=n.key(t)).match(this.keyMatcher)&&i.push(r.replace(this.keyMatcher,""));for(t=i.length;t--;)this.remove(i[t]);return this},isExpired:function(i){var u=f(n.getItem(this._ttlKey(i)));return t.isNumber(u)&&r()>u?!0:!1}}:{get:t.noop,set:t.noop,remove:t.noop,clear:t.noop,isExpired:t.noop},t.mixin(i.prototype,e),i}(),s=function(){"use strict";function i(t){t=t||{};this.cancelled=!1;this.lastUrl=null;this._send=t.transport?s(t.transport):n.ajax;this._get=t.rateLimiter?t.rateLimiter(this._get):this._get;this._cache=t.cache===!1?new o(0):e}function s(i){return function(r,u){function e(n){t.defer(function(){f.resolve(n)})}function o(n){t.defer(function(){f.reject(n)})}var f=n.Deferred();return i(r,u,e,o),f}}var r=0,u={},f=6,e=new o(10);return i.setMaxPendingRequests=function(n){f=n},i.resetCache=function(){e.reset()},t.mixin(i.prototype,{_get:function(n,t,i){function o(t){i&&i(null,t);e._cache.set(n,t)}function s(){i&&i(!0)}function c(){r--;delete u[n];e.onDeckRequestArgs&&(e._get.apply(e,e.onDeckRequestArgs),e.onDeckRequestArgs=null)}var h,e=this;this.cancelled||n!==this.lastUrl||((h=u[n])?h.done(o).fail(s):f>r?(r++,u[n]=this._send(n,t).done(o).fail(s).always(c)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(n,i,r){var u;return t.isFunction(i)&&(r=i,i={}),this.cancelled=!1,this.lastUrl=n,(u=this._cache.get(n))?t.defer(function(){r&&r(null,u)}):this._get(n,i,r),!!u},cancel:function(){this.cancelled=!0}}),i}(),y=function(){"use strict";function i(t){t=t||{};t.datumTokenizer&&t.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.datumTokenizer=t.datumTokenizer;this.queryTokenizer=t.queryTokenizer;this.reset()}function r(n){return n=t.filter(n,function(n){return!!n}),n=t.map(n,function(n){return n.toLowerCase()})}function u(){return{ids:[],children:{}}}function f(n){for(var i={},r=[],t=0,u=n.length;u>t;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function e(n,t){function u(n,t){return n-t}var i=0,r=0,f=[],e,o;for(n=n.sort(u),t=t.sort(u),e=n.length,o=t.length;e>i&&o>r;)n[i]<t[r]?i++:n[i]>t[r]?r++:(f.push(n[i]),i++,r++);return f}return t.mixin(i.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var i=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var f,e;f=i.datums.push(n)-1;e=r(i.datumTokenizer(n));t.each(e,function(n){for(var r,t=i.trie,e=n.split("");r=e.shift();)t=t.children[r]||(t.children[r]=u()),t.ids.push(f)})})},get:function(n){var u,i,o=this;return u=r(this.queryTokenizer(n)),t.each(u,function(n){var t,r,f,u;if(i&&0===i.length)return!1;for(t=o.trie,r=n.split("");t&&(f=r.shift());)t=t.children[f];return t&&0===r.length?(u=t.ids.slice(0),void(i=i?e(i,u):u)):(i=[],!1)}),i?t.map(f(i),function(n){return o.datums[n]}):[]},reset:function(){this.datums=[];this.trie=u()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),i}(),f=function(){"use strict";function i(n){return n.local||null}function r(i){var r,u;return u={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(r=i.prefetch||null)&&(r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.thumbprint=l+r.thumbprint,r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",!r.url&&n.error("prefetch requires url to be set")),r}function u(i){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var r,u;return u={url:null,cache:!0,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(r=i.remote||null)&&(r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.rateLimiter=/^throttle$/i.test(r.rateLimitBy)?e(r.rateLimitWait):f(r.rateLimitWait),r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",delete r.rateLimitBy,delete r.rateLimitWait,!r.url&&n.error("remote requires url to be set")),r}return{local:i,prefetch:r,remote:u}}();!function(i){"use strict";function u(t){t&&(t.local||t.prefetch||t.remote)||n.error("one of local, prefetch, or remote is required");this.limit=t.limit||5;this.sorter=o(t.sorter);this.dupDetector=t.dupDetector||h;this.local=f.local(t);this.prefetch=f.prefetch(t);this.remote=f.remote(t);this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null;this.index=new y({datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer});this.storage=this.cacheKey?new v(this.cacheKey):null}function o(n){function i(t){return t.sort(n)}function r(n){return n}return t.isFunction(n)?i:r}function h(){return!1}var e,r;return e=i.Bloodhound,r={data:"data",protocol:"protocol",thumbprint:"thumbprint"},i.Bloodhound=u,u.noConflict=function(){return i.Bloodhound=e,u},u.tokenizers=a,t.mixin(u.prototype,{_loadPrefetch:function(t){function f(n){i.clear();i.add(t.filter?t.filter(n):n);i._saveToStorage(i.index.serialize(),t.thumbprint,t.ttl)}var u,r,i=this;return(u=this._readFromStorage(t.thumbprint))?(this.index.bootstrap(u),r=n.Deferred().resolve()):r=n.ajax(t.url,t.ajax).done(f),r},_getFromRemote:function(n,t){function f(n,i){t(n?[]:u.remote.filter?u.remote.filter(i):i)}var i,r,u=this;if(this.transport)return n=n||"",r=encodeURIComponent(n),i=this.remote.replace?this.remote.replace(this.remote.url,n):this.remote.url.replace(this.remote.wildcard,r),this.transport.get(i,this.remote.ajax,f)},_cancelLastRemoteRequest:function(){this.transport&&this.transport.cancel()},_saveToStorage:function(n,t,i){this.storage&&(this.storage.set(r.data,n,i),this.storage.set(r.protocol,location.protocol,i),this.storage.set(r.thumbprint,t,i))},_readFromStorage:function(n){var i,t={};return this.storage&&(t.data=this.storage.get(r.data),t.protocol=this.storage.get(r.protocol),t.thumbprint=this.storage.get(r.thumbprint)),i=t.thumbprint!==n||t.protocol!==location.protocol,t.data&&!i?t.data:null},_initialize:function(){function u(){f.add(t.isFunction(i)?i():i)}var r,f=this,i=this.local;return r=this.prefetch?this._loadPrefetch(this.prefetch):n.Deferred().resolve(),i&&r.done(u),this.transport=this.remote?new s(this.remote):null,this.initPromise=r.promise()},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){this.index.add(n)},get:function(n,i){function e(n){var f=r.slice(0);t.each(n,function(n){var i;return i=t.some(f,function(t){return u.dupDetector(n,t)}),!i&&f.push(n),f.length<u.limit});i&&i(u.sorter(f))}var u=this,r=[],f=!1;r=this.index.get(n);r=this.sorter(r).slice(0,this.limit);r.length<this.limit?f=this._getFromRemote(n,e):this._cancelLastRemoteRequest();f||(r.length>0||!this.transport)&&i&&i(r)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&s.resetCache()},ttAdapter:function(){return t.bind(this.get,this)}}),u}(this);var r=function(){return{wrapper:'<span class="twitter-typeahead"><\/span>',dropdown:'<span class="tt-dropdown-menu"><\/span>',dataset:'<div class="tt-dataset-%CLASS%"><\/div>',suggestions:'<span class="tt-suggestions"><\/span>',suggestion:'<div class="tt-suggestion"><\/div>'}}(),i=function(){"use strict";var n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t.isMsie()&&t.isMsie()<=7&&t.mixin(n.input,{marginTop:"-1px"}),n}(),h=function(){"use strict";function i(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var r="typeahead:";return t.mixin(i.prototype,{trigger:function(n){var t=[].slice.call(arguments,1);this.$el.trigger(r+n,t)}}),i}(),e=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?s(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function r(n,i,r){return t.call(this,"async",n,i,r)}function u(n,i,r){return t.call(this,"sync",n,i,r)}function f(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function e(t){var r,u,f,e,o;if(!this._callbacks)return this;for(t=t.split(n),f=[].slice.call(arguments,1);(r=t.shift())&&(u=this._callbacks[r]);)e=i(u.sync,this,[r].concat(f)),o=i(u.async,this,[r].concat(f)),e()&&h(o);return this}function i(n,t,i){function r(){for(var r,u=0,f=n.length;!r&&f>u;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function o(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function s(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,h=o();return{onSync:u,onAsync:r,off:f,trigger:e}}(),p=function(n){"use strict";function i(n,i,r){for(var u,f=[],e=0,o=n.length;o>e;e++)f.push(t.escapeRegExChars(n[e]));return u=r?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",i?new RegExp(u):new RegExp(u,"i")}var r={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r,f;return(i=e.exec(t.data))&&(f=n.createElement(u.tagName),u.className&&(f.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),f.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(f,r)),!!i}function f(n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:f(i,t)}var e;u=t.mixin({},r,u);u.node&&u.pattern&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],e=i(u.pattern,u.caseSensitive,u.wordsOnly),f(u.node,o))}}(window.document),c=function(){"use strict";function i(i){var r,e,o,s,h=this;i=i||{};i.input||n.error("input is missing");r=t.bind(this._onBlur,this);e=t.bind(this._onFocus,this);o=t.bind(this._onKeydown,this);s=t.bind(this._onInput,this);this.$hint=n(i.hint);this.$input=n(i.input).on("blur.tt",r).on("focus.tt",e).on("keydown.tt",o);0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop);t.isMsie()?this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(n){u[n.which||n.keyCode]||t.defer(t.bind(h._onInput,h,n))}):this.$input.on("input.tt",s);this.query=this.$input.val();this.$overflowHelper=f(this.$input)}function f(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function r(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return(n||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,e,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(n,t){var i,u,f;switch(n){case"tab":u=this.getHint();f=this.getInputValue();i=u&&u!==f&&!r(t);break;case"up":case"down":i=!r(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!r(t);break;default:i=!0}return i},_checkInputValue:function(){var n,t,i;n=this.getInputValue();t=o(n,this.query);i=t?this.query.length!==n.length:!1;this.query=n;t?i&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(n){this.query=n},getInputValue:function(){return this.$input.val()},setInputValue:function(n,t){this.$input.val(n);t?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&0===t.indexOf(n);r=""!==n&&i&&!this.hasOverflow();!r&&this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i)?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$hint=this.$input=this.$overflowHelper=null}}),i}(),u=function(){"use strict";function u(i){i=i||{};i.templates=i.templates||{};i.source||n.error("missing source");i.name&&!l(i.name)&&n.error("invalid dataset name: "+i.name);this.query=null;this.highlight=!!i.highlight;this.name=i.name||t.getUniqueId();this.source=i.source;this.displayFn=h(i.display||i.displayKey);this.templates=c(i.templates,this.displayFn);this.$el=n(r.dataset.replace("%CLASS%",this.name))}function h(n){function i(t){return t[n]}return n=n||"value",t.isFunction(n)?n:i}function c(n,i){function r(n){return"<p>"+i(n)+"<\/p>"}return{empty:n.empty&&t.templatify(n.empty),header:n.header&&t.templatify(n.header),footer:n.footer&&t.templatify(n.footer),suggestion:n.suggestion||r}}function l(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var f="ttDataset",o="ttValue",s="ttDatum";return u.extractDatasetName=function(t){return n(t).data(f)},u.extractValue=function(t){return n(t).data(o)},u.extractDatum=function(t){return n(t).data(s)},t.mixin(u.prototype,e,{_render:function(u,e){function v(){return h.templates.empty({query:u,isEmpty:!0})}function y(){function a(t){var u;return u=n(r.suggestion).append(h.templates.suggestion(t)).data(f,h.name).data(o,h.displayFn(t)).data(s,t),u.children().each(function(){n(this).css(i.suggestionChild)}),u}var c,l;return c=n(r.suggestions).css(i.suggestions),l=t.map(e,a),c.append.apply(c,l),h.highlight&&p({className:"tt-highlight",node:c[0],pattern:u}),c}function l(){return h.templates.header({query:u,isEmpty:!c})}function a(){return h.templates.footer({query:u,isEmpty:!c})}if(this.$el){var c,h=this;this.$el.empty();c=e&&e.length;!c&&this.templates.empty?this.$el.html(v()).prepend(h.templates.header?l():null).append(h.templates.footer?a():null):c&&this.$el.html(y()).prepend(h.templates.header?l():null).append(h.templates.footer?a():null);this.trigger("rendered")}},getRoot:function(){return this.$el},update:function(n){function i(i){t.canceled||n!==t.query||t._render(n,i)}var t=this;this.query=n;this.canceled=!1;this.source(n,i)},cancel:function(){this.canceled=!0},clear:function(){this.cancel();this.$el.empty();this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),u}(),w=function(){"use strict";function r(i){var u,e,o,r=this;i=i||{};i.menu||n.error("menu is required");this.isOpen=!1;this.isEmpty=!0;this.datasets=t.map(i.datasets,f);u=t.bind(this._onSuggestionClick,this);e=t.bind(this._onSuggestionMouseEnter,this);o=t.bind(this._onSuggestionMouseLeave,this);this.$menu=n(i.menu).on("click.tt",".tt-suggestion",u).on("mouseenter.tt",".tt-suggestion",e).on("mouseleave.tt",".tt-suggestion",o);t.each(this.datasets,function(n){r.$menu.append(n.getRoot());n.onSync("rendered",r._onRendered,r)})}function f(n){return new u(n)}return t.mixin(r.prototype,e,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",n(t.currentTarget))},_onSuggestionMouseEnter:function(t){this._removeCursor();this._setCursor(n(t.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){function n(n){return n.isEmpty()}this.isEmpty=t.every(this.datasets,n);this.isEmpty?this._hide():this.isOpen&&this._show();this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block")},_getSuggestions:function(){return this.$menu.find(".tt-suggestion")},_getCursor:function(){return this.$menu.find(".tt-cursor").first()},_setCursor:function(n,t){n.first().addClass("tt-cursor");t||this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function(n){var i,r,t,u;if(this.isOpen){if(r=this._getCursor(),i=this._getSuggestions(),this._removeCursor(),t=i.index(r)+n,t=(t+1)%(i.length+1)-1,-1===t)return void this.trigger("cursorRemoved");-1>t&&(t=i.length-1);this._setCursor(u=i.eq(t));this._ensureVisible(u)}},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$menu.scrollTop();u=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10);0>t?this.$menu.scrollTop(r+t):i>u&&this.$menu.scrollTop(r+(i-u))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,!this.isEmpty&&this._show(),this.trigger("opened"))},setLanguageDirection:function(n){this.$menu.css("ltr"===n?i.ltr:i.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(n){var t=null;return n.length&&(t={raw:u.extractDatum(n),value:u.extractValue(n),datasetName:u.extractDatasetName(n)}),t},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(n){function i(t){t.update(n)}t.each(this.datasets,i)},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function n(n){n.destroy()}this.$menu.off(".tt");this.$menu=null;t.each(this.datasets,n)}}),r}(),b=function(){"use strict";function f(i){var r,u,f;i=i||{};i.input||n.error("missing input");this.isActivated=!1;this.autoselect=!!i.autoselect;this.minLength=t.isNumber(i.minLength)?i.minLength:1;this.$node=e(i.input,i.withHint);r=this.$node.find(".tt-dropdown-menu");u=this.$node.find(".tt-input");f=this.$node.find(".tt-hint");u.on("blur.tt",function(n){var i,f,e;i=document.activeElement;f=r.is(i);e=r.has(i).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){u.focus()}))});r.on("mousedown.tt",function(n){n.preventDefault()});this.eventBus=i.eventBus||new h({el:u});this.dropdown=new w({menu:r,datasets:i.datasets}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this);this.input=new c({input:u,hint:f}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this);this._setLanguageDirection()}function e(t,f){var e,h,c,s;e=n(t);h=n(r.wrapper).css(i.wrapper);c=n(r.dropdown).css(i.dropdown);s=e.clone().css(i.hint).css(o(e));s.val("").removeData().addClass("tt-hint").removeAttr("id name placeholder required").prop("readonly",!0).attr({autocomplete:"off",spellcheck:"false",tabindex:-1});e.data(u,{dir:e.attr("dir"),autocomplete:e.attr("autocomplete"),spellcheck:e.attr("spellcheck"),style:e.attr("style")});e.addClass("tt-input").attr({autocomplete:"off",spellcheck:!1}).css(f?i.input:i.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return e.wrap(h).parent().prepend(f?s:null).append(c)}function o(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function s(n){var i=n.find(".tt-input");t.each(i.data(u),function(n,r){t.isUndefined(n)?i.removeAttr(r):i.attr(r,n)});i.detach().removeData(u).removeClass("tt-input").insertAfter(n);n.remove()}var u="ttAttrs";return t.mixin(f.prototype,{_onSuggestionClicked:function(n,t){var i;(i=this.dropdown.getDatumForSuggestion(t))&&this._select(i)},_onCursorMoved:function(){var n=this.dropdown.getDatumForCursor();this.input.setInputValue(n.value,!0);this.eventBus.trigger("cursorchanged",n.raw,n.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue();this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint();this.eventBus.trigger("opened")},_onClosed:function(){this.input.clearHint();this.eventBus.trigger("closed")},_onFocused:function(){this.isActivated=!0;this.dropdown.open()},_onBlurred:function(){this.isActivated=!1;this.dropdown.empty();this.dropdown.close()},_onEnterKeyed:function(n,t){var i,r;i=this.dropdown.getDatumForCursor();r=this.dropdown.getDatumForTopSuggestion();i?(this._select(i),t.preventDefault()):this.autoselect&&r&&(this._select(r),t.preventDefault())},_onTabKeyed:function(n,t){var i;(i=this.dropdown.getDatumForCursor())?(this._select(i),t.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close();this.input.resetInputValue()},_onUpKeyed:function(){var n=this.input.getQuery();this.dropdown.isEmpty&&n.length>=this.minLength?this.dropdown.update(n):this.dropdown.moveCursorUp();this.dropdown.open()},_onDownKeyed:function(){var n=this.input.getQuery();this.dropdown.isEmpty&&n.length>=this.minLength?this.dropdown.update(n):this.dropdown.moveCursorDown();this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(n,t){this.input.clearHintIfInvalid();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty();this.dropdown.open();this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint();this.dropdown.open()},_setLanguageDirection:function(){var n;this.dir!==(n=this.input.getLanguageDirection())&&(this.dir=n,this.$node.css("direction",n),this.dropdown.setLanguageDirection(n))},_updateHint:function(){var n,i,u,f,e,r;n=this.dropdown.getDatumForTopSuggestion();n&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(i=this.input.getInputValue(),u=c.normalizeQuery(i),f=t.escapeRegExChars(u),e=new RegExp("^(?:"+f+")(.+$)","i"),r=e.exec(n.value),r?this.input.setHint(i+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(n){var i,r,u,t;i=this.input.getHint();r=this.input.getQuery();u=n||this.input.isCursorAtEnd();i&&r!==i&&u&&(t=this.dropdown.getDatumForTopSuggestion(),t&&this.input.setInputValue(t.value),this.eventBus.trigger("autocompleted",t.raw,t.datasetName))},_select:function(n){this.input.setQuery(n.value);this.input.setInputValue(n.value,!0);this._setLanguageDirection();this.eventBus.trigger("selected",n.raw,n.datasetName);this.dropdown.close();t.defer(t.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(n){n=t.toStr(n);this.isActivated?this.input.setInputValue(n):(this.input.setQuery(n),this.input.setInputValue(n,!0));this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy();this.dropdown.destroy();s(this.$node);this.$node=null}}),f}();!function(){"use strict";var u,i,r;u=n.fn.typeahead;i="ttTypeahead";r={initialize:function(r,u){function f(){var o,e,f=n(this);t.each(u,function(n){n.highlight=!!r.highlight});e=new b({input:f,eventBus:o=new h({el:f}),withHint:t.isUndefined(r.hint)?!0:!!r.hint,minLength:r.minLength,autoselect:r.autoselect,datasets:u});f.data(i,e)}return u=t.isArray(u)?u:[].slice.call(arguments,1),r=r||{},this.each(f)},open:function(){function t(){var t,r=n(this);(t=r.data(i))&&t.open()}return this.each(t)},close:function(){function t(){var t,r=n(this);(t=r.data(i))&&t.close()}return this.each(t)},val:function(t){function r(){var r,u=n(this);(r=u.data(i))&&r.setVal(t)}function u(n){var t,r;return(t=n.data(i))&&(r=t.getVal()),r}return arguments.length?this.each(r):u(this.first())},destroy:function(){function t(){var t,r=n(this);(t=r.data(i))&&(t.destroy(),r.removeData(i))}return this.each(t)}};n.fn.typeahead=function(t){var u;return r[t]&&"initialize"!==t?(u=this.filter(function(){return!!n(this).data(i)}),r[t].apply(u,[].slice.call(arguments,1))):r.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=u,this}}()}(window.jQuery);(function(n){var t={version:"1.0.6",protocol:location.protocol.match(/https/i)?"https":"http",swfURL:"",loaded:!1,live:!1,userMedia:!0,params:{width:0,height:0,dest_width:0,dest_height:0,image_format:"jpeg",jpeg_quality:90,force_flash:!1,flip_horiz:!1,fps:30,upload_name:"webcam",constraints:null},hooks:{},init:function(){var t=this;this.mediaDevices=navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?navigator.mediaDevices:navigator.mozGetUserMedia||navigator.webkitGetUserMedia?{getUserMedia:function(n){return new Promise(function(t,i){(navigator.mozGetUserMedia||navigator.webkitGetUserMedia).call(navigator,n,t,i)})}}:null;n.URL=n.URL||n.webkitURL||n.mozURL||n.msURL;this.userMedia=this.userMedia&&!!this.mediaDevices&&!!n.URL;navigator.userAgent.match(/Firefox\D+(\d+)/)&&parseInt(RegExp.$1,10)<21&&(this.userMedia=null);this.userMedia&&n.addEventListener("beforeunload",function(){t.reset()})},attach:function(i){var o,u,f,r,e,s,h,c;if(typeof i=="string"&&(i=document.getElementById(i)||document.querySelector(i)),!i)return this.dispatch("error","Could not locate DOM element to attach to.");this.container=i;i.innerHTML="";o=document.createElement("div");i.appendChild(o);this.peg=o;this.params.width||(this.params.width=i.offsetWidth);this.params.height||(this.params.height=i.offsetHeight);this.params.dest_width||(this.params.dest_width=this.params.width);this.params.dest_height||(this.params.dest_height=this.params.height);this.params.force_flash&&(this.userMedia=null);typeof this.params.fps!="number"&&(this.params.fps=30);u=this.params.width/this.params.dest_width;f=this.params.height/this.params.dest_height;this.userMedia?(r=document.createElement("video"),r.setAttribute("autoplay","autoplay"),r.style.width=""+this.params.dest_width+"px",r.style.height=""+this.params.dest_height+"px",(u!=1||f!=1)&&(i.style.overflow="hidden",r.style.webkitTransformOrigin="0px 0px",r.style.mozTransformOrigin="0px 0px",r.style.msTransformOrigin="0px 0px",r.style.oTransformOrigin="0px 0px",r.style.transformOrigin="0px 0px",r.style.webkitTransform="scaleX("+u+") scaleY("+f+")",r.style.mozTransform="scaleX("+u+") scaleY("+f+")",r.style.msTransform="scaleX("+u+") scaleY("+f+")",r.style.oTransform="scaleX("+u+") scaleY("+f+")",r.style.transform="scaleX("+u+") scaleY("+f+")"),i.appendChild(r),this.video=r,e=this,this.mediaDevices.getUserMedia({audio:!1,video:this.params.constraints||{mandatory:{minWidth:this.params.dest_width,minHeight:this.params.dest_height}}}).then(function(t){r.src=n.URL.createObjectURL(t)||t;e.stream=t;e.loaded=!0;e.live=!0;e.dispatch("load");e.dispatch("live");e.flip()}).catch(function(n){return e.dispatch("error","Could not access webcam: "+n.name+": "+n.message,n)})):(n.Webcam=t,s=document.createElement("div"),s.innerHTML=this.getSWFHTML(),i.appendChild(s));this.params.crop_width&&this.params.crop_height?(h=Math.floor(this.params.crop_width*u),c=Math.floor(this.params.crop_height*f),i.style.width=""+h+"px",i.style.height=""+c+"px",i.style.overflow="hidden",i.scrollLeft=Math.floor(this.params.width/2-h/2),i.scrollTop=Math.floor(this.params.height/2-c/2)):(i.style.width=""+this.params.width+"px",i.style.height=""+this.params.height+"px")},reset:function(){if(this.preview_active&&this.unfreeze(),this.unflip(),this.userMedia){if(this.stream)if(this.stream.getVideoTracks){var n=this.stream.getVideoTracks();n&&n[0]&&n[0].stop&&n[0].stop()}else this.stream.stop&&this.stream.stop();delete this.stream;delete this.video}this.userMedia!==!0&&this.getMovie()._releaseCamera();this.container&&(this.container.innerHTML="",delete this.container);this.loaded=!1;this.live=!1},set:function(){if(arguments.length==1)for(var n in arguments[0])this.params[n]=arguments[0][n];else this.params[arguments[0]]=arguments[1]},on:function(n,t){n=n.replace(/^on/i,"").toLowerCase();this.hooks[n]||(this.hooks[n]=[]);this.hooks[n].push(t)},off:function(n,t){if(n=n.replace(/^on/i,"").toLowerCase(),this.hooks[n])if(t){var i=this.hooks[n].indexOf(t);i>-1&&this.hooks[n].splice(i,1)}else this.hooks[n]=[]},dispatch:function(){var i=arguments[0].replace(/^on/i,"").toLowerCase(),r=Array.prototype.slice.call(arguments,1),u,f,t;if(this.hooks[i]&&this.hooks[i].length){for(u=0,f=this.hooks[i].length;u<f;u++)t=this.hooks[i][u],typeof t=="function"?t.apply(this,r):typeof t=="object"&&t.length==2?t[0][t[1]].apply(t[0],r):n[t]&&n[t].apply(n,r);return!0}return i=="error"&&alert("Webcam.js Error: "+r[0]),!1},setSWFLocation:function(n){this.swfURL=n},detectFlash:function(){var u="Shockwave Flash",f="application/x-shockwave-flash",s=n,t=navigator,i=!1,e,r,o;if(typeof t.plugins!="undefined"&&typeof t.plugins[u]=="object")e=t.plugins[u].description,e&&typeof t.mimeTypes!="undefined"&&t.mimeTypes[f]&&t.mimeTypes[f].enabledPlugin&&(i=!0);else if(typeof s.ActiveXObject!="undefined")try{r=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");r&&(o=r.GetVariable("$version"),o&&(i=!0))}catch(h){}return i},getSWFHTML:function(){var r,f,i,e,u,t,o;if(location.protocol.match(/file/))return this.dispatch("error","Flash does not work from local disk.  Please run from a web server."),'<h3 style="color:red">ERROR: the Webcam.js Flash fallback does not work from local disk.  Please run it from a web server.<\/h3>';if(!this.detectFlash())return this.dispatch("error","Adobe Flash Player not found.  Please install from get.adobe.com/flashplayer and try again."),'<h3 style="color:red">ERROR: No Adobe Flash Player detected.  Webcam.js relies on Flash for browsers that do not support getUserMedia (like yours).<\/h3>';if(!this.swfURL){for(r="",f=document.getElementsByTagName("script"),i=0,e=f.length;i<e;i++)u=f[i].getAttribute("src"),u&&u.match(/\/webcam(\.min)?\.js/)&&(r=u.replace(/\/webcam(\.min)?\.js.*$/,""),i=e);this.swfURL=r?r+"/webcam.swf":"webcam.swf"}n.localStorage&&!localStorage.getItem("visited")&&(this.params.new_user=1,localStorage.setItem("visited",1));t="";for(o in this.params)t&&(t+="&"),t+=o+"="+escape(this.params[o]);return""+('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" type="application/x-shockwave-flash" codebase="'+this.protocol+'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+this.params.width+'" height="'+this.params.height+'" id="webcam_movie_obj" align="middle"><param name="wmode" value="opaque" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+this.swfURL+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+t+'"/><embed id="webcam_movie_embed" src="'+this.swfURL+'" wmode="opaque" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+this.params.width+'" height="'+this.params.height+'" name="webcam_movie_embed" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+t+'"><\/embed><\/object>')},getMovie:function(){if(!this.loaded)return this.dispatch("error","Flash Movie is not loaded yet");var n=document.getElementById("webcam_movie_obj");return n&&n._snap||(n=document.getElementById("webcam_movie_embed")),n||this.dispatch("error","Cannot locate Flash movie in DOM"),n},freeze:function(){var r=this,u=this.params,t,i,f;this.preview_active&&this.unfreeze();t=this.params.width/this.params.dest_width;i=this.params.height/this.params.dest_height;this.unflip();var e=u.crop_width||u.dest_width,o=u.crop_height||u.dest_height,n=document.createElement("canvas");n.width=e;n.height=o;f=n.getContext("2d");this.preview_canvas=n;this.preview_context=f;(t!=1||i!=1)&&(n.style.webkitTransformOrigin="0px 0px",n.style.mozTransformOrigin="0px 0px",n.style.msTransformOrigin="0px 0px",n.style.oTransformOrigin="0px 0px",n.style.transformOrigin="0px 0px",n.style.webkitTransform="scaleX("+t+") scaleY("+i+")",n.style.mozTransform="scaleX("+t+") scaleY("+i+")",n.style.msTransform="scaleX("+t+") scaleY("+i+")",n.style.oTransform="scaleX("+t+") scaleY("+i+")",n.style.transform="scaleX("+t+") scaleY("+i+")");this.snap(function(){n.style.position="relative";n.style.left=""+r.container.scrollLeft+"px";n.style.top=""+r.container.scrollTop+"px";r.container.insertBefore(n,r.peg);r.container.style.overflow="hidden";r.preview_active=!0},n)},unfreeze:function(){this.preview_active&&(this.container.removeChild(this.preview_canvas),delete this.preview_context,delete this.preview_canvas,this.preview_active=!1,this.flip())},flip:function(){if(this.params.flip_horiz){var n=this.container.style;n.webkitTransform="scaleX(-1)";n.mozTransform="scaleX(-1)";n.msTransform="scaleX(-1)";n.oTransform="scaleX(-1)";n.transform="scaleX(-1)";n.filter="FlipH";n.msFilter="FlipH"}},unflip:function(){if(this.params.flip_horiz){var n=this.container.style;n.webkitTransform="scaleX(1)";n.mozTransform="scaleX(1)";n.msTransform="scaleX(1)";n.oTransform="scaleX(1)";n.transform="scaleX(1)";n.filter="";n.msFilter=""}},savePreview:function(n,t){var r=this.params,i=this.preview_canvas,f=this.preview_context,u;t&&(u=t.getContext("2d"),u.drawImage(i,0,0));n(t?null:i.toDataURL("image/"+r.image_format,r.jpeg_quality/100),i,f);this.unfreeze()},snap:function(n,t){var s=this,i=this.params,r,u,f,o,e;return this.loaded?n?this.preview_active?(this.savePreview(n,t),null):(r=document.createElement("canvas"),r.width=this.params.dest_width,r.height=this.params.dest_height,u=r.getContext("2d"),this.params.flip_horiz&&(u.translate(i.dest_width,0),u.scale(-1,1)),f=function(){var f,e,o;this.src&&this.width&&this.height&&u.drawImage(this,0,0,i.dest_width,i.dest_height);i.crop_width&&i.crop_height&&(f=document.createElement("canvas"),f.width=i.crop_width,f.height=i.crop_height,e=f.getContext("2d"),e.drawImage(r,Math.floor(i.dest_width/2-i.crop_width/2),Math.floor(i.dest_height/2-i.crop_height/2),i.crop_width,i.crop_height,0,0,i.crop_width,i.crop_height),u=e,r=f);t&&(o=t.getContext("2d"),o.drawImage(r,0,0));n(t?null:r.toDataURL("image/"+i.image_format,i.jpeg_quality/100),r,u)},this.userMedia?(u.drawImage(this.video,0,0,this.params.dest_width,this.params.dest_height),f()):(o=this.getMovie()._snap(),e=new Image,e.onload=f,e.src="data:image/"+this.params.image_format+";base64,"+o),null):this.dispatch("error","Please provide a callback function or canvas to snap()"):this.dispatch("error","Webcam is not loaded yet")},configure:function(n){n||(n="camera");this.getMovie()._configure(n)},flashNotify:function(n,t){switch(n){case"flashLoadComplete":this.loaded=!0;this.dispatch("load");break;case"cameraLive":this.live=!0;this.dispatch("live");this.flip();break;case"error":this.dispatch("error",t)}},b64ToUint6:function(n){return n>64&&n<91?n-65:n>96&&n<123?n-71:n>47&&n<58?n+4:n===43?62:n===47?63:0},base64DecToArr:function(n,t){for(var s=n.replace(/[^A-Za-z0-9\+\/]/g,""),r=s.length,h=t?Math.ceil((r*3+1>>2)/t)*t:r*3+1>>2,c=new Uint8Array(h),u,f,e=0,o=0,i=0;i<r;i++)if(f=i&3,e|=this.b64ToUint6(s.charCodeAt(i))<<18-6*f,f===3||r-i==1){for(u=0;u<3&&o<h;u++,o++)c[o]=e>>>(16>>>u&24)&255;e=0}return c},upload:function(n,i,r){var o=this.params.upload_name||"webcam",f="",s,u,h,c,e;if(n.match(/^data\:image\/(\w+)/))f=RegExp.$1;else throw"Cannot locate image format in Data URI";s=n.replace(/^data\:image\/\w+\;base64\,/,"");u=new XMLHttpRequest;u.open("POST",i,!0);u.upload&&u.upload.addEventListener&&u.upload.addEventListener("progress",function(n){if(n.lengthComputable){var i=n.loaded/n.total;t.dispatch("uploadProgress",i,n)}},!1);h=this;u.onload=function(){r&&r.apply(h,[u.status,u.responseText,u.statusText]);t.dispatch("uploadComplete",u.status,u.responseText,u.statusText)};c=new Blob([this.base64DecToArr(s)],{type:"image/"+f});e=new FormData;e.append(o,c,o+"."+f.replace(/e/,""));u.send(e)}};t.init();typeof define=="function"&&define.amd?define(function(){return t}):typeof module=="object"&&module.exports?module.exports=t:n.Webcam=t})(window);(function(){function u(n){return!!n.exifdata}function v(n,t){var i;t=t||n.match(/^data\:([^\;]+)\;base64,/mi)[1]||"";n=n.replace(/^data\:([^\;]+)\;base64,/gmi,"");var r=atob(n),u=r.length,f=new ArrayBuffer(u),e=new Uint8Array(f);for(i=0;i<u;i++)e[i]=r.charCodeAt(i);return f}function y(n,t){var i=new XMLHttpRequest;i.open("GET",n,!0);i.responseType="blob";i.onload=function(){(this.status==200||this.status===0)&&t(this.response)};i.send()}function p(n,t){function f(i){var r=s(i),u=w(i);n.exifdata=r||{};n.iptcdata=u||{};t&&t.call(n)}var e,u,r;n.src?/^data\:/i.test(n.src)?(e=v(n.src),f(e)):/^blob\:/i.test(n.src)?(r=new FileReader,r.onload=function(n){f(n.target.result)},y(n.src,function(n){r.readAsArrayBuffer(n)})):(u=new XMLHttpRequest,u.onload=function(){if(this.status==200||this.status===0)f(u.response);else throw"Could not load image";u=null},u.open("GET",n.src,!0),u.responseType="arraybuffer",u.send(null)):window.FileReader&&(n instanceof window.Blob||n instanceof window.File)&&(r=new FileReader,r.onload=function(n){i&&console.log("Got file of length "+n.target.result.byteLength);f(n.target.result)},r.readAsArrayBuffer(n))}function s(n){var r=new DataView(n),t,f,u;if(i&&console.log("Got file of length "+n.byteLength),r.getUint8(0)!=255||r.getUint8(1)!=216)return i&&console.log("Not a valid JPEG"),!1;for(t=2,f=n.byteLength;t<f;){if(r.getUint8(t)!=255)return i&&console.log("Not a valid marker at offset "+t+", found: "+r.getUint8(t)),!1;if(u=r.getUint8(t+1),i&&console.log(u),u==225)return i&&console.log("Found 0xFFE1 marker"),d(r,t+4,r.getUint16(t+2)-2);t+=2+r.getUint16(t+2)}}function w(n){var u=new DataView(n),t,f,e;if(i&&console.log("Got file of length "+n.byteLength),u.getUint8(0)!=255||u.getUint8(1)!=216)return i&&console.log("Not a valid JPEG"),!1;for(var r=2,o=n.byteLength,s=function(n,t){return n.getUint8(t)===56&&n.getUint8(t+1)===66&&n.getUint8(t+2)===73&&n.getUint8(t+3)===77&&n.getUint8(t+4)===4&&n.getUint8(t+5)===4};r<o;){if(s(u,r))return t=u.getUint8(r+7),t%2!=0&&(t+=1),t===0&&(t=4),f=r+8+t,e=u.getUint16(r+6+t),b(n,f,e);r++}}function b(n,t,i){for(var s=new DataView(n),r={},h,u,c,l,a,o=t;o<t+i;)s.getUint8(o)===28&&s.getUint8(o+1)===2&&(l=s.getUint8(o+2),l in e&&(c=s.getInt16(o+3),a=c+5,u=e[l],h=f(s,o+5,c),r.hasOwnProperty(u)?r[u]instanceof Array?r[u].push(h):r[u]=[r[u],h]:r[u]=h)),o++;return r}function o(n,t,r,u,f){for(var c=n.getUint16(r,!f),h={},e,s,o=0;o<c;o++)e=r+o*12+2,s=u[n.getUint16(e,!f)],!s&&i&&console.log("Unknown tag: "+n.getUint16(e,!f)),h[s]=k(n,e,t,r,f);return h}function k(n,t,i,r,u){var y=n.getUint16(t+2,!u),s=n.getUint32(t+4,!u),h=n.getUint32(t+8,!u)+i,c,o,v,e,l,a;switch(y){case 1:case 7:if(s==1)return n.getUint8(t+8,!u);for(c=s>4?h:t+8,o=[],e=0;e<s;e++)o[e]=n.getUint8(c+e);return o;case 2:return c=s>4?h:t+8,f(n,c,s-1);case 3:if(s==1)return n.getUint16(t+8,!u);for(c=s>2?h:t+8,o=[],e=0;e<s;e++)o[e]=n.getUint16(c+2*e,!u);return o;case 4:if(s==1)return n.getUint32(t+8,!u);for(o=[],e=0;e<s;e++)o[e]=n.getUint32(h+4*e,!u);return o;case 5:if(s==1)return l=n.getUint32(h,!u),a=n.getUint32(h+4,!u),v=new Number(l/a),v.numerator=l,v.denominator=a,v;for(o=[],e=0;e<s;e++)l=n.getUint32(h+8*e,!u),a=n.getUint32(h+4+8*e,!u),o[e]=new Number(l/a),o[e].numerator=l,o[e].denominator=a;return o;case 9:if(s==1)return n.getInt32(t+8,!u);for(o=[],e=0;e<s;e++)o[e]=n.getInt32(h+4*e,!u);return o;case 10:if(s==1)return n.getInt32(h,!u)/n.getInt32(h+4,!u);for(o=[],e=0;e<s;e++)o[e]=n.getInt32(h+8*e,!u)/n.getInt32(h+4+8*e,!u);return o}}function f(t,i,r){var u="";for(n=i;n<i+r;n++)u+=String.fromCharCode(t.getUint8(n));return u}function d(n,t){var h,v,u,e,y,s,p;if(f(n,t,4)!="Exif")return i&&console.log("Not valid EXIF data! "+f(n,t,4)),!1;if(s=t+6,n.getUint16(s)==18761)h=!1;else if(n.getUint16(s)==19789)h=!0;else return i&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;if(n.getUint16(s+2,!h)!=42)return i&&console.log("Not valid TIFF data! (no 0x002A)"),!1;if(p=n.getUint32(s+4,!h),p<8)return i&&console.log("Not valid TIFF data! (First offset less than 8)",n.getUint32(s+4,!h)),!1;if(v=o(n,s,s+p,l,h),v.ExifIFDPointer){e=o(n,s,s+v.ExifIFDPointer,c,h);for(u in e){switch(u){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":e[u]=r[u][e[u]];break;case"ExifVersion":case"FlashpixVersion":e[u]=String.fromCharCode(e[u][0],e[u][1],e[u][2],e[u][3]);break;case"ComponentsConfiguration":e[u]=r.Components[e[u][0]]+r.Components[e[u][1]]+r.Components[e[u][2]]+r.Components[e[u][3]]}v[u]=e[u]}}if(v.GPSInfoIFDPointer){y=o(n,s,s+v.GPSInfoIFDPointer,a,h);for(u in y){switch(u){case"GPSVersionID":y[u]=y[u][0]+"."+y[u][1]+"."+y[u][2]+"."+y[u][3]}v[u]=y[u]}}return v}var i=!1,h=this,t=function(n){if(n instanceof t)return n;if(!(this instanceof t))return new t(n);this.EXIFwrapped=n},e;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=t),exports.EXIF=t):h.EXIF=t;var c=t.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},l=t.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},a=t.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},r=t.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};e={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};t.getData=function(n,t){return(n instanceof Image||n instanceof HTMLImageElement)&&!n.complete?!1:(u(n)?t&&t.call(n):p(n,t),!0)};t.getTag=function(n,t){if(u(n))return n.exifdata[t]};t.getAllTags=function(n){if(!u(n))return{};var t,i=n.exifdata,r={};for(t in i)i.hasOwnProperty(t)&&(r[t]=i[t]);return r};t.pretty=function(n){if(!u(n))return"";var t,i=n.exifdata,r="";for(t in i)i.hasOwnProperty(t)&&(r+=typeof i[t]=="object"?i[t]instanceof Number?t+" : "+i[t]+" ["+i[t].numerator+"/"+i[t].denominator+"]\r\n":t+" : ["+i[t].length+" values]\r\n":t+" : "+i[t]+"\r\n");return r};t.readFromBinaryFile=function(n){return s(n)};typeof define=="function"&&define.amd&&define("exif-js",[],function(){return t})}).call(this);(function(n){n.Jcrop=function(t,i){function h(n){return Math.round(n)+"px"}function ft(n){return r.baseClass+"-"+n}function bi(){return n.fx.step.hasOwnProperty("backgroundColor")}function et(t){var i=n(t).offset();return[i.left,i.top]}function nt(n){return[n.pageX-b[0],n.pageY-b[1]]}function ri(t){typeof t!="object"&&(t={});r=n.extend(r,t);n.each(["onChange","onSelect","onRelease","onDblClick"],function(n,t){typeof r[t]!="function"&&(r[t]=function(){})})}function ui(n,t,i){if(b=et(e),p.setCursor(n==="move"?n:n+"-resize"),n==="move")return p.activateHandlers(di(t),pt,i);var u=s.getFixed(),r=fi(n),f=s.getCorner(fi(r));s.setPressed(s.getCorner(r));s.setCurrent(f);p.activateHandlers(ki(n,u),pt,i)}function ki(n,t){return function(i){if(r.aspectRatio)switch(n){case"e":i[1]=t.y+1;break;case"w":i[1]=t.y+1;break;case"n":i[0]=t.x+1;break;case"s":i[0]=t.x+1}else switch(n){case"e":i[1]=t.y2;break;case"w":i[1]=t.y2;break;case"n":i[0]=t.x2;break;case"s":i[0]=t.x2}s.setCurrent(i);u.update()}}function di(n){var t=n;return kt.watchKeys(),function(n){s.moveOffset([n[0]-t[0],n[1]-t[1]]);t=n;u.update()}}function fi(n){switch(n){case"n":return"sw";case"s":return"nw";case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function ei(n){return function(t){return r.disabled?!1:n==="move"&&!r.allowMove?!1:(b=et(e),ut=!0,ui(n,nt(t)),t.stopPropagation(),t.preventDefault(),!1)}}function oi(n,t,i){var r=n.width(),u=n.height();r>t&&t>0&&(r=t,u=t/n.width()*n.height());u>i&&i>0&&(u=i,r=i/n.height()*n.width());l=n.width()/r;a=n.height()/u;n.width(r).height(u)}function ot(n){return{x:n.x*l,y:n.y*a,x2:n.x2*l,y2:n.y2*a,w:n.w*l,h:n.h*a}}function pt(){var n=s.getFixed();n.w>r.minSelect[0]&&n.h>r.minSelect[1]?(u.enableHandles(),u.done()):u.release();p.setCursor(r.allowSelect?"crosshair":"default")}function si(n){if(r.disabled||!r.allowSelect)return!1;ut=!0;b=et(e);u.disableHandles();p.setCursor("crosshair");var t=nt(n);return s.setPressed(t),u.update(),p.activateHandlers(gi,pt,n.type.substring(0,5)==="touch"),kt.watchKeys(),n.stopPropagation(),n.preventDefault(),!1}function gi(n){s.setCurrent(n);u.update()}function hi(){var t=n("<div><\/div>").addClass(ft("tracker"));return ti&&t.css({opacity:0,backgroundColor:"white"}),t}function nr(n){w.removeClass().addClass(ft("holder")).addClass(n)}function tr(n,t){function b(){window.setTimeout(k,d)}var c=n[0]/l,y=n[1]/a,p=n[2]/l,w=n[3]/a,k;if(!bt){var o=s.flipCoords(c,y,p,w),h=s.getFixed(),e=[h.x,h.y,h.x2,h.y2],i=e,d=r.animationDelay,g=o[0]-e[0],nt=o[1]-e[1],tt=o[2]-e[2],it=o[3]-e[3],f=0,rt=r.swingSpeed;c=i[0];y=i[1];p=i[2];w=i[3];u.animMode(!0);k=function(){return function(){f+=(100-f)/rt;i[0]=Math.round(c+f/100*g);i[1]=Math.round(y+f/100*nt);i[2]=Math.round(p+f/100*tt);i[3]=Math.round(w+f/100*it);f>=99.8&&(f=100);f<100?(yi(i),b()):(u.done(),u.animMode(!1),typeof t=="function"&&t.call(v))}}();b()}}function vi(n){yi([n[0]/l,n[1]/a,n[2]/l,n[3]/a]);r.onSelect.call(v,ot(s.getFixed()));u.enableHandles()}function yi(n){s.setPressed([n[0],n[1]]);s.setCurrent([n[2],n[3]]);u.update()}function ir(){return ot(s.getFixed())}function rr(){return s.getFixed()}function ur(n){ri(n);gt()}function pi(){r.disabled=!0;u.disableHandles();u.setCursor("default");p.setCursor("default")}function wi(){r.disabled=!1;gt()}function fr(){u.done();p.activateHandlers(null,null)}function er(){w.remove();c.show();c.css("visibility","visible");n(t).removeData("Jcrop")}function or(n,t){u.release();pi();var i=new Image;i.onload=function(){var u=i.width,s=i.height,h,c;typeof atob!="undefined"&&EXIF.getData(i,function(){myData=this;myData.exifdata.Orientation===8?(u=i.height,s=i.width):myData.exifdata.Orientation===6&&(u=i.height,s=i.width)});h=r.boxWidth;c=r.boxHeight;e.width(u).height(s);e.attr("src",n);k.attr("src",n);oi(e,h,c);o=e.width();f=e.height();k.width(o).height(f);d.width(o+rt*2).height(f+rt*2);w.width(o).height(f);g.resize(o,f);wi();typeof t=="function"&&t.call(v)};i.src=n}function dt(n,t,i){var u=t||r.bgColor;r.bgFade&&bi()&&r.fadeTime&&!i?n.animate({backgroundColor:u},{queue:!1,duration:r.fadeTime}):n.css("backgroundColor",u)}function gt(n){r.allowResize?n?u.enableOnly():u.enableHandles():u.disableHandles();p.setCursor(r.allowSelect?"crosshair":"default");u.setCursor(r.allowMove?"move":"default");r.hasOwnProperty("trueSize")&&(l=r.trueSize[0]/o,a=r.trueSize[1]/f);r.hasOwnProperty("setSelect")&&(vi(r.setSelect),u.done(),delete r.setSelect);g.refresh();r.bgColor!=li&&(dt(r.shade?g.getShades():w,r.shade?r.shadeColor||r.bgColor:r.bgColor),li=r.bgColor);st!=r.bgOpacity&&(st=r.bgOpacity,r.shade?g.refresh():u.setBgOpacity(st));ht=r.maxSize[0]||0;ct=r.maxSize[1]||0;lt=r.minSize[0]||0;at=r.minSize[1]||0;r.hasOwnProperty("outerImage")&&(e.attr("src",r.outerImage),delete r.outerImage);u.refresh()}var r=n.extend({},n.Jcrop.defaults),b,ni=navigator.userAgent.toLowerCase(),ti=/msie/.test(ni),ii=/msie [1-6]\./.test(ni),vt,e,v;typeof t!="object"&&(t=n(t)[0]);typeof i!="object"&&(i={});ri(i);var wt={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},c=n(t),ci=!0;t.tagName=="IMG"?(c[0].width!=0&&c[0].height!=0?(c.width(c[0].width),c.height(c[0].height)):(vt=new Image,vt.src=c[0].src,c.width(vt.width),c.height(vt.height)),e=c.clone().removeAttr("id").css(wt).show(),e.width(c.width()),e.height(c.height()),c.after(e).hide()):(e=c.css(wt).show(),ci=!1,r.shade===null&&(r.shade=!0));oi(e,r.boxWidth,r.boxHeight);var o=e.width(),f=e.height(),w=n("<div />").width(o).height(f).addClass(ft("holder")).css({position:"relative",backgroundColor:r.bgColor}).insertAfter(c).append(e);r.addClass&&w.addClass(r.addClass);var k=n("<div />"),yt=n("<div />").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),tt=n("<div />").width("100%").height("100%").css("zIndex",320),it=n("<div />").css({position:"absolute",zIndex:600}).dblclick(function(){var n=s.getFixed();r.onDblClick.call(v,n)}).insertBefore(e).append(yt,tt);ci&&(k=n("<img />").attr("src",e.attr("src")).css(wt).width(o).height(f),yt.append(k));ii&&it.css({overflowY:"hidden"});var rt=r.boundary,d=hi().width(o+rt*2).height(f+rt*2).css({position:"absolute",top:h(-rt),left:h(-rt),zIndex:290}).mousedown(si),li=r.bgColor,st=r.bgOpacity,ht,ct,lt,at,l,a,ut,bt,ai;b=et(e);var y=function(){function n(){var i={},u=["touchstart","touchmove","touchend"],f=document.createElement("div"),t,n,r;try{for(t=0;t<u.length;t++)n=u[t],n="on"+n,r=n in f,r||(f.setAttribute(n,"return;"),r=typeof f[n]=="function"),i[u[t]]=r;return i.touchstart&&i.touchend&&i.touchmove}catch(e){return!1}}function t(){return r.touchSupport===!0||r.touchSupport===!1?r.touchSupport:n()}return{createDragger:function(n){return function(t){return r.disabled?!1:n==="move"&&!r.allowMove?!1:(b=et(e),ut=!0,ui(n,nt(y.cfilter(t)),!0),t.stopPropagation(),t.preventDefault(),!1)}},newSelection:function(n){return si(y.cfilter(n))},cfilter:function(n){return n.pageX=n.originalEvent.changedTouches[0].pageX,n.pageY=n.originalEvent.changedTouches[0].pageY,n},isSupported:n,support:t()}}(),s=function(){function p(r){r=v(r);u=n=r[0];i=t=r[1]}function w(n){n=v(n);s=n[0]-u;h=n[1]-i;u=n[0];i=n[1]}function b(){return[s,h]}function k(r){var e=r[0],s=r[1];0>n+e&&(e-=e+n);0>t+s&&(s-=s+t);f<i+s&&(s+=f-(i+s));o<u+e&&(e+=o-(u+e));n+=e;u+=e;t+=s;i+=s}function d(n){var t=c();switch(n){case"ne":return[t.x2,t.y];case"nw":return[t.x,t.y];case"se":return[t.x2,t.y2];case"sw":return[t.x,t.y2]}}function c(){if(!r.aspectRatio)return g();var c=r.aspectRatio,b=r.minSize[0]/l,w=r.maxSize[0]/l,nt=r.maxSize[1]/a,k=u-n,d=i-t,tt=Math.abs(k),it=Math.abs(d),rt=tt/it,s,h,v,p;return w===0&&(w=o*10),nt===0&&(nt=f*10),rt<c?(h=i,v=it*c,s=k<0?n-v:v+n,s<0?(s=0,p=Math.abs((s-n)/c),h=d<0?t-p:p+t):s>o&&(s=o,p=Math.abs((s-n)/c),h=d<0?t-p:p+t)):(s=u,p=tt/c,h=d<0?t-p:t+p,h<0?(h=0,v=Math.abs((h-t)*c),s=k<0?n-v:v+n):h>f&&(h=f,v=Math.abs(h-t)*c,s=k<0?n-v:v+n)),s>n?(s-n<b?s=n+b:s-n>w&&(s=n+w),h=h>t?t+(s-n)/c:t-(s-n)/c):s<n&&(n-s<b?s=n-b:n-s>w&&(s=n-w),h=h>t?t+(n-s)/c:t-(n-s)/c),s<0?(n-=s,s=0):s>o&&(n-=s-o,s=o),h<0?(t-=h,h=0):h>f&&(t-=h-f,h=f),y(e(n,t,s,h))}function v(n){return n[0]<0&&(n[0]=0),n[1]<0&&(n[1]=0),n[0]>o&&(n[0]=o),n[1]>f&&(n[1]=f),[Math.round(n[0]),Math.round(n[1])]}function e(n,t,i,r){var u=n,f=i,e=t,o=r;return i<n&&(u=i,f=n),r<t&&(e=r,o=t),[u,e,f,o]}function g(){var s=u-n,h=i-t,r;return ht&&Math.abs(s)>ht&&(u=s>0?n+ht:n-ht),ct&&Math.abs(h)>ct&&(i=h>0?t+ct:t-ct),at/a&&Math.abs(h)<at/a&&(i=h>0?t+at/a:t-at/a),lt/l&&Math.abs(s)<lt/l&&(u=s>0?n+lt/l:n-lt/l),n<0&&(u-=n,n-=n),t<0&&(i-=t,t-=t),u<0&&(n-=u,u-=u),i<0&&(t-=i,i-=i),u>o&&(r=u-o,n-=r,u-=r),i>f&&(r=i-f,t-=r,i-=r),n>o&&(r=n-f,i-=r,t-=r),t>f&&(r=t-f,i-=r,t-=r),y(e(n,t,u,i))}function y(n){return{x:n[0],y:n[1],x2:n[2],y2:n[3],w:n[2]-n[0],h:n[3]-n[1]}}var n=0,t=0,u=0,i=0,s,h;return{flipCoords:e,setPressed:p,setCurrent:w,getOffset:b,moveOffset:k,getCorner:d,getFixed:c}}(),g=function(){function nt(n,t){i.left.css({height:h(t)});i.right.css({height:h(t)})}function v(){return y(s.getFixed())}function y(n){i.top.css({left:h(n.x),width:h(n.w),height:h(n.y)});i.bottom.css({top:h(n.y2),left:h(n.x),width:h(n.w),height:h(f-n.y2)});i.right.css({left:h(n.x2),width:h(o-n.x2)});i.left.css({width:h(n.x)})}function l(){return n("<div />").css({position:"absolute",backgroundColor:r.shadeColor||r.bgColor}).appendTo(t)}function p(){c||(c=!0,t.insertBefore(e),v(),u.setBgOpacity(1,0,1),k.hide(),b(r.shadeColor||r.bgColor,1),u.isAwake()?a(r.bgOpacity,1):a(1,1))}function b(n,t){dt(g(),n,t)}function d(){c&&(t.remove(),k.show(),c=!1,u.isAwake()?u.setBgOpacity(r.bgOpacity,1,1):(u.setBgOpacity(1,1,1),u.disableHandles()),dt(w,0,1))}function a(n,i){c&&(r.bgFade&&!i?t.animate({opacity:1-n},{queue:!1,duration:r.fadeTime}):t.css({opacity:1-n}))}function tt(){r.shade?p():d();u.isAwake()&&a(r.bgOpacity)}function g(){return t.children()}var c=!1,t=n("<div />").css({position:"absolute",zIndex:240,opacity:0}),i={top:l(),left:l().height(f),right:l().height(f),bottom:l()};return{update:v,updateRaw:y,getShades:g,setBgColor:b,enable:p,disable:d,resize:nt,refresh:tt,opacity:a}}(),u=function(){function et(t){var i=n("<div />").css({position:"absolute",opacity:r.borderOpacity}).addClass(ft(t));return yt.append(i),i}function l(t,i){var r=n("<div />").mousedown(ei(t)).css({cursor:t+"-resize",position:"absolute",zIndex:i}).addClass("ord-"+t);return y.support&&r.bind("touchstart.jcrop",y.createDragger(t)),tt.append(r),r}function ht(n){var t=r.handleSize,i=l(n,c++).css({}).addClass(ft("handle"));return t&&i.width(t).height(t),i}function ct(n){return l(n,c++).addClass("jcrop-dragbar")}function lt(n){for(var t=0;t<n.length;t++)ut[n[t]]=ct(n[t])}function at(n){for(var t,i=0;i<n.length;i++){switch(n[i]){case"n":t="hline";break;case"s":t="hline bottom";break;case"e":t="vline right";break;case"w":t="vline"}nt[n[i]]=et(t)}}function vt(n){for(var t=0;t<n.length;t++)rt[n[t]]=ht(n[t])}function pt(n,t){r.shade||k.css({top:h(-t),left:h(-n)});it.css({top:h(t),left:h(n)})}function wt(n,t){it.width(Math.round(n)).height(Math.round(t))}function a(){var n=s.getFixed();s.setPressed([n.x,n.y]);s.setCurrent([n.x2,n.y2]);p()}function p(n){if(t)return w(n)}function w(n){var i=s.getFixed();wt(i.w,i.h);pt(i.x,i.y);r.shade&&g.updateRaw(i);t||kt();n?r.onSelect.call(v,ot(i)):r.onChange.call(v,ot(i))}function o(n,i,u){(t||i)&&(r.bgFade&&!u?e.animate({opacity:n},{queue:!1,duration:r.fadeTime}):e.css("opacity",n))}function kt(){it.show();r.shade?g.opacity(st):o(st,!0);t=!0}function dt(){u();it.hide();r.shade?g.opacity(1):o(1);t=!1;r.onRelease.call(v)}function gt(){i&&tt.show()}function b(){return i=!0,r.allowResize?(tt.show(),!0):void 0}function u(){i=!1;tt.hide()}function d(n){n?(bt=!0,u()):(bt=!1,b())}function ni(){d(!1);a()}var t,c=370,nt={},rt={},ut={},i=!1,f;return r.dragEdges&&n.isArray(r.createDragbars)&&lt(r.createDragbars),n.isArray(r.createHandles)&&vt(r.createHandles),r.drawBorders&&n.isArray(r.createBorders)&&at(r.createBorders),n(document).bind("touchstart.jcrop-ios",function(t){n(t.currentTarget).hasClass("jcrop-tracker")&&t.stopPropagation()}),f=hi().mousedown(ei("move")).css({cursor:"move",position:"absolute",zIndex:360}),y.support&&f.bind("touchstart.jcrop",y.createDragger("move")),yt.append(f),u(),{updateVisible:p,update:w,release:dt,refresh:a,isAwake:function(){return t},setCursor:function(n){f.css("cursor",n)},enableHandles:b,enableOnly:function(){i=!0},showHandles:gt,disableHandles:u,animMode:d,setBgOpacity:o,done:ni}}(),p=function(){function c(t){d.css({zIndex:450});t?n(document).bind("touchmove.jcrop",p).bind("touchend.jcrop",w):o&&n(document).bind("mousemove.jcrop",h).bind("mouseup.jcrop",i)}function l(){d.css({zIndex:290});n(document).unbind(".jcrop")}function h(n){return t(nt(n)),!1}function i(n){return n.preventDefault(),n.stopPropagation(),ut&&(ut=!1,f(nt(n)),u.isAwake()&&r.onSelect.call(v,ot(s.getFixed())),l(),t=function(){},f=function(){}),!1}function a(n,i,r){return ut=!0,t=n,f=i,c(r),!1}function p(n){return t(nt(y.cfilter(n))),!1}function w(n){return i(y.cfilter(n))}function b(n){d.css("cursor",n)}var t=function(){},f=function(){},o=r.trackDocument;return o||d.mousemove(h).mouseup(i).mouseout(i),e.before(d),{activateHandlers:a,setCursor:b}}(),kt=function(){function o(){r.keySupport&&(t.show(),t.focus())}function h(){t.hide()}function i(n,t,i){r.allowMove&&(s.moveOffset([t,i]),u.updateVisible(!0));n.preventDefault();n.stopPropagation()}function c(n){if(n.ctrlKey||n.metaKey)return!0;ai=n.shiftKey?!0:!1;var t=ai?10:1;switch(n.keyCode){case 37:i(n,-t,0);break;case 39:i(n,t,0);break;case 38:i(n,0,-t);break;case 40:i(n,0,t);break;case 27:r.allowSelect&&u.release();break;case 9:return!0}return!1}var t=n('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),f=n("<div />").css({position:"absolute",overflow:"hidden"}).append(t);return r.keySupport&&(t.keydown(c).blur(h),ii||!r.fixedSupport?(t.css({position:"absolute",left:"-20px"}),f.append(t).insertBefore(e)):t.insertBefore(e)),{watchKeys:o}}();return y.support&&d.bind("touchstart.jcrop",y.newSelection),tt.hide(),gt(!0),v={setImage:or,animateTo:tr,setSelect:vi,setOptions:ur,tellSelect:ir,tellScaled:rr,setClass:nr,disable:pi,enable:wi,cancel:fr,release:u.release,destroy:er,focus:kt.watchKeys,getBounds:function(){return[o*l,f*a]},getWidgetSize:function(){return[o,f]},getScaleFactor:function(){return[l,a]},getOptions:function(){return r},ui:{holder:w,selection:it}},ti&&w.bind("selectstart",function(){return!1}),c.data("Jcrop",v),v};n.fn.Jcrop=function(t,i){var r;return this.each(function(){if(n(this).data("Jcrop")){if(t==="api")return n(this).data("Jcrop");n(this).data("Jcrop").setOptions(t)}else this.tagName=="IMG"?n.Jcrop.Loader(this,function(){n(this).css({display:"block",visibility:"hidden"});r=n.Jcrop(this,t);n.isFunction(i)&&i.call(r)}):(n(this).css({display:"block",visibility:"hidden"}),r=n.Jcrop(this,t),n.isFunction(i)&&i.call(r))}),this};n.Jcrop.Loader=function(t,i,r){function e(){f.complete?(u.unbind(".jcloader"),n.isFunction(i)&&i.call(f)):window.setTimeout(e,50)}var u=n(t),f=u[0];u.bind("load.jcloader",e).bind("error.jcloader",function(){u.unbind(".jcloader");n.isFunction(r)&&r.call(f)});f.complete&&n.isFunction(i)&&(u.unbind(".jcloader"),i.call(f))};n.Jcrop.defaults={allowSelect:!0,allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,borderOpacity:.4,handleOpacity:.5,handleSize:null,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createDragbars:["n","s","e","w"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}})(jQuery);(function(n){var u=/iPhone/i,s=/iPod/i,h=/iPad/i,f=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,c=/Android/i,i=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,r=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,l=/IEMobile/i,a=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,v=/BlackBerry/i,y=/BB10/i,p=/Opera Mini/i,w=/(CriOS|Chrome)(?=.*\bMobile\b)/i,b=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,k=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),t=function(n,t){return n.test(t)},e=function(n){var e=n||navigator.userAgent,o=e.split("[FBAN");return typeof o[1]!="undefined"&&(e=o[0]),o=e.split("Twitter"),typeof o[1]!="undefined"&&(e=o[0]),this.apple={phone:t(u,e),ipod:t(s,e),tablet:!t(u,e)&&t(h,e),device:t(u,e)||t(s,e)||t(h,e)},this.amazon={phone:t(i,e),tablet:!t(i,e)&&t(r,e),device:t(i,e)||t(r,e)},this.android={phone:t(i,e)||t(f,e),tablet:!t(i,e)&&!t(f,e)&&(t(r,e)||t(c,e)),device:t(i,e)||t(r,e)||t(f,e)||t(c,e)},this.windows={phone:t(l,e),tablet:t(a,e),device:t(l,e)||t(a,e)},this.other={blackberry:t(v,e),blackberry10:t(y,e),opera:t(p,e),firefox:t(b,e),chrome:t(w,e),device:t(v,e)||t(y,e)||t(p,e)||t(b,e)||t(w,e)},this.seven_inch=t(k,e),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,typeof window=="undefined"?this:void 0},o=function(){var n=new e;return n.Class=e,n};typeof module!="undefined"&&module.exports&&typeof window=="undefined"?module.exports=e:typeof module!="undefined"&&module.exports&&typeof window!="undefined"?module.exports=o():typeof define=="function"&&define.amd?define("isMobile",[],n.isMobile=o()):n.isMobile=o()})(this);
/*
//@ sourceMappingURL=https://aapevents.eventsair.com/bundles/vendor_c61bf2f6e77a4991bed0d8b4ae044484.map
*/