@atlassian/aui 10.1.7 → 10.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("backbone"),require("jquery"),require("underscore")):"function"==typeof define&&define.amd?define("@atlassian/aui",["backbone","jquery","underscore"],t):"object"==typeof exports?exports["@atlassian/aui"]=t(require("backbone"),require("jquery"),require("underscore")):e.AJS=t(e.Backbone,e.jQuery,e._)}(window,(e,t,i)=>(()=>{var n={101(e,t,i){let n;n=i(195),e.exports=(()=>{var e={930(e){"use strict";e.exports=n}},t={};let i=function i(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,i),a.exports}(930),s=/^.*[\\\/]/,a=/\{0\}/gi;function r(e,t){let n=i(e).data("FancyFileInput");if(n)return n;t=i.extend({},r.defaults,t),this.el=e,this.$el=i(e),this.$label=this.createLabel(t.buttonText),this._addLabelText(),this.$clearButton=i("<button>",{text:this.$label.attr("data-ffi-clearButtonText")||t.clearButtonText,class:"ffi-clear",type:"button",tabindex:"-1"}),this.multipleFileTextPattern=this.$label.attr("data-ffi-multipleFileTextPattern")||t.multipleFileTextPattern,this._eventNamespace=".ffi",this.CLASSES={disabled:"is-disabled",focused:"is-focused",active:"is-active",valid:"is-valid",invalid:"is-invalid"},this[this.isDisabled()?"disable":"enable"]()}return r.defaults={buttonText:"Browse…",clearButtonText:"Clear",multipleFileTextPattern:"{0} files"},r.prototype._addLabelText=function(){let e=i('label[for="'+this.el.id+'"]');e.length&&this.$el.attr("aria-label",e.text())},r.prototype.createLabel=function(e){let t=this.$el.parent(".ffi[data-ffi-button-text]");return t.length||(t=this.$el.wrap(i("<label>",{class:"ffi","data-ffi-button-text":e})).parent()),t},r.prototype.isDisabled=function(){return this.$el.is(":disabled")},r.prototype.formatMultipleFileText=function(e){return this.multipleFileTextPattern.replace(a,e)},r.prototype.bindEvents=function(){this.$el.on("invalid"+this._eventNamespace,this.checkValidity.bind(this)).on("change"+this._eventNamespace,this.change.bind(this)).on("keydown"+this._eventNamespace,this.keydown.bind(this)).on("mousedown"+this._eventNamespace,this.mousedown.bind(this)).on("mouseup"+this._eventNamespace,this.mouseup.bind(this)).on("focus"+this._eventNamespace,this.focus.bind(this)).on("blur"+this._eventNamespace,this.blur.bind(this)),this.$clearButton.on("click"+this._eventNamespace,this.clear.bind(this))},r.prototype.unbindEvents=function(){this.$el.off(this._eventNamespace),this.$clearButton.off(this._eventNamespace)},r.prototype.fireEvent=function(e){this.$el.trigger(e+this._eventNamespace)},r.prototype.enable=function(){this.bindEvents(),this.$el.prop("disabled",!1),this.$label.removeClass(this.CLASSES.disabled)},r.prototype.disable=function(){this.unbindEvents(),this.$el.prop("disabled",!0),this.$label.addClass(this.CLASSES.disabled)},r.prototype.clear=function(){return this.$el.wrap("<form>").closest("form").get(0).reset(),this.$el.unwrap(),this.el.value="",this.change(),!1},r.prototype.focus=function(){this.$label.addClass(this.CLASSES.focused)},r.prototype.blur=function(){this.$label.removeClass(this.CLASSES.focused)},r.prototype.mousedown=function(){this.$label.addClass(this.CLASSES.active)},r.prototype.mouseup=function(){this.$label.removeClass(this.CLASSES.active)},r.prototype.keydown=function(e){let t=e.which;(8===t||46===t)&&(this.clear(),e.preventDefault())},r.prototype.checkValidity=function(){if(!this.el.required)return;let e=this.$el.is(":invalid");this.$label.toggleClass(this.CLASSES.invalid,e).toggleClass(this.CLASSES.valid,!e)},r.prototype.change=function(){let e,t="";this.checkValidity(),(e=this.el.multiple&&this.el.files.length>1?this.formatMultipleFileText(this.el.files.length):this.el.value).length?(t=e.replace(s,""),this.$clearButton.appendTo(this.$label)):this.$clearButton.detach(),this.$el.focus(),this.setFieldText(t),this.fireEvent("value-changed")},r.prototype.setFieldText=function(e){let t="data-ffi-value";e.length?(this.$label.attr(t,e),this.fireEvent("value-added")):(this.$label.removeAttr(t),this.fireEvent("value-cleared"))},i.fn.fancyFileInput=function(e){return this.each(function(){let t=new r(this,e);i(this).data("FancyFileInput",t)})},{}})()},793(){console.debug("AUI import for WRM I18n not loaded")},603(){jQuery.fn.moveTo=function(e){var t,i=jQuery.extend({transition:!1,scrollOffset:35},e),n=this,s=n.offset().top;if((jQuery(window).scrollTop()+jQuery(window).height()-this.outerHeight()<s||jQuery(window).scrollTop()+i.scrollOffset>s)&&jQuery(window).height()>i.scrollOffset){if(t=jQuery(window).scrollTop()+i.scrollOffset>s?s-(jQuery(window).height()-this.outerHeight())+i.scrollOffset:s-i.scrollOffset,!jQuery.fn.moveTo.animating&&i.transition)return jQuery(document).trigger("moveToStarted",this),jQuery.fn.moveTo.animating=!0,jQuery("html,body").animate({scrollTop:t},1e3,function(){jQuery(document).trigger("moveToFinished",n),delete jQuery.fn.moveTo.animating}),this;var a=jQuery("html, body");return a.is(":animated")&&(a.stop(),delete jQuery.fn.moveTo.animating),jQuery(document).trigger("moveToStarted"),jQuery(window).scrollTop(t),setTimeout(function(){jQuery(document).trigger("moveToFinished",n)},100),this}return jQuery(document).trigger("moveToFinished",this),this}},745(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}})})})},891(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})},786(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.ui.plugin={add:function(t,i,n){var s,a=e.ui[t].prototype;for(s in n)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,a=e.plugins[t];if(a&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<a.length;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}}})},41(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var t=e(this);return(!n||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length?a:e(this[0].ownerDocument||document)}})},309(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.ui=e.ui||{},e.ui.version="1.14.1"})},229(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){"use strict";var t,i=0,n=Array.prototype.hasOwnProperty,s=Array.prototype.slice;return t=e.cleanData,e.cleanData=function(i){var n,s,a;for(a=0;null!=(s=i[a]);a++)(n=e._data(s,"events"))&&n.remove&&e(s).triggerHandler("remove");t(i)},e.widget=function(t,i,n){var s,a,r,o={},l=t.split(".")[0];if("__proto__"===(t=t.split(".")[1])||"constructor"===t)return e.error("Invalid widget name: "+t);var c=l+"-"+t;return n||(n=i,i=e.Widget),Array.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},s=e[l][t],a=e[l][t]=function(e,t){if(!this||!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(r=new i).options=e.widget.extend({},r.options),e.each(n,function(e,t){if("function"!=typeof t){o[e]=t;return}o[e]=function(){function n(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,a=this._superApply;return this._super=n,this._superApply=s,e=t.apply(this,arguments),this._super=i,this._superApply=a,e}}()}),a.prototype=e.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},o,{constructor:a,namespace:l,widgetName:t,widgetFullName:c}),s?(e.each(s._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,a,i._proto)}),delete s._childConstructors):i._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var i,a,r=s.call(arguments,1),o=0,l=r.length;o<l;o++)for(i in r[o])a=r[o][i],n.call(r[o],i)&&void 0!==a&&(e.isPlainObject(a)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],a):e.widget.extend({},a):t[i]=a);return t},e.widget.bridge=function(t,i){var n=i.prototype.widgetFullName||t;e.fn[t]=function(a){var r="string"==typeof a,o=s.call(arguments,1),l=this;return r?this.length||"instance"!==a?this.each(function(){var i,s=e.data(this,n);return"instance"===a?(l=s,!1):s?"function"!=typeof s[a]||"_"===a.charAt(0)?e.error("no such method '"+a+"' for "+t+" widget instance"):(i=s[a].apply(s,o))!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+a+"'")}):l=void 0:(o.length&&(a=e.widget.extend.apply(null,[a].concat(o))),this.each(function(){var t=e.data(this,n);t?(t.option(a||{}),t._init&&t._init()):e.data(this,n,new i(a,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,s,a,r=t;if(0==arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(n=t.split(".")).shift(),n.length){for(a=0,s=r[t]=e.widget.extend({},this.options[t]);a<n.length-1;a++)s[n[a]]=s[n[a]]||{},s=s[n[a]];if(t=n.pop(),1==arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1==arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,s;for(i in t)s=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&s&&s.length&&(n=e(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var i=[],n=this;function s(s,a){var r,o;for(o=0;o<s.length;o++)r=n.classesElementLookup[s[o]]||e(),t.add?(!function(){var i=[];t.element.each(function(t,s){e.map(n.classesElementLookup,function(e){return e}).some(function(e){return e.is(s)})||i.push(s)}),n._on(e(i),{remove:"_untrackClassesElement"})}(),r=e(e.uniqueSort(r.get().concat(t.element.get())))):r=e(r.not(t.element).get()),n.classesElementLookup[s[o]]=r,i.push(s[o]),a&&t.classes[s[o]]&&i.push(t.classes[s[o]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&s(t.keys.match(/\S+/g)||[],!0),t.extra&&s(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,function(n,s){-1!==e.inArray(t.target,s)&&(i.classesElementLookup[n]=e(s.not(t.target).get()))}),this._off(e(t.target))},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof e||null===e,a={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return a.element.toggleClass(this._classes(a),n),this},_on:function(t,i,n){var s,a=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,function(n,r){function o(){if(!(!t&&(!0===a.options.disabled||e(this).hasClass("ui-state-disabled"))))return("string"==typeof r?a[r]:r).apply(a,arguments)}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?s.on(c,u,o):i.on(c,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var s,a,r=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(s in a)s in i||(i[s]=a[s]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,s,a){"string"==typeof s&&(s={effect:s});var r,o=s?!0===s||"number"==typeof s?i:s.effect||i:t;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),r=!e.isEmptyObject(s),s.complete=a,s.delay&&n.delay(s.delay),r&&e.effects&&e.effects.effect[o]?n[t](s):o!==t&&n[o]?n[o](s.duration,s.easing,a):n.queue(function(i){e(this)[t](),a&&a.call(n[0]),i()})}}),e.widget})},253(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309),i(891)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){"use strict";var t;function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=n(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,s)}function s(){e.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function a(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}return e.extend(e.ui,{datepicker:{version:"1.14.1"}}),e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return a(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,s,a;s="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),s)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,a):s&&this._inlineDatepicker(t,a)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),!n.hasClass(this.markerClassName)&&(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,s,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span>").addClass(this._appendClass).text(r),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(n=this._get(i,"showOn"))||"both"===n)&&t.on("focus",this._showDatepicker),("button"===n||"both"===n)&&(s=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),a?i.trigger.html(e("<img>").attr({src:a,alt:s,title:s})):i.trigger.text(s)),t[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():(e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]&&e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(s=0,i=0,n=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,s,r){var o,l,c,u,h,p=this._dialogInst;return p||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",p)),a(p.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(i){var n,s=e(i),a=e.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),e.removeData(i,"datepicker"),"input"===n?(a.append.remove(),a.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===n||"span"===n)&&s.removeClass(this.markerClassName).empty(),e.datepicker._hideDatepicker(),t===a&&(t=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var s,r,o,l,c=this._getInst(t);if(2==arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):c?"all"===i?e.extend({},c.settings):this._get(c,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),a(c.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,s,a=e.datepicker._getInst(t.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv))[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,s[0]),(i=e.datepicker._get(a,"onSelect"))?(n=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[n,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var i,n,s,r,o,l,c;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(s=(n=e.datepicker._get(i,"beforeShow"))?n.apply(t,[t,i]):{})&&(a(i.settings,s),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),r=!1,e(t).parents().each(function(){return!(r|="fixed"===e(this).css("position"))}),o={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),o=e.datepicker._checkOffset(i,o,r),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":r?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),i.inline||(l=e.datepicker._get(i,"showAnim"),c=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&!isNaN(i=parseInt(e.css("zIndex"),10))&&0!==i)return i;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),c):i.dpDiv[l||"show"](l?c:null),e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),e.datepicker._curInst=i)))},_updateDatepicker:function(i){this.maxRows=4,t=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,a=this._getNumberOfMonths(i),r=a[1],o=i.dpDiv.find("."+this._dayOverClass+" a"),l=e.datepicker._get(i,"onUpdateDatepicker");o.length>0&&s.apply(o.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&i.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),i.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),i.yearshtml&&(n=i.yearshtml,setTimeout(function(){n===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year").first().replaceWith(i.yearshtml),n=i.yearshtml=null},0)),l&&l.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-r:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+a>c&&c>a?Math.abs(a+o):0),i},_findPos:function(t){for(var i,n=this._getInst(t),s=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,s,a,r=this._curInst;r&&(!t||r===e.data(t,"datepicker"))&&this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){e.datepicker._tidyDialog(r)},e.effects&&e.effects.effect[i]?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&!(e.datepicker._inDialog&&e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==n)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var s=e(t),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,i,n),this._updateDatepicker(a))},_gotoToday:function(t){var i,n=e(t),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(s.selectedDay=(i=new Date).getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var s=e(t),a=this._getInst(s[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(t,i,n,s){var a,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=parseInt(e("a",s).attr("data-date")),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),a=this._getInst(s[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),(n=this._get(a,"onSelect"))?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(a).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,a,r,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:new Date().getFullYear()%100+parseInt(c,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,g=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,v=-1,b=-1,y=-1,w=!1,_=function(e){var i=s+1<t.length&&t.charAt(s+1)===e;return i&&s++,i},x=function(e){var t=_(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),a=i.substring(l).match(s);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},C=function(t,n,s){var a=-1,r=e.map(_(t)?s:n,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(r,function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return a=t[0],l+=n.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+l},T=function(){if(i.charAt(l)!==t.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<t.length;s++)if(w)"'"!==t.charAt(s)||_("'")?T():w=!1;else switch(t.charAt(s)){case"d":b=x("d");break;case"D":C("D",h,p);break;case"o":y=x("o");break;case"m":v=x("m");break;case"M":v=C("M",f,g);break;case"y":m=x("y");break;case"@":m=(o=new Date(x("@"))).getFullYear(),v=o.getMonth()+1,b=o.getDate();break;case"!":m=(o=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),v=o.getMonth()+1,b=o.getDate();break;case"'":_("'")?T():w=!0;break;default:T()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=new Date().getFullYear():m<100&&(m+=new Date().getFullYear()-new Date().getFullYear()%100+(m<=u?0:-100)),y>-1)for(v=1,b=y;!(b<=(a=this._getDaysInMonth(m,v-1)));)v++,b-=a;if((o=this._daylightSavingAdjust(new Date(m,v-1,b))).getFullYear()!==m||o.getMonth()+1!==v||o.getDate()!==b)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864e9,formatDate:function(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},u=function(e,t,i,n){return l(e)?n[t]:i[t]},h="",p=!1;if(t)for(n=0;n<e.length;n++)if(p)"'"!==e.charAt(n)||l("'")?h+=e.charAt(n):p=!1;else switch(e.charAt(n)){case"d":h+=c("d",t.getDate(),2);break;case"D":h+=u("D",t.getDay(),s,a);break;case"o":h+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=c("m",t.getMonth()+1,2);break;case"M":h+=u("M",t.getMonth(),r,o);break;case"y":h+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":p=!0;break;default:h+=e.charAt(n)}return h},_possibleChars:function(e){var t,i="",n=!1,s=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),a=s,r=this._getFormatConfig(e);try{a=this.parseDate(i,n,r)||s}catch(e){n=t?"":n}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=n?a.getDate():0,e.currentMonth=n?a.getMonth():0,e.currentYear=n?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var s,a=null==i||""===i?n:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),a=n.getMonth(),r=n.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a))}l=o.exec(i)}return new Date(s,a,r)}(i):"number"==typeof i?isNaN(i)?n:((s=new Date).setDate(s.getDate()+i),s):new Date(i.getTime());return(a=a&&"Invalid Date"===a.toString()?n:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){e(this).on(this.getAttribute("data-event"),{prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(t){var i,n,s,a,r,o,l,c,u,h,p,f,g,m,v,b,y,w,_,x,C,T,k,E,A,D,S,I,M,N,O,L,P,R,$,j,z,H,F,U=new Date,B=this._daylightSavingAdjust(new Date(U.getFullYear(),U.getMonth(),U.getDate())),W=this._get(t,"isRTL"),V=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),q=this._get(t,"navigationAsDateFormat"),K=this._getNumberOfMonths(t),Q=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),J=1!==K[0]||1!==K[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),ee=this._getMinMaxDate(t,"max"),et=t.drawMonth-Q,ei=t.drawYear;if(et<0&&(et+=12,ei--),ee)for(i=this._daylightSavingAdjust(new Date(ee.getFullYear(),ee.getMonth()-K[0]*K[1]+1,ee.getDate())),i=X&&i<X?X:i;this._daylightSavingAdjust(new Date(ei,et,1))>i;)--et<0&&(et=11,ei--);for(t.drawMonth=et,t.drawYear=ei,n=this._get(t,"prevText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(ei,et-G,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,-1,ei,et)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML:Y?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML,a=this._get(t,"nextText"),a=q?this.formatDate(a,this._daylightSavingAdjust(new Date(ei,et+G,1)),this._getFormatConfig(t)):a,r=this._canAdjustMonth(t,1,ei,et)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:a}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(a))[0].outerHTML:Y?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:a}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(a))[0].outerHTML,o=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Z:B,o=q?this.formatDate(o,l,this._getFormatConfig(t)):o,c="",t.inline||(c=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),u="",V&&(u=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?c:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(W?"":c)[0].outerHTML),h=isNaN(h=parseInt(this._get(t,"firstDay"),10))?0:h,p=this._get(t,"showWeek"),f=this._get(t,"dayNames"),g=this._get(t,"dayNamesMin"),m=this._get(t,"monthNames"),v=this._get(t,"monthNamesShort"),b=this._get(t,"beforeShowDay"),y=this._get(t,"showOtherMonths"),w=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),x="",T=0;T<K[0];T++){for(E=0,k="",this.maxRows=4;E<K[1];E++){if(A=this._daylightSavingAdjust(new Date(ei,et,t.selectedDay)),D=" ui-corner-all",S="",J){if(S+="<div class='ui-datepicker-group",K[1]>1)switch(E){case 0:S+=" ui-datepicker-group-first",D=" ui-corner-"+(W?"right":"left");break;case K[1]-1:S+=" ui-datepicker-group-last",D=" ui-corner-"+(W?"left":"right");break;default:S+=" ui-datepicker-group-middle",D=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&0===T?W?r:s:"")+(/all|right/.test(D)&&0===T?W?s:r:"")+this._generateMonthYearHeader(t,et,ei,X,ee,T>0||E>0,m,v)+"</div><table class='ui-datepicker-calendar'><thead><tr>",I=p?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",C=0;C<7;C++)M=(C+h)%7,I+="<th scope='col'"+((C+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+f[M]+"'>"+g[M]+"</span></th>";for(S+=I+"</tr></thead><tbody>",N=this._getDaysInMonth(ei,et),ei===t.selectedYear&&et===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,N)),L=Math.ceil(((O=(this._getFirstDayOfMonth(ei,et)-h+7)%7)+N)/7),P=J&&this.maxRows>L?this.maxRows:L,this.maxRows=P,R=this._daylightSavingAdjust(new Date(ei,et,1-O)),$=0;$<P;$++){for(S+="<tr>",j=p?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(R)+"</td>":"",C=0;C<7;C++)z=b?b.apply(t.input?t.input[0]:null,[R]):[!0,""],F=(H=R.getMonth()!==et)&&!w||!z[0]||X&&R<X||ee&&R>ee,j+="<td class='"+((C+h+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(R.getTime()===A.getTime()&&et===t.selectedMonth&&t._keyEvent||_.getTime()===R.getTime()&&_.getTime()===A.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!y?"":" "+z[1]+(R.getTime()===Z.getTime()?" "+this._currentClass:"")+(R.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+((!H||y)&&z[2]?" title='"+z[2].replace(/'/g,"&#39;")+"'":"")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+">"+(H&&!y?"&#xa0;":F?"<span class='ui-state-default'>"+R.getDate()+"</span>":"<a class='ui-state-default"+(R.getTime()===B.getTime()?" ui-state-highlight":"")+(R.getTime()===Z.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#' aria-current='"+(R.getTime()===Z.getTime()?"true":"false")+"' data-date='"+R.getDate()+"'>"+R.getDate()+"</a>")+"</td>",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);S+=j+"</tr>"}++et>11&&(et=0,ei++),S+="</tbody></table>"+(J?"</div>"+(K[0]>0&&E===K[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),k+=S}x+=k}return x+=u,t._keyEvent=!1,x},_generateMonthYearHeader:function(e,t,i,n,s,a,r,o){var l,c,u,h,p,f,g,m,v=this._get(e,"changeMonth"),b=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),w=this._get(e,"selectMonthLabel"),_=this._get(e,"selectYearLabel"),x="<div class='ui-datepicker-title'>",C="";if(a||!v)C+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,C+="<select class='ui-datepicker-month' aria-label='"+w+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(C+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>");C+="</select>"}if(y||(x+=C+(a||!(v&&b)?"&#xa0;":"")),!e.yearshtml)if(e.yearshtml="",a||!b)x+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(e,"yearRange").split(":"),p=new Date().getFullYear(),m=Math.max(g=(f=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?p+parseInt(e,10):parseInt(e,10);return isNaN(t)?p:t})(h[0]),f(h[1]||"")),g=n?Math.max(g,n.getFullYear()):g,m=s?Math.min(m,s.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+_+"' data-handler='selectYear' data-event='change'>";g<=m;g++)e.yearshtml+="<option value='"+g+"'"+(g===i?" selected='selected'":"")+">"+g+"</option>";e.yearshtml+="</select>",x+=e.yearshtml,e.yearshtml=null}return x+=this._get(e,"yearSuffix"),y&&(x+=(a||!(v&&b)?"&#xa0;":"")+C),x+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&s>n?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=new Date().getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:new Date().getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2==arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)})},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=new Date().getTime(),e.datepicker.version="1.14.1",e.datepicker})},132(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(228),i(745),i(786),i(41),i(309),i(229)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return!this.helper&&!i.disabled&&!(e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=this.document[0].activeElement;e(t.target).closest(i).length||e(i).trigger("blur")},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t))?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",t)&&i._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper,s=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options,a=this.document[0];if(this.relativeContainer=null,!s.containment){this.containment=null;return}if("window"===s.containment){this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if("document"===s.containment){this.containment=[0,0,e(a).width()-this.helperProportions.width-this.margins.left,(e(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(s.containment.constructor===Array){this.containment=s.containment;return}"parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=e(s.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,s,a,r=this.options,o=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var s=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,s))})},stop:function(t,i,n){var s=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,function(){this.isOver?(this.isOver=0,n.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(t),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",t,s))})},drag:function(t,i,n){e.each(n.sortables,function(){var s=!1,a=this;a.positionAbs=n.positionAbs,a.helperProportions=n.helperProportions,a.offset.click=n.offset.click,a._intersectsWith(a.containerCache)&&(s=!0,e.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&e.contains(a.element[0],this.element[0])&&(s=!1),s})),s?(a.isOver||(a.isOver=1,n._parent=i.helper.parent(),a.currentItem=i.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return i.helper[0]},t.target=a.currentItem[0],a._mouseCapture(t,!0),a._mouseStart(t,!0,!0),a.offset.click.top=n.offset.click.top,a.offset.click.left=n.offset.click.left,a.offset.parent.left-=n.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=n.offset.parent.top-a.offset.parent.top,n._trigger("toSortable",t),n.dropped=a.element,e.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,a.fromOutside=n),a.currentItem&&(a._mouseDrag(t),i.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",t,a._uiHash(a)),a._mouseStop(t,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var s=e("body"),a=n.options;s.css("cursor")&&(a._cursor=s.css("cursor")),s.css("cursor",a.cursor)},stop:function(t,i,n){var s=n.options;s._cursor&&e("body").css("cursor",s._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){var s=e(i.helper),a=n.options;s.css("opacity")&&(a._opacity=s.css("opacity")),s.css("opacity",a.opacity)},stop:function(t,i,n){var s=n.options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,n){var s=n.options,a=!1,r=n.scrollParentNotHidden[0],o=n.document[0];r!==o&&"HTML"!==r.tagName?((!s.axis||"x"!==s.axis)&&(n.overflowOffset.top+r.offsetHeight-t.pageY<s.scrollSensitivity?r.scrollTop=a=r.scrollTop+s.scrollSpeed:t.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=a=r.scrollTop-s.scrollSpeed)),(!s.axis||"y"!==s.axis)&&(n.overflowOffset.left+r.offsetWidth-t.pageX<s.scrollSensitivity?r.scrollLeft=a=r.scrollLeft+s.scrollSpeed:t.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=a=r.scrollLeft-s.scrollSpeed))):((!s.axis||"x"!==s.axis)&&(t.pageY-e(o).scrollTop()<s.scrollSensitivity?a=e(o).scrollTop(e(o).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(o).scrollTop())<s.scrollSensitivity&&(a=e(o).scrollTop(e(o).scrollTop()+s.scrollSpeed))),(!s.axis||"y"!==s.axis)&&(t.pageX-e(o).scrollLeft()<s.scrollSensitivity?a=e(o).scrollLeft(e(o).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(o).scrollLeft())<s.scrollSensitivity&&(a=e(o).scrollLeft(e(o).scrollLeft()+s.scrollSpeed)))),!1!==a&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var s=n.options;n.snapElements=[],e(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=e(this),i=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,n){var s,a,r,o,l,c,u,h,p,f,g=n.options,m=g.snapTolerance,v=i.offset.left,b=v+n.helperProportions.width,y=i.offset.top,w=y+n.helperProportions.height;for(p=n.snapElements.length-1;p>=0;p--){if(c=(l=n.snapElements[p].left-n.margins.left)+n.snapElements[p].width,h=(u=n.snapElements[p].top-n.margins.top)+n.snapElements[p].height,b<l-m||v>c+m||w<u-m||y>h+m||!e.contains(n.snapElements[p].item.ownerDocument,n.snapElements[p].item)){n.snapElements[p].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[p].item})),n.snapElements[p].snapping=!1;continue}"inner"!==g.snapMode&&(s=Math.abs(u-w)<=m,a=Math.abs(h-y)<=m,r=Math.abs(l-b)<=m,o=Math.abs(c-v)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),f=s||a||r||o,"outer"!==g.snapMode&&(s=Math.abs(u-y)<=m,a=Math.abs(h-w)<=m,r=Math.abs(l-v)<=m,o=Math.abs(c-b)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[p].snapping&&(s||a||r||o||f)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[p].item})),n.snapElements[p].snapping=s||a||r||o||f}}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s,a=n.options,r=e.makeArray(e(a.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});r.length&&(s=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each(function(t){e(this).css("zIndex",s+t)}),this.css("zIndex",s+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var s=e(i.helper),a=n.options;s.css("zIndex")&&(a._zIndex=s.css("zIndex")),s.css("zIndex",a.zIndex)},stop:function(t,i,n){var s=n.options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}}),e.ui.draggable})},228(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309),i(229)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){"use strict";var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,a="string"==typeof this.options.cancel&&e(i.target).closest(this.options.cancel).length;return!(s&&!a&&this._mouseCapture(i))||((this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted))?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return((e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted)?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&e.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,i.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})},903(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(228),i(745),i(41),i(309),i(229)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.14.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,a=this;return!this.reverting&&!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,a.widgetName+"-item")===a)return n=e(this),!1}),e.data(t.target,a.widgetName+"-item")===a&&(n=e(t.target)),!!n)&&(!this.options.handle||!!i||(e(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,n){var s,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this._storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,n,s,a,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if((s=(n=this.items[i]).item[0],a=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==s&&!e.contains(this.placeholder[0],s)&&("semi-dynamic"!==this.options.type||!e.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"===this.options.tolerance||this._intersectsWithSides(n))this._rearrange(t,n);else break;this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,l=o+e.height,c=this.offset.click.top,u=this.offset.click.left,h="x"===this.options.axis||n+c>o&&n+c<l,p="y"===this.options.axis||t+u>a&&t+u<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?h&&p:a<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!!(n&&s)&&(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,n,s,a,r=[],o=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(n=(s=e(l[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push(["function"==typeof a.options.items?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function c(){r.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,s,a,r,o,l,c,u=this.items,h=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(i=p.length-1;i>=0;i--)for(n=(s=e(p[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&(h.push(["function"==typeof a.options.items?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(i=h.length-1;i>=0;i--)for(n=0,r=h[i][1],c=(o=h[i][0]).length;n<c;n++)(l=e(o[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,n,s,a;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=s.outerWidth(),n.height=s.outerHeight()),n.left=(a=s.offset()).left,n.top=a.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,a){(!i||s.forcePlaceholderSize)&&((!a.height()||s.forcePlaceholderSize&&("tbody"===n||"tr"===n))&&a.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),a.width()||a.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each(function(){e("<td>&#160;</td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){var i,n,s,a,r,o,l,c,u,h,p=null,f=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(p&&e.contains(this.containers[i].element[0],p.element[0]))continue;p=this.containers[i],f=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(p)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(s=1e4,a=null,r=(u=p.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",h=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.contains(this.containers[f].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,t[h]-l>this.items[n][o]/2&&(c=!0),Math.abs(t[h]-l)<s&&(s=Math.abs(t[h]-l),a=this.items[n],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f]){this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1);return}a?this._rearrange(t,a,null,!0):this._rearrange(t,null,this.containers[f].element,!0),this._trigger("change",t,this._uiHash()),this.containers[f]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),("document"===s.containment||"window"===s.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(t=e(s.containment)[0],i=e(s.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*n}},_generatePosition:function(t){var i,n,s=this.options,a=t.pageX,r=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"===this.cssPosition&&(this.scrollParent[0]===this.document[0]||this.scrollParent[0]===this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}for(this.fromOutside&&!t&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&n.push(function(e){this._trigger("update",e,this._uiHash())}),this===this.currentContainer||t||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push((function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}).call(this,this.currentContainer)),n.push((function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}).call(this,this.currentContainer))),i=this.containers.length-1;i>=0;i--)t||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<n.length;i++)n[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})})},841(){var e=jQuery;function t(e){this.num=0,this.timer=e>0&&e}function i(i){if(e.isPlainObject(i.data)||Array.isArray(i.data)||"string"==typeof i.data){var s,a=i.handler,r={timer:700,combo:[]};"string"==typeof(s=i.data)?r.combo=[s]:Array.isArray(s)?r.combo=s:e.extend(r,s),r.combo=e.map(r.combo,function(e){return e.toLowerCase()}),i.index=new t(r.timer),i.handler=function(t){if(!(this!==t.target&&(/textarea|select|input/i.test(t.target.nodeName)||"true"===e(t.target).prop("contenteditable")))){var s="keypress"!==t.type?e.hotkeys.specialKeys[t.which]:null,o=String.fromCharCode(t.which).toLowerCase(),l="",c={};t.altKey&&"alt"!==s&&(l+="alt+"),t.ctrlKey&&"ctrl"!==s&&(l+="ctrl+"),t.metaKey&&!t.ctrlKey&&"meta"!==s&&(l+="meta+"),t.shiftKey&&"shift"!==s&&(l+="shift+"),t.metaKey&&"["===o&&(o=null),s&&(c[l+s]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+e.hotkeys.shiftNums[s||o]]=!0);var u=i.index,h=r.combo;if(n(h[u.val()],c))if(u.val()===h.length-1)return u.reset(),a.apply(this,arguments);else u.inc();else u.reset(),n(h[0],c)&&u.inc()}}}}function n(e,t){for(var i=e.split(" "),n=0,s=i.length;n<s;n++)if(t[i[n]])return!0;return!1}e.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",188:",",190:".",191:"/",224:"meta",219:"[",221:"]"},keypressKeys:["<",">","?"],shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},e.each(e.hotkeys.keypressKeys,function(t,i){e.hotkeys.shiftNums[i]=i}),t.prototype.val=function(){return this.num},t.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(e.proxy(t.prototype.reset,this),this.timer)),this.num++},t.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:i}})},217(){var e;void 0===(e=jQuery).fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}}),function(e,t){"use strict";if(window.Select2===t){var i,n,s,a,r,o,l,c,u={x:0,y:0},h={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(e){switch(e=e.which?e.which:e){case h.LEFT:case h.RIGHT:case h.UP:case h.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case h.SHIFT:case h.CTRL:case h.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},p={"Ⓐ":"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",Ɓ:"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",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"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",Ꝼ:"F","Ⓖ":"G",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","Ⓘ":"I",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",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",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",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",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",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",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",Ꝣ:"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",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",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",ꝺ:"d",dz:"dz",dž:"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",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",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",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",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",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"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",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",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",ẛ:"s","ⓣ":"t",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",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",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",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};l=e(document),i=1,r=function(){return i++},n=N(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,a,o,l,h,p=".select2-results";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.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e(document.body),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(I(i.containerCss,this.opts.element)),this.container.addClass(I(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",x),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(I(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",x),this.results=l=this.container.find(p),this.search=h=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",x),this.results.on("mousemove",function(i){(t===u||u.x!==i.pageX||u.y!==i.pageY)&&e(i.target).trigger("mousemove-filtered",i)}),this.dropdown.on("mousemove-filtered",p,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",p,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",p,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",p,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),n=this.results,s=_(80,function(e){n.trigger("scroll-debounced",e)}),n.on("scroll",function(e){m(e.target,n.get())>=0&&s(e)}),this.dropdown.on("scroll-debounced",p,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&l.mousewheel(function(e,t,i,n){var s=l.scrollTop();n>0&&s-n<=0?(l.scrollTop(0),x(e)):n<0&&l.get(0).scrollHeight-l.scrollTop()+n<=l.height()&&(l.scrollTop(l.get(0).scrollHeight-l.height()),x(e))}),w(h),h.on("keyup-change input paste",this.bind(this.updateResults)),h.on("focus",function(){h.addClass("select2-focused")}),h.on("blur",function(){h.removeClass("select2-focused")}),this.dropdown.on("mouseup",p,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=t,"function"==typeof this.opts.initSelection&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var f=i.element.prop("disabled");t===f&&(f=!1),this.enable(!f);var g=i.element.prop("readonly");t===g&&(g=!1),this.readonly(g),c=c||((a=e("<div class='select2-measure-scrollbar'></div>")).appendTo(document.body),o={width:a.width()-a[0].clientWidth,height:a.height()-a[0].clientHeight},a.remove(),o),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==i&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:v(e.attr("locked"),"locked")||v(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,s,a,o,l=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),i.debug=i.debug||e.fn.select2.defaults.debug,i.debug&&console&&console.warn&&(null!=i.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=i.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=i.ajax&&null!=i.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=i.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=i.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=i.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=i.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=i.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=i.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),i.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=i.element.data("tags")){var c=i.element.data("tags");Array.isArray(c)||(c=[]),i.element.data("select2Tags",c)}if(null!=i.sorter&&(i.sortResults=i.sorter),null!=i.selectOnClose&&(i.selectOnBlur=i.selectOnClose),null!=i.ajax&&"function"==typeof i.ajax.processResults&&(i.ajax.results=i.ajax.processResults),null!=i.language){var u=i.language;"function"==typeof u.noMatches&&(i.formatNoMatches=u.noMatches),"function"==typeof u.searching&&(i.formatSearching=u.searching),"function"==typeof u.inputTooShort&&(i.formatInputTooShort=u.inputTooShort),"function"==typeof u.inputTooLong&&(i.formatInputTooLong=u.inputTooLong),"function"==typeof u.loadingMore&&(i.formatLoading=u.loadingMore),"function"==typeof u.maximumSelected&&(i.formatSelectionTooBig=u.maximumSelected)}if("function"!=typeof(i=e.extend({},{populateResults:function(n,s,a){var o,c=this.opts.id,u=this.liveRegion;(o=function(n,s,h){n=i.sortResults(n,s,a);var p,f,g,m,v,b,y,w,_,x,C=[];for(p=0,f=n.length;p<f;p+=1)m=!(v=!0===(g=n[p]).disabled)&&c(g)!==t,b=g.children&&g.children.length>0,(y=e("<li></li>")).addClass("select2-results-dept-"+h),y.addClass("select2-result"),y.addClass(m?"select2-result-selectable":"select2-result-unselectable"),v&&y.addClass("select2-disabled"),b&&y.addClass("select2-result-with-children"),y.addClass(l.opts.formatResultCssClass(g)),y.attr("role","presentation"),(w=e(document.createElement("div"))).addClass("select2-result-label"),w.attr("id","select2-result-label-"+r()),w.attr("role","option"),t!==(x=i.formatResult(g,w,a,l.opts.escapeMarkup))&&(w.html(x),y.append(w)),b&&((_=e("<ul></ul>")).addClass("select2-result-sub"),o(g.children,_,h+1),y.append(_)),y.data("select2-data",g),C.push(y[0]);s.append(C),u.text(i.formatMatches(n.length))})(s,n,0)}},e.fn.select2.defaults,i)).id&&(a=i.id,i.id=function(e){return e[a]}),Array.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(s?(i.query=this.bind(function(e){var i,s,a,r={results:[],more:!1},o=e.term;a=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2(function(e,t){a(t,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(e,t){a(t,r.results)}),e.callback(r)}),i.id=function(e){return e.id}):!("query"in i)&&("ajax"in i?((o=i.element.data("ajax-url"))&&o.length>0&&(i.ajax.url=o),i.query=E.call(i.element,i.ajax)):"data"in i?i.query=A(i.data):"tags"in i&&(i.query=D(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(e){return{id:null==e?"":e.trim(),text:null==e?"":e.trim()}}),i.initSelection===t&&(i.initSelection=function(t,n){var s=[];e(b(t.val(),i.separator,i.transformVal)).each(function(){var t={id:this,text:this},n=i.tags;"function"==typeof n&&(n=n()),e(n).each(function(){if(v(this.id,t.id))return t=this,!1}),s.push(t)}),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=n.prop("disabled");t===e&&(e=!1),this.enable(!e);var i=n.prop("readonly");t===i&&(i=!1),this.readonly(i),this.container&&(C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(I(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(I(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",s._sync)}),t!==(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(function(t){e.each(t,s._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.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!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){t===e&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){t===e&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,a,r=this.dropdown,o=this.container,l=o.offset(),u=o.outerHeight(!1),h=o.outerWidth(!1),p=r.outerHeight(!1),f=e(window),g=f.width(),m=f.height(),v=f.scrollLeft()+g,b=f.scrollTop()+m,y=l.top+u,w=l.left,_=y+p<=b,x=l.top-p>=f.scrollTop(),C=r.outerWidth(!1);r.hasClass("select2-drop-above")?(i=!0,!x&&_&&(n=!0,i=!1)):(i=!1,!_&&x&&(n=!0,i=!0)),n&&(r.hide(),l=this.container.offset(),u=this.container.outerHeight(!1),h=this.container.outerWidth(!1),p=r.outerHeight(!1),v=f.scrollLeft()+g,b=f.scrollTop()+m,y=l.top+u,w=l.left,C=r.outerWidth(!1),r.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(a=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),(C=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:c.width))>h?h=C:C=h,p=r.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(y-=(t=this.body.offset()).top,w-=t.left),!(w+C<=v)&&l.left+v+o.outerWidth(!1)>C&&(w=l.left+this.container.outerWidth(!1)-C),s={left:w,width:h},i?(this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above"),p=r.outerHeight(!1),s.top=l.top-p,s.bottom="auto"):(s.top=y,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=e.extend(s,I(this.opts.dropdownCss,this.opts.element)),r.css(s)},shouldOpen:function(){var t;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(t=e.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(),l.on("mousemove.select2Event",function(e){u.x=e.pageX,u.y=e.pageY}),!0)},opening:function(){var t,i=this.containerEventName,n="scroll."+i,s="resize."+i,a="orientationchange."+i;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),0===(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){f(t);var n,s=e("#select2-drop");s.length>0&&((n=s.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#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");var r=this;this.container.parents().add(window).each(function(){e(this).on(s+" "+n+" "+a,function(e){r.opened()&&r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),l.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return t!==e&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return I(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,n,s,a,r,o,l,c=this.results;if(!((i=this.highlight())<0)){if(0==i)return void c.scrollTop(0);s=(l=((n=e((t=this.findHighlightableChoices().find(".select2-result-label"))[i])).offset()||{}).top||0)+n.outerHeight(!0),i===t.length-1&&(o=c.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(a=c.offset().top+c.outerHeight(!1))&&c.scrollTop(c.scrollTop()+(s-a)),(r=l-c.offset().top)<0&&"none"!=n.css("display")&&c.scrollTop(c.scrollTop()+r)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=e(i[n+=t]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,n,s=this.findHighlightableChoices();if(0==arguments.length)return m(s.filter(".select2-highlighted")[0],s.get());t>=s.length&&(t=s.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(s[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),a=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(r){n.opened()&&(n.opts.populateResults.call(this,e,r.results,{term:s,page:i,context:a}),n.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).html(n.opts.escapeMarkup(I(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=r.context,this.opts.element.trigger({type:"select2-loaded",items:r}))})}))},tokenize:function(){},updateResults:function(i){var n,s,a,r=this.search,o=this.results,l=this.opts,c=this,u=r.val(),h=e.data(this.container,"select2-last-term");if(!(!0!==i&&h&&v(u,h))&&(e.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){a=++this.queryCount;var p=this.getMaximumSelectionSize();if(p>=1&&Array.isArray(n=this.data())&&n.length>=p&&S(l.formatSelectionTooBig,"formatSelectionTooBig"))return void g("<li class='select2-selection-limit'>"+I(l.formatSelectionTooBig,l.element,p)+"</li>");if(r.val().length<l.minimumInputLength){S(l.formatInputTooShort,"formatInputTooShort")?g("<li class='select2-no-results'>"+I(l.formatInputTooShort,l.element,r.val(),l.minimumInputLength)+"</li>"):g(""),i&&this.showSearch&&this.showSearch(!0);return}if(l.maximumInputLength&&r.val().length>l.maximumInputLength)return void(S(l.formatInputTooLong,"formatInputTooLong")?g("<li class='select2-no-results'>"+I(l.formatInputTooLong,l.element,r.val(),l.maximumInputLength)+"</li>"):g(""));l.formatSearching&&0===this.findHighlightableChoices().length&&g("<li class='select2-searching'>"+I(l.formatSearching,l.element)+"</li>"),r.addClass("select2-active"),this.removeHighlight(),t!=(s=this.tokenize())&&null!=s&&r.val(s),this.resultsPage=1,l.query({element:l.element,term:r.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind(function(n){var s;if(a==this.queryCount){if(!this.opened())return void this.search.removeClass("select2-active");if(n.hasError!==t&&S(l.formatAjaxError,"formatAjaxError"))return void g("<li class='select2-ajax-error'>"+I(l.formatAjaxError,l.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==r.val()&&null!=(s=this.opts.createSearchChoice.call(c,r.val(),n.results))&&c.id(s)!==t&&null!==c.id(s)&&0===e(n.results).filter(function(){return v(c.id(this),c.id(s))}).length&&this.opts.createSearchChoicePosition(n.results,s),0===n.results.length&&S(l.formatNoMatches,"formatNoMatches")){g("<li class='select2-no-results'>"+I(l.formatNoMatches,l.element,r.val())+"</li>"),this.showSearch&&this.showSearch(r.val());return}o.empty(),c.opts.populateResults.call(this,o,n.results,{term:r.val(),page:this.resultsPage,context:null}),!0===n.more&&S(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+l.escapeMarkup(I(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout(function(){c.loadMoreIfNeeded()},10)),this.postprocessResults(n,i),f(),this.opts.element.trigger({type:"select2-loaded",items:n})}})})}function f(){r.removeClass("select2-active"),c.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(o.text()):c.liveRegion.text(c.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function g(e){o.html(e),f()}},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(){var e;(e=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,i=e[0],n=e.val().length;e.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){if(this._touchMoved)return void this.clearTouchMoved();var t=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(null==e.text()?"":""===e.text().trim()&&""===e.val())return e}},initContainerWidth:function(){var e=(function(){var e,t,i,n,s;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("string"==typeof(e=this.opts.element.attr("style"))){for(n=0,s=(t=e.split(";")).length;n<s;n+=1)if(null!==(i=t[n].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&i.length>=1)return i[1]}return"resolve"===this.opts.width?(e=this.opts.element.css("width")).indexOf("%")>0?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}if("function"==typeof this.opts.width)return this.opts.width();return this.opts.width}).call(this);null!==e&&this.container.css("width",e)}}),s=N(n,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html("<a role='button' class='select2-choice' tabindex='-1'> <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr> <span class='select2-arrow' role='presentation'><b role='presentation'></b></span></a><label for='' class='select2-offscreen'></label><input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' /><div class='select2-drop select2-display-none'> <div class='select2-search'> <label for='' class='select2-offscreen'></label> <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true' aria-autocomplete='list' /> </div> <ul class='select2-results' role='listbox'> </ul></div>")},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((i=t.createTextRange()).collapse(!1),i.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,s=this.dropdown,a=r();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode){if(e.which===h.PAGE_UP||e.which===h.PAGE_DOWN)return void x(e);switch(e.which){case h.UP:case h.DOWN:this.moveHighlight(e.which===h.UP?-1:1),x(e);return;case h.ENTER:this.selectHighlighted(),x(e);return;case h.TAB:this.selectHighlighted({noFocus:!0});return;case h.ESC:this.cancel(e),x(e);return}}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&!(e.which===h.TAB||h.isControl(e)||h.isFunctionKey(e))&&e.which!==h.ESC){if(!1===this.opts.openOnEnter&&e.which===h.ENTER)return void x(e);if(e.which==h.DOWN||e.which==h.UP||e.which==h.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;this.open(),x(e);return}if(e.which==h.DELETE||e.which==h.BACKSPACE){this.opts.allowClear&&this.clear(),x(e);return}}})),w(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){this.opts.minimumResultsForSearch>=0&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){f(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),x(i)})),s.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){x(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.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(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(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 e=this;this.opts.initSelection.call(null,this.opts.element,function(t){null!=t&&(e.updateSelection(t),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),a=null;t.query({matcher:function(e,i,n){var r=v(s,t.id(n));return r&&(a=n),r},callback:"function"!=typeof n?e.noop:function(){n(a)}})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,i,n){var s=0,a=this;if(this.findHighlightableChoices().each2(function(e,t){if(v(a.id(t.data("select2-data")),a.opts.element.val()))return s=e,!1}),!1!==n&&(!0===i&&s>=0?this.highlight(s):this.highlight(0)),!0===i){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(function t(i){var n=0;return e.each(i,function(e,i){i.children?n+=t(i.children):n++}),n}(t.results)>=r)}},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),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),(!t||!t.noFocus)&&this.opts.shouldFocusInput(this)&&this.focusser.focus(),v(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),t!==i&&s.append(i),t!==(n=this.opts.formatSelectionCssClass(e,s))&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,a=this.data();if(0==arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=s.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:a});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),i&&s.triggerChange({added:e,removed:a})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0==arguments.length)return t==(i=this.selection.data("select2-data"))&&(i=null),i;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),a=N(n,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html("<ul class='select2-choices'> <li class='select2-search-field'> <label for='' class='select2-offscreen'></label> <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(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=b(i.val(),t.separator,t.transformVal),a=[];t.query({matcher:function(i,n,r){var o=e.grep(s,function(e){return v(e,t.id(r))}).length;return o&&a.push(r),o},callback:"function"!=typeof n?e.noop:function(){for(var e=[],i=0;i<s.length;i++)for(var r=s[i],o=0;o<a.length;o++){var l=a[o];if(v(r,t.id(l))){e.push(l),a.splice(o,1);break}}n(e)}})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+r()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=function(t){t=e(t)[0];var i=0,n=0;if("selectionStart"in t)i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==h.LEFT||i.which==h.RIGHT||i.which==h.BACKSPACE||i.which==h.DELETE||i.which==h.ENTER)){var o=n;i.which==h.LEFT&&s.length?o=s:i.which==h.RIGHT?o=a.length?a:null:i.which===h.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),o=s.length?s:a):i.which==h.DELETE?this.unselect(n.first())&&(this.search.width(10),o=a.length?a:null):i.which==h.ENTER&&(o=null),this.selectChoice(o),x(i),o&&o.length||this.open();return}if((i.which!==h.BACKSPACE||1!=this.keydowns)&&i.which!=h.LEFT||0!=r.offset||r.length)this.selectChoice(null);else{this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),x(i);return}if(this.opened())switch(i.which){case h.UP:case h.DOWN:this.moveHighlight(i.which===h.UP?-1:1),x(i);return;case h.ENTER:this.selectHighlighted(),x(i);return;case h.TAB:this.selectHighlighted({noFocus:!0}),this.close();return;case h.ESC:this.cancel(i),x(i);return}if(!(i.which===h.TAB||h.isControl(i)||h.isFunctionKey(i))&&i.which!==h.BACKSPACE&&i.which!==h.ESC){if(i.which===h.ENTER){if(!1===this.opts.openOnEnter)return;else if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),(i.which===h.PAGE_UP||i.which===h.PAGE_DOWN)&&x(i),i.which===h.ENTER&&x(i)}}})),this.search.on("keyup",this.bind(function(e){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(e.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(t){!this.isInterfaceEnabled()||e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault())})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),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 e=this;this.opts.initSelection.call(null,this.opts.element,function(t){null!=t&&(e.updateSelection(t),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).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.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.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 i={},n=[],s=this;e(t).each(function(){s.id(this)in i||(i[s.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),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.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var i=this.getVal(),n=this;e(t).each(function(){i.push(n.createChoice(this))}),this.setVal(i)},createChoice:function(i){var n,s,a=!i.locked,r=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=a?r:o,c=this.id(i);return t!=(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))&&l.find("div").replaceWith(e("<div></div>").html(n)),t!=(s=this.opts.formatSelectionCssClass(i,l.find("div")))&&l.addClass(s),a&&l.find(".select2-search-choice-close").on("mousedown",x).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),x(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",i),l.insertBefore(this.searchContainer),c},unselect:function(t){var i,n,s=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var a=e.Event("select2-removing");if(a.val=this.id(i),a.choice=i,this.opts.element.trigger(a),a.isDefaultPrevented())return!1;for(;(n=m(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),s=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;s.each2(function(e,t){m(r.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&r.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&S(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+I(r.opts.formatNoMatches,r.opts.element,r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-y(this.search)},resizeSearch:function(){var t,i,n,s,a=y(this.search);t=function(t){if(!o){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(o=e(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"})).attr("class","select2-sizer"),e(document.body).append(o)}return o.text(t.val()),o.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-a)<t&&(s=n-a),s<40&&(s=n-a),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:b(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(t){if(this.select)this.select.val(t);else{var i=[],n={};e(t).each(function(){this in n||(i.push(this),n[this]=0)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator))}},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),i=0;i<t.length;i++)for(var n=0;n<e.length;n++)if(v(this.opts.id(t[i]),this.opts.id(e[n]))){t.splice(i,1),i--,e.splice(n,1);break}return{added:t,removed:e}},val:function(i,n){var s,a=this;if(0==arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i){this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),n&&this.triggerChange({added:this.data(),removed:s});return}if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=e.map(t,a.id);a.setVal(i),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(s,a.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw 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(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,a=this;if(0==arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();s=this.data(),t||(t=[]),n=e.map(t,function(e){return a.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,n,s,a,r,o=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===o.length||"object"==typeof o[0])(i=0===o.length?{}:e.extend({},o[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?r=i.element.prop("multiple"):(r=i.multiple||!1,"tags"in i&&(i.multiple=r=!0)),(n=r?new window.Select2.class.multi:new window.Select2.class.single).init(i);else if("string"==typeof o[0]){if(0>m(o[0],l))throw"Unknown method: "+o[0];if(a=t,t===(n=e(this).data("select2")))return;if("container"===(s=o[0])?a=n.container:"dropdown"===s?a=n.dropdown:(h[s]&&(s=h[s]),a=n[s].apply(n,o.slice(1))),m(o[0],c)>=0||m(o[0],u)>=0&&1==o.length)return!1}else throw"Invalid arguments to select2 plugin: "+o}),t===a?this:a},e.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return T(this.text(e),i.term,s,n),s.join("")},transformVal:function(e){return null==e?"":e.trim()},formatSelection:function(e,i,n){return e?n(this.text(e)):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return t==e?null:e.id},text:function(e){return e&&this.data&&this.data.text?"function"==typeof this.data.text?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return g(""+t).toUpperCase().indexOf(g(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,s){var a,r,o,l,c,u=e,h=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(o=0,r=-1,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((r=e.indexOf(c))>=0));o++);if(r<0)break;if(a=e.substring(0,r),e=e.substring(r+c.length),a.length>0&&null!=(a=s.createSearchChoice.call(this,a,i))&&s.id(a)!==t&&null!==s.id(a)){for(o=0,h=!1,l=i.length;o<l;o++)if(v(s.id(a),s.id(i[o]))){h=!0;break}h||n(a)}}if(u!==e)return e},escapeMarkup:k,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window)&&!(navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:E,local:A,tags:D},util:{debounce:_,markMatch:T,escapeMarkup:k,stripDiacritics:g},class:{abstract:n,single:s,multi:a}}}function f(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function g(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return p[e]||e})}function m(e,t){for(var i=0,n=t.length;i<n;i+=1)if(v(e,t[i]))return i;return -1}function v(e,i){return e===i||t!==e&&t!==i&&null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+"")}function b(e,t,i){var n,s,a;if(null===e||e.length<1)return[];for(s=0,a=(n=e.split(t)).length;s<a;s+=1)n[s]=i(n[s]);return n}function y(e){return e.outerWidth(!1)-e.width()}function w(i){var n="keyup-change-value";i.on("keydown",function(){e.data(i,n)===t&&e.data(i,n,i.val())}),i.on("keyup",function(){var s=e.data(i,n);t!==s&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))})}function _(e,i,n){var s;return n=n||t,function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,t)},e)}}function x(e){e.preventDefault(),e.stopPropagation()}function C(t,i,n){var s,a,r=[];let o=t.attr("class");(s=null==o?"":o.trim())&&e((s=""+s).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&r.push(this)});let l=i.attr("class");(s=null==l?"":l.trim())&&e((s=""+s).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)}),t.attr("class",r.join(" "))}function T(e,t,i,n){var s=g(e.toUpperCase()).indexOf(g(t.toUpperCase())),a=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+a))),i.push("</span>"),i.push(n(e.substring(s+a,e.length))))}function k(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function E(i){var n,s=null,a=i.quietMillis||100,r=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,a=r,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},h=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,a="function"==typeof a?a.call(o,l.term,l.page,l.context):a,s&&"function"==typeof s.abort&&s.abort(),i.params&&("function"==typeof i.params?e.extend(h,i.params.call(o)):e.extend(h,i.params)),e.extend(h,{url:a,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page,l);l.callback(t)},error:function(e,t,i){l.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:i})}}),s=c.call(o,h)},a)}}function A(t){var i,n,s=t,a=function(e){return""+e.text};Array.isArray(s)&&(s={results:n=s}),"function"!=typeof s&&(n=s,s=function(){return n});var r=s();return r.text&&"function"!=typeof(a=r.text)&&(i=r.text,a=function(e){return e[i]}),function(t){var i,n=t.term,r={results:[]};""===n?t.callback(s()):(i=function(s,r){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2(function(e,t){i(t,o.children)}),(o.children.length||t.matcher(n,a(o),s))&&r.push(o)}else t.matcher(n,a(s),s)&&r.push(s)},e(s().results).each2(function(e,t){i(t,r.results)}),t.callback(r))}}function D(i){var n="function"==typeof i;return function(s){var a=s.term,r={results:[]},o=n?i(s):i;Array.isArray(o)&&(e(o).each(function(){var e=this.text!==t,i=e?this.text:this;(""===a||s.matcher(a,i))&&r.results.push(e?this:{id:this,text:this})}),s.callback(r))}}function S(e,t){if("function"==typeof e)return!0;if(!e)return!1;if("string"==typeof e)return!0;throw Error(t+" must be a string, function, or falsy value")}function I(e,t){if("function"==typeof e){var i=Array.prototype.slice.call(arguments,2);return e.apply(t,i)}return e}function M(){var t=this;e.each(arguments,function(e,i){t[i].remove(),t[i]=null})}function N(t,i){var n=function(){};return n.prototype=new t,n.prototype.constructor=n,n.prototype.parent=t.prototype,n.prototype=e.extend(n.prototype,i),n}}(jQuery)},2(e,t,i){var n;!function(){"use strict";var s=window.DocumentFragment,a=window.HTMLElement.prototype,r=a.matches||a.msMatchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector;function o(e,t){if(e.__SKATE_TEMPLATE_HTML_DATA)return e.__SKATE_TEMPLATE_HTML_DATA[t]}function l(e,t,i){return e.__SKATE_TEMPLATE_HTML_DATA||(e.__SKATE_TEMPLATE_HTML_DATA={}),e.__SKATE_TEMPLATE_HTML_DATA[t]=i,e}function c(e){var t=e.match(/\s*<([^\s>]+)/),i=document.createElement(t&&({caption:"table",dd:"dl",dt:"dl",li:"ul",tbody:"table",td:"tr",thead:"table",tr:"tbody"})[t[1]]||"div");return i.innerHTML=e,u(i.childNodes)}function u(e){for(var t=document.createDocumentFragment();e&&e.length;)t.appendChild(e[0]);return t}function h(e,t){for(var i=[],n=e.nextSibling;n!==t;)i.push(n),n=n.nextSibling;return i}function p(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++)e.container.insertBefore(t[n],e.endNode);e.isDefault=!0}function f(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++){var s=t[n];s.parentNode.removeChild(s)}e.isDefault=!1}function g(){var e=[].slice.call(arguments).join("");return function(t){var i=u(t.childNodes);t.innerHTML=e,function(e){var t=e.getElementsByTagName("content");if(t&&t.length){for(var i=[];t.length;){var n=t[0],s=n.parentNode,a=n.getAttribute("select"),r=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:a,startNode:r}),s.replaceChild(o,n),s.insertBefore(r,o),r.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:a})+" "}l(e,"content",i)}}(t),i.childNodes.length&&g.wrap(t).appendChild(i)}}g.wrap=function(e){o(e,"content")||l(e,"content",function e(t){var i,n,s=t.childNodes,a=s.length,r=[];for(i=0;i<a;i++){var o=s[i];if(8===o.nodeType){var l=function(e){var t,i=e.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{t=JSON.parse(i[2])}catch(t){throw Error('Unable to parse content comment data: "'+t+'" in "\x3c!--'+e.textContent+'--\x3e".')}return{data:t||{defaultContent:void 0,isDefault:void 0,selector:void 0},type:i[1]?"close":"open"}}}(o);if(l){if("open"===l.type){if(n)throw Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+o.textContent+'" in "'+o.parentNode.innerHTML+'".');n={container:o.parentNode,contentNode:o,defaultNodes:l.data.defaultContent&&c(l.data.defaultContent).childNodes||[],isDefault:l.data.isDefault,selector:l.data.selector,startNode:o}}else if("close"===l.type){if(!n)throw Error('Unmatched closing content placeholder: "'+o.textContent+'" in "'+o.parentNode.innerHTML+'".');n.endNode=o,r.push(n),n=void 0}}}else r=r.concat(e(o))}return r}(e));var t,i,n=(i=(t=o(e,"content")).length,{childNodes:{get:function(){for(var e=[],n=0;n<i;n++){var s=t[n];s.isDefault||(e=e.concat(h(s.startNode,s.endNode)))}return e}},firstChild:{get:function(){var e=this.childNodes;return e.length&&e[0]||null}},innerHTML:{get:function(){for(var e="",t=this.childNodes,i=t.length,n=0;n<i;n++){var s=t[n];e+=s.outerHTML||s.textContent}return e},set:function(e){for(var n=c(e),s=0;s<i;s++){for(var a=t[s],r=h(a.startNode,a.endNode),o=0;o<r.length;o++){var l=r[o];l.parentNode.removeChild(l)}for(var u=function(e,t){if(t){for(var i=e.querySelectorAll(t),n=i.length,s=[],a=0;a<n;a++){var r=i[a];r.parentNode===e&&s.push(r)}return s}return[].slice.call(e.childNodes)||[]}(n,a.selector),g=0;g<u.length;g++)a.container.insertBefore(u[g],a.endNode);u.length?f(a):p(a)}}},lastChild:{get:function(){for(var e=i-1;e>-1;e--)if(!t[e].isDefault){var n=this.childNodes,s=n.length;return n[s-1]}return null}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t="<"+e,i=this.attributes;if(i)for(var n=i.length,s=0;s<n;s++){var a=i[s];t+=" "+a.nodeName+'="'+a.nodeValue+'"'}return t+=">",t+=this.innerHTML,t+="</"+e+">"}},textContent:{get:function(){for(var e="",t=this.childNodes,i=this.childNodes.length,n=0;n<i;n++)e+=t[n].textContent;return e},set:function(e){var n;this.innerHTML="";for(var s=0;s<i;s++){var a=t[s];if(!a.selector){n=a;break}}n&&(e?(f(n),n.container.insertBefore(document.createTextNode(e),n.endNode)):p(n))}},appendChild:{value:function(e){if(e instanceof s){var n=e.childNodes;return[].slice.call(n).forEach((function(e){this.appendChild(e)}).bind(this)),this}for(var a=0;a<i;a++){var o=t[a],l=o.selector;if(!l||e instanceof window.HTMLElement&&r.call(e,l)){f(o),o.endNode.parentNode.insertBefore(e,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(t,i){return"afterbegin"===t?this.insertBefore(c(i),this.childNodes[0]):"beforeend"===t?this.appendChild(c(i)):e.insertAdjacentHTML(t,i),this}},insertBefore:{value:function(e,n){if(!n)return this.appendChild(e);if(e instanceof s){var a=e.childNodes;if(a)for(var o=a.length,l=0;l<o;l++)this.insertBefore(a[l],n);return this}var c=!1;e:for(var u=0;u<i;u++)for(var p=t[u],f=h(p.startNode,p.endNode),g=f.length,m=0;m<g;m++){var v=f[m];if(v===n&&(c=!0),c){var b=p.selector;if(!b||r.call(e,b)){v.parentNode.insertBefore(e,v);break e}}}if(!c)throw Error("DOMException 8: The node before which the new node is to be inserted is not a child of this node.");return e}},removeChild:{value:function(e){for(var n=!1,s=0;s<i;s++){var a=t[s];if(a.container===e.parentNode){a.container.removeChild(e),n=!0;break}a.startNode.nextSibling===a.endNode&&p(a)}if(!n)throw Error("DOMException 8: The node in which you are trying to remove is not a child of this node.");return e}},replaceChild:{value:function(e,n){for(var s=0;s<i;s++){var a=t[s];if(a.container===n.parentNode){a.container.replaceChild(e,n);break}}return this}}}),a={};for(var u in e)u in n?Object.defineProperty(a,u,n[u]):Object.defineProperty(a,u,function(e,t){return{get:function(){var i=e[t];return"function"==typeof i?i.bind(e):i},set:function(i){e[t]=i}}}(e,u));return a},window.skateTemplateHtml=g,void 0===(n=(function(){return g}).call(t,i,t,e))||(e.exports=n),e.exports=g}()},221(e,t){var i,n,s;s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ATTR_IGNORE="data-skate-ignore",e.TYPE_ATTRIBUTE="a",e.TYPE_CLASSNAME="c",e.TYPE_ELEMENT="t"},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},894(e,t){var i,n,s;s=function(e,t){"use strict";t.exports=function(e){var t=void 0===arguments[1]?"":arguments[1],i=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(i[t]||(i[t]={}))||i}},i=[t,e],void 0===(n=s.apply(t,i))||(e.exports=n)},310(e,t,i){var n,s,a;a=function(e,t,i,n,s,a,r){"use strict";var o=i&&i.__esModule?i.default:i,l=n.initElements,c=n.removeElements,u=r.getClosestIgnoredElement;function h(e){for(var t=e.length,i=0;i<t;i++){var n=e[i],s=n.addedNodes,a=n.removedNodes;s&&s.length&&!u(s[0].parentNode)&&l(s),a&&a.length&&c(a)}}t.exports={register:function(e){var t;return e&&this.unregister(),o.observer||((t=new window.MutationObserver(h)).observe(document,{childList:!0,subtree:!0}),o.observer=t),this},unregister:function(){return o.observer&&(o.observer.disconnect(),o.observer=void 0),this}}},n=[t,e,i(108),i(740),i(580),i(590),i(537)],void 0===(s=a.apply(t,n))||(e.exports=s)},590(e,t){var i,n,s;s=function(e){"use strict";var t=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=window.HTMLElement.prototype;if(t||i){var s,a,r=Object.getOwnPropertyDescriptor(n,"innerHTML");r&&r.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),s=Object.getOwnPropertyDescriptor(n,"innerHTML"),(a=function(){return s.get.call(this)})._hasBeenEnhanced=!0,Object.defineProperty(n,"innerHTML",{get:a,set:function(e){!function e(t,i){var n=t.childNodes;if(n)for(var s=n.length,a=0;a<s;a++){var r=n[a];i(r,t),e(r,i)}}(this,function(e,t){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,t,null,null,null,null),e.dispatchEvent(i)}),s.set.call(this,e)}}))}},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},108(e,t,i){var n,s,a;a=function(e,t,i){"use strict";var n="__skate_"+(i&&i.__esModule?i.default:i).replace(/[^\w]/g,"_");window[n]||(window[n]={observer:void 0,registry:{}}),t.exports=window[n]},n=[t,e,i(996)],void 0===(s=a.apply(t,n))||(e.exports=s)},740(e,t,i){var n,s,a;a=function(e,t,i,n,s,a){"use strict";var r=function(e){return e&&e.__esModule?e.default:e};Object.defineProperty(e,"__esModule",{value:!0});var o=t.ATTR_IGNORE,l=r(i),c=r(s),u=a.camelCase,h=a.elementContains,p=a.hasOwn,f=a.inherit,g=a.objEach,m=window.Node,v=window.HTMLElement.prototype,b=v.matches||v.msMatchesSelector||v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector,y=!b.call(document.createElement("div"),"div"),w=function(e,t){if(y){var i=e.cloneNode();return document.createElement("div").appendChild(i),b.call(i,t)}return b.call(e,t)},_=/Edge/.test(navigator.userAgent);function x(e,t,i){var n,s,a,r=i.name,o=i.newValue;_&&(a=l(e,"cachedAttributeOldValues"));var c=_&&p(a,r)?a[r]:i.oldValue,u="string"==typeof o,h="string"==typeof c,f=t.attributes,g=f&&f[r];!h&&u?s="created":h&&u?s="updated":h&&!u&&(s="removed"),_&&("removed"===s?delete a[r]:a[r]=o),g&&"function"==typeof g[s]?n=g[s]:g&&"function"==typeof g.fallback?n=g.fallback:"function"==typeof g?n=g:"function"==typeof f&&(n=f),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(e,{type:s,name:r,newValue:o,oldValue:c})}function C(e,t){var i=l(e,t.id);if(!i.created){i.created=!0,f(e,t.prototype,!0),t.template&&!e.hasAttribute(t.resolvedAttribute)&&t.template(e),e.removeAttribute(t.unresolvedAttribute),e.setAttribute(t.resolvedAttribute,""),"object"==typeof t.events&&g(t.events,function(t,i){var n,s,a,r={name:(a=i.split(" ")).shift(),delegate:a.join(" ")},o=!!r.delegate&&("blur"===r.name||"focus"===r.name);e.addEventListener(r.name,(n=t,s=r.delegate,function(t){if(!s)return n(e,t,e);for(var i=t.target;i&&i!==document&&i!==e.parentNode;){if(w(i,s))return n(e,t,i);i=i.parentNode}}),o)}),n=e.attributes,!t.attributes||c.isNativeCustomElement(t.id)||new window.MutationObserver(function(i){i.forEach(function(i){var s=i.attributeName,a=n[s];x(e,t,{name:s,newValue:a&&(a.value||a.nodeValue),oldValue:i.oldValue})})}).observe(e,{attributes:!0,attributeOldValue:!0});var n,s=t.attributes;if("object"==typeof s)for(var a in s){var r=u(a);p(s,a)&&!p(e,r)&&function(e,t,i){Object.defineProperty(e,i,{get:function(){return this.getAttribute(t)},set:function(e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}})}(e,a,r)}var o=t.attributes;if("object"==typeof o){for(var h in o)if(p(o,h)&&p(o[h],"value")&&!e.hasAttribute(h)){var m=o[h].value;m="function"==typeof m?m(e):m,e.setAttribute(h,m)}}!function(e,t){var i,n=e.attributes,s=[],a=n.length;for(i=0;i<a;i++)s.push(n[i]);for(i=0;i<a;i++){var r=s[i];x(e,t,{name:r.nodeName,newValue:r.value||r.nodeValue})}}(e,t),t.created&&t.created(e)}}function T(e,t){var i=l(e,t.id);i.attached||h(document,e)&&(i.attached=!0,t.attached&&t.attached(e),i.detached=!1)}function k(e,t){var i=l(e,t.id);i.detached||(i.detached=!0,t.detached&&t.detached(e),i.attached=!1)}e.initElements=function e(t){for(var i=0;i<t.length;i++){var n=t[i];if(n.nodeType===m.ELEMENT_NODE&&!n.attributes[o]){for(var s,a=c.getForElement(n),r=a.length,l=0;l<r;l++)C(n,s=a[l]),T(n,s);var u=n.childNodes||[];u.length&&e(u)}}},e.removeElements=function e(t){for(var i=0;i<t.length;i++){var n=t[i];if(n.nodeType===m.ELEMENT_NODE){e(n.childNodes);for(var s=c.getForElement(n),a=s.length,r=0;r<a;r++)k(n,s[r])}}},e.triggerAttached=T,e.triggerAttributeChanged=x,e.triggerCreated=C,e.triggerDetached=k},n=[t,i(221),i(894),i(580),i(937),i(537)],void 0===(s=a.apply(t,n))||(e.exports=s)},580(e,t){var i,n,s;s=function(e){"use strict";var t,i,n,s;t=window,"u"<typeof WeakMap&&(i=Object.defineProperty,n=Date.now()%1e9,(s=function(){this.name="__st"+(1e9*Math.random()>>>0)+n+++"__"}).prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:i(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!!t&&t[0]===e&&(t[0]=t[1]=void 0,!0)},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=s),function(e){if(!e.JsMutationObserver){var t,i,n,s=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))t=setTimeout;else if(window.setImmediate)t=window.setImmediate;else{var a=[],r=String(Math.random());window.addEventListener("message",function(e){if(e.data===r){var t=a;a=[],t.forEach(function(e){e()})}}),t=function(e){a.push(e),window.postMessage(r,"*")}}var o=!1,l=[],c=0;h.prototype={observe:function(e,t){if(i=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(i)||i,!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw SyntaxError();var i,n,a=s.get(e);a||s.set(e,a=[]);for(var r=0;r<a.length;r++)if(a[r].observer===this){(n=a[r]).removeListeners(),n.options=t;break}n||(n=new m(this,e,t),a.push(n),this.nodes_.push(e)),n.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=s.get(e),i=0;i<t.length;i++){var n=t[i];if(n.observer===this){n.removeListeners(),t.splice(i,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},m.prototype={enqueue:function(e){var a,r=this.observer.records_,c=r.length;if(r.length>0){var u=function(e,t){return e===t?e:n&&(e===n||e===i)?n:null}(r[c-1],e);if(u){r[c-1]=u;return}}else{a=this.observer,l.push(a),o||(o=!0,t(function e(){o=!1;var t=l;l=[],t.sort(function(e,t){return e.uid_-t.uid_});var i=!1;t.forEach(function(e){var t,n=e.takeRecords();(t=e).nodes_.forEach(function(e){var i=s.get(e);i&&i.forEach(function(e){e.observer===t&&e.removeTransientObservers()})}),n.length&&(e.callback_(n,e),i=!0)}),i&&e()}))}r[c]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=s.get(e);t||s.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=s.get(e),i=0;i<t.length;i++)if(t[i]===this){t.splice(i,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,s=e.relatedNode.namespaceURI,a=e.target,r=new f("attributes",a);r.attributeName=t,r.attributeNamespace=s;var o=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;u(a,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(s)))return e.attributeOldValue?g(o):r});break;case"DOMCharacterDataModified":var a=e.target,r=f("characterData",a),o=e.prevValue;u(a,function(e){if(e.characterData)return e.characterDataOldValue?g(o):r});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var l,c,h=e.target;"DOMNodeInserted"===e.type?(l=[h],c=[]):(l=[],c=[h]);var p=h.previousSibling,m=h.nextSibling,r=f("childList",e.target.parentNode);r.addedNodes=l,r.removedNodes=c,r.previousSibling=p,r.nextSibling=m,u(e.relatedNode,function(e){if(e.childList)return r})}i=n=void 0}},e.JsMutationObserver=h,e.MutationObserver||(e.MutationObserver=h,h._isPolyfilled=!0)}function u(e,t){for(var i=e;i;i=i.parentNode){var n=s.get(i);if(n)for(var a=0;a<n.length;a++){var r=n[a],o=r.options;if(i===e||o.subtree){var l=t(o);l&&r.enqueue(l)}}}}function h(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}function p(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function f(e,t){return i=new p(e,t)}function g(e){var t,s;return n?n:((s=new p((t=i).type,t.target)).addedNodes=t.addedNodes.slice(),s.removedNodes=t.removedNodes.slice(),s.previousSibling=t.previousSibling,s.nextSibling=t.nextSibling,s.attributeName=t.attributeName,s.attributeNamespace=t.attributeNamespace,s.oldValue=t.oldValue,(n=s).oldValue=e,n)}function m(e,t,i){this.observer=e,this.target=t,this.options=i,this.transientObservedNodes=[]}}(t)},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},937(e,t,i){var n,s,a;a=function(e,t,i,n,s){"use strict";var a=i.TYPE_ATTRIBUTE,r=i.TYPE_CLASSNAME,o=i.TYPE_ELEMENT,l=n&&n.__esModule?n.default:n,c=s.hasOwn,u=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;t.exports={clear:function(){return l.registry={},this},get:function(e){return c(l.registry,e)&&l.registry[e]},getForElement:function(e){var t,i,n=e.attributes,s=n.length,c=[],u=n.is,h=u&&(u.value||u.nodeValue),p=(e.tagName||e.localName).toLowerCase(),f=h||p;this.isType(f,o)&&(i=(t=l.registry[f]).extends,h?p===i&&c.push(t):i||c.push(t));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,a)&&((i=(t=l.registry[m]).extends)&&p!==i||c.push(t))}for(var v=function(e){var t=e.classList;if(t)return t;var i=e.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}(e),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,r)&&((i=(t=l.registry[w]).extends)&&p!==i||c.push(t))}return c},isType:function(e,t){var i=this.get(e);return i&&i.type===t},isNativeCustomElement:function(e){return h()&&this.isType(e,o)&&u(e)},set:function(e,t){if(c(l.registry,e))throw Error('A component definition of type "'+t.type+'" with the ID of "'+e+'" already exists.');return l.registry[e]=t,this}}},n=[t,e,i(221),i(108),i(537)],void 0===(s=a.apply(t,n))||(e.exports=s)},714(e,t,i){var n,s,a;a=function(e,t,i,n,s,a,r,o){"use strict";var l=function(e){return e&&e.__esModule?e.default:e},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,h=i.TYPE_ELEMENT,p=l(n),f=s.triggerCreated,g=s.triggerAttached,m=s.triggerDetached,v=s.triggerAttributeChanged,b=s.initElements,y=l(a),w=r.debounce,_=r.inherit,x=l(o),C=window.HTMLElement,T=!!document.attachEvent,k=w(function(){var e=function(){b(document.documentElement.childNodes)};(T?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState)?e():T?window.addEventListener("load",e):document.addEventListener("DOMContentLoaded",e)});function E(e,t){if(t=_({},t),(t=_(t,E.defaults)).id=e,y.set(e,t),y.isNativeCustomElement(e)){var i=t.extends?document.createElement(t.extends).constructor.prototype:C.prototype;i.isPrototypeOf(t.prototype)||(t.prototype=_(Object.create(i),t.prototype,!0));var n={prototype:_(t.prototype,{createdCallback:function(){f(this,t)},attachedCallback:function(){g(this,t)},detachedCallback:function(){m(this,t)},attributeChangedCallback:function(e,i,n){v(this,t,{name:e,oldValue:i,newValue:n})}})};return t.extends&&(n.extends=t.extends),document.registerElement(e,n)}if(k(),p.register(!!t.detached),y.isType(e,h)){var s=t;function a(){var e,t=s.extends,i=s.id;return t?(e=document.createElement(t)).setAttribute("is",i):e=document.createElement(i),s.prototype=a.prototype,f(e,s),e}return a.prototype=s.prototype,a}}E.init=function(e){var t=e;return e&&("string"==typeof e?t=e=document.querySelectorAll(e):e instanceof C&&(t=[e]),b(t)),e},E.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:h},E.version=x,E.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:h,unresolvedAttribute:"unresolved"};var A=window.skate;E.noConflict=function(){return window.skate=A,E},window.skate=E,t.exports=E},n=[t,e,i(221),i(310),i(740),i(937),i(537),i(996)],void 0===(s=a.apply(t,n))||(e.exports=s)},537(e,t,i){var n,s,a;a=function(e,t){"use strict";e.hasOwn=a,e.camelCase=function(e){return e.split(/-/g).map(function(e,t){return 0===t?e:e[0].toUpperCase()+e.substring(1)}).join("")},e.elementContains=function(e,t){return e!==document||e.contains?e.contains?e.contains(t):s.call(e,t):document.head.contains(t)||document.body.contains(t)},e.debounce=function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},1))}},e.getClosestIgnoredElement=function(e){for(var t=e;t instanceof Element;){if(t.hasAttribute(i))return t;t=t.parentNode}},e.inherit=function(e,t,i){for(var n=Object.getOwnPropertyNames(t),s=n.length,a=0;a<s;a++){var r=n[a];if(i||void 0===e[r]){var o=Object.getOwnPropertyDescriptor(t,r);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?e[r]=t[r]:Object.defineProperty(e,r,o)}}return e},e.objEach=function(e,t){for(var i in e)a(e,i)&&t(e[i],i)},e.supportsNativeCustomElements=function(){return"function"==typeof document.registerElement},e.isValidNativeCustomElementName=function(e){return e.indexOf("-")>0},Object.defineProperty(e,"__esModule",{value:!0});var i=t.ATTR_IGNORE,n=window.HTMLElement.prototype;e.elementPrototype=n;var s=n.contains;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},n=[t,i(221)],void 0===(s=a.apply(t,n))||(e.exports=s)},996(e,t){var i,n,s;s=function(e,t){"use strict";t.exports="0.13.17"},i=[t,e],void 0===(n=s.apply(t,i))||(e.exports=n)},99(){!function(e){"use strict";e.extend({tablesorter:new function(){var t=this;function i(){var e=arguments[0],t=arguments.length>1?Array.prototype.slice.call(arguments):e;"u">typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function n(e,t){i(e+" ("+(new Date().getTime()-t.getTime())+"ms)")}function s(e){for(var t in e)return!1;return!0}function a(i,n,s){if(!n)return"";var a,r=i.config,o=r.textExtraction||"",l="";return null==(l="basic"===o?e(n).attr(r.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(a=t.getColumnData(i,o,s))?a(n,i,s):n.textContent||n.innerText||e(n).text()||"")?"":l.trim()}function r(e){var s,r,o,l,c,u,h,p,f,g,m=e.config,v=m.$tbodies=m.$table.children("tbody:not(."+m.cssInfoBlock+")"),b=0,y="",w=v.length;if(0===w)return m.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(m.debug&&(g=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};b<w;){if((s=v[b].rows)[b])for(l=0,o=m.columns;l<o;l++)c=m.$headers.filter('[data-column="'+l+'"]:last'),u=t.getColumnData(e,m.headers,l),f=t.getParserById(t.getData(c,u,"extractor")),p=t.getParserById(t.getData(c,u,"sorter")),h="false"===t.getData(c,u,"parser"),m.empties[l]=(t.getData(c,u,"empty")||m.emptyTo||(m.emptyToBottom?"bottom":"top")).toLowerCase(),m.strings[l]=(t.getData(c,u,"string")||m.stringTo||"max").toLowerCase(),h&&(p=t.getParserById("no-parser")),f||(f=!1),p||(p=function(e,n,s,r){for(var o,l=t.parsers.length,c=!1,u="",h=!0;""===u&&h;)n[++s]?(u=a(e,c=n[s].cells[r],r),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+r+': "'+u+'"')):h=!1;for(;--l>=0;)if((o=t.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,e,c))return o;return t.getParserById("text")}(e,s,-1,l)),m.debug&&(y+="column:"+l+"; extractor:"+f.id+"; parser:"+p.id+"; string:"+m.strings[l]+"; empty: "+m.empties[l]+"\n"),r.parsers[l]=p,r.extractors[l]=f;b+=r.parsers.length?w:1}m.debug&&(i(y||"No parsers detected"),n("Completed detecting parsers",g)),m.parsers=r.parsers,m.extractors=r.extractors}function o(s){var r,o,l,c,u,h,p,f,g,m,v,b,y,w=s.config,_=w.$table.children("tbody"),x=w.extractors,C=w.parsers;if(w.cache={},w.totalRows=0,!C)return w.debug?i("Warning: *Empty table!* Not building a cache"):"";for(w.debug&&(m=new Date),w.showProcessing&&t.isProcessing(s,!0),p=0;p<_.length;p++)if(y=[],r=w.cache[p]={normalized:[]},!_.eq(p).hasClass(w.cssInfoBlock)){for(u=0,v=_[p]&&_[p].rows.length||0;u<v;++u){if(b={child:[]},f=e(_[p].rows[u]),w.columns,g=[],f.hasClass(w.cssChildRow)&&0!==u){o=r.normalized.length-1,r.normalized[o][w.columns].$row=r.normalized[o][w.columns].$row.add(f),f.prev().hasClass(w.cssChildRow)||f.prev().addClass(t.css.cssHasChild),b.child[o]=(f[0].textContent||f[0].innerText||f.text()||"").trim();continue}for(h=0,b.$row=f,b.order=u;h<w.columns;++h){if(void 0===C[h]){w.debug&&i("No parser found for cell:",f[0].cells[h],"does it have a header?");continue}o=a(s,f[0].cells[h],h),l=void 0===x[h].id?o:x[h].format(o,s,f[0].cells[h],h),c="no-parser"===C[h].id?"":C[h].format(l,s,f[0].cells[h],h),g.push(w.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(C[h].type||"").toLowerCase()&&(y[h]=Math.max(Math.abs(c)||0,y[h]||0))}g[w.columns]=b,r.normalized.push(g)}r.colMax=y,w.totalRows+=r.normalized.length}w.showProcessing&&t.isProcessing(s),w.debug&&n("Building cache for "+v+" rows",m)}function l(i,a){var r,o,l,c,u,h,p,f=i.config,g=f.widgetOptions,m=i.tBodies,v=[],b=f.cache;if(s(b))return f.appender?f.appender(i,v):i.isUpdating?f.$table.trigger("updateComplete",i):"";for(f.debug&&(p=new Date),h=0;h<m.length;h++)if((l=e(m[h])).length&&!l.hasClass(f.cssInfoBlock)){for(u=0,c=t.processTbody(i,l,!0),o=(r=b[h].normalized).length;u<o;u++)v.push(r[u][f.columns].$row),f.appender&&(!f.pager||f.pager.removeRows&&g.pager_removeRows||f.pager.ajax)||c.append(r[u][f.columns].$row);t.processTbody(i,c,!1)}f.appender&&f.appender(i,v),f.debug&&n("Rebuilt table",p),a||f.appender||t.applyWidget(i),i.isUpdating&&f.$table.trigger("updateComplete",i)}function c(e){return/^d/i.test(e)||1===e}function u(s){var a,r,o,l,u,h,f,g=s.config;g.headerList=[],g.headerContent=[],g.debug&&(f=new Date),g.columns=t.computeColumnIndex(g.$table.children("thead, tfoot").children("tr")),l=g.cssIcon?'<i class="'+(g.cssIcon===t.css.icon?t.css.icon:g.cssIcon+" "+t.css.icon)+'"></i>':"",g.$headers=e(s).find(g.selectorHeaders).each(function(i){r=e(this),a=t.getColumnData(s,g.headers,i,!0),g.headerContent[i]=e(this).html(),""!==g.headerTemplate&&(u=g.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,e(this).html()),g.onRenderTemplate&&(o=g.onRenderTemplate.apply(r,[i,u]))&&"string"==typeof o&&(u=o),e(this).html('<div class="'+t.css.headerIn+'">'+u+"</div>")),g.onRenderHeader&&g.onRenderHeader.apply(r,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=c(t.getData(r,a,"sortInitialOrder")||g.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(h=t.getData(r,a,"lockedOrder")||!1)&&!1!==h&&(this.order=this.lockedOrder=c(h)?[1,1,1]:[0,0,0]),r.addClass(t.css.header+" "+g.cssHeader),g.headerList[i]=this,r.parent().addClass(t.css.headerRow+" "+g.cssHeaderRow),g.tabIndex&&r.attr("tabindex",0)}).attr({scope:"col"}),p(s),g.debug&&(n("Built headers:",f),i(g.$headers))}function h(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),r(e),o(e),v(n.$table,t,i)}function p(i){var n,s,a,r=i.config;r.$headers.each(function(o,l){s=e(l),a=t.getColumnData(i,r.headers,o,!0),n="false"===t.getData(l,a,"sorter")||"false"===t.getData(l,a,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))})}function f(i){var n,s,a,r=i.config,o=r.sortList,l=o.length,c=t.css.sortNone+" "+r.cssNone,u=[t.css.sortAsc+" "+r.cssAsc,t.css.sortDesc+" "+r.cssDesc],h=["ascending","descending"],p=e(i).find("tfoot tr").children().add(r.$extraHeaders).removeClass(u.join(" "));for(r.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=r.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(a=0;a<n.length;a++)n[a].sortDisabled||n.eq(a).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",h[o[s][1]]);p.length&&p.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}r.$headers.not(".sorter-false").each(function(){var i=e(this),n=this.order[(this.count+1)%(r.sortReset?3:2)],s=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)})}function g(e){var i,a,r,o,l,c,u,h,p,f,g=0,m=e.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=e.tBodies.length;if(!(m.serverSideSorting||s(m.cache))){for(m.debug&&(l=new Date),a=0;a<w;a++)c=m.cache[a].colMax,m.cache[a].normalized.sort(function(n,s){for(i=0;i<y;i++){var a;if(o=b[i][0],g=0===(u=b[i][1]),m.sortStable&&n[o]===s[o]&&1===y)break;if((r=/n/i.test((a=m.parsers,a&&a[o]&&a[o].type||"")))&&m.strings[o]?(r="boolean"==typeof m.string[m.strings[o]]?(g?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,h=m.numberSorter?m.numberSorter(n[o],s[o],g,c[o],e):t["sortNumeric"+(g?"Asc":"Desc")](n[o],s[o],r,c[o],o,e)):(p=g?n:s,f=g?s:n,h="function"==typeof v?v(p[o],f[o],g,o,e):"object"==typeof v&&v.hasOwnProperty(o)?v[o](p[o],f[o],g,o,e):t["sortNatural"+(g?"Asc":"Desc")](n[o],s[o],o,e,m)),h)return h}return n[m.columns].order-s[m.columns].order});m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function m(e,t){var i=e[0];i.isUpdating&&e.trigger("updateComplete",i),"function"==typeof t&&t(e[0])}function v(e,i,n){var s=e[0].config.sortList;!1!==i&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){m(e,n)},!0]):(m(e,n),t.applyWidget(e[0],!1))}t.version="2.17.8",t.parsers=[],t.widgets=[],t.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},t.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},t.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},t.log=i,t.benchmark=n,t.construct=function(i){return this.each(function(){var n=e.extend(!0,{},t.defaults,i);n.originalSettings=i,!this.hasInitialized&&t.buildTable&&"TABLE"!==this.tagName?t.buildTable(this,n):t.setup(this,n)})},t.setup=function(n,c){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return c.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var m,b,y,w,_=RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`),x=[];for(var C of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var T=c[C];T&&!_.test(T)&&(x.push(C),i(`ERROR: ${C} must contain only valid CSS class names but is '${T}'`))}if(x.length>0)return c.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var k="",E=e(n),A=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=c,e.data(n,"tablesorter",c),c.debug&&e.data(n,"startoveralltimer",new Date),(m=e.fn.jquery.split("."))[0]=parseInt(m[0],10),c.supportsDataObject=m[0]>1||1===m[0]&&parseInt(m[1],10)>=4,c.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},c.emptyTo=c.emptyTo.toLowerCase(),c.stringTo=c.stringTo.toLowerCase(),/tablesorter\-/.test(E.attr("class"))||(k=""!==c.theme?" tablesorter-"+c.theme:""),c.table=n,c.$table=E.addClass(t.css.table+" "+c.tableClass+k),c.$headers=E.find(c.selectorHeaders),c.namespace?c.namespace="."+c.namespace.replace(/\W/g,""):c.namespace=".tablesorter"+Math.random().toString(16).slice(2),c.$table.children().children("tr"),c.$tbodies=E.children("tbody:not(."+c.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),c.$table.find("caption").length&&c.$table.attr("aria-labelledby","theCaption"),c.widgetInit={},c.textExtraction=c.$table.attr("data-text-extraction")||c.textExtraction||"basic",u(n),(w=n.config).widthFixed&&0===w.$table.find("colgroup").length&&(b=e("<colgroup>"),y=e(n).width(),e(n.tBodies).not("."+w.cssInfoBlock).find("tr:first").children(":visible").each(function(){b.append(e("<col>").css("width",parseInt(e(this).width()/y*1e3,10)/10+"%"))}),w.$table.prepend(b)),r(n),c.totalRows=0,c.delayInit||o(n),t.bindEvents(n,c.$headers,!0),function i(n){var c=n.config,m=c.$table;m.off("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(c.namespace+" ")).on("sortReset"+c.namespace,function(e,t){e.stopPropagation(),c.sortList=[],f(n),g(n),l(n),"function"==typeof t&&t(n)}).on("updateAll"+c.namespace,function(e,s,a){e.stopPropagation(),n.isUpdating=!0,t.refreshWidgets(n,!0,!0),t.restoreHeaders(n),u(n),t.bindEvents(n,c.$headers,!0),i(n),h(n,s,a)}).on("update"+c.namespace+" updateRows"+c.namespace,function(e,t,i){e.stopPropagation(),n.isUpdating=!0,p(n),h(n,t,i)}).on("updateCell"+c.namespace,function(t,i,s,r){t.stopPropagation(),n.isUpdating=!0,m.find(c.selectorRemove).remove();var o,l,u,h,p=m.find("tbody"),f=e(i),g=p.index(e.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),b=e.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");i=f[0],p.length&&g>=0&&(u=p.eq(g).find("tr").index(b),h=f.index(),c.cache[g].normalized[u][c.columns].$row=b,l=void 0===c.extractors[h].id?a(n,i,h):c.extractors[h].format(a(n,i,h),n,i,h),o="no-parser"===c.parsers[h].id?"":c.parsers[h].format(l,n,i,h),c.cache[g].normalized[u][h]=c.ignoreCase&&"string"==typeof o?o.toLowerCase():o,"numeric"===(c.parsers[h].type||"").toLowerCase()&&(c.cache[g].colMax[h]=Math.max(Math.abs(o)||0,c.cache[g].colMax[h]||0)),v(m,s,r))}).on("addRows"+c.namespace,function(t,i,o,l){if(t.stopPropagation(),n.isUpdating=!0,s(c.cache))p(n),h(n,o,l);else{var u,f,g,b,y,w,_,x=(i=e(i)).filter("tr").length,C=m.find("tbody").index(i.parents("tbody").filter(":first"));for(c.parsers&&c.parsers.length||r(n),u=0;u<x;u++){for(f=0,g=i[u].cells.length,_=[],w={child:[],$row:i.eq(u),order:c.cache[C].normalized.length};f<g;f++)b=void 0===c.extractors[f].id?a(n,i[u].cells[f],f):c.extractors[f].format(a(n,i[u].cells[f],f),n,i[u].cells[f],f),y="no-parser"===c.parsers[f].id?"":c.parsers[f].format(b,n,i[u].cells[f],f),_[f]=c.ignoreCase&&"string"==typeof y?y.toLowerCase():y,"numeric"===(c.parsers[f].type||"").toLowerCase()&&(c.cache[C].colMax[f]=Math.max(Math.abs(_[f])||0,c.cache[C].colMax[f]||0));_.push(w),c.cache[C].normalized.push(_)}v(m,o,l)}}).on("updateComplete"+c.namespace,function(){n.isUpdating=!1}).on("sorton"+c.namespace,function(i,a,r,c){var u,h,p,v,b,y,w,_=n.config;i.stopPropagation(),m.trigger("sortStart",this),y=n.config,w=a||y.sortList,y.sortList=[],e.each(w,function(t,i){if(v=parseInt(i[0],10),p=y.$headers.filter('[data-column="'+v+'"]:last')[0]){switch(h=(h=(""+i[1]).match(/^(1|d|s|o|n)/))?h[0]:""){case"1":case"d":h=1;break;case"s":h=b||0;break;case"o":h=0===(u=p.order[(b||0)%(y.sortReset?3:2)])?1:2*(1!==u);break;case"n":p.count=p.count+1,h=p.order[p.count%(y.sortReset?3:2)];break;default:h=0}b=0===t?h:b,u=[v,parseInt(h,10)||0],y.sortList.push(u),h=e.inArray(u[1],p.order),p.count=h>=0?h:u[1]%(y.sortReset?3:2)}}),f(n),_.delayInit&&s(_.cache)&&o(n),m.trigger("sortBegin",this),g(n),l(n,c),m.trigger("sortEnd",this),t.applyWidget(n),"function"==typeof r&&r(n)}).on("appendCache"+c.namespace,function(e,t,i){e.stopPropagation(),l(n,i),"function"==typeof t&&t(n)}).on("updateCache"+c.namespace,function(e,t){c.parsers&&c.parsers.length||r(n),o(n),"function"==typeof t&&t(n)}).on("applyWidgetId"+c.namespace,function(e,i){e.stopPropagation(),t.getWidgetById(i).format(n,c,c.widgetOptions)}).on("applyWidgets"+c.namespace,function(e,i){e.stopPropagation(),t.applyWidget(n,i)}).on("refreshWidgets"+c.namespace,function(e,i,s){e.stopPropagation(),t.refreshWidgets(n,i,s)}).on("destroy"+c.namespace,function(e,i,s){e.stopPropagation(),t.destroy(n,i,s)}).on("resetToLoadState"+c.namespace,function(){t.refreshWidgets(n,!0,!0),c=e.extend(!0,t.defaults,c.originalSettings),n.hasInitialized=!1,t.setup(n,c)})}(n),c.supportsDataObject&&void 0!==E.data().sortlist?c.sortList=E.data().sortlist:A&&E.metadata()&&E.metadata().sortlist&&(c.sortList=E.metadata().sortlist),t.applyWidget(n,!0),c.sortList.length>0?E.trigger("sorton",[c.sortList,{},!c.initWidgets,!0]):(f(n),c.initWidgets&&t.applyWidget(n,!1)),c.showProcessing&&E.off("sortBegin"+c.namespace+" sortEnd"+c.namespace).on("sortBegin"+c.namespace+" sortEnd"+c.namespace,function(e){clearTimeout(c.processTimer),t.isProcessing(n),"sortBegin"===e.type&&(c.processTimer=setTimeout(function(){t.isProcessing(n,!0)},500))}),n.hasInitialized=!0,n.isProcessing=!1,c.debug&&t.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),E.trigger("tablesorter-initialized",n),"function"==typeof c.initialized&&c.initialized(n)},t.getColumnData=function(t,i,n,s){if(null!=i){var a,r,o=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[o.$headers.index(o.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?o.$headers.eq(n).filter(r):o.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r];return a}},t.computeColumnIndex=function(t){var i,n,s,a,r,o,l,c,u,h,p,f,g,m=[],v={},b=0;for(i=0;i<t.length;i++)for(n=0,l=t[i].cells;n<l.length;n++){for(r=e(o=l[n]),u=(c=o.parentNode.rowIndex)+"-"+r.index(),h=o.rowSpan||1,p=o.colSpan||1,void 0===m[c]&&(m[c]=[]),s=0;s<m[c].length+1;s++)if(void 0===m[c][s]){f=s;break}for(v[u]=f,b=Math.max(f,b),r.attr({"data-column":f}),s=c;s<c+h;s++)for(void 0===m[s]&&(m[s]=[]),g=m[s],a=f;a<f+p;a++)g[a]="x"}return b+1},t.isProcessing=function(i,n,s){var a=(i=e(i))[0].config,r=s||i.find("."+t.css.header);n?(void 0!==s&&a.sortList.length>0&&(r=r.filter(function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),a.sortList)>=0})),i.add(r).addClass(t.css.processing+" "+a.cssProcessing)):i.add(r).removeClass(t.css.processing+" "+a.cssProcessing)},t.processTbody=function(t,i,n){var s;if(t=e(t)[0],n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},t.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},t.bindEvents=function(i,n,a){var r,c=(i=e(i)[0]).config;!0!==a&&(c.$extraHeaders=c.$extraHeaders?c.$extraHeaders.add(n):n),n.find(c.selectorSort).add(n.filter(c.selectorSort)).off("mousedown mouseup sort keyup ".split(" ").join(c.namespace+" ")).on("mousedown mouseup sort keyup ".split(" ").join(c.namespace+" "),function(a,u){var h,p=a.type;if((1===(a.which||a.button)||/sort|keyup/.test(p))&&("keyup"!==p||13===a.which)&&!("mouseup"===p&&!0!==u&&new Date().getTime()-r>250)){if("mousedown"===p)return r=new Date().getTime(),/(input|select|button|textarea)/i.test(a.target.tagName)?"":!c.cancelSelection;c.delayInit&&s(c.cache)&&o(i),h=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(h=c.$headers[n.index(h)]).sortDisabled||function i(n,s,a){if(n.isUpdating)return setTimeout(function(){i(n,s,a)},50);var r,o,c,u,h,p=n.config,m=!a[p.sortMultiSortKey],v=p.$table;if(v.trigger("sortStart",n),s.count=a[p.sortResetKey]?2:(s.count+1)%(p.sortReset?3:2),p.sortRestart&&(o=s,p.$headers.each(function(){this!==o&&(m||!e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc))&&(this.count=-1)})),o=s.column,m){if(p.sortList=[],null!==p.sortForce)for(c=0,r=p.sortForce;c<r.length;c++)r[c][0]!==o&&p.sortList.push(r[c]);if((u=s.order[s.count])<2&&(p.sortList.push([o,u]),s.colSpan>1))for(c=1;c<s.colSpan;c++)p.sortList.push([o+c,u])}else{if(p.sortAppend&&p.sortList.length>1)for(c=0;c<p.sortAppend.length;c++)(h=t.isValueInArray(p.sortAppend[c][0],p.sortList))>=0&&p.sortList.splice(h,1);if(t.isValueInArray(o,p.sortList)>=0)for(c=0;c<p.sortList.length;c++)h=p.sortList[c],u=p.$headers.filter('[data-column="'+h[0]+'"]:last')[0],h[0]===o&&(h[1]=u.order[s.count],2===h[1]&&(p.sortList.splice(c,1),u.count=-1));else if((u=s.order[s.count])<2&&(p.sortList.push([o,u]),s.colSpan>1))for(c=1;c<s.colSpan;c++)p.sortList.push([o+c,u])}if(null!==p.sortAppend)for(c=0,r=p.sortAppend;c<r.length;c++)r[c][0]!==o&&p.sortList.push(r[c]);v.trigger("sortBegin",n),setTimeout(function(){f(n),g(n),l(n),v.trigger("sortEnd",n)},1)}(i,h,a)}}),c.cancelSelection&&n.attr("unselectable","on").on("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},t.restoreHeaders=function(i){var n=e(i)[0].config;n.$table.find(n.selectorHeaders).each(function(i){e(this).find("."+t.css.headerIn).length&&e(this).html(n.headerContent[i])})},t.destroy=function(i,n,s){if((i=e(i)[0]).hasInitialized){t.refreshWidgets(i,!0,!0);var a=e(i),r=i.config,o=a.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+r.cssHeaderRow),c=a.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",r.widgets)>=0&&(a.trigger("applyWidgetId",["uitheme"]),a.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),a.removeData("tablesorter").off("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(r.namespace+" ")),r.$headers.add(c).removeClass([t.css.header,r.cssHeader,r.cssAsc,r.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(r.selectorSort).off("mousedown mouseup keypress ".split(" ").join(r.namespace+" ")),t.restoreHeaders(i),a.toggleClass(t.css.table+" "+r.tableClass+" tablesorter-"+r.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},t.sortNatural=function(e,i){if(e===i)return 0;var n,s,a,r,o,l,c,u,h=t.regex;if(h.hex.test(i)){if((s=parseInt(e.match(h.hex),16))<(r=parseInt(i.match(h.hex),16)))return -1;if(s>r)return 1}for(c=0,n=e.replace(h.chunk,"\\0$1\\0").replace(h.chunks,"").split("\\0"),a=i.replace(h.chunk,"\\0$1\\0").replace(h.chunks,"").split("\\0"),u=Math.max(n.length,a.length);c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(a[c])?a[c]||0:parseFloat(a[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return -1;if(o>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:-r||-1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:r||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:r||1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:-r||-1:t.sortNatural(i,e)},t.sortText=function(e,t){return e>t?1:e<t?-1:0},t.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,a=i+t;for(n=0;n<s;n++)a+=e.charCodeAt(n);return t*a}return 0},t.sortNumericAsc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"\xe1\xe0\xe2\xe3\xe4ą\xe5",A:"\xc1\xc0\xc2\xc3\xc4Ą\xc5",c:"\xe7ćč",C:"\xc7ĆČ",e:"\xe9\xe8\xea\xeběę",E:"\xc9\xc8\xca\xcbĚĘ",i:"\xed\xecİ\xee\xefı",I:"\xcd\xccİ\xce\xcf",o:"\xf3\xf2\xf4\xf5\xf6",O:"\xd3\xd2\xd4\xd5\xd6",ss:"\xdf",SS:"ẞ",u:"\xfa\xf9\xfb\xfců",U:"\xda\xd9\xdb\xdcŮ"},t.replaceAccents=function(e){var i,n="[",s=t.characterEquivalents;if(!t.characterRegex){for(i in t.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],t.characterRegexArray[i]=RegExp("["+s[i]+"]","g"));t.characterRegex=RegExp(n+"]")}if(t.characterRegex.test(e))for(i in s)"string"==typeof i&&(e=e.replace(t.characterRegexArray[i],i));return e},t.isValueInArray=function(e,t){var i,n=t.length;for(i=0;i<n;i++)if(t[i][0]===e)return i;return -1},t.addParser=function(e){var i,n=t.parsers.length,s=!0;for(i=0;i<n;i++)t.parsers[i].id.toLowerCase()===e.id.toLowerCase()&&(s=!1);s&&t.parsers.push(e)},t.getParserById=function(e){if("false"==e)return!1;var i,n=t.parsers.length;for(i=0;i<n;i++)if(t.parsers[i].id.toLowerCase()===e.toString().toLowerCase())return t.parsers[i];return!1},t.addWidget=function(e){t.widgets.push(e)},t.hasWidget=function(t,i){return(t=e(t)).length&&t[0].config&&t[0].config.widgetInit[i]||!1},t.getWidgetById=function(e){var i,n,s=t.widgets.length;for(i=0;i<s;i++)if((n=t.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===e.toLowerCase())return n},t.applyWidget=function(i,s){var a,r,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(a=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,function(t,i){return e.inArray(t,l.widgets)===i}),e.each(l.widgets||[],function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)}),u.sort(function(e,t){return e.priority<t.priority?-1:+(e.priority!==t.priority)}),e.each(u,function(t,n){n&&((s||!l.widgetInit[n.id])&&(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=e.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))})),setTimeout(function(){i.isApplyingWidgets=!1},0),l.debug&&n("Completed "+(!0===s?"initializing ":"applying ")+(r=l.widgets.length)+" widget"+(1!==r?"s":""),a))},t.refreshWidgets=function(n,s,a){var r,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(r=0;r<u;r++)c[r]&&c[r].id&&(s||0>e.inArray(c[r].id,l))&&(o.debug&&i('Refeshing widgets: Removing "'+c[r].id+'"'),c[r].hasOwnProperty("remove")&&o.widgetInit[c[r].id]&&(c[r].remove(n,o,o.widgetOptions),o.widgetInit[c[r].id]=!1));!0!==a&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,a,r="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),a=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?r+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?r+=s[n]:i&&void 0!==i[n]?r+=i[n]:" "!==a&&a.match(" "+n+"-")&&(r=a.match(RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),null==r?"":r.trim()):""},t.formatFloat=function(e,t){var i;return"string"!=typeof e||""===e?e:(e=(t&&t.config?!1!==t.config.usNumberFormat:void 0===t||t)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),isNaN(i=parseFloat(e))?e.trim():i)},t.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var t=e.tablesorter;e.fn.extend({tablesorter:t.construct}),t.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),t.addParser({id:"text",is:function(){return!0},format:function(e,i){var n=i.config;return e&&(e=(n.ignoreCase?e.toLocaleLowerCase():e).trim(),e=n.sortLocaleCompare?t.replaceAccents(e):e),e},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(e,i){var n=t.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),i);return e&&"number"==typeof n?n:e?(e&&i.config.ignoreCase?e.toLocaleLowerCase():e).trim():e},type:"numeric"}),t.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(e,i){var n=t.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),i);return e&&"number"==typeof n?n:e?(e&&i.config.ignoreCase?e.toLocaleLowerCase():e).trim():e},type:"numeric"}),t.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,i){var n,s=e?e.split("."):"",a="",r=s.length;for(n=0;n<r;n++)a+=("00"+s[n]).slice(-3);return e?t.formatFloat(a,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(e){return e?e.replace(/(https?|ftp|file):\/\//,"").trim():e},parsed:!0,type:"text"}),t.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,i){return e?t.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",i):e},type:"numeric"}),t.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,i){return e?t.formatFloat(e.replace(/%/g,""),i):e},type:"numeric"}),t.addParser({id:"usLongDate",is:function(e){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,i,n,s){if(e){var a=i.config,r=a.$headers.filter("[data-column="+s+"]:last"),o=r.length&&r[0].dateFormat||t.getData(r,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,a=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[a]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var a,r,o,l,c,u=RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<h.length;c++)r=0,h.eq(c).children("tr:visible").not(n.selectorRemove).each(function(){a=e(this),!u.test(this.className)&&r++,o=r%2==0,a.removeClass(s.zebra[+!!o]).addClass(s.zebra[+!o])});n.debug&&t.benchmark("Applying Zebra widget",l)},remove:function(t,i,n){var s,a,r=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<r.length;s++)(a=e.tablesorter.processTbody(t,r.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,a,!1)}})}(jQuery)},682(){jQuery.fn.serializeObject=function(){var e={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each(function(){""!==this.name&&(null===this.value&&(this.value=""),e[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)}),this.find("input:radio:checked").each(function(){e[this.name]=this.value}),this.find("select[multiple]").each(function(){var t=jQuery(this),i=t.val();t.data("aui-ss")?i?e[this.name]=i[0]:e[this.name]="":null!==i?e[this.name]=i:e[this.name]=[]}),e}},398(t){"use strict";t.exports=e},195(e){"use strict";e.exports=t},389(e){"use strict";e.exports=i}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";let e,t,i,n,s,o;a.r(r),a.d(r,{ProgressBarEl:()=>aI,log:()=>M,FocusManager:()=>oj,SelectEl:()=>nK,SectionEl:()=>i0,InlineDialogEl:()=>ag,responsiveheader:()=>o1,id:()=>oK,RestfulTable:()=>oc,I18n:()=>eY,AvatarGroupEl:()=>ts,flag:()=>no,warn:()=>N,navigation:()=>ay,SpinnerEl:()=>tg,formValidation:()=>oq,AvatarEl:()=>e4,undim:()=>o9,TabItemEl:()=>aZ,Header:()=>rV,TabContainerEl:()=>aJ,debounce:()=>oB,dim:()=>oV,ToggleEl:()=>s3,AvatarBadged:()=>eQ,progressBars:()=>aN,MessageEl:()=>i6,sidebar:()=>oS,ItemRadioEl:()=>iX,keyCode:()=>oG,ItemCheckboxEl:()=>iZ,dialog2:()=>tk,tabs:()=>o3,toInit:()=>eV,debounceImmediate:()=>oW,trigger:()=>F,populateParameters:()=>oX,CalendarWidget:()=>rG,DropdownEl:()=>i1,TabPaneEl:()=>aX,isClipped:()=>oQ,ItemLinkEl:()=>iG,ProgressiveDataSet:()=>oF,unbind:()=>H,_addID:()=>o5,LabelEl:()=>np,error:()=>O,InlineDialog2:()=>oz,bind:()=>z,whenIType:()=>o$,$:()=>eB,FancyFileInput:()=>nc,clone:()=>oU,escapeHtml:()=>oY,layer:()=>oJ,DatePicker:()=>rX,ItemButtonEl:()=>iJ,format:()=>P,select:()=>o2,banner:()=>tr,tablessortable:()=>o4,NavigationEl:()=>ab,params:()=>o0,LayerManager:()=>oH,messages:()=>oZ,contextPath:()=>o8,version:()=>$});var l,c,u,h,p,f,g,m,v,b,y,w=a(195),_=a.n(w);let x=window.jQuery||window.Zepto||_(),C="I18n";function T(){"object"!=typeof window.AJS&&(window.AJS={})}function k(e,t){return T(),window.AJS[e]=t}var E=a(714),A=a.n(E);function D(e){let t;return{type:A().type.CLASSNAME,attached:function(i){!function(e,t){let i=!1;if(t(()=>{i=!0}),i)return;let n=new MutationObserver(e=>{(function(e){for(let t of e)if("childList"===t.type)return!0;return!1})(e)&&t(()=>n.disconnect())});n.observe(e,{childList:!0})}(i,n=>{t=n;let s=_()(`input[type=${e}]`,i);s.each(function(e,t){_()('<span class="aui-form-glyph"></span>').insertAfter(t)}),s.length>0&&t()})},detached:function(e){_()(".aui-form-glyph",e).remove(),t&&t()}}}function S(e,t){var i=x(e);return void 0===t&&(t=!0),i.each(function(){this.disabled=!t})}function I(e){return function(){"u">typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}A()("checkbox",D("checkbox")),A()("radio",D("radio")),k("enable",S),k("inlineHelp",function(){x(document).on("click",".icon-inline-help",function(){var e=x(this).siblings(".field-help");e.hasClass("hidden")?e.removeClass("hidden"):e.addClass("hidden")})});var M=I("log"),N=I("warn"),O=I("error");function L(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,a=/^(\d+)([#<])(.+)/,r=function(t,r){var o,l="";if(o=t.match(i))l=r.length>++t?r[t]:"";else if(o=t.match(n))l=r.length>++o[1]?r[o[1]]:"";else if(o=t.match(s)){var c=r.length>++o[1]?r[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),h=!1,p=null,f=0;f<u.length;f++){var g=u[f].match(a);if(null==g){h=!0;continue}var m=parseInt(g[1],10);if(c<m)if(p){l=p;break}else{l=g[3];break}if(c==m&&"#"==g[2]){l=g[3];break}f==u.length-1&&(l=g[3]),p=g[3]}h&&O('The format "'+t+'" from message "'+e+'" is invalid.');var v=[l].concat(Array.prototype.slice.call(r,1));l=L.apply(null,v)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var a=e.charAt(s);if("'"==a&&(t=!t),!t){if("{"===a)0===n&&(i=s),n++;else if("}"===a&&n>0&&0==--n){var r=[];return r.push(e.substring(0,s+1)),r.push(e.substring(0,i)),r.push(e.substring(i+1,s)),r}}}return null};return(function(e){var i=arguments,n="";if(!e)return n;for(var s=o(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=r(s[2],i),s=o(e);return n+e.replace(t,"")}).apply(null,arguments)}k("error",O),k("log",M),k("warn",N),k("format",L);let P=L;var R="10.1.7";k("version",R);let $=R,j=x(window);function z(e,t,i){try{if("function"==typeof i)return j.on(e,!1,t,i);return j.on(e,!1,t)}catch(e){M("error while binding: ",e.message)}}function H(e,t){try{return j.off(e,t)}catch(e){M("error while unbinding: ",e.message)}}function F(e,t){try{return j.trigger(e,t)}catch(e){M("error while triggering: "+e.message)}}k("bind",z),k("trigger",F),k("unbind",H);let U={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},B=RegExp(`[${Object.keys(U).join("")}]`,"g");function W(e){return e.replace(B,e=>U[e])}k("escapeHtml",W);let V=Object.prototype.hasOwnProperty,Y=[];function q(...e){"u">typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,e)}let K=(e,t)=>Q(e,t);function Q(e,t){if("function"==typeof e)return e;let i=!1;return t=t??{},function(n){var s,a;let r,o,l=(s=n??1,o=(r=Error()).stack??r.stacktrace,(o=o?.replace(/^Error\n/,"")??"").split("\n")[s+2]??"");if(!i||!Y.includes(l)){Y.push(l),i=!0;let n="DEPRECATED "+(t.deprecationType??"")+"- "+((a=e)?(a=""+a).charAt(0).toUpperCase()+a.substring(1):"")+" has been deprecated"+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion??"a future release")+".";t.alternativeName&&(n+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(n+=" "+t.extraInfo),l=""===l?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+l,t.extraObject?q(n+="\n",t.extraObject,l):q(n,l)}}}function G(e,t){let i=e.options?.displayName;i=i?" ("+i+")":"";let n=Object.assign({deprecationType:"CSS",extraObject:t},e.options);Q("'"+e.selector+"' pattern"+i,n)()}function J(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=Q(t||e.name||"this function",i);return function(...t){return n(),e.apply(this,t)}}function Z(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=J(e,t,i);return n.prototype=e.prototype,Object.assign(n,e),n}function X(e,t,i){if("function"==typeof e[t]){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=i.displayName??t;e[t]=J(e[t],n,i)}else{var n;let s,a;n=i,s=e[t],(n=n??{}).deprecationType=n.deprecationType??"JS",a=Q(n.displayName??t,n),Object.defineProperty(e,t,{get:function(){return a(),s},set:function(e){return s=e,a(),e}})}}let ee=[];function et(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}function ei(e,t){g||(g=document.body),!0===e&&es();let i=!!ei.$dim&&!ei.$dim[0].hasAttribute("hidden");return ei.$dim&&(ei.$dim.remove(),ei.$dim=null),ei.$dim=x('<div aria-hidden="true"></div>').addClass("aui-blanket"),ei.$dim.appendTo(document.body),i||(et(ei.$dim),ei.cachedOverflow={overflow:g.style.overflow,overflowX:g.style.overflowX,overflowY:g.style.overflowY},g.style.overflowX="hidden",g.style.overflowY="hidden",g.style.overflow="hidden"),ei.$dim.prop("hidden",!1),t&&ei.$dim.css({zIndex:t}),ei.$dim}function en(){ei.$dim&&(ei.$dim[0].setAttribute("hidden",""),g&&(g.style.overflow=ei.cachedOverflow.overflow,g.style.overflowX=ei.cachedOverflow.overflowX,g.style.overflowY=ei.cachedOverflow.overflowY))}k("deprecate",{fn:J,construct:Z,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(function(e){var i;let n={selector:e,options:t};for(let t of document.querySelectorAll(e))G(n,t);i=n,ee.push(i),void 0===s&&(s=new MutationObserver(function(e){e.forEach(function(e){for(let t of e.addedNodes)1===t.nodeType&&ee.forEach(function(e){return function(t){var i;i=t.selector,e instanceof Element&&e.matches(i)&&G(t,e)}}(t))})})).observe(document,{childList:!0,subtree:!0})})},prop:X,obj:function(e,t,i){for(let n in i=i??{},e)V.call(e,n)&&(i.deprecationType=i.deprecationType??"JS",i.displayName=t+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,X(e,n,Object.assign({},i)))},getMessageLogger:K});let es=K("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});k("dim",ei),k("undim",en);var ea={ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,LEFT_SQUARE_BRACKET:91,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91};function er(e,t){return window.define&&(0,window.define)(e,[],function(){return t}),t}k("keyCode",ea);let eo=A().noConflict(),el=function(e){return{set:function(t,i){void 0===e._state&&(e._state={}),e._state[t]=i},get:function(t){if(e._state)return e._state[t]}}};function ec(e){return el(e).get("last-trigger")||ep(e)[0]}function eu(e,t){var i=t&&t.nodeType&&1===t.nodeType;return el(e).set("last-trigger",!!i&&t)}function ed(e,t){var i=ec(e);i&&t(i)}function eh(e,t){return Array.prototype.forEach.call(ep(e),t)}function ep(e){let t=window.frames,i=`[aria-controls="${e.id}"]`,n=[],s=!1;for(let e=0;e<t.length;e++)try{let s=t[e].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(e){s=!0}let a=document.querySelectorAll(i),r=Array.prototype.slice.apply(a).concat(n);return 0===r.length&&!0===s&&N(`No triggers found for element (${e.id}) in iframes from the same origin. However some iframes in this document are cross-origin. The trigger-element relations crossing the origin boundary are not supported.`),r}function ef(e){return document.getElementById(e.getAttribute("aria-controls"))}function eg(e){return"true"!==e.getAttribute("aria-disabled")}function em(e,t){if(eg(e)){var i=ef(e);i&&i.message&&i.message(t)}}let ev={click(e,t){var i;(i=x(t.target).closest("a[href]",e)).length&&i[0]!==e||(em(e,t),t.preventDefault())},keydown(e,t){let i=t.data;(i===ea.ENTER||i===ea.SPACE)&&(t.preventDefault(),t.type="click",ev.click(e,t))},mouseenter(e,t){em(e,t)},mouseleave(e,t){em(e,t)},focus(e,t){em(e,t)},blur(e,t){let i;(i=t.relatedTarget)||(i=document.activeElement),x(ef(e)).find(i).length>0||em(e,t)}};function eb(e){return"visible"===x.css(e,"visibility")&&x(e).is(":visible")}function ey(e,t){var i=e.nodeName.toLowerCase();if("aui-select"===i)return!0;if("area"===i){var n=e.parentNode,s=n.name,a=x("img[usemap=#"+s+"]").get();return!!e.href&&!!s&&"map"===n.nodeName.toLowerCase()&&a&&eb(a)}var r=/input|select|textarea|button|object|iframe/.test(i),o="a"===i,l=e.href||t;return(r?!e.disabled:o?l:t)&&eb(e)}Object.keys(ev).forEach(function(e){let t=ev[e];x(document).on(`${e}.aui-trigger`,"[data-aui-trigger]",function(i){t(i.currentTarget,function(e,t){let{target:i,currentTarget:n,relatedTarget:s}=e,{keyCode:a,which:r}=e;return{type:t,data:"keydown"===t?r||a:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))})}),eo("data-aui-trigger",{type:eo.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return eg(this)}}}),er("aui/trigger"),x.extend(x.expr.pseudos,{"aui-focusable":e=>ey(e,!isNaN(x.attr(e,"tabindex"))),"aui-tabbable":function(e){var t=x.attr(e,"tabindex"),i=isNaN(t);return(i||t>=0)&&ey(e,!i)}});var ew="_aui-focus-restore";function e_(e){return e.is(".aui-dialog2")||e.is('[aui-focus-trap="true"]')}function ex(){this._focusTrapStack=[],this._handler}function eC(e,t){if(0===e.length||t.keyCode!==ea.TAB)return;let i=t.shiftKey?-1:1,n=t.target,s=e[e.length-1],a=s.find(":aui-tabbable");if(!a.length&&e_(s)&&(s.trigger("focus"),t.preventDefault()),!a.length)return;let r=a.index(n),o=-1;if(r>-1)o=r;else{let e;if((e=x(n).closest(".aui-layer")).length||(e=s.find("[aria-controls]").map(function(){return document.getElementById(this.getAttribute("aria-controls"))}).has(n)),e.length){let t=e.find(":aui-tabbable"),s=t.index(n)+i;if(!(s<0)&&!(s>=t.length))return;{let t=ec(e.get(0));o=a.index(t)}}}o=o>-1?function(e,t,i,n){function s(e){return(e+i)%n.length}let a=s(t);if("radio"===e.type&&e.name)for(;n.eq(a).attr("name")===e.name&&a!==t;)a=s(a);if(a!==t&&"radio"===n.eq(a).attr("type")){let e,t=n.eq(a).attr("name"),s=n.filter(function(){return"radio"===this.type&&this.name===t}),r=s.filter(":checked");e=r.length>0?r.first():i>0?s.first():s.last(),a=n.index(e)}return a}(n,o,i,a):0,"IFRAME"!==a.get(o).nodeName&&(a.eq(o).trigger("focus"),t.preventDefault())}function eT(){return e||(e=new ex),e}function ek(e,t){var i="_aui-widget-"+e;return function(e,n){x.isPlainObject(e)?a=e:(s=e,a=n);var s,a,r,o=s&&x(s);return o&&o.data(i)?r=o.data(i):(o=(r=new t(o,a||{})).$el).data(i,r),r}}ex.defaultFocusSelector=":aui-tabbable",ex.prototype.enter=function(e,t){if(!function(e,t=document.activeElement){e.data(ew,t)}(e,t),"false"!==e.attr("data-aui-focus")){var i=e.attr("data-aui-focus-selector")||ex.defaultFocusSelector;(e.is(i)?e:e.find(i)).first().trigger("focus")}e_(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=eC.bind(void 0,this._focusTrapStack),x(document).on("keydown.aui-focus-manager",this._handler)))},ex.prototype.exit=function(e){e_(e)&&(this._focusTrapStack.splice(this._focusTrapStack.indexOf(e),1),this._focusTrapStack.length||(x(document).off(".aui-focus-manager",this._handler),delete this._handler));var t=document.activeElement;if(e[0]===t||e.has(t).length){t.blur();var i=x(e.data(ew));i.length&&(e.removeData(ew),i.trigger("focus"))}},eT.global=eT(),k("FocusManager",eT);let eE="_aui-internal-layer-",eA="_aui-internal-layer-global-";var eD=x(document);function eS(e,t,i){var n=x.Event(eE+t),s=x.Event(eA+t),a=new CustomEvent("aui-layer-"+i,{bubbles:!0,cancelable:!0}),r=new CustomEvent("aui-"+i,{bubbles:!0,cancelable:!0});return e.trigger(n),e.trigger(s,[e]),e[0].dispatchEvent(a),e[0].dispatchEvent(r),!n.isDefaultPrevented()&&!s.isDefaultPrevented()&&!a.defaultPrevented&&!r.defaultPrevented}function eI(e){this.$el=x(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function eM(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}eI.prototype={below:function(){return ej.global.item(ej.global.indexOf(this.$el)-1)},above:function(){return ej.global.item(ej.global.indexOf(this.$el)+1)},changeSize:function(e,t){return this.$el.css("width",e),this.$el.css("height","content"===t?"":t),this},on:function(e,t){return this.$el.on(eE+e,t),this},off:function(e,t){return this.$el.off(eE+e,t),this},show:function(){return this.isVisible()||ej.global.indexOf(this.$el)>-1||!eS(this.$el,"beforeShow","show")||("none"===this.$el.css("display")&&this.$el.css("display",""),ej.global.push(this.$el)),this},hide:function(){if(!this.isVisible())return this;let e=this;return function(e,t,i,n){var s;(s=window.getComputedStyle(e).transitionProperty)&&s.indexOf(t)>-1?e.addEventListener("transitionend",function s(a){t===a.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))}):i.call(e)}(this.$el.get(0),"opacity",function(){e.isVisible()||(this.style.display="none")},!0),ej.global.popUntil(this.$el,!0),this},isVisible:function(){return!0===this.$el.data("_aui-layer-shown")},remove:function(){this.hide(),this.$el.remove(),this.$el=null,this.el=null},isBlanketed:function(){return"true"===this.el.dataset.auiBlanketed},isPersistent:function(){var e=eM(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=eM(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return(!e||!!eS(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&eT.global.exit(this.$el),this.el.removeAttribute("open"),this.$el.removeData("_aui-layer-shown"),this.$el.css("z-index",this.$el.data("_aui-layer-cached-z-index")||""),this.$el.data("_aui-layer-cached-z-index",""),this.$el.trigger(eE+"hide"),this.$el.trigger(eA+"hide",[this.$el]),!0)},_showLayer:function(e){let t=this.getDOMContainer();if(this.isBlanketed()||t){let e=t||"body";this.$el.parent().is(e)||this.$el.appendTo(e)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",e),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&eT.global.enter(this.$el),this.$el.trigger(eE+"show"),this.$el.trigger(eA+"show",[this.$el])}};var eN=ek("layer",eI);function eO(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return -1}function eL(e,t){return eO(e,function(e){return e[0]===t[0]})}function eP(e){return eO(e,function(e){return eN(e).isBlanketed()})}function eR(e,t){var i=eP(e);t!==i&&(i>-1?ei(!1,e[i].css("z-index")-20):en())}function e$(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,a=e.length-1;a>=t;a--){var r=eN(s=e[a]);if(i||!r.isPersistent()){if(!r._hideLayer(n))return[!1,s];e.splice(a,1)}}return[!0,s]}function ej(){this._stack=[]}function ez(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return ej.global.indexOf(t)>-1}eN.on=function(e,t,i){return eD.on(eA+e,t,i),this},eN.off=function(e,t,i){return eD.off(eA+e,t,i),this},ej.prototype={push:function(e){var t=e instanceof x?e:x(e);if(eL(this._stack,t)>=0)throw Error("The given element is already an active layer.");this.popLayersBeside(t);var i=eN(t),n=function(e){var t;if(e.length){var i=parseInt(e[e.length-1].css("z-index"),10);t=(isNaN(i)?0:i)+100}else t=0;return Math.max(3e3,t)}(this._stack);return i._showLayer(n),i.isBlanketed()&&ei(!1,n-20),this._stack.push(t),this},popLayersBeside:function(e){let t=x(e).get(0);if(!ec(t)){var i=eP(this._stack);e$(this._stack,++i,!1);return}let n=function(e){var t=ec(e);if(t)return x(t).closest(".aui-layer").get(0)}(t);if(n){let e=this.indexOf(n);e$(this._stack,++e,!1)}else e$(this._stack,0,!1)},indexOf:function(e){return eL(this._stack,x(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach(function(e){let t=eN(e);t.isBlanketed()||t.isPersistent()||t.hide()}),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,i=e instanceof x?e:x(e),n=eL(this._stack,i);if(n<0)return null;for(n--;n>=0;){var s=eN(t=this._stack[n]);if(!s.isPersistent()||s.isBlanketed())return t;n--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,i=e instanceof x?e:x(e),n=eL(this._stack,i);if(n<0)return null;for(n++;n<this._stack.length;){var s=eN(t=this._stack[n]);if(!(s.isPersistent()||s.isBlanketed()))return t;n++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},getTopOpenLayer:function(){return this._stack.slice().reverse().find(e=>void 0!==e.attr("open"))||null},popUntil:function(e,t=!1){var i=e instanceof x?e:x(e),n=eL(this._stack,i);if(-1===n)return null;let s=eP(this._stack),a=eN(i),[r,o]=e$(this._stack,n+1,a.isBlanketed(),t);return r&&a._hideLayer(t)?(this._stack.splice(n,1),eR(this._stack,s),i):o},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=eN(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=eP(this._stack);if(t<0)return null;var i=this._stack[t];if(eN(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=eL(this._stack,n);return e$(this._stack,s,!0,e),n}return null}return e$(this._stack,t,!0),eR(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t,i=ej.global.getTopLayer();if(i){var n=eP(this._stack),s=eN(i);if(s.isPersistent())if(s.isBlanketed())return;else{if(s=eN(i=ej.global.getNextLowerNonPersistentOrBlanketedLayer(i)),!i||s.isPersistent())return;t=eL(this._stack,i),e$(this._stack,t,!0,e),eR(this._stack,n)}else t=eL(this._stack,i),e$(this._stack,t,!0,e),eR(this._stack,n)}}},eD.on("keydown",function(e){e.keyCode===ea.ESCAPE&&(ej.global.popUntilTopPersistent(!0),e.preventDefault())}),eD.on("click",".aui-blanket",function(e){ej.global.popUntilTopBlanketed(!0)&&e.preventDefault()}),eD.on("click",function(e){var t=x(e.target);if(!t.closest(".aui-blanket").length){var i=t.closest("[aria-controls]"),n=t.closest(".aui-layer");if(!n.length&&!ez(i)){let t=x.Event("aui-close-layers-on-outer-click");return(eD.trigger(t),t.isDefaultPrevented())?void e.preventDefault():void ej.global.hideAll()}if(!ez(i)&&n.length){var s=ej.global.getNextHigherNonPeristentAndNonBlanketedLayer(n);s&&eN(s).hide()}}}),ej.global=new ej,eN.Manager=ej,k("layer",eN),k("LayerManager",eN.Manager),eN.Manager;let eH={sinceVersion:"9.0.0",removeInVersion:"11.0.0"},eF=k("params",new Proxy({},{get:function(e,t){return K("AJS.params",eH)(),e[t]}})),eU=J(function(e){e||(e=eF),x(".parameters input").each(function(){var t=this.value,i=this.title||this.id;x(this).hasClass("list")?e[i]?e[i].push(t):e[i]=[t]:e[i]=t.match(/^(tru|fals)e$/i)?"true"===t.toLowerCase():t})},"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"11.0.0"});k("populateParameters",eU),x(function(){var e=x("body");e.data("auiVersion")||e.attr("data-aui-version",$),eU()}),k("$",x);let eB=x;function eW(e){return x.when(x.ready).then(function(){setTimeout(function(){try{e.call(this,x)}catch(t){O("Failed to run init function: "+t.message,e,t,t.stack)}},1)}),this}k("toInit",eW);let eV=eW;a(793);let eY=function(e){T(),"object"!=typeof window.AJS[C]&&(window.AJS[C]={});let t=window.AJS[C];for(let i in e)void 0===t[i]&&(t[i]=e[i]);return t}({keys:{"aui.landmarks.site":"Site","aui.landmarks.sidebar":"Sidebar","aui.landmarks.page":"Page","aui.landmarks.main":"Main","aui.header.home.link":"Go to home page","aui.dropdown.async.error":"Error loading dropdown","aui.dropdown.async.loading":"Loading dropdown","aui.words.expand":"Expand","aui.words.collapse":"Collapse","aui.words.add":"Add","aui.words.update":"Update","aui.words.delete":"Delete","aui.words.remove":"Remove","aui.words.cancel":"Cancel","aui.words.loading":"Loading","aui.words.close":"Close","aui.enter.value":"Enter value","aui.words.more":"More","aui.words.moreitem":"More…","aui.keyboard.shortcut.type.x":"Type ''{0}''","aui.keyboard.shortcut.then.x":"then ''{0}''","aui.keyboard.shortcut.or.x":"OR ''{0}''","aui.sidebar.expand.tooltip":"Expand sidebar ( [ )","aui.sidebar.collapse.tooltip":"Collapse sidebar ( [ )","aui.validation.message.maxlength":"Must be fewer than or equal to {0} characters","aui.validation.message.minlength":"Must be greater than or equal to {0} characters","aui.validation.message.exactlength":"Must be exactly {0} characters","aui.validation.message.matchingfield":"{0} and {1} do not match.","aui.validation.message.matchingfield-novalue":"These fields do not match.","aui.validation.message.doesnotcontain":"Do not include the phrase {0} in this field","aui.validation.message.pattern":"This field does not match the required format","aui.validation.message.required":"This is a required field","aui.validation.message.validnumber":"Please enter a valid number","aui.validation.message.min":"Enter a value greater than or equal to {0}","aui.validation.message.max":"Enter a value less than or equal to {0}","aui.validation.message.dateformat":"Enter a valid date","aui.validation.message.minchecked":"Tick at least {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.validation.message.maxchecked":"Tick at most {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.select.no.suggestions":"No suggestions","aui.select.number.suggestions":"Found {0,choice,0#0 options|1#1 option|1<{0,number} options}.","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","aui.messagecomponent.error.label":"Error","aui.messagecomponent.warning.label":"Warning","aui.messagecomponent.info.label":"Information","aui.messagecomponent.confirmation.label":"Confirmation","aui.messagecomponent.change.label":"Change","ajs.datepicker.localisations.day-names.sunday":"Sunday","ajs.datepicker.localisations.day-names.monday":"Monday","ajs.datepicker.localisations.day-names.tuesday":"Tuesday","ajs.datepicker.localisations.day-names.wednesday":"Wednesday","ajs.datepicker.localisations.day-names.thursday":"Thursday","ajs.datepicker.localisations.day-names.friday":"Friday","ajs.datepicker.localisations.day-names.saturday":"Saturday","ajs.datepicker.localisations.day-names-min.sunday":"Sun","ajs.datepicker.localisations.day-names-min.monday":"Mon","ajs.datepicker.localisations.day-names-min.tuesday":"Tue","ajs.datepicker.localisations.day-names-min.wednesday":"Wed","ajs.datepicker.localisations.day-names-min.thursday":"Thu","ajs.datepicker.localisations.day-names-min.friday":"Fri","ajs.datepicker.localisations.day-names-min.saturday":"Sat","ajs.datepicker.localisations.first-day":0,"ajs.datepicker.localisations.is-RTL":!1,"ajs.datepicker.localisations.month-names.january":"January","ajs.datepicker.localisations.month-names.february":"February","ajs.datepicker.localisations.month-names.march":"March","ajs.datepicker.localisations.month-names.april":"April","ajs.datepicker.localisations.month-names.may":"May","ajs.datepicker.localisations.month-names.june":"June","ajs.datepicker.localisations.month-names.july":"July","ajs.datepicker.localisations.month-names.august":"August","ajs.datepicker.localisations.month-names.september":"September","ajs.datepicker.localisations.month-names.october":"October","ajs.datepicker.localisations.month-names.november":"November","ajs.datepicker.localisations.month-names.december":"December","ajs.datepicker.localisations.show-month-after-year":!1,"ajs.datepicker.localisations.year-suffix":"","aui.flag.default-aria-label.info":"New information message","aui.flag.default-aria-label.success":"New confirmation message","aui.flag.default-aria-label.warning":"New warning message","aui.flag.default-aria-label.error":"New error message"},getText:function(e,...t){return Object.prototype.hasOwnProperty.call(this.keys,e)?P.apply(null,[this.keys[e]].concat(t)):e}}),eq="bottom-end",eK=["top-start","top-end","bottom-start","bottom-end"],eQ=eo("aui-avatar-badged",{attributes:{placement:{value:eq,fallback(e,{newValue:t,oldValue:i}){let n;n=eK.includes(t)?t:eq,i&&e.classList.remove(`aui-avatar-badged-${i}`),e.classList.add(`aui-avatar-badged-${n}`)}}},created:function(e){e.classList.add("aui-avatar-badged")}});var eG=a(2),eJ=a.n(eG);let eZ=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),eX=(e,t,i)=>{let n=e.querySelector(".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},e0=e=>{if(e.hasAttribute("src"))e2(e,e.getAttribute("src"));else{let t="project"===e.getAttribute("type")?"project":"user";e2(e,eZ.get(t))}},e1=(e,t,i)=>e.querySelector("img").setAttribute(t,i),e2=(e,t)=>e1(e,"src",t),e4=eo("aui-avatar",{template:eJ()(`
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("backbone"),require("jquery"),require("underscore")):"function"==typeof define&&define.amd?define("@atlassian/aui",["backbone","jquery","underscore"],t):"object"==typeof exports?exports["@atlassian/aui"]=t(require("backbone"),require("jquery"),require("underscore")):e.AJS=t(e.Backbone,e.jQuery,e._)}(window,(e,t,i)=>(()=>{var n={101(e,t,i){let n;n=i(195),e.exports=(()=>{var e={930(e){"use strict";e.exports=n}},t={};let i=function i(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,i),a.exports}(930),s=/^.*[\\\/]/,a=/\{0\}/gi;function r(e,t){let n=i(e).data("FancyFileInput");if(n)return n;t=i.extend({},r.defaults,t),this.el=e,this.$el=i(e),this.$label=this.createLabel(t.buttonText),this._addLabelText(),this.$clearButton=i("<button>",{text:this.$label.attr("data-ffi-clearButtonText")||t.clearButtonText,class:"ffi-clear",type:"button",tabindex:"-1"}),this.multipleFileTextPattern=this.$label.attr("data-ffi-multipleFileTextPattern")||t.multipleFileTextPattern,this._eventNamespace=".ffi",this.CLASSES={disabled:"is-disabled",focused:"is-focused",active:"is-active",valid:"is-valid",invalid:"is-invalid"},this[this.isDisabled()?"disable":"enable"]()}return r.defaults={buttonText:"Browse…",clearButtonText:"Clear",multipleFileTextPattern:"{0} files"},r.prototype._addLabelText=function(){let e=i('label[for="'+this.el.id+'"]');e.length&&this.$el.attr("aria-label",e.text())},r.prototype.createLabel=function(e){let t=this.$el.parent(".ffi[data-ffi-button-text]");return t.length||(t=this.$el.wrap(i("<label>",{class:"ffi","data-ffi-button-text":e})).parent()),t},r.prototype.isDisabled=function(){return this.$el.is(":disabled")},r.prototype.formatMultipleFileText=function(e){return this.multipleFileTextPattern.replace(a,e)},r.prototype.bindEvents=function(){this.$el.on("invalid"+this._eventNamespace,this.checkValidity.bind(this)).on("change"+this._eventNamespace,this.change.bind(this)).on("keydown"+this._eventNamespace,this.keydown.bind(this)).on("mousedown"+this._eventNamespace,this.mousedown.bind(this)).on("mouseup"+this._eventNamespace,this.mouseup.bind(this)).on("focus"+this._eventNamespace,this.focus.bind(this)).on("blur"+this._eventNamespace,this.blur.bind(this)),this.$clearButton.on("click"+this._eventNamespace,this.clear.bind(this))},r.prototype.unbindEvents=function(){this.$el.off(this._eventNamespace),this.$clearButton.off(this._eventNamespace)},r.prototype.fireEvent=function(e){this.$el.trigger(e+this._eventNamespace)},r.prototype.enable=function(){this.bindEvents(),this.$el.prop("disabled",!1),this.$label.removeClass(this.CLASSES.disabled)},r.prototype.disable=function(){this.unbindEvents(),this.$el.prop("disabled",!0),this.$label.addClass(this.CLASSES.disabled)},r.prototype.clear=function(){return this.$el.wrap("<form>").closest("form").get(0).reset(),this.$el.unwrap(),this.el.value="",this.change(),!1},r.prototype.focus=function(){this.$label.addClass(this.CLASSES.focused)},r.prototype.blur=function(){this.$label.removeClass(this.CLASSES.focused)},r.prototype.mousedown=function(){this.$label.addClass(this.CLASSES.active)},r.prototype.mouseup=function(){this.$label.removeClass(this.CLASSES.active)},r.prototype.keydown=function(e){let t=e.which;(8===t||46===t)&&(this.clear(),e.preventDefault())},r.prototype.checkValidity=function(){if(!this.el.required)return;let e=this.$el.is(":invalid");this.$label.toggleClass(this.CLASSES.invalid,e).toggleClass(this.CLASSES.valid,!e)},r.prototype.change=function(){let e,t="";this.checkValidity(),(e=this.el.multiple&&this.el.files.length>1?this.formatMultipleFileText(this.el.files.length):this.el.value).length?(t=e.replace(s,""),this.$clearButton.appendTo(this.$label)):this.$clearButton.detach(),this.$el.focus(),this.setFieldText(t),this.fireEvent("value-changed")},r.prototype.setFieldText=function(e){let t="data-ffi-value";e.length?(this.$label.attr(t,e),this.fireEvent("value-added")):(this.$label.removeAttr(t),this.fireEvent("value-cleared"))},i.fn.fancyFileInput=function(e){return this.each(function(){let t=new r(this,e);i(this).data("FancyFileInput",t)})},{}})()},793(){console.debug("AUI import for WRM I18n not loaded")},603(){jQuery.fn.moveTo=function(e){var t,i=jQuery.extend({transition:!1,scrollOffset:35},e),n=this,s=n.offset().top;if((jQuery(window).scrollTop()+jQuery(window).height()-this.outerHeight()<s||jQuery(window).scrollTop()+i.scrollOffset>s)&&jQuery(window).height()>i.scrollOffset){if(t=jQuery(window).scrollTop()+i.scrollOffset>s?s-(jQuery(window).height()-this.outerHeight())+i.scrollOffset:s-i.scrollOffset,!jQuery.fn.moveTo.animating&&i.transition)return jQuery(document).trigger("moveToStarted",this),jQuery.fn.moveTo.animating=!0,jQuery("html,body").animate({scrollTop:t},1e3,function(){jQuery(document).trigger("moveToFinished",n),delete jQuery.fn.moveTo.animating}),this;var a=jQuery("html, body");return a.is(":animated")&&(a.stop(),delete jQuery.fn.moveTo.animating),jQuery(document).trigger("moveToStarted"),jQuery(window).scrollTop(t),setTimeout(function(){jQuery(document).trigger("moveToFinished",n)},100),this}return jQuery(document).trigger("moveToFinished",this),this}},745(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}})})})},891(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})},786(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.ui.plugin={add:function(t,i,n){var s,a=e.ui[t].prototype;for(s in n)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,a=e.plugins[t];if(a&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<a.length;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}}})},41(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var t=e(this);return(!n||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length?a:e(this[0].ownerDocument||document)}})},309(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.ui=e.ui||{},e.ui.version="1.14.1"})},229(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){"use strict";var t,i=0,n=Array.prototype.hasOwnProperty,s=Array.prototype.slice;return t=e.cleanData,e.cleanData=function(i){var n,s,a;for(a=0;null!=(s=i[a]);a++)(n=e._data(s,"events"))&&n.remove&&e(s).triggerHandler("remove");t(i)},e.widget=function(t,i,n){var s,a,r,o={},l=t.split(".")[0];if("__proto__"===(t=t.split(".")[1])||"constructor"===t)return e.error("Invalid widget name: "+t);var c=l+"-"+t;return n||(n=i,i=e.Widget),Array.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},s=e[l][t],a=e[l][t]=function(e,t){if(!this||!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(r=new i).options=e.widget.extend({},r.options),e.each(n,function(e,t){if("function"!=typeof t){o[e]=t;return}o[e]=function(){function n(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,a=this._superApply;return this._super=n,this._superApply=s,e=t.apply(this,arguments),this._super=i,this._superApply=a,e}}()}),a.prototype=e.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},o,{constructor:a,namespace:l,widgetName:t,widgetFullName:c}),s?(e.each(s._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,a,i._proto)}),delete s._childConstructors):i._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var i,a,r=s.call(arguments,1),o=0,l=r.length;o<l;o++)for(i in r[o])a=r[o][i],n.call(r[o],i)&&void 0!==a&&(e.isPlainObject(a)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],a):e.widget.extend({},a):t[i]=a);return t},e.widget.bridge=function(t,i){var n=i.prototype.widgetFullName||t;e.fn[t]=function(a){var r="string"==typeof a,o=s.call(arguments,1),l=this;return r?this.length||"instance"!==a?this.each(function(){var i,s=e.data(this,n);return"instance"===a?(l=s,!1):s?"function"!=typeof s[a]||"_"===a.charAt(0)?e.error("no such method '"+a+"' for "+t+" widget instance"):(i=s[a].apply(s,o))!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+a+"'")}):l=void 0:(o.length&&(a=e.widget.extend.apply(null,[a].concat(o))),this.each(function(){var t=e.data(this,n);t?(t.option(a||{}),t._init&&t._init()):e.data(this,n,new i(a,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,s,a,r=t;if(0==arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(n=t.split(".")).shift(),n.length){for(a=0,s=r[t]=e.widget.extend({},this.options[t]);a<n.length-1;a++)s[n[a]]=s[n[a]]||{},s=s[n[a]];if(t=n.pop(),1==arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1==arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,s;for(i in t)s=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&s&&s.length&&(n=e(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var i=[],n=this;function s(s,a){var r,o;for(o=0;o<s.length;o++)r=n.classesElementLookup[s[o]]||e(),t.add?(!function(){var i=[];t.element.each(function(t,s){e.map(n.classesElementLookup,function(e){return e}).some(function(e){return e.is(s)})||i.push(s)}),n._on(e(i),{remove:"_untrackClassesElement"})}(),r=e(e.uniqueSort(r.get().concat(t.element.get())))):r=e(r.not(t.element).get()),n.classesElementLookup[s[o]]=r,i.push(s[o]),a&&t.classes[s[o]]&&i.push(t.classes[s[o]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&s(t.keys.match(/\S+/g)||[],!0),t.extra&&s(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,function(n,s){-1!==e.inArray(t.target,s)&&(i.classesElementLookup[n]=e(s.not(t.target).get()))}),this._off(e(t.target))},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof e||null===e,a={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return a.element.toggleClass(this._classes(a),n),this},_on:function(t,i,n){var s,a=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,function(n,r){function o(){if(!(!t&&(!0===a.options.disabled||e(this).hasClass("ui-state-disabled"))))return("string"==typeof r?a[r]:r).apply(a,arguments)}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?s.on(c,u,o):i.on(c,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var s,a,r=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(s in a)s in i||(i[s]=a[s]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,s,a){"string"==typeof s&&(s={effect:s});var r,o=s?!0===s||"number"==typeof s?i:s.effect||i:t;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),r=!e.isEmptyObject(s),s.complete=a,s.delay&&n.delay(s.delay),r&&e.effects&&e.effects.effect[o]?n[t](s):o!==t&&n[o]?n[o](s.duration,s.easing,a):n.queue(function(i){e(this)[t](),a&&a.call(n[0]),i()})}}),e.widget})},253(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309),i(891)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){"use strict";var t;function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=n(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,s)}function s(){e.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function a(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}return e.extend(e.ui,{datepicker:{version:"1.14.1"}}),e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return a(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,s,a;s="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),s)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,a):s&&this._inlineDatepicker(t,a)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),!n.hasClass(this.markerClassName)&&(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,s,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span>").addClass(this._appendClass).text(r),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(n=this._get(i,"showOn"))||"both"===n)&&t.on("focus",this._showDatepicker),("button"===n||"both"===n)&&(s=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),a?i.trigger.html(e("<img>").attr({src:a,alt:s,title:s})):i.trigger.text(s)),t[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():(e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]&&e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(s=0,i=0,n=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,s,r){var o,l,c,u,h,p=this._dialogInst;return p||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",p)),a(p.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(i){var n,s=e(i),a=e.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),e.removeData(i,"datepicker"),"input"===n?(a.append.remove(),a.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===n||"span"===n)&&s.removeClass(this.markerClassName).empty(),e.datepicker._hideDatepicker(),t===a&&(t=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var s,r,o,l,c=this._getInst(t);if(2==arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):c?"all"===i?e.extend({},c.settings):this._get(c,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),a(c.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,s,a=e.datepicker._getInst(t.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv))[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,s[0]),(i=e.datepicker._get(a,"onSelect"))?(n=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[n,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var i,n,s,r,o,l,c;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(s=(n=e.datepicker._get(i,"beforeShow"))?n.apply(t,[t,i]):{})&&(a(i.settings,s),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),r=!1,e(t).parents().each(function(){return!(r|="fixed"===e(this).css("position"))}),o={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),o=e.datepicker._checkOffset(i,o,r),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":r?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),i.inline||(l=e.datepicker._get(i,"showAnim"),c=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&!isNaN(i=parseInt(e.css("zIndex"),10))&&0!==i)return i;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),c):i.dpDiv[l||"show"](l?c:null),e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),e.datepicker._curInst=i)))},_updateDatepicker:function(i){this.maxRows=4,t=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,a=this._getNumberOfMonths(i),r=a[1],o=i.dpDiv.find("."+this._dayOverClass+" a"),l=e.datepicker._get(i,"onUpdateDatepicker");o.length>0&&s.apply(o.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&i.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),i.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),i.yearshtml&&(n=i.yearshtml,setTimeout(function(){n===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year").first().replaceWith(i.yearshtml),n=i.yearshtml=null},0)),l&&l.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-r:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+a>c&&c>a?Math.abs(a+o):0),i},_findPos:function(t){for(var i,n=this._getInst(t),s=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,s,a,r=this._curInst;r&&(!t||r===e.data(t,"datepicker"))&&this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){e.datepicker._tidyDialog(r)},e.effects&&e.effects.effect[i]?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&!(e.datepicker._inDialog&&e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==n)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var s=e(t),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,i,n),this._updateDatepicker(a))},_gotoToday:function(t){var i,n=e(t),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(s.selectedDay=(i=new Date).getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var s=e(t),a=this._getInst(s[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(t,i,n,s){var a,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=parseInt(e("a",s).attr("data-date")),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),a=this._getInst(s[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),(n=this._get(a,"onSelect"))?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(a).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,a,r,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:new Date().getFullYear()%100+parseInt(c,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,g=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,v=-1,b=-1,y=-1,w=!1,_=function(e){var i=s+1<t.length&&t.charAt(s+1)===e;return i&&s++,i},x=function(e){var t=_(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),a=i.substring(l).match(s);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},C=function(t,n,s){var a=-1,r=e.map(_(t)?s:n,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(r,function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return a=t[0],l+=n.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+l},T=function(){if(i.charAt(l)!==t.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<t.length;s++)if(w)"'"!==t.charAt(s)||_("'")?T():w=!1;else switch(t.charAt(s)){case"d":b=x("d");break;case"D":C("D",h,p);break;case"o":y=x("o");break;case"m":v=x("m");break;case"M":v=C("M",f,g);break;case"y":m=x("y");break;case"@":m=(o=new Date(x("@"))).getFullYear(),v=o.getMonth()+1,b=o.getDate();break;case"!":m=(o=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),v=o.getMonth()+1,b=o.getDate();break;case"'":_("'")?T():w=!0;break;default:T()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=new Date().getFullYear():m<100&&(m+=new Date().getFullYear()-new Date().getFullYear()%100+(m<=u?0:-100)),y>-1)for(v=1,b=y;!(b<=(a=this._getDaysInMonth(m,v-1)));)v++,b-=a;if((o=this._daylightSavingAdjust(new Date(m,v-1,b))).getFullYear()!==m||o.getMonth()+1!==v||o.getDate()!==b)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864e9,formatDate:function(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},u=function(e,t,i,n){return l(e)?n[t]:i[t]},h="",p=!1;if(t)for(n=0;n<e.length;n++)if(p)"'"!==e.charAt(n)||l("'")?h+=e.charAt(n):p=!1;else switch(e.charAt(n)){case"d":h+=c("d",t.getDate(),2);break;case"D":h+=u("D",t.getDay(),s,a);break;case"o":h+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=c("m",t.getMonth()+1,2);break;case"M":h+=u("M",t.getMonth(),r,o);break;case"y":h+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":p=!0;break;default:h+=e.charAt(n)}return h},_possibleChars:function(e){var t,i="",n=!1,s=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),a=s,r=this._getFormatConfig(e);try{a=this.parseDate(i,n,r)||s}catch(e){n=t?"":n}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=n?a.getDate():0,e.currentMonth=n?a.getMonth():0,e.currentYear=n?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var s,a=null==i||""===i?n:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),a=n.getMonth(),r=n.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a))}l=o.exec(i)}return new Date(s,a,r)}(i):"number"==typeof i?isNaN(i)?n:((s=new Date).setDate(s.getDate()+i),s):new Date(i.getTime());return(a=a&&"Invalid Date"===a.toString()?n:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){e(this).on(this.getAttribute("data-event"),{prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(t){var i,n,s,a,r,o,l,c,u,h,p,f,g,m,v,b,y,w,_,x,C,T,k,E,A,D,S,I,M,N,O,L,P,R,$,j,z,H,F,U=new Date,B=this._daylightSavingAdjust(new Date(U.getFullYear(),U.getMonth(),U.getDate())),W=this._get(t,"isRTL"),V=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),q=this._get(t,"navigationAsDateFormat"),K=this._getNumberOfMonths(t),Q=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),J=1!==K[0]||1!==K[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),ee=this._getMinMaxDate(t,"max"),et=t.drawMonth-Q,ei=t.drawYear;if(et<0&&(et+=12,ei--),ee)for(i=this._daylightSavingAdjust(new Date(ee.getFullYear(),ee.getMonth()-K[0]*K[1]+1,ee.getDate())),i=X&&i<X?X:i;this._daylightSavingAdjust(new Date(ei,et,1))>i;)--et<0&&(et=11,ei--);for(t.drawMonth=et,t.drawYear=ei,n=this._get(t,"prevText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(ei,et-G,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,-1,ei,et)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML:Y?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML,a=this._get(t,"nextText"),a=q?this.formatDate(a,this._daylightSavingAdjust(new Date(ei,et+G,1)),this._getFormatConfig(t)):a,r=this._canAdjustMonth(t,1,ei,et)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:a}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(a))[0].outerHTML:Y?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:a}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(a))[0].outerHTML,o=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Z:B,o=q?this.formatDate(o,l,this._getFormatConfig(t)):o,c="",t.inline||(c=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),u="",V&&(u=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?c:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(W?"":c)[0].outerHTML),h=isNaN(h=parseInt(this._get(t,"firstDay"),10))?0:h,p=this._get(t,"showWeek"),f=this._get(t,"dayNames"),g=this._get(t,"dayNamesMin"),m=this._get(t,"monthNames"),v=this._get(t,"monthNamesShort"),b=this._get(t,"beforeShowDay"),y=this._get(t,"showOtherMonths"),w=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),x="",T=0;T<K[0];T++){for(E=0,k="",this.maxRows=4;E<K[1];E++){if(A=this._daylightSavingAdjust(new Date(ei,et,t.selectedDay)),D=" ui-corner-all",S="",J){if(S+="<div class='ui-datepicker-group",K[1]>1)switch(E){case 0:S+=" ui-datepicker-group-first",D=" ui-corner-"+(W?"right":"left");break;case K[1]-1:S+=" ui-datepicker-group-last",D=" ui-corner-"+(W?"left":"right");break;default:S+=" ui-datepicker-group-middle",D=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&0===T?W?r:s:"")+(/all|right/.test(D)&&0===T?W?s:r:"")+this._generateMonthYearHeader(t,et,ei,X,ee,T>0||E>0,m,v)+"</div><table class='ui-datepicker-calendar'><thead><tr>",I=p?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",C=0;C<7;C++)M=(C+h)%7,I+="<th scope='col'"+((C+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+f[M]+"'>"+g[M]+"</span></th>";for(S+=I+"</tr></thead><tbody>",N=this._getDaysInMonth(ei,et),ei===t.selectedYear&&et===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,N)),L=Math.ceil(((O=(this._getFirstDayOfMonth(ei,et)-h+7)%7)+N)/7),P=J&&this.maxRows>L?this.maxRows:L,this.maxRows=P,R=this._daylightSavingAdjust(new Date(ei,et,1-O)),$=0;$<P;$++){for(S+="<tr>",j=p?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(R)+"</td>":"",C=0;C<7;C++)z=b?b.apply(t.input?t.input[0]:null,[R]):[!0,""],F=(H=R.getMonth()!==et)&&!w||!z[0]||X&&R<X||ee&&R>ee,j+="<td class='"+((C+h+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(R.getTime()===A.getTime()&&et===t.selectedMonth&&t._keyEvent||_.getTime()===R.getTime()&&_.getTime()===A.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!y?"":" "+z[1]+(R.getTime()===Z.getTime()?" "+this._currentClass:"")+(R.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+((!H||y)&&z[2]?" title='"+z[2].replace(/'/g,"&#39;")+"'":"")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+">"+(H&&!y?"&#xa0;":F?"<span class='ui-state-default'>"+R.getDate()+"</span>":"<a class='ui-state-default"+(R.getTime()===B.getTime()?" ui-state-highlight":"")+(R.getTime()===Z.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#' aria-current='"+(R.getTime()===Z.getTime()?"true":"false")+"' data-date='"+R.getDate()+"'>"+R.getDate()+"</a>")+"</td>",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);S+=j+"</tr>"}++et>11&&(et=0,ei++),S+="</tbody></table>"+(J?"</div>"+(K[0]>0&&E===K[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),k+=S}x+=k}return x+=u,t._keyEvent=!1,x},_generateMonthYearHeader:function(e,t,i,n,s,a,r,o){var l,c,u,h,p,f,g,m,v=this._get(e,"changeMonth"),b=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),w=this._get(e,"selectMonthLabel"),_=this._get(e,"selectYearLabel"),x="<div class='ui-datepicker-title'>",C="";if(a||!v)C+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,C+="<select class='ui-datepicker-month' aria-label='"+w+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(C+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>");C+="</select>"}if(y||(x+=C+(a||!(v&&b)?"&#xa0;":"")),!e.yearshtml)if(e.yearshtml="",a||!b)x+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(e,"yearRange").split(":"),p=new Date().getFullYear(),m=Math.max(g=(f=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?p+parseInt(e,10):parseInt(e,10);return isNaN(t)?p:t})(h[0]),f(h[1]||"")),g=n?Math.max(g,n.getFullYear()):g,m=s?Math.min(m,s.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+_+"' data-handler='selectYear' data-event='change'>";g<=m;g++)e.yearshtml+="<option value='"+g+"'"+(g===i?" selected='selected'":"")+">"+g+"</option>";e.yearshtml+="</select>",x+=e.yearshtml,e.yearshtml=null}return x+=this._get(e,"yearSuffix"),y&&(x+=(a||!(v&&b)?"&#xa0;":"")+C),x+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&s>n?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=new Date().getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:new Date().getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2==arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)})},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=new Date().getTime(),e.datepicker.version="1.14.1",e.datepicker})},132(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(228),i(745),i(786),i(41),i(309),i(229)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return!this.helper&&!i.disabled&&!(e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=this.document[0].activeElement;e(t.target).closest(i).length||e(i).trigger("blur")},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t))?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",t)&&i._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper,s=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options,a=this.document[0];if(this.relativeContainer=null,!s.containment){this.containment=null;return}if("window"===s.containment){this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if("document"===s.containment){this.containment=[0,0,e(a).width()-this.helperProportions.width-this.margins.left,(e(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(s.containment.constructor===Array){this.containment=s.containment;return}"parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=e(s.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,s,a,r=this.options,o=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var s=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,s))})},stop:function(t,i,n){var s=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,function(){this.isOver?(this.isOver=0,n.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(t),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",t,s))})},drag:function(t,i,n){e.each(n.sortables,function(){var s=!1,a=this;a.positionAbs=n.positionAbs,a.helperProportions=n.helperProportions,a.offset.click=n.offset.click,a._intersectsWith(a.containerCache)&&(s=!0,e.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&e.contains(a.element[0],this.element[0])&&(s=!1),s})),s?(a.isOver||(a.isOver=1,n._parent=i.helper.parent(),a.currentItem=i.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return i.helper[0]},t.target=a.currentItem[0],a._mouseCapture(t,!0),a._mouseStart(t,!0,!0),a.offset.click.top=n.offset.click.top,a.offset.click.left=n.offset.click.left,a.offset.parent.left-=n.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=n.offset.parent.top-a.offset.parent.top,n._trigger("toSortable",t),n.dropped=a.element,e.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,a.fromOutside=n),a.currentItem&&(a._mouseDrag(t),i.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",t,a._uiHash(a)),a._mouseStop(t,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var s=e("body"),a=n.options;s.css("cursor")&&(a._cursor=s.css("cursor")),s.css("cursor",a.cursor)},stop:function(t,i,n){var s=n.options;s._cursor&&e("body").css("cursor",s._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){var s=e(i.helper),a=n.options;s.css("opacity")&&(a._opacity=s.css("opacity")),s.css("opacity",a.opacity)},stop:function(t,i,n){var s=n.options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,n){var s=n.options,a=!1,r=n.scrollParentNotHidden[0],o=n.document[0];r!==o&&"HTML"!==r.tagName?((!s.axis||"x"!==s.axis)&&(n.overflowOffset.top+r.offsetHeight-t.pageY<s.scrollSensitivity?r.scrollTop=a=r.scrollTop+s.scrollSpeed:t.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=a=r.scrollTop-s.scrollSpeed)),(!s.axis||"y"!==s.axis)&&(n.overflowOffset.left+r.offsetWidth-t.pageX<s.scrollSensitivity?r.scrollLeft=a=r.scrollLeft+s.scrollSpeed:t.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=a=r.scrollLeft-s.scrollSpeed))):((!s.axis||"x"!==s.axis)&&(t.pageY-e(o).scrollTop()<s.scrollSensitivity?a=e(o).scrollTop(e(o).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(o).scrollTop())<s.scrollSensitivity&&(a=e(o).scrollTop(e(o).scrollTop()+s.scrollSpeed))),(!s.axis||"y"!==s.axis)&&(t.pageX-e(o).scrollLeft()<s.scrollSensitivity?a=e(o).scrollLeft(e(o).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(o).scrollLeft())<s.scrollSensitivity&&(a=e(o).scrollLeft(e(o).scrollLeft()+s.scrollSpeed)))),!1!==a&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var s=n.options;n.snapElements=[],e(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=e(this),i=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,n){var s,a,r,o,l,c,u,h,p,f,g=n.options,m=g.snapTolerance,v=i.offset.left,b=v+n.helperProportions.width,y=i.offset.top,w=y+n.helperProportions.height;for(p=n.snapElements.length-1;p>=0;p--){if(c=(l=n.snapElements[p].left-n.margins.left)+n.snapElements[p].width,h=(u=n.snapElements[p].top-n.margins.top)+n.snapElements[p].height,b<l-m||v>c+m||w<u-m||y>h+m||!e.contains(n.snapElements[p].item.ownerDocument,n.snapElements[p].item)){n.snapElements[p].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[p].item})),n.snapElements[p].snapping=!1;continue}"inner"!==g.snapMode&&(s=Math.abs(u-w)<=m,a=Math.abs(h-y)<=m,r=Math.abs(l-b)<=m,o=Math.abs(c-v)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),f=s||a||r||o,"outer"!==g.snapMode&&(s=Math.abs(u-y)<=m,a=Math.abs(h-w)<=m,r=Math.abs(l-v)<=m,o=Math.abs(c-b)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[p].snapping&&(s||a||r||o||f)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[p].item})),n.snapElements[p].snapping=s||a||r||o||f}}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s,a=n.options,r=e.makeArray(e(a.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});r.length&&(s=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each(function(t){e(this).css("zIndex",s+t)}),this.css("zIndex",s+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var s=e(i.helper),a=n.options;s.css("zIndex")&&(a._zIndex=s.css("zIndex")),s.css("zIndex",a.zIndex)},stop:function(t,i,n){var s=n.options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}}),e.ui.draggable})},228(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(309),i(229)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){"use strict";var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,a="string"==typeof this.options.cancel&&e(i.target).closest(this.options.cancel).length;return!(s&&!a&&this._mouseCapture(i))||((this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted))?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return((e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted)?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&e.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,i.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})},903(e,t,i){var n,s,a;!function(r){"use strict";s=[i(195),i(228),i(745),i(41),i(309),i(229)],void 0===(a="function"==typeof(n=r)?n.apply(t,s):n)||(e.exports=a)}(function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.14.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,a=this;return!this.reverting&&!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,a.widgetName+"-item")===a)return n=e(this),!1}),e.data(t.target,a.widgetName+"-item")===a&&(n=e(t.target)),!!n)&&(!this.options.handle||!!i||(e(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,n){var s,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this._storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,n,s,a,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if((s=(n=this.items[i]).item[0],a=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==s&&!e.contains(this.placeholder[0],s)&&("semi-dynamic"!==this.options.type||!e.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"===this.options.tolerance||this._intersectsWithSides(n))this._rearrange(t,n);else break;this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,l=o+e.height,c=this.offset.click.top,u=this.offset.click.left,h="x"===this.options.axis||n+c>o&&n+c<l,p="y"===this.options.axis||t+u>a&&t+u<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?h&&p:a<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!!(n&&s)&&(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,n,s,a,r=[],o=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(n=(s=e(l[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push(["function"==typeof a.options.items?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function c(){r.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,s,a,r,o,l,c,u=this.items,h=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(i=p.length-1;i>=0;i--)for(n=(s=e(p[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&(h.push(["function"==typeof a.options.items?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(i=h.length-1;i>=0;i--)for(n=0,r=h[i][1],c=(o=h[i][0]).length;n<c;n++)(l=e(o[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,n,s,a;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=s.outerWidth(),n.height=s.outerHeight()),n.left=(a=s.offset()).left,n.top=a.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,a){(!i||s.forcePlaceholderSize)&&((!a.height()||s.forcePlaceholderSize&&("tbody"===n||"tr"===n))&&a.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),a.width()||a.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each(function(){e("<td>&#160;</td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){var i,n,s,a,r,o,l,c,u,h,p=null,f=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(p&&e.contains(this.containers[i].element[0],p.element[0]))continue;p=this.containers[i],f=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(p)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(s=1e4,a=null,r=(u=p.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",h=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.contains(this.containers[f].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,t[h]-l>this.items[n][o]/2&&(c=!0),Math.abs(t[h]-l)<s&&(s=Math.abs(t[h]-l),a=this.items[n],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f]){this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1);return}a?this._rearrange(t,a,null,!0):this._rearrange(t,null,this.containers[f].element,!0),this._trigger("change",t,this._uiHash()),this.containers[f]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),("document"===s.containment||"window"===s.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(t=e(s.containment)[0],i=e(s.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*n}},_generatePosition:function(t){var i,n,s=this.options,a=t.pageX,r=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"===this.cssPosition&&(this.scrollParent[0]===this.document[0]||this.scrollParent[0]===this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}for(this.fromOutside&&!t&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&n.push(function(e){this._trigger("update",e,this._uiHash())}),this===this.currentContainer||t||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push((function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}).call(this,this.currentContainer)),n.push((function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}).call(this,this.currentContainer))),i=this.containers.length-1;i>=0;i--)t||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<n.length;i++)n[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})})},841(){var e=jQuery;function t(e){this.num=0,this.timer=e>0&&e}function i(i){if(e.isPlainObject(i.data)||Array.isArray(i.data)||"string"==typeof i.data){var s,a=i.handler,r={timer:700,combo:[]};"string"==typeof(s=i.data)?r.combo=[s]:Array.isArray(s)?r.combo=s:e.extend(r,s),r.combo=e.map(r.combo,function(e){return e.toLowerCase()}),i.index=new t(r.timer),i.handler=function(t){if(!(this!==t.target&&(/textarea|select|input/i.test(t.target.nodeName)||"true"===e(t.target).prop("contenteditable")))){var s="keypress"!==t.type?e.hotkeys.specialKeys[t.which]:null,o=String.fromCharCode(t.which).toLowerCase(),l="",c={};t.altKey&&"alt"!==s&&(l+="alt+"),t.ctrlKey&&"ctrl"!==s&&(l+="ctrl+"),t.metaKey&&!t.ctrlKey&&"meta"!==s&&(l+="meta+"),t.shiftKey&&"shift"!==s&&(l+="shift+"),t.metaKey&&"["===o&&(o=null),s&&(c[l+s]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+e.hotkeys.shiftNums[s||o]]=!0);var u=i.index,h=r.combo;if(n(h[u.val()],c))if(u.val()===h.length-1)return u.reset(),a.apply(this,arguments);else u.inc();else u.reset(),n(h[0],c)&&u.inc()}}}}function n(e,t){for(var i=e.split(" "),n=0,s=i.length;n<s;n++)if(t[i[n]])return!0;return!1}e.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",188:",",190:".",191:"/",224:"meta",219:"[",221:"]"},keypressKeys:["<",">","?"],shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},e.each(e.hotkeys.keypressKeys,function(t,i){e.hotkeys.shiftNums[i]=i}),t.prototype.val=function(){return this.num},t.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(e.proxy(t.prototype.reset,this),this.timer)),this.num++},t.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:i}})},217(){var e;void 0===(e=jQuery).fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}}),function(e,t){"use strict";if(window.Select2===t){var i,n,s,a,r,o,l,c,u={x:0,y:0},h={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(e){switch(e=e.which?e.which:e){case h.LEFT:case h.RIGHT:case h.UP:case h.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case h.SHIFT:case h.CTRL:case h.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},p={"Ⓐ":"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",Ɓ:"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",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"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",Ꝼ:"F","Ⓖ":"G",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","Ⓘ":"I",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",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",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",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",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",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",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",Ꝣ:"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",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",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",ꝺ:"d",dz:"dz",dž:"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",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",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",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",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",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"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",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",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",ẛ:"s","ⓣ":"t",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",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",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",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};l=e(document),i=1,r=function(){return i++},n=N(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,a,o,l,h,p=".select2-results";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.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e(document.body),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(I(i.containerCss,this.opts.element)),this.container.addClass(I(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",x),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(I(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",x),this.results=l=this.container.find(p),this.search=h=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",x),this.results.on("mousemove",function(i){(t===u||u.x!==i.pageX||u.y!==i.pageY)&&e(i.target).trigger("mousemove-filtered",i)}),this.dropdown.on("mousemove-filtered",p,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",p,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",p,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",p,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),n=this.results,s=_(80,function(e){n.trigger("scroll-debounced",e)}),n.on("scroll",function(e){m(e.target,n.get())>=0&&s(e)}),this.dropdown.on("scroll-debounced",p,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&l.mousewheel(function(e,t,i,n){var s=l.scrollTop();n>0&&s-n<=0?(l.scrollTop(0),x(e)):n<0&&l.get(0).scrollHeight-l.scrollTop()+n<=l.height()&&(l.scrollTop(l.get(0).scrollHeight-l.height()),x(e))}),w(h),h.on("keyup-change input paste",this.bind(this.updateResults)),h.on("focus",function(){h.addClass("select2-focused")}),h.on("blur",function(){h.removeClass("select2-focused")}),this.dropdown.on("mouseup",p,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=t,"function"==typeof this.opts.initSelection&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var f=i.element.prop("disabled");t===f&&(f=!1),this.enable(!f);var g=i.element.prop("readonly");t===g&&(g=!1),this.readonly(g),c=c||((a=e("<div class='select2-measure-scrollbar'></div>")).appendTo(document.body),o={width:a.width()-a[0].clientWidth,height:a.height()-a[0].clientHeight},a.remove(),o),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==i&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:v(e.attr("locked"),"locked")||v(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,s,a,o,l=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),i.debug=i.debug||e.fn.select2.defaults.debug,i.debug&&console&&console.warn&&(null!=i.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=i.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=i.ajax&&null!=i.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=i.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=i.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=i.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=i.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=i.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=i.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),i.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=i.element.data("tags")){var c=i.element.data("tags");Array.isArray(c)||(c=[]),i.element.data("select2Tags",c)}if(null!=i.sorter&&(i.sortResults=i.sorter),null!=i.selectOnClose&&(i.selectOnBlur=i.selectOnClose),null!=i.ajax&&"function"==typeof i.ajax.processResults&&(i.ajax.results=i.ajax.processResults),null!=i.language){var u=i.language;"function"==typeof u.noMatches&&(i.formatNoMatches=u.noMatches),"function"==typeof u.searching&&(i.formatSearching=u.searching),"function"==typeof u.inputTooShort&&(i.formatInputTooShort=u.inputTooShort),"function"==typeof u.inputTooLong&&(i.formatInputTooLong=u.inputTooLong),"function"==typeof u.loadingMore&&(i.formatLoading=u.loadingMore),"function"==typeof u.maximumSelected&&(i.formatSelectionTooBig=u.maximumSelected)}if("function"!=typeof(i=e.extend({},{populateResults:function(n,s,a){var o,c=this.opts.id,u=this.liveRegion;(o=function(n,s,h){n=i.sortResults(n,s,a);var p,f,g,m,v,b,y,w,_,x,C=[];for(p=0,f=n.length;p<f;p+=1)m=!(v=!0===(g=n[p]).disabled)&&c(g)!==t,b=g.children&&g.children.length>0,(y=e("<li></li>")).addClass("select2-results-dept-"+h),y.addClass("select2-result"),y.addClass(m?"select2-result-selectable":"select2-result-unselectable"),v&&y.addClass("select2-disabled"),b&&y.addClass("select2-result-with-children"),y.addClass(l.opts.formatResultCssClass(g)),y.attr("role","presentation"),(w=e(document.createElement("div"))).addClass("select2-result-label"),w.attr("id","select2-result-label-"+r()),w.attr("role","option"),t!==(x=i.formatResult(g,w,a,l.opts.escapeMarkup))&&(w.html(x),y.append(w)),b&&((_=e("<ul></ul>")).addClass("select2-result-sub"),o(g.children,_,h+1),y.append(_)),y.data("select2-data",g),C.push(y[0]);s.append(C),u.text(i.formatMatches(n.length))})(s,n,0)}},e.fn.select2.defaults,i)).id&&(a=i.id,i.id=function(e){return e[a]}),Array.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(s?(i.query=this.bind(function(e){var i,s,a,r={results:[],more:!1},o=e.term;a=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2(function(e,t){a(t,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(e,t){a(t,r.results)}),e.callback(r)}),i.id=function(e){return e.id}):!("query"in i)&&("ajax"in i?((o=i.element.data("ajax-url"))&&o.length>0&&(i.ajax.url=o),i.query=E.call(i.element,i.ajax)):"data"in i?i.query=A(i.data):"tags"in i&&(i.query=D(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(e){return{id:null==e?"":e.trim(),text:null==e?"":e.trim()}}),i.initSelection===t&&(i.initSelection=function(t,n){var s=[];e(b(t.val(),i.separator,i.transformVal)).each(function(){var t={id:this,text:this},n=i.tags;"function"==typeof n&&(n=n()),e(n).each(function(){if(v(this.id,t.id))return t=this,!1}),s.push(t)}),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=n.prop("disabled");t===e&&(e=!1),this.enable(!e);var i=n.prop("readonly");t===i&&(i=!1),this.readonly(i),this.container&&(C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(I(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(I(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",s._sync)}),t!==(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(function(t){e.each(t,s._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.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.trigger("click"),this.opts.blurOnChange&&this.opts.element.trigger("blur")},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){t===e&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){t===e&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,a,r=this.dropdown,o=this.container,l=o.offset(),u=o.outerHeight(!1),h=o.outerWidth(!1),p=r.outerHeight(!1),f=e(window),g=f.width(),m=f.height(),v=f.scrollLeft()+g,b=f.scrollTop()+m,y=l.top+u,w=l.left,_=y+p<=b,x=l.top-p>=f.scrollTop(),C=r.outerWidth(!1);r.hasClass("select2-drop-above")?(i=!0,!x&&_&&(n=!0,i=!1)):(i=!1,!_&&x&&(n=!0,i=!0)),n&&(r.hide(),l=this.container.offset(),u=this.container.outerHeight(!1),h=this.container.outerWidth(!1),p=r.outerHeight(!1),v=f.scrollLeft()+g,b=f.scrollTop()+m,y=l.top+u,w=l.left,C=r.outerWidth(!1),r.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(a=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),(C=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:c.width))>h?h=C:C=h,p=r.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(y-=(t=this.body.offset()).top,w-=t.left),!(w+C<=v)&&l.left+v+o.outerWidth(!1)>C&&(w=l.left+this.container.outerWidth(!1)-C),s={left:w,width:h},i?(this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above"),p=r.outerHeight(!1),s.top=l.top-p,s.bottom="auto"):(s.top=y,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=e.extend(s,I(this.opts.dropdownCss,this.opts.element)),r.css(s)},shouldOpen:function(){var t;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(t=e.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(),l.on("mousemove.select2Event",function(e){u.x=e.pageX,u.y=e.pageY}),!0)},opening:function(){var t,i=this.containerEventName,n="scroll."+i,s="resize."+i,a="orientationchange."+i;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),0===(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){f(t);var n,s=e("#select2-drop");s.length>0&&((n=s.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#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");var r=this;this.container.parents().add(window).each(function(){e(this).on(s+" "+n+" "+a,function(e){r.opened()&&r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),l.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return t!==e&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return I(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,n,s,a,r,o,l,c=this.results;if(!((i=this.highlight())<0)){if(0==i)return void c.scrollTop(0);s=(l=((n=e((t=this.findHighlightableChoices().find(".select2-result-label"))[i])).offset()||{}).top||0)+n.outerHeight(!0),i===t.length-1&&(o=c.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(a=c.offset().top+c.outerHeight(!1))&&c.scrollTop(c.scrollTop()+(s-a)),(r=l-c.offset().top)<0&&"none"!=n.css("display")&&c.scrollTop(c.scrollTop()+r)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=e(i[n+=t]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,n,s=this.findHighlightableChoices();if(0==arguments.length)return m(s.filter(".select2-highlighted")[0],s.get());t>=s.length&&(t=s.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(s[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),a=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(r){n.opened()&&(n.opts.populateResults.call(this,e,r.results,{term:s,page:i,context:a}),n.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).html(n.opts.escapeMarkup(I(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=r.context,this.opts.element.trigger({type:"select2-loaded",items:r}))})}))},tokenize:function(){},updateResults:function(i){var n,s,a,r=this.search,o=this.results,l=this.opts,c=this,u=r.val(),h=e.data(this.container,"select2-last-term");if(!(!0!==i&&h&&v(u,h))&&(e.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){a=++this.queryCount;var p=this.getMaximumSelectionSize();if(p>=1&&Array.isArray(n=this.data())&&n.length>=p&&S(l.formatSelectionTooBig,"formatSelectionTooBig"))return void g("<li class='select2-selection-limit'>"+I(l.formatSelectionTooBig,l.element,p)+"</li>");if(r.val().length<l.minimumInputLength){S(l.formatInputTooShort,"formatInputTooShort")?g("<li class='select2-no-results'>"+I(l.formatInputTooShort,l.element,r.val(),l.minimumInputLength)+"</li>"):g(""),i&&this.showSearch&&this.showSearch(!0);return}if(l.maximumInputLength&&r.val().length>l.maximumInputLength)return void(S(l.formatInputTooLong,"formatInputTooLong")?g("<li class='select2-no-results'>"+I(l.formatInputTooLong,l.element,r.val(),l.maximumInputLength)+"</li>"):g(""));l.formatSearching&&0===this.findHighlightableChoices().length&&g("<li class='select2-searching'>"+I(l.formatSearching,l.element)+"</li>"),r.addClass("select2-active"),this.removeHighlight(),t!=(s=this.tokenize())&&null!=s&&r.val(s),this.resultsPage=1,l.query({element:l.element,term:r.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind(function(n){var s;if(a==this.queryCount){if(!this.opened())return void this.search.removeClass("select2-active");if(n.hasError!==t&&S(l.formatAjaxError,"formatAjaxError"))return void g("<li class='select2-ajax-error'>"+I(l.formatAjaxError,l.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==r.val()&&null!=(s=this.opts.createSearchChoice.call(c,r.val(),n.results))&&c.id(s)!==t&&null!==c.id(s)&&0===e(n.results).filter(function(){return v(c.id(this),c.id(s))}).length&&this.opts.createSearchChoicePosition(n.results,s),0===n.results.length&&S(l.formatNoMatches,"formatNoMatches")){g("<li class='select2-no-results'>"+I(l.formatNoMatches,l.element,r.val())+"</li>"),this.showSearch&&this.showSearch(r.val());return}o.empty(),c.opts.populateResults.call(this,o,n.results,{term:r.val(),page:this.resultsPage,context:null}),!0===n.more&&S(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+l.escapeMarkup(I(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout(function(){c.loadMoreIfNeeded()},10)),this.postprocessResults(n,i),f(),this.opts.element.trigger({type:"select2-loaded",items:n})}})})}function f(){r.removeClass("select2-active"),c.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(o.text()):c.liveRegion.text(c.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function g(e){o.html(e),f()}},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(){var e;(e=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,i=e[0],n=e.val().length;e.trigger("focus"),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){if(this._touchMoved)return void this.clearTouchMoved();var t=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(null==e.text()?"":""===e.text().trim()&&""===e.val())return e}},initContainerWidth:function(){var e=(function(){var e,t,i,n,s;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("string"==typeof(e=this.opts.element.attr("style"))){for(n=0,s=(t=e.split(";")).length;n<s;n+=1)if(null!==(i=t[n].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&i.length>=1)return i[1]}return"resolve"===this.opts.width?(e=this.opts.element.css("width")).indexOf("%")>0?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}if("function"==typeof this.opts.width)return this.opts.width();return this.opts.width}).call(this);null!==e&&this.container.css("width",e)}}),s=N(n,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html("<a role='button' class='select2-choice' tabindex='-1'> <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr> <span class='select2-arrow' role='presentation'><b role='presentation'></b></span></a><label for='' class='select2-offscreen'></label><input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' /><div class='select2-drop select2-display-none'> <div class='select2-search'> <label for='' class='select2-offscreen'></label> <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true' aria-autocomplete='list' /> </div> <ul class='select2-results' role='listbox'> </ul></div>")},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((i=t.createTextRange()).collapse(!1),i.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,s=this.dropdown,a=r();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode){if(e.which===h.PAGE_UP||e.which===h.PAGE_DOWN)return void x(e);switch(e.which){case h.UP:case h.DOWN:this.moveHighlight(e.which===h.UP?-1:1),x(e);return;case h.ENTER:this.selectHighlighted(),x(e);return;case h.TAB:this.selectHighlighted({noFocus:!0});return;case h.ESC:this.cancel(e),x(e);return}}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&!(e.which===h.TAB||h.isControl(e)||h.isFunctionKey(e))&&e.which!==h.ESC){if(!1===this.opts.openOnEnter&&e.which===h.ENTER)return void x(e);if(e.which==h.DOWN||e.which==h.UP||e.which==h.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;this.open(),x(e);return}if(e.which==h.DELETE||e.which==h.BACKSPACE){this.opts.allowClear&&this.clear(),x(e);return}}})),w(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){this.opts.minimumResultsForSearch>=0&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){f(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),x(i)})),s.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){x(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.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(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(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 e=this;this.opts.initSelection.call(null,this.opts.element,function(t){null!=t&&(e.updateSelection(t),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),a=null;t.query({matcher:function(e,i,n){var r=v(s,t.id(n));return r&&(a=n),r},callback:"function"!=typeof n?e.noop:function(){n(a)}})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,i,n){var s=0,a=this;if(this.findHighlightableChoices().each2(function(e,t){if(v(a.id(t.data("select2-data")),a.opts.element.val()))return s=e,!1}),!1!==n&&(!0===i&&s>=0?this.highlight(s):this.highlight(0)),!0===i){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(function t(i){var n=0;return e.each(i,function(e,i){i.children?n+=t(i.children):n++}),n}(t.results)>=r)}},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),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),(!t||!t.noFocus)&&this.opts.shouldFocusInput(this)&&this.focusser.focus(),v(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),t!==i&&s.append(i),t!==(n=this.opts.formatSelectionCssClass(e,s))&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,a=this.data();if(0==arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=s.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:a});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),i&&s.triggerChange({added:e,removed:a})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0==arguments.length)return t==(i=this.selection.data("select2-data"))&&(i=null),i;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),a=N(n,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html("<ul class='select2-choices'> <li class='select2-search-field'> <label for='' class='select2-offscreen'></label> <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(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=b(i.val(),t.separator,t.transformVal),a=[];t.query({matcher:function(i,n,r){var o=e.grep(s,function(e){return v(e,t.id(r))}).length;return o&&a.push(r),o},callback:"function"!=typeof n?e.noop:function(){for(var e=[],i=0;i<s.length;i++)for(var r=s[i],o=0;o<a.length;o++){var l=a[o];if(v(r,t.id(l))){e.push(l),a.splice(o,1);break}}n(e)}})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+r()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=function(t){t=e(t)[0];var i=0,n=0;if("selectionStart"in t)i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==h.LEFT||i.which==h.RIGHT||i.which==h.BACKSPACE||i.which==h.DELETE||i.which==h.ENTER)){var o=n;i.which==h.LEFT&&s.length?o=s:i.which==h.RIGHT?o=a.length?a:null:i.which===h.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),o=s.length?s:a):i.which==h.DELETE?this.unselect(n.first())&&(this.search.width(10),o=a.length?a:null):i.which==h.ENTER&&(o=null),this.selectChoice(o),x(i),o&&o.length||this.open();return}if((i.which!==h.BACKSPACE||1!=this.keydowns)&&i.which!=h.LEFT||0!=r.offset||r.length)this.selectChoice(null);else{this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),x(i);return}if(this.opened())switch(i.which){case h.UP:case h.DOWN:this.moveHighlight(i.which===h.UP?-1:1),x(i);return;case h.ENTER:this.selectHighlighted(),x(i);return;case h.TAB:this.selectHighlighted({noFocus:!0}),this.close();return;case h.ESC:this.cancel(i),x(i);return}if(!(i.which===h.TAB||h.isControl(i)||h.isFunctionKey(i))&&i.which!==h.BACKSPACE&&i.which!==h.ESC){if(i.which===h.ENTER){if(!1===this.opts.openOnEnter)return;else if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),(i.which===h.PAGE_UP||i.which===h.PAGE_DOWN)&&x(i),i.which===h.ENTER&&x(i)}}})),this.search.on("keyup",this.bind(function(e){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(e.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(t){!this.isInterfaceEnabled()||e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault())})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),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 e=this;this.opts.initSelection.call(null,this.opts.element,function(t){null!=t&&(e.updateSelection(t),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).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.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.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 i={},n=[],s=this;e(t).each(function(){s.id(this)in i||(i[s.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),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.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var i=this.getVal(),n=this;e(t).each(function(){i.push(n.createChoice(this))}),this.setVal(i)},createChoice:function(i){var n,s,a=!i.locked,r=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=a?r:o,c=this.id(i);return t!=(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))&&l.find("div").replaceWith(e("<div></div>").html(n)),t!=(s=this.opts.formatSelectionCssClass(i,l.find("div")))&&l.addClass(s),a&&l.find(".select2-search-choice-close").on("mousedown",x).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),x(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",i),l.insertBefore(this.searchContainer),c},unselect:function(t){var i,n,s=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var a=e.Event("select2-removing");if(a.val=this.id(i),a.choice=i,this.opts.element.trigger(a),a.isDefaultPrevented())return!1;for(;(n=m(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),s=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;s.each2(function(e,t){m(r.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&r.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&S(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+I(r.opts.formatNoMatches,r.opts.element,r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-y(this.search)},resizeSearch:function(){var t,i,n,s,a=y(this.search);t=function(t){if(!o){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(o=e(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"})).attr("class","select2-sizer"),e(document.body).append(o)}return o.text(t.val()),o.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-a)<t&&(s=n-a),s<40&&(s=n-a),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:b(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(t){if(this.select)this.select.val(t);else{var i=[],n={};e(t).each(function(){this in n||(i.push(this),n[this]=0)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator))}},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),i=0;i<t.length;i++)for(var n=0;n<e.length;n++)if(v(this.opts.id(t[i]),this.opts.id(e[n]))){t.splice(i,1),i--,e.splice(n,1);break}return{added:t,removed:e}},val:function(i,n){var s,a=this;if(0==arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i){this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),n&&this.triggerChange({added:this.data(),removed:s});return}if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=e.map(t,a.id);a.setVal(i),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(s,a.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw 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(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,a=this;if(0==arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();s=this.data(),t||(t=[]),n=e.map(t,function(e){return a.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,n,s,a,r,o=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===o.length||"object"==typeof o[0])(i=0===o.length?{}:e.extend({},o[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?r=i.element.prop("multiple"):(r=i.multiple||!1,"tags"in i&&(i.multiple=r=!0)),(n=r?new window.Select2.class.multi:new window.Select2.class.single).init(i);else if("string"==typeof o[0]){if(0>m(o[0],l))throw"Unknown method: "+o[0];if(a=t,t===(n=e(this).data("select2")))return;if("container"===(s=o[0])?a=n.container:"dropdown"===s?a=n.dropdown:(h[s]&&(s=h[s]),a=n[s].apply(n,o.slice(1))),m(o[0],c)>=0||m(o[0],u)>=0&&1==o.length)return!1}else throw"Invalid arguments to select2 plugin: "+o}),t===a?this:a},e.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return T(this.text(e),i.term,s,n),s.join("")},transformVal:function(e){return null==e?"":e.trim()},formatSelection:function(e,i,n){return e?n(this.text(e)):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return t==e?null:e.id},text:function(e){return e&&this.data&&this.data.text?"function"==typeof this.data.text?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return g(""+t).toUpperCase().indexOf(g(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,s){var a,r,o,l,c,u=e,h=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(o=0,r=-1,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((r=e.indexOf(c))>=0));o++);if(r<0)break;if(a=e.substring(0,r),e=e.substring(r+c.length),a.length>0&&null!=(a=s.createSearchChoice.call(this,a,i))&&s.id(a)!==t&&null!==s.id(a)){for(o=0,h=!1,l=i.length;o<l;o++)if(v(s.id(a),s.id(i[o]))){h=!0;break}h||n(a)}}if(u!==e)return e},escapeMarkup:k,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window)&&!(navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:E,local:A,tags:D},util:{debounce:_,markMatch:T,escapeMarkup:k,stripDiacritics:g},class:{abstract:n,single:s,multi:a}}}function f(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function g(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return p[e]||e})}function m(e,t){for(var i=0,n=t.length;i<n;i+=1)if(v(e,t[i]))return i;return -1}function v(e,i){return e===i||t!==e&&t!==i&&null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+"")}function b(e,t,i){var n,s,a;if(null===e||e.length<1)return[];for(s=0,a=(n=e.split(t)).length;s<a;s+=1)n[s]=i(n[s]);return n}function y(e){return e.outerWidth(!1)-e.width()}function w(i){var n="keyup-change-value";i.on("keydown",function(){e.data(i,n)===t&&e.data(i,n,i.val())}),i.on("keyup",function(){var s=e.data(i,n);t!==s&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))})}function _(e,i,n){var s;return n=n||t,function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,t)},e)}}function x(e){e.preventDefault(),e.stopPropagation()}function C(t,i,n){var s,a,r=[];let o=t.attr("class");(s=null==o?"":o.trim())&&e((s=""+s).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&r.push(this)});let l=i.attr("class");(s=null==l?"":l.trim())&&e((s=""+s).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)}),t.attr("class",r.join(" "))}function T(e,t,i,n){var s=g(e.toUpperCase()).indexOf(g(t.toUpperCase())),a=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+a))),i.push("</span>"),i.push(n(e.substring(s+a,e.length))))}function k(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function E(i){var n,s=null,a=i.quietMillis||100,r=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,a=r,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},h=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,a="function"==typeof a?a.call(o,l.term,l.page,l.context):a,s&&"function"==typeof s.abort&&s.abort(),i.params&&("function"==typeof i.params?e.extend(h,i.params.call(o)):e.extend(h,i.params)),e.extend(h,{url:a,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page,l);l.callback(t)},error:function(e,t,i){l.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:i})}}),s=c.call(o,h)},a)}}function A(t){var i,n,s=t,a=function(e){return""+e.text};Array.isArray(s)&&(s={results:n=s}),"function"!=typeof s&&(n=s,s=function(){return n});var r=s();return r.text&&"function"!=typeof(a=r.text)&&(i=r.text,a=function(e){return e[i]}),function(t){var i,n=t.term,r={results:[]};""===n?t.callback(s()):(i=function(s,r){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2(function(e,t){i(t,o.children)}),(o.children.length||t.matcher(n,a(o),s))&&r.push(o)}else t.matcher(n,a(s),s)&&r.push(s)},e(s().results).each2(function(e,t){i(t,r.results)}),t.callback(r))}}function D(i){var n="function"==typeof i;return function(s){var a=s.term,r={results:[]},o=n?i(s):i;Array.isArray(o)&&(e(o).each(function(){var e=this.text!==t,i=e?this.text:this;(""===a||s.matcher(a,i))&&r.results.push(e?this:{id:this,text:this})}),s.callback(r))}}function S(e,t){if("function"==typeof e)return!0;if(!e)return!1;if("string"==typeof e)return!0;throw Error(t+" must be a string, function, or falsy value")}function I(e,t){if("function"==typeof e){var i=Array.prototype.slice.call(arguments,2);return e.apply(t,i)}return e}function M(){var t=this;e.each(arguments,function(e,i){t[i].remove(),t[i]=null})}function N(t,i){var n=function(){};return n.prototype=new t,n.prototype.constructor=n,n.prototype.parent=t.prototype,n.prototype=e.extend(n.prototype,i),n}}(jQuery)},2(e,t,i){var n;!function(){"use strict";var s=window.DocumentFragment,a=window.HTMLElement.prototype,r=a.matches||a.msMatchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector;function o(e,t){if(e.__SKATE_TEMPLATE_HTML_DATA)return e.__SKATE_TEMPLATE_HTML_DATA[t]}function l(e,t,i){return e.__SKATE_TEMPLATE_HTML_DATA||(e.__SKATE_TEMPLATE_HTML_DATA={}),e.__SKATE_TEMPLATE_HTML_DATA[t]=i,e}function c(e){var t=e.match(/\s*<([^\s>]+)/),i=document.createElement(t&&({caption:"table",dd:"dl",dt:"dl",li:"ul",tbody:"table",td:"tr",thead:"table",tr:"tbody"})[t[1]]||"div");return i.innerHTML=e,u(i.childNodes)}function u(e){for(var t=document.createDocumentFragment();e&&e.length;)t.appendChild(e[0]);return t}function h(e,t){for(var i=[],n=e.nextSibling;n!==t;)i.push(n),n=n.nextSibling;return i}function p(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++)e.container.insertBefore(t[n],e.endNode);e.isDefault=!0}function f(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++){var s=t[n];s.parentNode.removeChild(s)}e.isDefault=!1}function g(){var e=[].slice.call(arguments).join("");return function(t){var i=u(t.childNodes);t.innerHTML=e,function(e){var t=e.getElementsByTagName("content");if(t&&t.length){for(var i=[];t.length;){var n=t[0],s=n.parentNode,a=n.getAttribute("select"),r=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:a,startNode:r}),s.replaceChild(o,n),s.insertBefore(r,o),r.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:a})+" "}l(e,"content",i)}}(t),i.childNodes.length&&g.wrap(t).appendChild(i)}}g.wrap=function(e){o(e,"content")||l(e,"content",function e(t){var i,n,s=t.childNodes,a=s.length,r=[];for(i=0;i<a;i++){var o=s[i];if(8===o.nodeType){var l=function(e){var t,i=e.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{t=JSON.parse(i[2])}catch(t){throw Error('Unable to parse content comment data: "'+t+'" in "\x3c!--'+e.textContent+'--\x3e".')}return{data:t||{defaultContent:void 0,isDefault:void 0,selector:void 0},type:i[1]?"close":"open"}}}(o);if(l){if("open"===l.type){if(n)throw Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+o.textContent+'" in "'+o.parentNode.innerHTML+'".');n={container:o.parentNode,contentNode:o,defaultNodes:l.data.defaultContent&&c(l.data.defaultContent).childNodes||[],isDefault:l.data.isDefault,selector:l.data.selector,startNode:o}}else if("close"===l.type){if(!n)throw Error('Unmatched closing content placeholder: "'+o.textContent+'" in "'+o.parentNode.innerHTML+'".');n.endNode=o,r.push(n),n=void 0}}}else r=r.concat(e(o))}return r}(e));var t,i,n=(i=(t=o(e,"content")).length,{childNodes:{get:function(){for(var e=[],n=0;n<i;n++){var s=t[n];s.isDefault||(e=e.concat(h(s.startNode,s.endNode)))}return e}},firstChild:{get:function(){var e=this.childNodes;return e.length&&e[0]||null}},innerHTML:{get:function(){for(var e="",t=this.childNodes,i=t.length,n=0;n<i;n++){var s=t[n];e+=s.outerHTML||s.textContent}return e},set:function(e){for(var n=c(e),s=0;s<i;s++){for(var a=t[s],r=h(a.startNode,a.endNode),o=0;o<r.length;o++){var l=r[o];l.parentNode.removeChild(l)}for(var u=function(e,t){if(t){for(var i=e.querySelectorAll(t),n=i.length,s=[],a=0;a<n;a++){var r=i[a];r.parentNode===e&&s.push(r)}return s}return[].slice.call(e.childNodes)||[]}(n,a.selector),g=0;g<u.length;g++)a.container.insertBefore(u[g],a.endNode);u.length?f(a):p(a)}}},lastChild:{get:function(){for(var e=i-1;e>-1;e--)if(!t[e].isDefault){var n=this.childNodes,s=n.length;return n[s-1]}return null}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t="<"+e,i=this.attributes;if(i)for(var n=i.length,s=0;s<n;s++){var a=i[s];t+=" "+a.nodeName+'="'+a.nodeValue+'"'}return t+=">",t+=this.innerHTML,t+="</"+e+">"}},textContent:{get:function(){for(var e="",t=this.childNodes,i=this.childNodes.length,n=0;n<i;n++)e+=t[n].textContent;return e},set:function(e){var n;this.innerHTML="";for(var s=0;s<i;s++){var a=t[s];if(!a.selector){n=a;break}}n&&(e?(f(n),n.container.insertBefore(document.createTextNode(e),n.endNode)):p(n))}},appendChild:{value:function(e){if(e instanceof s){var n=e.childNodes;return[].slice.call(n).forEach((function(e){this.appendChild(e)}).bind(this)),this}for(var a=0;a<i;a++){var o=t[a],l=o.selector;if(!l||e instanceof window.HTMLElement&&r.call(e,l)){f(o),o.endNode.parentNode.insertBefore(e,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(t,i){return"afterbegin"===t?this.insertBefore(c(i),this.childNodes[0]):"beforeend"===t?this.appendChild(c(i)):e.insertAdjacentHTML(t,i),this}},insertBefore:{value:function(e,n){if(!n)return this.appendChild(e);if(e instanceof s){var a=e.childNodes;if(a)for(var o=a.length,l=0;l<o;l++)this.insertBefore(a[l],n);return this}var c=!1;e:for(var u=0;u<i;u++)for(var p=t[u],f=h(p.startNode,p.endNode),g=f.length,m=0;m<g;m++){var v=f[m];if(v===n&&(c=!0),c){var b=p.selector;if(!b||r.call(e,b)){v.parentNode.insertBefore(e,v);break e}}}if(!c)throw Error("DOMException 8: The node before which the new node is to be inserted is not a child of this node.");return e}},removeChild:{value:function(e){for(var n=!1,s=0;s<i;s++){var a=t[s];if(a.container===e.parentNode){a.container.removeChild(e),n=!0;break}a.startNode.nextSibling===a.endNode&&p(a)}if(!n)throw Error("DOMException 8: The node in which you are trying to remove is not a child of this node.");return e}},replaceChild:{value:function(e,n){for(var s=0;s<i;s++){var a=t[s];if(a.container===n.parentNode){a.container.replaceChild(e,n);break}}return this}}}),a={};for(var u in e)u in n?Object.defineProperty(a,u,n[u]):Object.defineProperty(a,u,function(e,t){return{get:function(){var i=e[t];return"function"==typeof i?i.bind(e):i},set:function(i){e[t]=i}}}(e,u));return a},window.skateTemplateHtml=g,void 0===(n=(function(){return g}).call(t,i,t,e))||(e.exports=n),e.exports=g}()},221(e,t){var i,n,s;s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ATTR_IGNORE="data-skate-ignore",e.TYPE_ATTRIBUTE="a",e.TYPE_CLASSNAME="c",e.TYPE_ELEMENT="t"},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},894(e,t){var i,n,s;s=function(e,t){"use strict";t.exports=function(e){var t=void 0===arguments[1]?"":arguments[1],i=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(i[t]||(i[t]={}))||i}},i=[t,e],void 0===(n=s.apply(t,i))||(e.exports=n)},310(e,t,i){var n,s,a;a=function(e,t,i,n,s,a,r){"use strict";var o=i&&i.__esModule?i.default:i,l=n.initElements,c=n.removeElements,u=r.getClosestIgnoredElement;function h(e){for(var t=e.length,i=0;i<t;i++){var n=e[i],s=n.addedNodes,a=n.removedNodes;s&&s.length&&!u(s[0].parentNode)&&l(s),a&&a.length&&c(a)}}t.exports={register:function(e){var t;return e&&this.unregister(),o.observer||((t=new window.MutationObserver(h)).observe(document,{childList:!0,subtree:!0}),o.observer=t),this},unregister:function(){return o.observer&&(o.observer.disconnect(),o.observer=void 0),this}}},n=[t,e,i(108),i(740),i(580),i(590),i(537)],void 0===(s=a.apply(t,n))||(e.exports=s)},590(e,t){var i,n,s;s=function(e){"use strict";var t=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=window.HTMLElement.prototype;if(t||i){var s,a,r=Object.getOwnPropertyDescriptor(n,"innerHTML");r&&r.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),s=Object.getOwnPropertyDescriptor(n,"innerHTML"),(a=function(){return s.get.call(this)})._hasBeenEnhanced=!0,Object.defineProperty(n,"innerHTML",{get:a,set:function(e){!function e(t,i){var n=t.childNodes;if(n)for(var s=n.length,a=0;a<s;a++){var r=n[a];i(r,t),e(r,i)}}(this,function(e,t){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,t,null,null,null,null),e.dispatchEvent(i)}),s.set.call(this,e)}}))}},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},108(e,t,i){var n,s,a;a=function(e,t,i){"use strict";var n="__skate_"+(i&&i.__esModule?i.default:i).replace(/[^\w]/g,"_");window[n]||(window[n]={observer:void 0,registry:{}}),t.exports=window[n]},n=[t,e,i(996)],void 0===(s=a.apply(t,n))||(e.exports=s)},740(e,t,i){var n,s,a;a=function(e,t,i,n,s,a){"use strict";var r=function(e){return e&&e.__esModule?e.default:e};Object.defineProperty(e,"__esModule",{value:!0});var o=t.ATTR_IGNORE,l=r(i),c=r(s),u=a.camelCase,h=a.elementContains,p=a.hasOwn,f=a.inherit,g=a.objEach,m=window.Node,v=window.HTMLElement.prototype,b=v.matches||v.msMatchesSelector||v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector,y=!b.call(document.createElement("div"),"div"),w=function(e,t){if(y){var i=e.cloneNode();return document.createElement("div").appendChild(i),b.call(i,t)}return b.call(e,t)},_=/Edge/.test(navigator.userAgent);function x(e,t,i){var n,s,a,r=i.name,o=i.newValue;_&&(a=l(e,"cachedAttributeOldValues"));var c=_&&p(a,r)?a[r]:i.oldValue,u="string"==typeof o,h="string"==typeof c,f=t.attributes,g=f&&f[r];!h&&u?s="created":h&&u?s="updated":h&&!u&&(s="removed"),_&&("removed"===s?delete a[r]:a[r]=o),g&&"function"==typeof g[s]?n=g[s]:g&&"function"==typeof g.fallback?n=g.fallback:"function"==typeof g?n=g:"function"==typeof f&&(n=f),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(e,{type:s,name:r,newValue:o,oldValue:c})}function C(e,t){var i=l(e,t.id);if(!i.created){i.created=!0,f(e,t.prototype,!0),t.template&&!e.hasAttribute(t.resolvedAttribute)&&t.template(e),e.removeAttribute(t.unresolvedAttribute),e.setAttribute(t.resolvedAttribute,""),"object"==typeof t.events&&g(t.events,function(t,i){var n,s,a,r={name:(a=i.split(" ")).shift(),delegate:a.join(" ")},o=!!r.delegate&&("blur"===r.name||"focus"===r.name);e.addEventListener(r.name,(n=t,s=r.delegate,function(t){if(!s)return n(e,t,e);for(var i=t.target;i&&i!==document&&i!==e.parentNode;){if(w(i,s))return n(e,t,i);i=i.parentNode}}),o)}),n=e.attributes,!t.attributes||c.isNativeCustomElement(t.id)||new window.MutationObserver(function(i){i.forEach(function(i){var s=i.attributeName,a=n[s];x(e,t,{name:s,newValue:a&&(a.value||a.nodeValue),oldValue:i.oldValue})})}).observe(e,{attributes:!0,attributeOldValue:!0});var n,s=t.attributes;if("object"==typeof s)for(var a in s){var r=u(a);p(s,a)&&!p(e,r)&&function(e,t,i){Object.defineProperty(e,i,{get:function(){return this.getAttribute(t)},set:function(e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}})}(e,a,r)}var o=t.attributes;if("object"==typeof o){for(var h in o)if(p(o,h)&&p(o[h],"value")&&!e.hasAttribute(h)){var m=o[h].value;m="function"==typeof m?m(e):m,e.setAttribute(h,m)}}!function(e,t){var i,n=e.attributes,s=[],a=n.length;for(i=0;i<a;i++)s.push(n[i]);for(i=0;i<a;i++){var r=s[i];x(e,t,{name:r.nodeName,newValue:r.value||r.nodeValue})}}(e,t),t.created&&t.created(e)}}function T(e,t){var i=l(e,t.id);i.attached||h(document,e)&&(i.attached=!0,t.attached&&t.attached(e),i.detached=!1)}function k(e,t){var i=l(e,t.id);i.detached||(i.detached=!0,t.detached&&t.detached(e),i.attached=!1)}e.initElements=function e(t){for(var i=0;i<t.length;i++){var n=t[i];if(n.nodeType===m.ELEMENT_NODE&&!n.attributes[o]){for(var s,a=c.getForElement(n),r=a.length,l=0;l<r;l++)C(n,s=a[l]),T(n,s);var u=n.childNodes||[];u.length&&e(u)}}},e.removeElements=function e(t){for(var i=0;i<t.length;i++){var n=t[i];if(n.nodeType===m.ELEMENT_NODE){e(n.childNodes);for(var s=c.getForElement(n),a=s.length,r=0;r<a;r++)k(n,s[r])}}},e.triggerAttached=T,e.triggerAttributeChanged=x,e.triggerCreated=C,e.triggerDetached=k},n=[t,i(221),i(894),i(580),i(937),i(537)],void 0===(s=a.apply(t,n))||(e.exports=s)},580(e,t){var i,n,s;s=function(e){"use strict";var t,i,n,s;t=window,"u"<typeof WeakMap&&(i=Object.defineProperty,n=Date.now()%1e9,(s=function(){this.name="__st"+(1e9*Math.random()>>>0)+n+++"__"}).prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:i(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!!t&&t[0]===e&&(t[0]=t[1]=void 0,!0)},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=s),function(e){if(!e.JsMutationObserver){var t,i,n,s=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))t=setTimeout;else if(window.setImmediate)t=window.setImmediate;else{var a=[],r=String(Math.random());window.addEventListener("message",function(e){if(e.data===r){var t=a;a=[],t.forEach(function(e){e()})}}),t=function(e){a.push(e),window.postMessage(r,"*")}}var o=!1,l=[],c=0;h.prototype={observe:function(e,t){if(i=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(i)||i,!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw SyntaxError();var i,n,a=s.get(e);a||s.set(e,a=[]);for(var r=0;r<a.length;r++)if(a[r].observer===this){(n=a[r]).removeListeners(),n.options=t;break}n||(n=new m(this,e,t),a.push(n),this.nodes_.push(e)),n.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=s.get(e),i=0;i<t.length;i++){var n=t[i];if(n.observer===this){n.removeListeners(),t.splice(i,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},m.prototype={enqueue:function(e){var a,r=this.observer.records_,c=r.length;if(r.length>0){var u=function(e,t){return e===t?e:n&&(e===n||e===i)?n:null}(r[c-1],e);if(u){r[c-1]=u;return}}else{a=this.observer,l.push(a),o||(o=!0,t(function e(){o=!1;var t=l;l=[],t.sort(function(e,t){return e.uid_-t.uid_});var i=!1;t.forEach(function(e){var t,n=e.takeRecords();(t=e).nodes_.forEach(function(e){var i=s.get(e);i&&i.forEach(function(e){e.observer===t&&e.removeTransientObservers()})}),n.length&&(e.callback_(n,e),i=!0)}),i&&e()}))}r[c]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=s.get(e);t||s.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=s.get(e),i=0;i<t.length;i++)if(t[i]===this){t.splice(i,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,s=e.relatedNode.namespaceURI,a=e.target,r=new f("attributes",a);r.attributeName=t,r.attributeNamespace=s;var o=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;u(a,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(s)))return e.attributeOldValue?g(o):r});break;case"DOMCharacterDataModified":var a=e.target,r=f("characterData",a),o=e.prevValue;u(a,function(e){if(e.characterData)return e.characterDataOldValue?g(o):r});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var l,c,h=e.target;"DOMNodeInserted"===e.type?(l=[h],c=[]):(l=[],c=[h]);var p=h.previousSibling,m=h.nextSibling,r=f("childList",e.target.parentNode);r.addedNodes=l,r.removedNodes=c,r.previousSibling=p,r.nextSibling=m,u(e.relatedNode,function(e){if(e.childList)return r})}i=n=void 0}},e.JsMutationObserver=h,e.MutationObserver||(e.MutationObserver=h,h._isPolyfilled=!0)}function u(e,t){for(var i=e;i;i=i.parentNode){var n=s.get(i);if(n)for(var a=0;a<n.length;a++){var r=n[a],o=r.options;if(i===e||o.subtree){var l=t(o);l&&r.enqueue(l)}}}}function h(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}function p(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function f(e,t){return i=new p(e,t)}function g(e){var t,s;return n?n:((s=new p((t=i).type,t.target)).addedNodes=t.addedNodes.slice(),s.removedNodes=t.removedNodes.slice(),s.previousSibling=t.previousSibling,s.nextSibling=t.nextSibling,s.attributeName=t.attributeName,s.attributeNamespace=t.attributeNamespace,s.oldValue=t.oldValue,(n=s).oldValue=e,n)}function m(e,t,i){this.observer=e,this.target=t,this.options=i,this.transientObservedNodes=[]}}(t)},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},937(e,t,i){var n,s,a;a=function(e,t,i,n,s){"use strict";var a=i.TYPE_ATTRIBUTE,r=i.TYPE_CLASSNAME,o=i.TYPE_ELEMENT,l=n&&n.__esModule?n.default:n,c=s.hasOwn,u=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;t.exports={clear:function(){return l.registry={},this},get:function(e){return c(l.registry,e)&&l.registry[e]},getForElement:function(e){var t,i,n=e.attributes,s=n.length,c=[],u=n.is,h=u&&(u.value||u.nodeValue),p=(e.tagName||e.localName).toLowerCase(),f=h||p;this.isType(f,o)&&(i=(t=l.registry[f]).extends,h?p===i&&c.push(t):i||c.push(t));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,a)&&((i=(t=l.registry[m]).extends)&&p!==i||c.push(t))}for(var v=function(e){var t=e.classList;if(t)return t;var i=e.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}(e),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,r)&&((i=(t=l.registry[w]).extends)&&p!==i||c.push(t))}return c},isType:function(e,t){var i=this.get(e);return i&&i.type===t},isNativeCustomElement:function(e){return h()&&this.isType(e,o)&&u(e)},set:function(e,t){if(c(l.registry,e))throw Error('A component definition of type "'+t.type+'" with the ID of "'+e+'" already exists.');return l.registry[e]=t,this}}},n=[t,e,i(221),i(108),i(537)],void 0===(s=a.apply(t,n))||(e.exports=s)},714(e,t,i){var n,s,a;a=function(e,t,i,n,s,a,r,o){"use strict";var l=function(e){return e&&e.__esModule?e.default:e},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,h=i.TYPE_ELEMENT,p=l(n),f=s.triggerCreated,g=s.triggerAttached,m=s.triggerDetached,v=s.triggerAttributeChanged,b=s.initElements,y=l(a),w=r.debounce,_=r.inherit,x=l(o),C=window.HTMLElement,T=!!document.attachEvent,k=w(function(){var e=function(){b(document.documentElement.childNodes)};(T?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState)?e():T?window.addEventListener("load",e):document.addEventListener("DOMContentLoaded",e)});function E(e,t){if(t=_({},t),(t=_(t,E.defaults)).id=e,y.set(e,t),y.isNativeCustomElement(e)){var i=t.extends?document.createElement(t.extends).constructor.prototype:C.prototype;i.isPrototypeOf(t.prototype)||(t.prototype=_(Object.create(i),t.prototype,!0));var n={prototype:_(t.prototype,{createdCallback:function(){f(this,t)},attachedCallback:function(){g(this,t)},detachedCallback:function(){m(this,t)},attributeChangedCallback:function(e,i,n){v(this,t,{name:e,oldValue:i,newValue:n})}})};return t.extends&&(n.extends=t.extends),document.registerElement(e,n)}if(k(),p.register(!!t.detached),y.isType(e,h)){var s=t;function a(){var e,t=s.extends,i=s.id;return t?(e=document.createElement(t)).setAttribute("is",i):e=document.createElement(i),s.prototype=a.prototype,f(e,s),e}return a.prototype=s.prototype,a}}E.init=function(e){var t=e;return e&&("string"==typeof e?t=e=document.querySelectorAll(e):e instanceof C&&(t=[e]),b(t)),e},E.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:h},E.version=x,E.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:h,unresolvedAttribute:"unresolved"};var A=window.skate;E.noConflict=function(){return window.skate=A,E},window.skate=E,t.exports=E},n=[t,e,i(221),i(310),i(740),i(937),i(537),i(996)],void 0===(s=a.apply(t,n))||(e.exports=s)},537(e,t,i){var n,s,a;a=function(e,t){"use strict";e.hasOwn=a,e.camelCase=function(e){return e.split(/-/g).map(function(e,t){return 0===t?e:e[0].toUpperCase()+e.substring(1)}).join("")},e.elementContains=function(e,t){return e!==document||e.contains?e.contains?e.contains(t):s.call(e,t):document.head.contains(t)||document.body.contains(t)},e.debounce=function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},1))}},e.getClosestIgnoredElement=function(e){for(var t=e;t instanceof Element;){if(t.hasAttribute(i))return t;t=t.parentNode}},e.inherit=function(e,t,i){for(var n=Object.getOwnPropertyNames(t),s=n.length,a=0;a<s;a++){var r=n[a];if(i||void 0===e[r]){var o=Object.getOwnPropertyDescriptor(t,r);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?e[r]=t[r]:Object.defineProperty(e,r,o)}}return e},e.objEach=function(e,t){for(var i in e)a(e,i)&&t(e[i],i)},e.supportsNativeCustomElements=function(){return"function"==typeof document.registerElement},e.isValidNativeCustomElementName=function(e){return e.indexOf("-")>0},Object.defineProperty(e,"__esModule",{value:!0});var i=t.ATTR_IGNORE,n=window.HTMLElement.prototype;e.elementPrototype=n;var s=n.contains;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},n=[t,i(221)],void 0===(s=a.apply(t,n))||(e.exports=s)},996(e,t){var i,n,s;s=function(e,t){"use strict";t.exports="0.13.17"},i=[t,e],void 0===(n=s.apply(t,i))||(e.exports=n)},99(){!function(e){"use strict";e.extend({tablesorter:new function(){var t=this;function i(){var e=arguments[0],t=arguments.length>1?Array.prototype.slice.call(arguments):e;"u">typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function n(e,t){i(e+" ("+(new Date().getTime()-t.getTime())+"ms)")}function s(e){for(var t in e)return!1;return!0}function a(i,n,s){if(!n)return"";var a,r=i.config,o=r.textExtraction||"",l="";return null==(l="basic"===o?e(n).attr(r.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(a=t.getColumnData(i,o,s))?a(n,i,s):n.textContent||n.innerText||e(n).text()||"")?"":l.trim()}function r(e){var s,r,o,l,c,u,h,p,f,g,m=e.config,v=m.$tbodies=m.$table.children("tbody:not(."+m.cssInfoBlock+")"),b=0,y="",w=v.length;if(0===w)return m.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(m.debug&&(g=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};b<w;){if((s=v[b].rows)[b])for(l=0,o=m.columns;l<o;l++)c=m.$headers.filter('[data-column="'+l+'"]:last'),u=t.getColumnData(e,m.headers,l),f=t.getParserById(t.getData(c,u,"extractor")),p=t.getParserById(t.getData(c,u,"sorter")),h="false"===t.getData(c,u,"parser"),m.empties[l]=(t.getData(c,u,"empty")||m.emptyTo||(m.emptyToBottom?"bottom":"top")).toLowerCase(),m.strings[l]=(t.getData(c,u,"string")||m.stringTo||"max").toLowerCase(),h&&(p=t.getParserById("no-parser")),f||(f=!1),p||(p=function(e,n,s,r){for(var o,l=t.parsers.length,c=!1,u="",h=!0;""===u&&h;)n[++s]?(u=a(e,c=n[s].cells[r],r),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+r+': "'+u+'"')):h=!1;for(;--l>=0;)if((o=t.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,e,c))return o;return t.getParserById("text")}(e,s,-1,l)),m.debug&&(y+="column:"+l+"; extractor:"+f.id+"; parser:"+p.id+"; string:"+m.strings[l]+"; empty: "+m.empties[l]+"\n"),r.parsers[l]=p,r.extractors[l]=f;b+=r.parsers.length?w:1}m.debug&&(i(y||"No parsers detected"),n("Completed detecting parsers",g)),m.parsers=r.parsers,m.extractors=r.extractors}function o(s){var r,o,l,c,u,h,p,f,g,m,v,b,y,w=s.config,_=w.$table.children("tbody"),x=w.extractors,C=w.parsers;if(w.cache={},w.totalRows=0,!C)return w.debug?i("Warning: *Empty table!* Not building a cache"):"";for(w.debug&&(m=new Date),w.showProcessing&&t.isProcessing(s,!0),p=0;p<_.length;p++)if(y=[],r=w.cache[p]={normalized:[]},!_.eq(p).hasClass(w.cssInfoBlock)){for(u=0,v=_[p]&&_[p].rows.length||0;u<v;++u){if(b={child:[]},f=e(_[p].rows[u]),w.columns,g=[],f.hasClass(w.cssChildRow)&&0!==u){o=r.normalized.length-1,r.normalized[o][w.columns].$row=r.normalized[o][w.columns].$row.add(f),f.prev().hasClass(w.cssChildRow)||f.prev().addClass(t.css.cssHasChild),b.child[o]=(f[0].textContent||f[0].innerText||f.text()||"").trim();continue}for(h=0,b.$row=f,b.order=u;h<w.columns;++h){if(void 0===C[h]){w.debug&&i("No parser found for cell:",f[0].cells[h],"does it have a header?");continue}o=a(s,f[0].cells[h],h),l=void 0===x[h].id?o:x[h].format(o,s,f[0].cells[h],h),c="no-parser"===C[h].id?"":C[h].format(l,s,f[0].cells[h],h),g.push(w.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(C[h].type||"").toLowerCase()&&(y[h]=Math.max(Math.abs(c)||0,y[h]||0))}g[w.columns]=b,r.normalized.push(g)}r.colMax=y,w.totalRows+=r.normalized.length}w.showProcessing&&t.isProcessing(s),w.debug&&n("Building cache for "+v+" rows",m)}function l(i,a){var r,o,l,c,u,h,p,f=i.config,g=f.widgetOptions,m=i.tBodies,v=[],b=f.cache;if(s(b))return f.appender?f.appender(i,v):i.isUpdating?f.$table.trigger("updateComplete",i):"";for(f.debug&&(p=new Date),h=0;h<m.length;h++)if((l=e(m[h])).length&&!l.hasClass(f.cssInfoBlock)){for(u=0,c=t.processTbody(i,l,!0),o=(r=b[h].normalized).length;u<o;u++)v.push(r[u][f.columns].$row),f.appender&&(!f.pager||f.pager.removeRows&&g.pager_removeRows||f.pager.ajax)||c.append(r[u][f.columns].$row);t.processTbody(i,c,!1)}f.appender&&f.appender(i,v),f.debug&&n("Rebuilt table",p),a||f.appender||t.applyWidget(i),i.isUpdating&&f.$table.trigger("updateComplete",i)}function c(e){return/^d/i.test(e)||1===e}function u(s){var a,r,o,l,u,h,f,g=s.config;g.headerList=[],g.headerContent=[],g.debug&&(f=new Date),g.columns=t.computeColumnIndex(g.$table.children("thead, tfoot").children("tr")),l=g.cssIcon?'<i class="'+(g.cssIcon===t.css.icon?t.css.icon:g.cssIcon+" "+t.css.icon)+'"></i>':"",g.$headers=e(s).find(g.selectorHeaders).each(function(i){r=e(this),a=t.getColumnData(s,g.headers,i,!0),g.headerContent[i]=e(this).html(),""!==g.headerTemplate&&(u=g.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,e(this).html()),g.onRenderTemplate&&(o=g.onRenderTemplate.apply(r,[i,u]))&&"string"==typeof o&&(u=o),e(this).html('<div class="'+t.css.headerIn+'">'+u+"</div>")),g.onRenderHeader&&g.onRenderHeader.apply(r,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=c(t.getData(r,a,"sortInitialOrder")||g.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(h=t.getData(r,a,"lockedOrder")||!1)&&!1!==h&&(this.order=this.lockedOrder=c(h)?[1,1,1]:[0,0,0]),r.addClass(t.css.header+" "+g.cssHeader),g.headerList[i]=this,r.parent().addClass(t.css.headerRow+" "+g.cssHeaderRow),g.tabIndex&&r.attr("tabindex",0)}).attr({scope:"col"}),p(s),g.debug&&(n("Built headers:",f),i(g.$headers))}function h(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),r(e),o(e),v(n.$table,t,i)}function p(i){var n,s,a,r=i.config;r.$headers.each(function(o,l){s=e(l),a=t.getColumnData(i,r.headers,o,!0),n="false"===t.getData(l,a,"sorter")||"false"===t.getData(l,a,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))})}function f(i){var n,s,a,r=i.config,o=r.sortList,l=o.length,c=t.css.sortNone+" "+r.cssNone,u=[t.css.sortAsc+" "+r.cssAsc,t.css.sortDesc+" "+r.cssDesc],h=["ascending","descending"],p=e(i).find("tfoot tr").children().add(r.$extraHeaders).removeClass(u.join(" "));for(r.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=r.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(a=0;a<n.length;a++)n[a].sortDisabled||n.eq(a).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",h[o[s][1]]);p.length&&p.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}r.$headers.not(".sorter-false").each(function(){var i=e(this),n=this.order[(this.count+1)%(r.sortReset?3:2)],s=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)})}function g(e){var i,a,r,o,l,c,u,h,p,f,g=0,m=e.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=e.tBodies.length;if(!(m.serverSideSorting||s(m.cache))){for(m.debug&&(l=new Date),a=0;a<w;a++)c=m.cache[a].colMax,m.cache[a].normalized.sort(function(n,s){for(i=0;i<y;i++){var a;if(o=b[i][0],g=0===(u=b[i][1]),m.sortStable&&n[o]===s[o]&&1===y)break;if((r=/n/i.test((a=m.parsers,a&&a[o]&&a[o].type||"")))&&m.strings[o]?(r="boolean"==typeof m.string[m.strings[o]]?(g?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,h=m.numberSorter?m.numberSorter(n[o],s[o],g,c[o],e):t["sortNumeric"+(g?"Asc":"Desc")](n[o],s[o],r,c[o],o,e)):(p=g?n:s,f=g?s:n,h="function"==typeof v?v(p[o],f[o],g,o,e):"object"==typeof v&&v.hasOwnProperty(o)?v[o](p[o],f[o],g,o,e):t["sortNatural"+(g?"Asc":"Desc")](n[o],s[o],o,e,m)),h)return h}return n[m.columns].order-s[m.columns].order});m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function m(e,t){var i=e[0];i.isUpdating&&e.trigger("updateComplete",i),"function"==typeof t&&t(e[0])}function v(e,i,n){var s=e[0].config.sortList;!1!==i&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){m(e,n)},!0]):(m(e,n),t.applyWidget(e[0],!1))}t.version="2.17.8",t.parsers=[],t.widgets=[],t.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},t.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},t.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},t.log=i,t.benchmark=n,t.construct=function(i){return this.each(function(){var n=e.extend(!0,{},t.defaults,i);n.originalSettings=i,!this.hasInitialized&&t.buildTable&&"TABLE"!==this.tagName?t.buildTable(this,n):t.setup(this,n)})},t.setup=function(n,c){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return c.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var m,b,y,w,_=RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`),x=[];for(var C of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var T=c[C];T&&!_.test(T)&&(x.push(C),i(`ERROR: ${C} must contain only valid CSS class names but is '${T}'`))}if(x.length>0)return c.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var k="",E=e(n),A=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=c,e.data(n,"tablesorter",c),c.debug&&e.data(n,"startoveralltimer",new Date),(m=e.fn.jquery.split("."))[0]=parseInt(m[0],10),c.supportsDataObject=m[0]>1||1===m[0]&&parseInt(m[1],10)>=4,c.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},c.emptyTo=c.emptyTo.toLowerCase(),c.stringTo=c.stringTo.toLowerCase(),/tablesorter\-/.test(E.attr("class"))||(k=""!==c.theme?" tablesorter-"+c.theme:""),c.table=n,c.$table=E.addClass(t.css.table+" "+c.tableClass+k),c.$headers=E.find(c.selectorHeaders),c.namespace?c.namespace="."+c.namespace.replace(/\W/g,""):c.namespace=".tablesorter"+Math.random().toString(16).slice(2),c.$table.children().children("tr"),c.$tbodies=E.children("tbody:not(."+c.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),c.$table.find("caption").length&&c.$table.attr("aria-labelledby","theCaption"),c.widgetInit={},c.textExtraction=c.$table.attr("data-text-extraction")||c.textExtraction||"basic",u(n),(w=n.config).widthFixed&&0===w.$table.find("colgroup").length&&(b=e("<colgroup>"),y=e(n).width(),e(n.tBodies).not("."+w.cssInfoBlock).find("tr:first").children(":visible").each(function(){b.append(e("<col>").css("width",parseInt(e(this).width()/y*1e3,10)/10+"%"))}),w.$table.prepend(b)),r(n),c.totalRows=0,c.delayInit||o(n),t.bindEvents(n,c.$headers,!0),function i(n){var c=n.config,m=c.$table;m.off("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(c.namespace+" ")).on("sortReset"+c.namespace,function(e,t){e.stopPropagation(),c.sortList=[],f(n),g(n),l(n),"function"==typeof t&&t(n)}).on("updateAll"+c.namespace,function(e,s,a){e.stopPropagation(),n.isUpdating=!0,t.refreshWidgets(n,!0,!0),t.restoreHeaders(n),u(n),t.bindEvents(n,c.$headers,!0),i(n),h(n,s,a)}).on("update"+c.namespace+" updateRows"+c.namespace,function(e,t,i){e.stopPropagation(),n.isUpdating=!0,p(n),h(n,t,i)}).on("updateCell"+c.namespace,function(t,i,s,r){t.stopPropagation(),n.isUpdating=!0,m.find(c.selectorRemove).remove();var o,l,u,h,p=m.find("tbody"),f=e(i),g=p.index(e.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),b=e.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");i=f[0],p.length&&g>=0&&(u=p.eq(g).find("tr").index(b),h=f.index(),c.cache[g].normalized[u][c.columns].$row=b,l=void 0===c.extractors[h].id?a(n,i,h):c.extractors[h].format(a(n,i,h),n,i,h),o="no-parser"===c.parsers[h].id?"":c.parsers[h].format(l,n,i,h),c.cache[g].normalized[u][h]=c.ignoreCase&&"string"==typeof o?o.toLowerCase():o,"numeric"===(c.parsers[h].type||"").toLowerCase()&&(c.cache[g].colMax[h]=Math.max(Math.abs(o)||0,c.cache[g].colMax[h]||0)),v(m,s,r))}).on("addRows"+c.namespace,function(t,i,o,l){if(t.stopPropagation(),n.isUpdating=!0,s(c.cache))p(n),h(n,o,l);else{var u,f,g,b,y,w,_,x=(i=e(i)).filter("tr").length,C=m.find("tbody").index(i.parents("tbody").filter(":first"));for(c.parsers&&c.parsers.length||r(n),u=0;u<x;u++){for(f=0,g=i[u].cells.length,_=[],w={child:[],$row:i.eq(u),order:c.cache[C].normalized.length};f<g;f++)b=void 0===c.extractors[f].id?a(n,i[u].cells[f],f):c.extractors[f].format(a(n,i[u].cells[f],f),n,i[u].cells[f],f),y="no-parser"===c.parsers[f].id?"":c.parsers[f].format(b,n,i[u].cells[f],f),_[f]=c.ignoreCase&&"string"==typeof y?y.toLowerCase():y,"numeric"===(c.parsers[f].type||"").toLowerCase()&&(c.cache[C].colMax[f]=Math.max(Math.abs(_[f])||0,c.cache[C].colMax[f]||0));_.push(w),c.cache[C].normalized.push(_)}v(m,o,l)}}).on("updateComplete"+c.namespace,function(){n.isUpdating=!1}).on("sorton"+c.namespace,function(i,a,r,c){var u,h,p,v,b,y,w,_=n.config;i.stopPropagation(),m.trigger("sortStart",this),y=n.config,w=a||y.sortList,y.sortList=[],e.each(w,function(t,i){if(v=parseInt(i[0],10),p=y.$headers.filter('[data-column="'+v+'"]:last')[0]){switch(h=(h=(""+i[1]).match(/^(1|d|s|o|n)/))?h[0]:""){case"1":case"d":h=1;break;case"s":h=b||0;break;case"o":h=0===(u=p.order[(b||0)%(y.sortReset?3:2)])?1:2*(1!==u);break;case"n":p.count=p.count+1,h=p.order[p.count%(y.sortReset?3:2)];break;default:h=0}b=0===t?h:b,u=[v,parseInt(h,10)||0],y.sortList.push(u),h=e.inArray(u[1],p.order),p.count=h>=0?h:u[1]%(y.sortReset?3:2)}}),f(n),_.delayInit&&s(_.cache)&&o(n),m.trigger("sortBegin",this),g(n),l(n,c),m.trigger("sortEnd",this),t.applyWidget(n),"function"==typeof r&&r(n)}).on("appendCache"+c.namespace,function(e,t,i){e.stopPropagation(),l(n,i),"function"==typeof t&&t(n)}).on("updateCache"+c.namespace,function(e,t){c.parsers&&c.parsers.length||r(n),o(n),"function"==typeof t&&t(n)}).on("applyWidgetId"+c.namespace,function(e,i){e.stopPropagation(),t.getWidgetById(i).format(n,c,c.widgetOptions)}).on("applyWidgets"+c.namespace,function(e,i){e.stopPropagation(),t.applyWidget(n,i)}).on("refreshWidgets"+c.namespace,function(e,i,s){e.stopPropagation(),t.refreshWidgets(n,i,s)}).on("destroy"+c.namespace,function(e,i,s){e.stopPropagation(),t.destroy(n,i,s)}).on("resetToLoadState"+c.namespace,function(){t.refreshWidgets(n,!0,!0),c=e.extend(!0,t.defaults,c.originalSettings),n.hasInitialized=!1,t.setup(n,c)})}(n),c.supportsDataObject&&void 0!==E.data().sortlist?c.sortList=E.data().sortlist:A&&E.metadata()&&E.metadata().sortlist&&(c.sortList=E.metadata().sortlist),t.applyWidget(n,!0),c.sortList.length>0?E.trigger("sorton",[c.sortList,{},!c.initWidgets,!0]):(f(n),c.initWidgets&&t.applyWidget(n,!1)),c.showProcessing&&E.off("sortBegin"+c.namespace+" sortEnd"+c.namespace).on("sortBegin"+c.namespace+" sortEnd"+c.namespace,function(e){clearTimeout(c.processTimer),t.isProcessing(n),"sortBegin"===e.type&&(c.processTimer=setTimeout(function(){t.isProcessing(n,!0)},500))}),n.hasInitialized=!0,n.isProcessing=!1,c.debug&&t.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),E.trigger("tablesorter-initialized",n),"function"==typeof c.initialized&&c.initialized(n)},t.getColumnData=function(t,i,n,s){if(null!=i){var a,r,o=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[o.$headers.index(o.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?o.$headers.eq(n).filter(r):o.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r];return a}},t.computeColumnIndex=function(t){var i,n,s,a,r,o,l,c,u,h,p,f,g,m=[],v={},b=0;for(i=0;i<t.length;i++)for(n=0,l=t[i].cells;n<l.length;n++){for(r=e(o=l[n]),u=(c=o.parentNode.rowIndex)+"-"+r.index(),h=o.rowSpan||1,p=o.colSpan||1,void 0===m[c]&&(m[c]=[]),s=0;s<m[c].length+1;s++)if(void 0===m[c][s]){f=s;break}for(v[u]=f,b=Math.max(f,b),r.attr({"data-column":f}),s=c;s<c+h;s++)for(void 0===m[s]&&(m[s]=[]),g=m[s],a=f;a<f+p;a++)g[a]="x"}return b+1},t.isProcessing=function(i,n,s){var a=(i=e(i))[0].config,r=s||i.find("."+t.css.header);n?(void 0!==s&&a.sortList.length>0&&(r=r.filter(function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),a.sortList)>=0})),i.add(r).addClass(t.css.processing+" "+a.cssProcessing)):i.add(r).removeClass(t.css.processing+" "+a.cssProcessing)},t.processTbody=function(t,i,n){var s;if(t=e(t)[0],n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},t.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},t.bindEvents=function(i,n,a){var r,c=(i=e(i)[0]).config;!0!==a&&(c.$extraHeaders=c.$extraHeaders?c.$extraHeaders.add(n):n),n.find(c.selectorSort).add(n.filter(c.selectorSort)).off("mousedown mouseup sort keyup ".split(" ").join(c.namespace+" ")).on("mousedown mouseup sort keyup ".split(" ").join(c.namespace+" "),function(a,u){var h,p=a.type;if((1===(a.which||a.button)||/sort|keyup/.test(p))&&("keyup"!==p||13===a.which)&&!("mouseup"===p&&!0!==u&&new Date().getTime()-r>250)){if("mousedown"===p)return r=new Date().getTime(),/(input|select|button|textarea)/i.test(a.target.tagName)?"":!c.cancelSelection;c.delayInit&&s(c.cache)&&o(i),h=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(h=c.$headers[n.index(h)]).sortDisabled||function i(n,s,a){if(n.isUpdating)return setTimeout(function(){i(n,s,a)},50);var r,o,c,u,h,p=n.config,m=!a[p.sortMultiSortKey],v=p.$table;if(v.trigger("sortStart",n),s.count=a[p.sortResetKey]?2:(s.count+1)%(p.sortReset?3:2),p.sortRestart&&(o=s,p.$headers.each(function(){this!==o&&(m||!e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc))&&(this.count=-1)})),o=s.column,m){if(p.sortList=[],null!==p.sortForce)for(c=0,r=p.sortForce;c<r.length;c++)r[c][0]!==o&&p.sortList.push(r[c]);if((u=s.order[s.count])<2&&(p.sortList.push([o,u]),s.colSpan>1))for(c=1;c<s.colSpan;c++)p.sortList.push([o+c,u])}else{if(p.sortAppend&&p.sortList.length>1)for(c=0;c<p.sortAppend.length;c++)(h=t.isValueInArray(p.sortAppend[c][0],p.sortList))>=0&&p.sortList.splice(h,1);if(t.isValueInArray(o,p.sortList)>=0)for(c=0;c<p.sortList.length;c++)h=p.sortList[c],u=p.$headers.filter('[data-column="'+h[0]+'"]:last')[0],h[0]===o&&(h[1]=u.order[s.count],2===h[1]&&(p.sortList.splice(c,1),u.count=-1));else if((u=s.order[s.count])<2&&(p.sortList.push([o,u]),s.colSpan>1))for(c=1;c<s.colSpan;c++)p.sortList.push([o+c,u])}if(null!==p.sortAppend)for(c=0,r=p.sortAppend;c<r.length;c++)r[c][0]!==o&&p.sortList.push(r[c]);v.trigger("sortBegin",n),setTimeout(function(){f(n),g(n),l(n),v.trigger("sortEnd",n)},1)}(i,h,a)}}),c.cancelSelection&&n.attr("unselectable","on").on("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},t.restoreHeaders=function(i){var n=e(i)[0].config;n.$table.find(n.selectorHeaders).each(function(i){e(this).find("."+t.css.headerIn).length&&e(this).html(n.headerContent[i])})},t.destroy=function(i,n,s){if((i=e(i)[0]).hasInitialized){t.refreshWidgets(i,!0,!0);var a=e(i),r=i.config,o=a.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+r.cssHeaderRow),c=a.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",r.widgets)>=0&&(a.trigger("applyWidgetId",["uitheme"]),a.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),a.removeData("tablesorter").off("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(r.namespace+" ")),r.$headers.add(c).removeClass([t.css.header,r.cssHeader,r.cssAsc,r.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(r.selectorSort).off("mousedown mouseup keypress ".split(" ").join(r.namespace+" ")),t.restoreHeaders(i),a.toggleClass(t.css.table+" "+r.tableClass+" tablesorter-"+r.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},t.sortNatural=function(e,i){if(e===i)return 0;var n,s,a,r,o,l,c,u,h=t.regex;if(h.hex.test(i)){if((s=parseInt(e.match(h.hex),16))<(r=parseInt(i.match(h.hex),16)))return -1;if(s>r)return 1}for(c=0,n=e.replace(h.chunk,"\\0$1\\0").replace(h.chunks,"").split("\\0"),a=i.replace(h.chunk,"\\0$1\\0").replace(h.chunks,"").split("\\0"),u=Math.max(n.length,a.length);c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(a[c])?a[c]||0:parseFloat(a[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return -1;if(o>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:-r||-1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:r||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:r||1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:-r||-1:t.sortNatural(i,e)},t.sortText=function(e,t){return e>t?1:e<t?-1:0},t.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,a=i+t;for(n=0;n<s;n++)a+=e.charCodeAt(n);return t*a}return 0},t.sortNumericAsc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"\xe1\xe0\xe2\xe3\xe4ą\xe5",A:"\xc1\xc0\xc2\xc3\xc4Ą\xc5",c:"\xe7ćč",C:"\xc7ĆČ",e:"\xe9\xe8\xea\xeběę",E:"\xc9\xc8\xca\xcbĚĘ",i:"\xed\xecİ\xee\xefı",I:"\xcd\xccİ\xce\xcf",o:"\xf3\xf2\xf4\xf5\xf6",O:"\xd3\xd2\xd4\xd5\xd6",ss:"\xdf",SS:"ẞ",u:"\xfa\xf9\xfb\xfců",U:"\xda\xd9\xdb\xdcŮ"},t.replaceAccents=function(e){var i,n="[",s=t.characterEquivalents;if(!t.characterRegex){for(i in t.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],t.characterRegexArray[i]=RegExp("["+s[i]+"]","g"));t.characterRegex=RegExp(n+"]")}if(t.characterRegex.test(e))for(i in s)"string"==typeof i&&(e=e.replace(t.characterRegexArray[i],i));return e},t.isValueInArray=function(e,t){var i,n=t.length;for(i=0;i<n;i++)if(t[i][0]===e)return i;return -1},t.addParser=function(e){var i,n=t.parsers.length,s=!0;for(i=0;i<n;i++)t.parsers[i].id.toLowerCase()===e.id.toLowerCase()&&(s=!1);s&&t.parsers.push(e)},t.getParserById=function(e){if("false"==e)return!1;var i,n=t.parsers.length;for(i=0;i<n;i++)if(t.parsers[i].id.toLowerCase()===e.toString().toLowerCase())return t.parsers[i];return!1},t.addWidget=function(e){t.widgets.push(e)},t.hasWidget=function(t,i){return(t=e(t)).length&&t[0].config&&t[0].config.widgetInit[i]||!1},t.getWidgetById=function(e){var i,n,s=t.widgets.length;for(i=0;i<s;i++)if((n=t.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===e.toLowerCase())return n},t.applyWidget=function(i,s){var a,r,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(a=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,function(t,i){return e.inArray(t,l.widgets)===i}),e.each(l.widgets||[],function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)}),u.sort(function(e,t){return e.priority<t.priority?-1:+(e.priority!==t.priority)}),e.each(u,function(t,n){n&&((s||!l.widgetInit[n.id])&&(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=e.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))})),setTimeout(function(){i.isApplyingWidgets=!1},0),l.debug&&n("Completed "+(!0===s?"initializing ":"applying ")+(r=l.widgets.length)+" widget"+(1!==r?"s":""),a))},t.refreshWidgets=function(n,s,a){var r,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(r=0;r<u;r++)c[r]&&c[r].id&&(s||0>e.inArray(c[r].id,l))&&(o.debug&&i('Refeshing widgets: Removing "'+c[r].id+'"'),c[r].hasOwnProperty("remove")&&o.widgetInit[c[r].id]&&(c[r].remove(n,o,o.widgetOptions),o.widgetInit[c[r].id]=!1));!0!==a&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,a,r="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),a=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?r+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?r+=s[n]:i&&void 0!==i[n]?r+=i[n]:" "!==a&&a.match(" "+n+"-")&&(r=a.match(RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),null==r?"":r.trim()):""},t.formatFloat=function(e,t){var i;return"string"!=typeof e||""===e?e:(e=(t&&t.config?!1!==t.config.usNumberFormat:void 0===t||t)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),isNaN(i=parseFloat(e))?e.trim():i)},t.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var t=e.tablesorter;e.fn.extend({tablesorter:t.construct}),t.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),t.addParser({id:"text",is:function(){return!0},format:function(e,i){var n=i.config;return e&&(e=(n.ignoreCase?e.toLocaleLowerCase():e).trim(),e=n.sortLocaleCompare?t.replaceAccents(e):e),e},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(e,i){var n=t.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),i);return e&&"number"==typeof n?n:e?(e&&i.config.ignoreCase?e.toLocaleLowerCase():e).trim():e},type:"numeric"}),t.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(e,i){var n=t.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),i);return e&&"number"==typeof n?n:e?(e&&i.config.ignoreCase?e.toLocaleLowerCase():e).trim():e},type:"numeric"}),t.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,i){var n,s=e?e.split("."):"",a="",r=s.length;for(n=0;n<r;n++)a+=("00"+s[n]).slice(-3);return e?t.formatFloat(a,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(e){return e?e.replace(/(https?|ftp|file):\/\//,"").trim():e},parsed:!0,type:"text"}),t.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,i){return e?t.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",i):e},type:"numeric"}),t.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,i){return e?t.formatFloat(e.replace(/%/g,""),i):e},type:"numeric"}),t.addParser({id:"usLongDate",is:function(e){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,i,n,s){if(e){var a=i.config,r=a.$headers.filter("[data-column="+s+"]:last"),o=r.length&&r[0].dateFormat||t.getData(r,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,a=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[a]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var a,r,o,l,c,u=RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<h.length;c++)r=0,h.eq(c).children("tr:visible").not(n.selectorRemove).each(function(){a=e(this),!u.test(this.className)&&r++,o=r%2==0,a.removeClass(s.zebra[+!!o]).addClass(s.zebra[+!o])});n.debug&&t.benchmark("Applying Zebra widget",l)},remove:function(t,i,n){var s,a,r=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<r.length;s++)(a=e.tablesorter.processTbody(t,r.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,a,!1)}})}(jQuery)},682(){jQuery.fn.serializeObject=function(){var e={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each(function(){""!==this.name&&(null===this.value&&(this.value=""),e[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)}),this.find("input:radio:checked").each(function(){e[this.name]=this.value}),this.find("select[multiple]").each(function(){var t=jQuery(this),i=t.val();t.data("aui-ss")?i?e[this.name]=i[0]:e[this.name]="":null!==i?e[this.name]=i:e[this.name]=[]}),e}},398(t){"use strict";t.exports=e},195(e){"use strict";e.exports=t},389(e){"use strict";e.exports=i}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";let e,t,i,n,s,o;a.r(r),a.d(r,{ProgressBarEl:()=>aI,log:()=>M,FocusManager:()=>oj,SelectEl:()=>nK,SectionEl:()=>i0,InlineDialogEl:()=>ag,responsiveheader:()=>o1,id:()=>oK,RestfulTable:()=>oc,I18n:()=>eY,AvatarGroupEl:()=>ts,flag:()=>no,warn:()=>N,navigation:()=>ay,SpinnerEl:()=>tg,formValidation:()=>oq,AvatarEl:()=>e4,undim:()=>o9,TabItemEl:()=>aZ,Header:()=>rV,TabContainerEl:()=>aJ,debounce:()=>oB,dim:()=>oV,ToggleEl:()=>s3,AvatarBadged:()=>eQ,progressBars:()=>aN,MessageEl:()=>i6,sidebar:()=>oS,ItemRadioEl:()=>iX,keyCode:()=>oG,ItemCheckboxEl:()=>iZ,dialog2:()=>tk,tabs:()=>o3,toInit:()=>eV,debounceImmediate:()=>oW,trigger:()=>F,populateParameters:()=>oX,CalendarWidget:()=>rG,DropdownEl:()=>i1,TabPaneEl:()=>aX,isClipped:()=>oQ,ItemLinkEl:()=>iG,ProgressiveDataSet:()=>oF,unbind:()=>H,_addID:()=>o5,LabelEl:()=>np,error:()=>O,InlineDialog2:()=>oz,bind:()=>z,whenIType:()=>o$,$:()=>eB,FancyFileInput:()=>nc,clone:()=>oU,escapeHtml:()=>oY,layer:()=>oJ,DatePicker:()=>rX,ItemButtonEl:()=>iJ,format:()=>P,select:()=>o2,banner:()=>tr,tablessortable:()=>o4,NavigationEl:()=>ab,params:()=>o0,LayerManager:()=>oH,messages:()=>oZ,contextPath:()=>o8,version:()=>$});var l,c,u,h,p,f,g,m,v,b,y,w=a(195),_=a.n(w);let x=window.jQuery||window.Zepto||_(),C="I18n";function T(){"object"!=typeof window.AJS&&(window.AJS={})}function k(e,t){return T(),window.AJS[e]=t}var E=a(714),A=a.n(E);function D(e){let t;return{type:A().type.CLASSNAME,attached:function(i){!function(e,t){let i=!1;if(t(()=>{i=!0}),i)return;let n=new MutationObserver(e=>{(function(e){for(let t of e)if("childList"===t.type)return!0;return!1})(e)&&t(()=>n.disconnect())});n.observe(e,{childList:!0})}(i,n=>{t=n;let s=_()(`input[type=${e}]`,i);s.each(function(e,t){_()('<span class="aui-form-glyph"></span>').insertAfter(t)}),s.length>0&&t()})},detached:function(e){_()(".aui-form-glyph",e).remove(),t&&t()}}}function S(e,t){var i=x(e);return void 0===t&&(t=!0),i.each(function(){this.disabled=!t})}function I(e){return function(){"u">typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}A()("checkbox",D("checkbox")),A()("radio",D("radio")),k("enable",S),k("inlineHelp",function(){x(document).on("click",".icon-inline-help",function(){var e=x(this).siblings(".field-help");e.hasClass("hidden")?e.removeClass("hidden"):e.addClass("hidden")})});var M=I("log"),N=I("warn"),O=I("error");function L(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,a=/^(\d+)([#<])(.+)/,r=function(t,r){var o,l="";if(o=t.match(i))l=r.length>++t?r[t]:"";else if(o=t.match(n))l=r.length>++o[1]?r[o[1]]:"";else if(o=t.match(s)){var c=r.length>++o[1]?r[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),h=!1,p=null,f=0;f<u.length;f++){var g=u[f].match(a);if(null==g){h=!0;continue}var m=parseInt(g[1],10);if(c<m)if(p){l=p;break}else{l=g[3];break}if(c==m&&"#"==g[2]){l=g[3];break}f==u.length-1&&(l=g[3]),p=g[3]}h&&O('The format "'+t+'" from message "'+e+'" is invalid.');var v=[l].concat(Array.prototype.slice.call(r,1));l=L.apply(null,v)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var a=e.charAt(s);if("'"==a&&(t=!t),!t){if("{"===a)0===n&&(i=s),n++;else if("}"===a&&n>0&&0==--n){var r=[];return r.push(e.substring(0,s+1)),r.push(e.substring(0,i)),r.push(e.substring(i+1,s)),r}}}return null};return(function(e){var i=arguments,n="";if(!e)return n;for(var s=o(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=r(s[2],i),s=o(e);return n+e.replace(t,"")}).apply(null,arguments)}k("error",O),k("log",M),k("warn",N),k("format",L);let P=L;var R="10.1.8";k("version",R);let $=R,j=x(window);function z(e,t,i){try{if("function"==typeof i)return j.on(e,!1,t,i);return j.on(e,!1,t)}catch(e){M("error while binding: ",e.message)}}function H(e,t){try{return j.off(e,t)}catch(e){M("error while unbinding: ",e.message)}}function F(e,t){try{return j.trigger(e,t)}catch(e){M("error while triggering: "+e.message)}}k("bind",z),k("trigger",F),k("unbind",H);let U={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},B=RegExp(`[${Object.keys(U).join("")}]`,"g");function W(e){return e.replace(B,e=>U[e])}k("escapeHtml",W);let V=Object.prototype.hasOwnProperty,Y=[];function q(...e){"u">typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,e)}let K=(e,t)=>Q(e,t);function Q(e,t){if("function"==typeof e)return e;let i=!1;return t=t??{},function(n){var s,a;let r,o,l=(s=n??1,o=(r=Error()).stack??r.stacktrace,(o=o?.replace(/^Error\n/,"")??"").split("\n")[s+2]??"");if(!i||!Y.includes(l)){Y.push(l),i=!0;let n="DEPRECATED "+(t.deprecationType??"")+"- "+((a=e)?(a=""+a).charAt(0).toUpperCase()+a.substring(1):"")+" has been deprecated"+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion??"a future release")+".";t.alternativeName&&(n+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(n+=" "+t.extraInfo),l=""===l?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+l,t.extraObject?q(n+="\n",t.extraObject,l):q(n,l)}}}function G(e,t){let i=e.options?.displayName;i=i?" ("+i+")":"";let n=Object.assign({deprecationType:"CSS",extraObject:t},e.options);Q("'"+e.selector+"' pattern"+i,n)()}function J(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=Q(t||e.name||"this function",i);return function(...t){return n(),e.apply(this,t)}}function Z(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=J(e,t,i);return n.prototype=e.prototype,Object.assign(n,e),n}function X(e,t,i){if("function"==typeof e[t]){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=i.displayName??t;e[t]=J(e[t],n,i)}else{var n;let s,a;n=i,s=e[t],(n=n??{}).deprecationType=n.deprecationType??"JS",a=Q(n.displayName??t,n),Object.defineProperty(e,t,{get:function(){return a(),s},set:function(e){return s=e,a(),e}})}}let ee=[];function et(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}function ei(e,t){g||(g=document.body),!0===e&&es();let i=!!ei.$dim&&!ei.$dim[0].hasAttribute("hidden");return ei.$dim&&(ei.$dim.remove(),ei.$dim=null),ei.$dim=x('<div aria-hidden="true"></div>').addClass("aui-blanket"),ei.$dim.appendTo(document.body),i||(et(ei.$dim),ei.cachedOverflow={overflow:g.style.overflow,overflowX:g.style.overflowX,overflowY:g.style.overflowY},g.style.overflowX="hidden",g.style.overflowY="hidden",g.style.overflow="hidden"),ei.$dim.prop("hidden",!1),t&&ei.$dim.css({zIndex:t}),ei.$dim}function en(){ei.$dim&&(ei.$dim[0].setAttribute("hidden",""),g&&(g.style.overflow=ei.cachedOverflow.overflow,g.style.overflowX=ei.cachedOverflow.overflowX,g.style.overflowY=ei.cachedOverflow.overflowY))}k("deprecate",{fn:J,construct:Z,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(function(e){var i;let n={selector:e,options:t};for(let t of document.querySelectorAll(e))G(n,t);i=n,ee.push(i),void 0===s&&(s=new MutationObserver(function(e){e.forEach(function(e){for(let t of e.addedNodes)1===t.nodeType&&ee.forEach(function(e){return function(t){var i;i=t.selector,e instanceof Element&&e.matches(i)&&G(t,e)}}(t))})})).observe(document,{childList:!0,subtree:!0})})},prop:X,obj:function(e,t,i){for(let n in i=i??{},e)V.call(e,n)&&(i.deprecationType=i.deprecationType??"JS",i.displayName=t+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,X(e,n,Object.assign({},i)))},getMessageLogger:K});let es=K("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});k("dim",ei),k("undim",en);var ea={ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,LEFT_SQUARE_BRACKET:91,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91};function er(e,t){return window.define&&(0,window.define)(e,[],function(){return t}),t}k("keyCode",ea);let eo=A().noConflict(),el=function(e){return{set:function(t,i){void 0===e._state&&(e._state={}),e._state[t]=i},get:function(t){if(e._state)return e._state[t]}}};function ec(e){return el(e).get("last-trigger")||ep(e)[0]}function eu(e,t){var i=t&&t.nodeType&&1===t.nodeType;return el(e).set("last-trigger",!!i&&t)}function ed(e,t){var i=ec(e);i&&t(i)}function eh(e,t){return Array.prototype.forEach.call(ep(e),t)}function ep(e){let t=window.frames,i=`[aria-controls="${e.id}"]`,n=[],s=!1;for(let e=0;e<t.length;e++)try{let s=t[e].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(e){s=!0}let a=document.querySelectorAll(i),r=Array.prototype.slice.apply(a).concat(n);return 0===r.length&&!0===s&&N(`No triggers found for element (${e.id}) in iframes from the same origin. However some iframes in this document are cross-origin. The trigger-element relations crossing the origin boundary are not supported.`),r}function ef(e){return document.getElementById(e.getAttribute("aria-controls"))}function eg(e){return"true"!==e.getAttribute("aria-disabled")}function em(e,t){if(eg(e)){var i=ef(e);i&&i.message&&i.message(t)}}let ev={click(e,t){var i;(i=x(t.target).closest("a[href]",e)).length&&i[0]!==e||(em(e,t),t.preventDefault())},keydown(e,t){let i=t.data;(i===ea.ENTER||i===ea.SPACE)&&(t.preventDefault(),t.type="click",ev.click(e,t))},mouseenter(e,t){em(e,t)},mouseleave(e,t){em(e,t)},focus(e,t){em(e,t)},blur(e,t){let i;(i=t.relatedTarget)||(i=document.activeElement),x(ef(e)).find(i).length>0||em(e,t)}};function eb(e){return"visible"===x.css(e,"visibility")&&x(e).is(":visible")}function ey(e,t){var i=e.nodeName.toLowerCase();if("aui-select"===i)return!0;if("area"===i){var n=e.parentNode,s=n.name,a=x("img[usemap=#"+s+"]").get();return!!e.href&&!!s&&"map"===n.nodeName.toLowerCase()&&a&&eb(a)}var r=/input|select|textarea|button|object|iframe/.test(i),o="a"===i,l=e.href||t;return(r?!e.disabled:o?l:t)&&eb(e)}Object.keys(ev).forEach(function(e){let t=ev[e];x(document).on(`${e}.aui-trigger`,"[data-aui-trigger]",function(i){t(i.currentTarget,function(e,t){let{target:i,currentTarget:n,relatedTarget:s}=e,{keyCode:a,which:r}=e;return{type:t,data:"keydown"===t?r||a:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))})}),eo("data-aui-trigger",{type:eo.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return eg(this)}}}),er("aui/trigger"),x.extend(x.expr.pseudos,{"aui-focusable":e=>ey(e,!isNaN(x.attr(e,"tabindex"))),"aui-tabbable":function(e){var t=x.attr(e,"tabindex"),i=isNaN(t);return(i||t>=0)&&ey(e,!i)}});var ew="_aui-focus-restore";function e_(e){return e.is(".aui-dialog2")||e.is('[aui-focus-trap="true"]')}function ex(){this._focusTrapStack=[],this._handler}function eC(e,t){if(0===e.length||t.keyCode!==ea.TAB)return;let i=t.shiftKey?-1:1,n=t.target,s=e[e.length-1],a=s.find(":aui-tabbable");if(!a.length&&e_(s)&&(s.trigger("focus"),t.preventDefault()),!a.length)return;let r=a.index(n),o=-1;if(r>-1)o=r;else{let e;if((e=x(n).closest(".aui-layer")).length||(e=s.find("[aria-controls]").map(function(){return document.getElementById(this.getAttribute("aria-controls"))}).has(n)),e.length){let t=e.find(":aui-tabbable"),s=t.index(n)+i;if(!(s<0)&&!(s>=t.length))return;{let t=ec(e.get(0));o=a.index(t)}}}o=o>-1?function(e,t,i,n){function s(e){return(e+i)%n.length}let a=s(t);if("radio"===e.type&&e.name)for(;n.eq(a).attr("name")===e.name&&a!==t;)a=s(a);if(a!==t&&"radio"===n.eq(a).attr("type")){let e,t=n.eq(a).attr("name"),s=n.filter(function(){return"radio"===this.type&&this.name===t}),r=s.filter(":checked");e=r.length>0?r.first():i>0?s.first():s.last(),a=n.index(e)}return a}(n,o,i,a):0,"IFRAME"!==a.get(o).nodeName&&(a.eq(o).trigger("focus"),t.preventDefault())}function eT(){return e||(e=new ex),e}function ek(e,t){var i="_aui-widget-"+e;return function(e,n){x.isPlainObject(e)?a=e:(s=e,a=n);var s,a,r,o=s&&x(s);return o&&o.data(i)?r=o.data(i):(o=(r=new t(o,a||{})).$el).data(i,r),r}}ex.defaultFocusSelector=":aui-tabbable",ex.prototype.enter=function(e,t){if(!function(e,t=document.activeElement){e.data(ew,t)}(e,t),"false"!==e.attr("data-aui-focus")){var i=e.attr("data-aui-focus-selector")||ex.defaultFocusSelector;(e.is(i)?e:e.find(i)).first().trigger("focus")}e_(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=eC.bind(void 0,this._focusTrapStack),x(document).on("keydown.aui-focus-manager",this._handler)))},ex.prototype.exit=function(e){e_(e)&&(this._focusTrapStack.splice(this._focusTrapStack.indexOf(e),1),this._focusTrapStack.length||(x(document).off(".aui-focus-manager",this._handler),delete this._handler));var t=document.activeElement;if(e[0]===t||e.has(t).length){t.blur();var i=x(e.data(ew));i.length&&(e.removeData(ew),i.trigger("focus"))}},eT.global=eT(),k("FocusManager",eT);let eE="_aui-internal-layer-",eA="_aui-internal-layer-global-";var eD=x(document);function eS(e,t,i){var n=x.Event(eE+t),s=x.Event(eA+t),a=new CustomEvent("aui-layer-"+i,{bubbles:!0,cancelable:!0}),r=new CustomEvent("aui-"+i,{bubbles:!0,cancelable:!0});return e.trigger(n),e.trigger(s,[e]),e[0].dispatchEvent(a),e[0].dispatchEvent(r),!n.isDefaultPrevented()&&!s.isDefaultPrevented()&&!a.defaultPrevented&&!r.defaultPrevented}function eI(e){this.$el=x(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function eM(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}eI.prototype={below:function(){return ej.global.item(ej.global.indexOf(this.$el)-1)},above:function(){return ej.global.item(ej.global.indexOf(this.$el)+1)},changeSize:function(e,t){return this.$el.css("width",e),this.$el.css("height","content"===t?"":t),this},on:function(e,t){return this.$el.on(eE+e,t),this},off:function(e,t){return this.$el.off(eE+e,t),this},show:function(){return this.isVisible()||ej.global.indexOf(this.$el)>-1||!eS(this.$el,"beforeShow","show")||("none"===this.$el.css("display")&&this.$el.css("display",""),ej.global.push(this.$el)),this},hide:function(){if(!this.isVisible())return this;let e=this;return function(e,t,i,n){var s;(s=window.getComputedStyle(e).transitionProperty)&&s.indexOf(t)>-1?e.addEventListener("transitionend",function s(a){t===a.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))}):i.call(e)}(this.$el.get(0),"opacity",function(){e.isVisible()||(this.style.display="none")},!0),ej.global.popUntil(this.$el,!0),this},isVisible:function(){return!0===this.$el.data("_aui-layer-shown")},remove:function(){this.hide(),this.$el.remove(),this.$el=null,this.el=null},isBlanketed:function(){return"true"===this.el.dataset.auiBlanketed},isPersistent:function(){var e=eM(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=eM(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return(!e||!!eS(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&eT.global.exit(this.$el),this.el.removeAttribute("open"),this.$el.removeData("_aui-layer-shown"),this.$el.css("z-index",this.$el.data("_aui-layer-cached-z-index")||""),this.$el.data("_aui-layer-cached-z-index",""),this.$el.trigger(eE+"hide"),this.$el.trigger(eA+"hide",[this.$el]),!0)},_showLayer:function(e){let t=this.getDOMContainer();if(this.isBlanketed()||t){let e=t||"body";this.$el.parent().is(e)||this.$el.appendTo(e)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",e),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&eT.global.enter(this.$el),this.$el.trigger(eE+"show"),this.$el.trigger(eA+"show",[this.$el])}};var eN=ek("layer",eI);function eO(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return -1}function eL(e,t){return eO(e,function(e){return e[0]===t[0]})}function eP(e){return eO(e,function(e){return eN(e).isBlanketed()})}function eR(e,t){var i=eP(e);t!==i&&(i>-1?ei(!1,e[i].css("z-index")-20):en())}function e$(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,a=e.length-1;a>=t;a--){var r=eN(s=e[a]);if(i||!r.isPersistent()){if(!r._hideLayer(n))return[!1,s];e.splice(a,1)}}return[!0,s]}function ej(){this._stack=[]}function ez(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return ej.global.indexOf(t)>-1}eN.on=function(e,t,i){return eD.on(eA+e,t,i),this},eN.off=function(e,t,i){return eD.off(eA+e,t,i),this},ej.prototype={push:function(e){var t=e instanceof x?e:x(e);if(eL(this._stack,t)>=0)throw Error("The given element is already an active layer.");this.popLayersBeside(t);var i=eN(t),n=function(e){var t;if(e.length){var i=parseInt(e[e.length-1].css("z-index"),10);t=(isNaN(i)?0:i)+100}else t=0;return Math.max(3e3,t)}(this._stack);return i._showLayer(n),i.isBlanketed()&&ei(!1,n-20),this._stack.push(t),this},popLayersBeside:function(e){let t=x(e).get(0);if(!ec(t)){var i=eP(this._stack);e$(this._stack,++i,!1);return}let n=function(e){var t=ec(e);if(t)return x(t).closest(".aui-layer").get(0)}(t);if(n){let e=this.indexOf(n);e$(this._stack,++e,!1)}else e$(this._stack,0,!1)},indexOf:function(e){return eL(this._stack,x(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach(function(e){let t=eN(e);t.isBlanketed()||t.isPersistent()||t.hide()}),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,i=e instanceof x?e:x(e),n=eL(this._stack,i);if(n<0)return null;for(n--;n>=0;){var s=eN(t=this._stack[n]);if(!s.isPersistent()||s.isBlanketed())return t;n--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,i=e instanceof x?e:x(e),n=eL(this._stack,i);if(n<0)return null;for(n++;n<this._stack.length;){var s=eN(t=this._stack[n]);if(!(s.isPersistent()||s.isBlanketed()))return t;n++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},getTopOpenLayer:function(){return this._stack.slice().reverse().find(e=>void 0!==e.attr("open"))||null},popUntil:function(e,t=!1){var i=e instanceof x?e:x(e),n=eL(this._stack,i);if(-1===n)return null;let s=eP(this._stack),a=eN(i),[r,o]=e$(this._stack,n+1,a.isBlanketed(),t);return r&&a._hideLayer(t)?(this._stack.splice(n,1),eR(this._stack,s),i):o},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=eN(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=eP(this._stack);if(t<0)return null;var i=this._stack[t];if(eN(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=eL(this._stack,n);return e$(this._stack,s,!0,e),n}return null}return e$(this._stack,t,!0),eR(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t,i=ej.global.getTopLayer();if(i){var n=eP(this._stack),s=eN(i);if(s.isPersistent())if(s.isBlanketed())return;else{if(s=eN(i=ej.global.getNextLowerNonPersistentOrBlanketedLayer(i)),!i||s.isPersistent())return;t=eL(this._stack,i),e$(this._stack,t,!0,e),eR(this._stack,n)}else t=eL(this._stack,i),e$(this._stack,t,!0,e),eR(this._stack,n)}}},eD.on("keydown",function(e){e.keyCode===ea.ESCAPE&&(ej.global.popUntilTopPersistent(!0),e.preventDefault())}),eD.on("click",".aui-blanket",function(e){ej.global.popUntilTopBlanketed(!0)&&e.preventDefault()}),eD.on("click",function(e){var t=x(e.target);if(!t.closest(".aui-blanket").length){var i=t.closest("[aria-controls]"),n=t.closest(".aui-layer");if(!n.length&&!ez(i)){let t=x.Event("aui-close-layers-on-outer-click");return(eD.trigger(t),t.isDefaultPrevented())?void e.preventDefault():void ej.global.hideAll()}if(!ez(i)&&n.length){var s=ej.global.getNextHigherNonPeristentAndNonBlanketedLayer(n);s&&eN(s).hide()}}}),ej.global=new ej,eN.Manager=ej,k("layer",eN),k("LayerManager",eN.Manager),eN.Manager;let eH={sinceVersion:"9.0.0",removeInVersion:"11.0.0"},eF=k("params",new Proxy({},{get:function(e,t){return K("AJS.params",eH)(),e[t]}})),eU=J(function(e){e||(e=eF),x(".parameters input").each(function(){var t=this.value,i=this.title||this.id;x(this).hasClass("list")?e[i]?e[i].push(t):e[i]=[t]:e[i]=t.match(/^(tru|fals)e$/i)?"true"===t.toLowerCase():t})},"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"11.0.0"});k("populateParameters",eU),x(function(){var e=x("body");e.data("auiVersion")||e.attr("data-aui-version",$),eU()}),k("$",x);let eB=x;function eW(e){return x.when(x.ready).then(function(){setTimeout(function(){try{e.call(this,x)}catch(t){O("Failed to run init function: "+t.message,e,t,t.stack)}},1)}),this}k("toInit",eW);let eV=eW;a(793);let eY=function(e){T(),"object"!=typeof window.AJS[C]&&(window.AJS[C]={});let t=window.AJS[C];for(let i in e)void 0===t[i]&&(t[i]=e[i]);return t}({keys:{"aui.landmarks.site":"Site","aui.landmarks.sidebar":"Sidebar","aui.landmarks.page":"Page","aui.landmarks.main":"Main","aui.header.home.link":"Go to home page","aui.dropdown.async.error":"Error loading dropdown","aui.dropdown.async.loading":"Loading dropdown","aui.words.expand":"Expand","aui.words.collapse":"Collapse","aui.words.add":"Add","aui.words.update":"Update","aui.words.delete":"Delete","aui.words.remove":"Remove","aui.words.cancel":"Cancel","aui.words.loading":"Loading","aui.words.close":"Close","aui.enter.value":"Enter value","aui.words.more":"More","aui.words.moreitem":"More…","aui.keyboard.shortcut.type.x":"Type ''{0}''","aui.keyboard.shortcut.then.x":"then ''{0}''","aui.keyboard.shortcut.or.x":"OR ''{0}''","aui.sidebar.expand.tooltip":"Expand sidebar ( [ )","aui.sidebar.collapse.tooltip":"Collapse sidebar ( [ )","aui.validation.message.maxlength":"Must be fewer than or equal to {0} characters","aui.validation.message.minlength":"Must be greater than or equal to {0} characters","aui.validation.message.exactlength":"Must be exactly {0} characters","aui.validation.message.matchingfield":"{0} and {1} do not match.","aui.validation.message.matchingfield-novalue":"These fields do not match.","aui.validation.message.doesnotcontain":"Do not include the phrase {0} in this field","aui.validation.message.pattern":"This field does not match the required format","aui.validation.message.required":"This is a required field","aui.validation.message.validnumber":"Please enter a valid number","aui.validation.message.min":"Enter a value greater than or equal to {0}","aui.validation.message.max":"Enter a value less than or equal to {0}","aui.validation.message.dateformat":"Enter a valid date","aui.validation.message.minchecked":"Tick at least {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.validation.message.maxchecked":"Tick at most {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.select.no.suggestions":"No suggestions","aui.select.number.suggestions":"Found {0,choice,0#0 options|1#1 option|1<{0,number} options}.","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","aui.messagecomponent.error.label":"Error","aui.messagecomponent.warning.label":"Warning","aui.messagecomponent.info.label":"Information","aui.messagecomponent.confirmation.label":"Confirmation","aui.messagecomponent.change.label":"Change","ajs.datepicker.localisations.day-names.sunday":"Sunday","ajs.datepicker.localisations.day-names.monday":"Monday","ajs.datepicker.localisations.day-names.tuesday":"Tuesday","ajs.datepicker.localisations.day-names.wednesday":"Wednesday","ajs.datepicker.localisations.day-names.thursday":"Thursday","ajs.datepicker.localisations.day-names.friday":"Friday","ajs.datepicker.localisations.day-names.saturday":"Saturday","ajs.datepicker.localisations.day-names-min.sunday":"Sun","ajs.datepicker.localisations.day-names-min.monday":"Mon","ajs.datepicker.localisations.day-names-min.tuesday":"Tue","ajs.datepicker.localisations.day-names-min.wednesday":"Wed","ajs.datepicker.localisations.day-names-min.thursday":"Thu","ajs.datepicker.localisations.day-names-min.friday":"Fri","ajs.datepicker.localisations.day-names-min.saturday":"Sat","ajs.datepicker.localisations.first-day":0,"ajs.datepicker.localisations.is-RTL":!1,"ajs.datepicker.localisations.month-names.january":"January","ajs.datepicker.localisations.month-names.february":"February","ajs.datepicker.localisations.month-names.march":"March","ajs.datepicker.localisations.month-names.april":"April","ajs.datepicker.localisations.month-names.may":"May","ajs.datepicker.localisations.month-names.june":"June","ajs.datepicker.localisations.month-names.july":"July","ajs.datepicker.localisations.month-names.august":"August","ajs.datepicker.localisations.month-names.september":"September","ajs.datepicker.localisations.month-names.october":"October","ajs.datepicker.localisations.month-names.november":"November","ajs.datepicker.localisations.month-names.december":"December","ajs.datepicker.localisations.show-month-after-year":!1,"ajs.datepicker.localisations.year-suffix":"","aui.flag.default-aria-label.info":"New information message","aui.flag.default-aria-label.success":"New confirmation message","aui.flag.default-aria-label.warning":"New warning message","aui.flag.default-aria-label.error":"New error message"},getText:function(e,...t){return Object.prototype.hasOwnProperty.call(this.keys,e)?P.apply(null,[this.keys[e]].concat(t)):e}}),eq="bottom-end",eK=["top-start","top-end","bottom-start","bottom-end"],eQ=eo("aui-avatar-badged",{attributes:{placement:{value:eq,fallback(e,{newValue:t,oldValue:i}){let n;n=eK.includes(t)?t:eq,i&&e.classList.remove(`aui-avatar-badged-${i}`),e.classList.add(`aui-avatar-badged-${n}`)}}},created:function(e){e.classList.add("aui-avatar-badged")}});var eG=a(2),eJ=a.n(eG);let eZ=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),eX=(e,t,i)=>{let n=e.querySelector(".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},e0=e=>{if(e.hasAttribute("src"))e2(e,e.getAttribute("src"));else{let t="project"===e.getAttribute("type")?"project":"user";e2(e,eZ.get(t))}},e1=(e,t,i)=>e.querySelector("img").setAttribute(t,i),e2=(e,t)=>e1(e,"src",t),e4=eo("aui-avatar",{template:eJ()(`
2
2
  <span class='aui-avatar'>
3
3
  <span class='aui-avatar-inner'>
4
4
  <img />