").attr("name",o.submitButton.name).val(e(o.submitButton).val()).appendTo(o.currentForm)),!(o.settings.submitHandler&&!o.settings.debug)||(s=o.settings.submitHandler.call(o,o.currentForm,t),n&&n.remove(),void 0!==s&&s)}return o.settings.debug&&t.preventDefault(),o.cancelSubmit?(o.cancelSubmit=!1,n()):o.form()?o.pendingRequest?(o.formSubmitted=!0,!1):n():(o.focusInvalid(),!1)})),o)}t&&t.debug&&window.console},valid:function(){var t,o,n;return e(this[0]).is("form")?t=this.validate().form():(n=[],t=!0,o=e(this[0].form).validate(),this.each(function(){(t=o.element(this)&&t)||(n=n.concat(o.errorList))}),o.errorList=n),t},rules:function(t,o){var n,s,r,i,u,a,l=this[0],d=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=l&&(!l.form&&d&&(l.form=this.closest("form")[0],l.name=this.attr("name")),null!=l.form)){if(t)switch(n=e.data(l.form,"validator").settings,s=n.rules,r=e.validator.staticRules(l),t){case"add":e.extend(r,e.validator.normalizeRule(o)),delete r.messages,s[l.name]=r,o.messages&&(n.messages[l.name]=e.extend(n.messages[l.name],o.messages));break;case"remove":return o?(a={},e.each(o.split(/\s/),function(e,t){a[t]=r[t],delete r[t]}),a):(delete s[l.name],r)}return(i=e.validator.normalizeRules(e.extend({},e.validator.classRules(l),e.validator.attributeRules(l),e.validator.dataRules(l),e.validator.staticRules(l)),l)).required&&(u=i.required,delete i.required,i=e.extend({required:u},i)),i.remote&&(u=i.remote,delete i.remote,i=e.extend(i,{remote:u})),i}}});var t,o=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};e.extend(e.expr.pseudos||e.expr[":"],{blank:function(t){return!o(""+e(t).val())},filled:function(t){var n=e(t).val();return null!==n&&!!o(""+n)},unchecked:function(t){return!e(t).prop("checked")}}),e.validator=function(t,o){this.settings=e.extend(!0,{},e.validator.defaults,t),this.currentForm=o,this.init()},e.validator.format=function(t,o){return 1===arguments.length?function(){var o=e.makeArray(arguments);return o.unshift(t),e.validator.format.apply(this,o)}:void 0===o?t:(arguments.length>2&&o.constructor!==Array&&(o=e.makeArray(arguments).slice(1)),o.constructor!==Array&&(o=[o]),e.each(o,function(e,o){t=t.replace(new RegExp("\\{"+e+"\\}","g"),function(){return o})}),t)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(t,o){9===o.which&&""===this.elementValue(t)||-1!==e.inArray(o.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(t,o,n){"radio"===t.type?this.findByName(t.name).addClass(o).removeClass(n):e(t).addClass(o).removeClass(n)},unhighlight:function(t,o,n){"radio"===t.type?this.findByName(t.name).removeClass(o).addClass(n):e(t).removeClass(o).addClass(n)}},setDefaults:function(t){e.extend(e.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.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var t,o=this.currentForm,n=this.groups={};function s(t){var n=void 0!==e(this).attr("contenteditable")&&"false"!==e(this).attr("contenteditable");if(!this.form&&n&&(this.form=e(this).closest("form")[0],this.name=e(this).attr("name")),o===this.form){var s=e.data(this.form,"validator"),r="on"+t.type.replace(/^validate/,""),i=s.settings;i[r]&&!e(this).is(i.ignore)&&i[r].call(s,this,t)}}e.each(this.settings.groups,function(t,o){"string"==typeof o&&(o=o.split(/\s/)),e.each(o,function(e,o){n[o]=t})}),t=this.settings.rules,e.each(t,function(o,n){t[o]=e.validator.normalizeRule(n)}),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":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'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",s).on("click.validate","select, option, [type='radio'], [type='checkbox']",s),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(t){var o,n,s=this.clean(t),r=this.validationTargetFor(s),i=this,u=!0;return void 0===r?delete this.invalid[s.name]:(this.prepareElement(r),this.currentElements=e(r),(n=this.groups[r.name])&&e.each(this.groups,function(e,t){t===n&&e!==r.name&&(s=i.validationTargetFor(i.clean(i.findByName(e))))&&s.name in i.invalid&&(i.currentElements.push(s),u=i.check(s)&&u)}),o=!1!==this.check(r),u=u&&o,this.invalid[r.name]=!o,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e(t).attr("aria-invalid",!o)),u},showErrors:function(t){if(t){var o=this;e.extend(this.errorMap,t),this.errorList=e.map(this.errorMap,function(e,t){return{message:e,element:o.findByName(t)[0]}}),this.successList=e.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.validClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,o=0;for(t in e)void 0!==e[t]&&null!==e[t]&&!1!==e[t]&&o++;return o},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===e.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var t=this,o={};return e(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var n=this.name||e(this).attr("name"),s=void 0!==e(this).attr("contenteditable")&&"false"!==e(this).attr("contenteditable");return!n&&t.settings.debug&&window.console,s&&(this.form=e(this).closest("form")[0],this.name=n),!(this.form!==t.currentForm||n in o||!t.objectLength(e(this).rules())||(o[n]=!0,0))})},clean:function(t){return e(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(t){var o,n,s=e(t),r=t.type,i=void 0!==s.attr("contenteditable")&&"false"!==s.attr("contenteditable");return"radio"===r||"checkbox"===r?this.findByName(t.name).filter(":checked").val():"number"===r&&void 0!==t.validity?t.validity.badInput?"NaN":s.val():(o=i?s.text():s.val(),"file"===r?"C:\\fakepath\\"===o.substr(0,12)?o.substr(12):(n=o.lastIndexOf("/"))>=0?o.substr(n+1):(n=o.lastIndexOf("\\"))>=0?o.substr(n+1):o:"string"==typeof o?o.replace(/\r/g,""):o)},check:function(t){t=this.validationTargetFor(this.clean(t));var o,n,s,r,i=e(t).rules(),u=e.map(i,function(e,t){return t}).length,a=!1,l=this.elementValue(t);for(n in"function"==typeof i.normalizer?r=i.normalizer:"function"==typeof this.settings.normalizer&&(r=this.settings.normalizer),r&&(l=r.call(t,l),delete i.normalizer),i){s={method:n,parameters:i[n]};try{if("dependency-mismatch"===(o=e.validator.methods[n].call(this,l,t,s.parameters))&&1===u){a=!0;continue}if(a=!1,"pending"===o)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!o)return this.formatAndAdd(t,s),!1}catch(e){throw this.settings.debug&&window.console,e instanceof TypeError&&(e.message+=". Exception occurred when checking element "+t.id+", check the '"+s.method+"' method."),e}}if(!a)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(t,o){return e(t).data("msg"+o.charAt(0).toUpperCase()+o.substring(1).toLowerCase())||e(t).data("msg")},customMessage:function(e,t){var o=this.settings.messages[e];return o&&(o.constructor===String?o:o[t])},findDefined:function(){for(var e=0;eWarning: No message defined for "+t.name+""),s=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,o.parameters,t):s.test(n)&&(n=e.validator.format(n.replace(s,"{$1}"),o.parameters)),n},formatAndAdd:function(e,t){var o=this.defaultMessage(e,t);this.errorList.push({message:o,element:e,method:t.method}),this.errorMap[e.name]=o,this.submitted[e.name]=o},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,o;for(e=0;this.errorList[e];e++)o=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,o.element,this.settings.errorClass,this.settings.validClass),this.showLabel(o.element,o.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],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 e(this.errorList).map(function(){return this.element})},showLabel:function(t,o){var n,s,r,i,u=this.errorsFor(t),a=this.idOrName(t),l=e(t).attr("aria-describedby");u.length?(u.removeClass(this.settings.validClass).addClass(this.settings.errorClass),u.html(o)):(u=e("<"+this.settings.errorElement+">").attr("id",a+"-error").addClass(this.settings.errorClass).html(o||""),n=u,this.settings.wrapper&&(n=u.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement.call(this,n,e(t)):n.insertAfter(t),u.is("label")?u.attr("for",a):0===u.parents("label[for='"+this.escapeCssMeta(a)+"']").length&&(r=u.attr("id"),l?l.match(new RegExp("\\b"+this.escapeCssMeta(r)+"\\b"))||(l+=" "+r):l=r,e(t).attr("aria-describedby",l),(s=this.groups[t.name])&&(i=this,e.each(i.groups,function(t,o){o===s&&e("[name='"+i.escapeCssMeta(t)+"']",i.currentForm).attr("aria-describedby",u.attr("id"))})))),!o&&this.settings.success&&(u.text(""),"string"==typeof this.settings.success?u.addClass(this.settings.success):this.settings.success(u,t)),this.toShow=this.toShow.add(u)},errorsFor:function(t){var o=this.escapeCssMeta(this.idOrName(t)),n=e(t).attr("aria-describedby"),s="label[for='"+o+"'], label[for='"+o+"'] *";return n&&(s=s+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(s)},escapeCssMeta:function(e){return void 0===e?"":e.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),e(t).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(t){return e(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,o){switch(o.nodeName.toLowerCase()){case"select":return e("option:selected",o).length;case"input":if(this.checkable(o))return this.findByName(o.name).filter(":checked").length}return t.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(t,o){return!!e(t,o.form).length},function:function(e,t){return e(t)}},optional:function(t){var o=this.elementValue(t);return!e.validator.methods.required.call(this,o,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,e(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,o){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e(t).removeClass(this.settings.pendingClass),o&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(e(this.currentForm).trigger("submit"),this.submitButton&&e("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!o&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,o){return o="string"==typeof o&&o||"remote",e.data(t,"previousValue")||e.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:o})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},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,o){t.constructor===String?this.classRuleSettings[t]=o:e.extend(this.classRuleSettings,t)},classRules:function(t){var o={},n=e(t).attr("class");return n&&e.each(n.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(o,e.validator.classRuleSettings[this])}),o},normalizeAttributeRule:function(e,t,o,n){/min|max|step/.test(o)&&(null===t||/number|range|text/.test(t))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?e[o]=n:t===o&&"range"!==t&&(e["date"===t?"dateISO":o]=!0)},attributeRules:function(t){var o,n,s={},r=e(t),i=t.getAttribute("type");for(o in e.validator.methods)"required"===o?(""===(n=t.getAttribute(o))&&(n=!0),n=!!n):n=r.attr(o),this.normalizeAttributeRule(s,i,o,n);return s.maxlength&&/-1|2147483647|524288/.test(s.maxlength)&&delete s.maxlength,s},dataRules:function(t){var o,n,s={},r=e(t),i=t.getAttribute("type");for(o in e.validator.methods)""===(n=r.data("rule"+o.charAt(0).toUpperCase()+o.substring(1).toLowerCase()))&&(n=!0),this.normalizeAttributeRule(s,i,o,n);return s},staticRules:function(t){var o={},n=e.data(t.form,"validator");return n.settings.rules&&(o=e.validator.normalizeRule(n.settings.rules[t.name])||{}),o},normalizeRules:function(t,o){return e.each(t,function(n,s){if(!1!==s){if(s.param||s.depends){var r=!0;switch(typeof s.depends){case"string":r=!!e(s.depends,o.form).length;break;case"function":r=s.depends.call(o,o)}r?t[n]=void 0===s.param||s.param:(e.data(o.form,"validator").resetElements(e(o)),delete t[n])}}else delete t[n]}),e.each(t,function(e,n){t[e]="function"==typeof n&&"normalizer"!==e?n(o):n}),e.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),e.each(["rangelength","range"],function(){var e;t[this]&&(Array.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(e=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(e[0]),Number(e[1])]))}),e.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var o={};e.each(t.split(/\s/),function(){o[this]=!0}),t=o}return t},addMethod:function(t,o,n){e.validator.methods[t]=o,e.validator.messages[t]=void 0!==n?n:e.validator.messages[t],o.length<3&&e.validator.addClassRules(t,e.validator.normalizeRule(t))},methods:{required:function(t,o,n){if(!this.depend(n,o))return"dependency-mismatch";if("select"===o.nodeName.toLowerCase()){var s=e(o).val();return s&&s.length>0}return this.checkable(o)?this.getLength(t,o)>0:void 0!==t&&null!==t&&t.length>0},email:function(e,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(e)},url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)},date:(t=!1,function(e,o){return t||(t=!0,this.settings.debug&&window.console),this.optional(o)||!/Invalid|NaN/.test(new Date(e).toString())}),dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(e,t,o){var n=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n>=o},maxlength:function(e,t,o){var n=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n<=o},rangelength:function(e,t,o){var n=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n>=o[0]&&n<=o[1]},min:function(e,t,o){return this.optional(t)||e>=o},max:function(e,t,o){return this.optional(t)||e<=o},range:function(e,t,o){return this.optional(t)||e>=o[0]&&e<=o[1]},step:function(t,o,n){var s,r=e(o).attr("type"),i="Step attribute on input type "+r+" is not supported.",u=new RegExp("\\b"+r+"\\b"),a=r&&!u.test(["text","number","range"].join()),l=function(e){var t=(""+e).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},d=function(e){return Math.round(e*Math.pow(10,s))},c=!0;if(a)throw new Error(i);return s=l(n),(l(t)>s||d(t)%d(n)!=0)&&(c=!1),this.optional(o)||c},equalTo:function(t,o,n){var s=e(n);return this.settings.onfocusout&&s.not(".validate-equalTo-blur").length&&s.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){e(o).valid()}),t===s.val()},remote:function(t,o,n,s){if(this.optional(o))return"dependency-mismatch";s="string"==typeof s&&s||"remote";var r,i,u,a=this.previousValue(o,s);return this.settings.messages[o.name]||(this.settings.messages[o.name]={}),a.originalMessage=a.originalMessage||this.settings.messages[o.name][s],this.settings.messages[o.name][s]=a.message,n="string"==typeof n&&{url:n}||n,u=e.param(e.extend({data:t},n.data)),a.old===u?a.valid:(a.old=u,r=this,this.startRequest(o),(i={})[o.name]=t,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+o.name,dataType:"json",data:i,context:r.currentForm,success:function(e){var n,i,u,l=!0===e||"true"===e;r.settings.messages[o.name][s]=a.originalMessage,l?(u=r.formSubmitted,r.resetInternals(),r.toHide=r.errorsFor(o),r.formSubmitted=u,r.successList.push(o),r.invalid[o.name]=!1,r.showErrors()):(n={},i=e||r.defaultMessage(o,{method:s,parameters:t}),n[o.name]=a.message=i,r.invalid[o.name]=!0,r.showErrors(n)),a.valid=l,r.stopRequest(o,l)}},n)),"pending")}}});var n,s={};return e.ajaxPrefilter?e.ajaxPrefilter(function(e,t,o){var n=e.port;"abort"===e.mode&&(s[n]&&s[n].abort(),s[n]=o)}):(n=e.ajax,e.ajax=function(t){var o=("mode"in t?t:e.ajaxSettings).mode,r=("port"in t?t:e.ajaxSettings).port;return"abort"===o?(s[r]&&s[r].abort(),s[r]=n.apply(this,arguments),s[r]):n.apply(this,arguments)}),e})?n.apply(t,s):n)||(e.exports=r)},"./node_modules/jquery/dist/jquery.js":function(e,t,o){var n;!function(t,o){"use strict";"object"==typeof e.exports?e.exports=t.document?o(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return o(e)}:o(t)}("undefined"!=typeof window?window:this,function(o,s){"use strict";var r=[],i=Object.getPrototypeOf,u=r.slice,a=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},l=r.push,d=r.indexOf,c={},f=c.toString,m=c.hasOwnProperty,p=m.toString,h=p.call(Object),j={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},_=o.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,o){var n,s,r=(o=o||_).createElement("script");if(r.text=e,t)for(n in y)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&r.setAttribute(n,s);o.head.appendChild(r).parentNode.removeChild(r)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[f.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,o=x(e);return!v(e)&&!g(e)&&("array"===o||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"3.6.1",constructor:w,length:0,toArray:function(){return u.call(this)},get:function(e){return null==e?u.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,o){return e.call(t,o,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,o=+e+(e<0?t:0);return this.pushStack(o>=0&&o+~]|"+R+")"+R+"*"),U=new RegExp(R+"|>"),V=new RegExp(H),Z=new RegExp("^"+D+"$"),G={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),oe=function(e,t){var o="0x"+e.slice(1)-65536;return t||(o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},ie=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{O.apply(M=P.call(b.childNodes),b.childNodes),M[b.childNodes.length].nodeType}catch(e){O={apply:M.length?function(e,t){N.apply(e,P.call(t))}:function(e,t){for(var o=e.length,n=0;e[o++]=t[n++];);e.length=o-1}}}function ue(e,t,n,s){var r,u,l,d,c,p,v,g=t&&t.ownerDocument,b=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return n;if(!s&&(f(t),t=t||m,h)){if(11!==b&&(c=Q.exec(e)))if(r=c[1]){if(9===b){if(!(l=t.getElementById(r)))return n;if(l.id===r)return n.push(l),n}else if(g&&(l=g.getElementById(r))&&_(t,l)&&l.id===r)return n.push(l),n}else{if(c[2])return O.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&o.getElementsByClassName&&t.getElementsByClassName)return O.apply(n,t.getElementsByClassName(r)),n}if(o.qsa&&!A[e+" "]&&(!j||!j.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(v=e,g=t,1===b&&(U.test(e)||z.test(e))){for((g=ee.test(e)&&ve(t.parentNode)||t)===t&&o.scope||((d=t.getAttribute("id"))?d=d.replace(ne,se):t.setAttribute("id",d=y)),u=(p=i(e)).length;u--;)p[u]=(d?"#"+d:":scope")+" "+_e(p[u]);v=p.join(",")}try{return O.apply(n,g.querySelectorAll(v)),n}catch(t){A(e,!0)}finally{d===y&&t.removeAttribute("id")}}}return a(e.replace(W,"$1"),t,n,s)}function ae(){var e=[];return function t(o,s){return e.push(o+" ")>n.cacheLength&&delete t[e.shift()],t[o+" "]=s}}function le(e){return e[y]=!0,e}function de(e){var t=m.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var o=e.split("|"),s=o.length;s--;)n.attrHandle[o[s]]=t}function fe(e,t){var o=t&&e,n=o&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(o)for(;o=o.nextSibling;)if(o===t)return-1;return e?1:-1}function me(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var o=t.nodeName.toLowerCase();return("input"===o||"button"===o)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function je(e){return le(function(t){return t=+t,le(function(o,n){for(var s,r=e([],o.length,t),i=r.length;i--;)o[s=r[i]]&&(o[s]=!(n[s]=o[s]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in o=ue.support={},r=ue.isXML=function(e){var t=e&&e.namespaceURI,o=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||o&&o.nodeName||"HTML")},f=ue.setDocument=function(e){var t,s,i=e?e.ownerDocument||e:b;return i!=m&&9===i.nodeType&&i.documentElement?(p=(m=i).documentElement,h=!r(m),b!=m&&(s=m.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",re,!1):s.attachEvent&&s.attachEvent("onunload",re)),o.scope=de(function(e){return p.appendChild(e).appendChild(m.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),o.attributes=de(function(e){return e.className="i",!e.getAttribute("className")}),o.getElementsByTagName=de(function(e){return e.appendChild(m.createComment("")),!e.getElementsByTagName("*").length}),o.getElementsByClassName=J.test(m.getElementsByClassName),o.getById=de(function(e){return p.appendChild(e).id=y,!m.getElementsByName||!m.getElementsByName(y).length}),o.getById?(n.filter.ID=function(e){var t=e.replace(te,oe);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var o=t.getElementById(e);return o?[o]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,oe);return function(e){var o=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return o&&o.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var o,n,s,r=t.getElementById(e);if(r){if((o=r.getAttributeNode("id"))&&o.value===e)return[r];for(s=t.getElementsByName(e),n=0;r=s[n++];)if((o=r.getAttributeNode("id"))&&o.value===e)return[r]}return[]}}),n.find.TAG=o.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):o.qsa?t.querySelectorAll(e):void 0}:function(e,t){var o,n=[],s=0,r=t.getElementsByTagName(e);if("*"===e){for(;o=r[s++];)1===o.nodeType&&n.push(o);return n}return r},n.find.CLASS=o.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},v=[],j=[],(o.qsa=J.test(m.querySelectorAll))&&(de(function(e){var t;p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||j.push("\\["+R+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+y+"-]").length||j.push("~="),(t=m.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||j.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||j.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||j.push(".#.+[+~]"),e.querySelectorAll("\\\f"),j.push("[\\r\\n\\f]")}),de(function(e){e.innerHTML="";var t=m.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&j.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&j.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&j.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),j.push(",.*:")})),(o.matchesSelector=J.test(g=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&de(function(e){o.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),v.push("!=",H)}),j=j.length&&new RegExp(j.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),_=t||J.test(p.contains)?function(e,t){var o=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(o.contains?o.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!o.sortDetached&&t.compareDocumentPosition(e)===n?e==m||e.ownerDocument==b&&_(b,e)?-1:t==m||t.ownerDocument==b&&_(b,t)?1:d?I(d,e)-I(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var o,n=0,s=e.parentNode,r=t.parentNode,i=[e],u=[t];if(!s||!r)return e==m?-1:t==m?1:s?-1:r?1:d?I(d,e)-I(d,t):0;if(s===r)return fe(e,t);for(o=e;o=o.parentNode;)i.unshift(o);for(o=t;o=o.parentNode;)u.unshift(o);for(;i[n]===u[n];)n++;return n?fe(i[n],u[n]):i[n]==b?-1:u[n]==b?1:0},m):m},ue.matches=function(e,t){return ue(e,null,null,t)},ue.matchesSelector=function(e,t){if(f(e),o.matchesSelector&&h&&!A[t+" "]&&(!v||!v.test(t))&&(!j||!j.test(t)))try{var n=g.call(e,t);if(n||o.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return ue(t,m,null,[e]).length>0},ue.contains=function(e,t){return(e.ownerDocument||e)!=m&&f(e),_(e,t)},ue.attr=function(e,t){(e.ownerDocument||e)!=m&&f(e);var s=n.attrHandle[t.toLowerCase()],r=s&&C.call(n.attrHandle,t.toLowerCase())?s(e,t,!h):void 0;return void 0!==r?r:o.attributes||!h?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ue.escape=function(e){return(e+"").replace(ne,se)},ue.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ue.uniqueSort=function(e){var t,n=[],s=0,r=0;if(c=!o.detectDuplicates,d=!o.sortStable&&e.slice(0),e.sort(T),c){for(;t=e[r++];)t===e[r]&&(s=n.push(r));for(;s--;)e.splice(n[s],1)}return d=null,e},s=ue.getText=function(e){var t,o="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)o+=s(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)o+=s(t);return o},(n=ue.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,oe),e[3]=(e[3]||e[4]||e[5]||"").replace(te,oe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ue.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ue.error(e[0]),e},PSEUDO:function(e){var t,o=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":o&&V.test(o)&&(t=i(o,!0))&&(t=o.indexOf(")",o.length-t)-o.length)&&(e[0]=e[0].slice(0,t),e[2]=o.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,oe).t