@atlassian/aui 9.4.7 → 9.4.9
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.
- package/dist/aui/aui-prototyping.css +3 -3
- package/dist/aui/aui-prototyping.css.map +1 -1
- package/dist/aui/aui-prototyping.js +8 -6
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +3 -3
- package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +15 -13
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/package.json +2 -1
- package/src/js/aui/dropdown2.js +21 -2
- package/src/js/aui/forms/create-forms-component-body.js +37 -0
- package/src/js/aui/forms/custom-checkbox.js +6 -12
- package/src/js/aui/forms/custom-radio.js +6 -12
- package/src/js/aui/internal/detect-children-change.js +35 -0
- package/src/js/aui/sidebar.js +7 -0
- package/src/js/aui/tooltip.js +21 -5
- package/src/js/aui/when-i-type.js +33 -13
- package/src/less/aui-experimental-tooltip.less +1 -0
- package/src/less/forms-radios-and-checkboxes.less +19 -26
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/*!!
|
|
2
2
|
* @atlassian/aui - Atlassian User Interface library
|
|
3
|
-
* @version v9.4.
|
|
3
|
+
* @version v9.4.9
|
|
4
4
|
* @link https://aui.atlassian.com
|
|
5
5
|
* @license Apache-2.0
|
|
6
6
|
* @author Atlassian Pty Ltd.
|
|
7
7
|
*/
|
|
8
|
-
!function(t
|
|
8
|
+
!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,(function(e,t,i){return(()=>{var n={42:()=>{!function(e){function t(e){this.num=0,this.timer=e>0&&e}function i(i){if(e.isPlainObject(i.data)||e.isArray(i.data)||"string"==typeof i.data){var s,r=i.handler,a={timer:700,combo:[]};"string"==typeof(s=i.data)?a.combo=[s]:e.isArray(s)?a.combo=s:e.extend(a,s),a.combo=e.map(a.combo,(function(e){return e.toLowerCase()})),i.index=new t(a.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,d=a.combo;if(n(d[u.val()],c)){if(u.val()===d.length-1)return u.reset(),r.apply(this,arguments);u.inc()}else u.reset(),n(d[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}}))}(jQuery)},529:()=>{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 r=jQuery("html, body");return r.is(":animated")&&(r.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}},951:function(e){
|
|
9
|
+
/*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */
|
|
10
|
+
e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,i){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,i)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,s,r){return(n=i()?Reflect.construct:function(e,i,n){var s=[null];s.push.apply(s,i);var r=new(Function.bind.apply(e,s));return n&&t(r,n.prototype),r}).apply(null,arguments)}function s(e){return r(e)||a(e)||o(e)||c()}function r(e){if(Array.isArray(e))return l(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function o(e,t){if(e){if("string"==typeof e)return l(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,d=Object.setPrototypeOf,h=Object.isFrozen,p=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,g=Object.freeze,m=Object.seal,v=Object.create,b="undefined"!=typeof Reflect&&Reflect,y=b.apply,w=b.construct;y||(y=function(e,t,i){return e.apply(t,i)}),g||(g=function(e){return e}),m||(m=function(e){return e}),w||(w=function(e,t){return n(e,s(t))});var _=O(Array.prototype.forEach),k=O(Array.prototype.pop),C=O(Array.prototype.push),x=O(String.prototype.toLowerCase),E=O(String.prototype.match),T=O(String.prototype.replace),D=O(String.prototype.indexOf),A=O(String.prototype.trim),S=O(RegExp.prototype.test),N=I(TypeError);function O(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return y(e,t,n)}}function I(e){return function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return w(e,i)}}function M(e,t,i){i=i||x,d&&d(e,null);for(var n=t.length;n--;){var s=t[n];if("string"==typeof s){var r=i(s);r!==s&&(h(t)||(t[n]=r),s=r)}e[s]=!0}return e}function P(e){var t,i=v(null);for(t in e)y(u,e,[t])&&(i[t]=e[t]);return i}function L(e,t){for(;null!==e;){var i=f(e,t);if(i){if(i.get)return O(i.get);if("function"==typeof i.value)return O(i.value)}e=p(e)}function n(e){return console.warn("fallback value for",e),null}return n}var R=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),B=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=g(["#text"]),U=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),V=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=m(/\{\{[\w\W]*|[\w\W]*\}\}/gm),K=m(/<%[\w\W]*|[\w\W]*%>/gm),G=m(/^data-[\-\w.\u00B7-\uFFFF]/),J=m(/^aria-[\-\w]+$/),Q=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=m(/^(?:\w+script|data):/i),Z=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=m(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ie=function(t,i){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,s="data-tt-policy-suffix";i.currentScript&&i.currentScript.hasAttribute(s)&&(n=i.currentScript.getAttribute(s));var r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function ne(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),i=function(e){return ne(e)};if(i.version="2.4.0",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;var n=t.document,r=t.document,a=t.DocumentFragment,o=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,f=t.DOMParser,m=t.trustedTypes,v=c.prototype,b=L(v,"cloneNode"),y=L(v,"nextSibling"),w=L(v,"childNodes"),O=L(v,"parentNode");if("function"==typeof o){var I=r.createElement("template");I.content&&I.content.ownerDocument&&(r=I.content.ownerDocument)}var se=ie(m,n),re=se?se.createHTML(""):"",ae=r,oe=ae.implementation,le=ae.createNodeIterator,ce=ae.createDocumentFragment,ue=ae.getElementsByTagName,de=n.importNode,he={};try{he=P(r).documentMode?r.documentMode:{}}catch(e){}var pe={};i.isSupported="function"==typeof O&&oe&&void 0!==oe.createHTMLDocument&&9!==he;var fe,ge,me=q,ve=K,be=G,ye=J,we=X,_e=Z,ke=Q,Ce=null,xe=M({},[].concat(s(R),s($),s(j),s(H),s(W))),Ee=null,Te=M({},[].concat(s(U),s(V),s(z),s(Y))),De=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,Se=null,Ne=!0,Oe=!0,Ie=!1,Me=!1,Pe=!1,Le=!1,Re=!1,$e=!1,je=!1,Fe=!1,He=!0,Be=!1,We="user-content-",Ue=!0,Ve=!1,ze={},Ye=null,qe=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ke=null,Ge=M({},["audio","video","img","source","image","track"]),Je=null,Qe=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,it=!1,nt=["application/xhtml+xml","text/html"],st="text/html",rt=null,at=r.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},lt=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=P(t),fe=fe=-1===nt.indexOf(t.PARSER_MEDIA_TYPE)?st:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===fe?function(e){return e}:x,Ce="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,ge):xe,Ee="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,ge):Te,Je="ADD_URI_SAFE_ATTR"in t?M(P(Qe),t.ADD_URI_SAFE_ATTR,ge):Qe,Ke="ADD_DATA_URI_TAGS"in t?M(P(Ge),t.ADD_DATA_URI_TAGS,ge):Ge,Ye="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,ge):qe,Ae="FORBID_TAGS"in t?M({},t.FORBID_TAGS,ge):{},Se="FORBID_ATTR"in t?M({},t.FORBID_ATTR,ge):{},ze="USE_PROFILES"in t&&t.USE_PROFILES,Ne=!1!==t.ALLOW_ARIA_ATTR,Oe=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=t.SAFE_FOR_TEMPLATES||!1,Pe=t.WHOLE_DOCUMENT||!1,$e=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,Fe=t.RETURN_TRUSTED_TYPE||!1,Re=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Be=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,Ve=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(De.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(De.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Oe=!1),je&&($e=!0),ze&&(Ce=M({},s(W)),Ee=[],!0===ze.html&&(M(Ce,R),M(Ee,U)),!0===ze.svg&&(M(Ce,$),M(Ee,V),M(Ee,Y)),!0===ze.svgFilters&&(M(Ce,j),M(Ee,V),M(Ee,Y)),!0===ze.mathMl&&(M(Ce,H),M(Ee,z),M(Ee,Y))),t.ADD_TAGS&&(Ce===xe&&(Ce=P(Ce)),M(Ce,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Ee===Te&&(Ee=P(Ee)),M(Ee,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&M(Je,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Ye===qe&&(Ye=P(Ye)),M(Ye,t.FORBID_CONTENTS,ge)),Ue&&(Ce["#text"]=!0),Pe&&M(Ce,["html","head","body"]),Ce.table&&(M(Ce,["tbody"]),delete Ae.tbody),g&&g(t),rt=t)},ct=M({},["mi","mo","mn","ms","mtext"]),ut=M({},["foreignobject","desc","title","annotation-xml"]),dt=M({},["title","style","font","a","script"]),ht=M({},$);M(ht,j),M(ht,F);var pt=M({},H);M(pt,B);var ft=function(e){var t=O(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var i=x(e.tagName),n=x(t.tagName);return e.namespaceURI===Ze?t.namespaceURI===et?"svg"===i:t.namespaceURI===Xe?"svg"===i&&("annotation-xml"===n||ct[n]):Boolean(ht[i]):e.namespaceURI===Xe?t.namespaceURI===et?"math"===i:t.namespaceURI===Ze?"math"===i&&ut[n]:Boolean(pt[i]):e.namespaceURI===et&&!(t.namespaceURI===Ze&&!ut[n])&&!(t.namespaceURI===Xe&&!ct[n])&&!pt[i]&&(dt[i]||!ht[i])},gt=function(e){C(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=re}catch(t){e.remove()}}},mt=function(e,t){try{C(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){C(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if($e||je)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,i;if(Re)e="<remove></remove>"+e;else{var n=E(e,/^[\r\n\t ]+/);i=n&&n[0]}"application/xhtml+xml"===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var s=se?se.createHTML(e):e;if(tt===et)try{t=(new f).parseFromString(s,fe)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(tt,"template",null);try{t.documentElement.innerHTML=it?"":s}catch(e){}}var a=t.body||t.documentElement;return e&&i&&a.insertBefore(r.createTextNode(i),a.childNodes[0]||null),tt===et?ue.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:a},bt=function(e){return le.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){pe[e]&&_(pe[e],(function(e){e.call(i,t,n,rt)}))},kt=function(e){var t;if(_t("beforeSanitizeElements",e,null),yt(e))return gt(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return gt(e),!0;var n=ge(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return gt(e),!0;if("select"===n&&S(/<template/i,e.innerHTML))return gt(e),!0;if(!Ce[n]||Ae[n]){if(!Ae[n]&&xt(n)){if(De.tagNameCheck instanceof RegExp&&S(De.tagNameCheck,n))return!1;if(De.tagNameCheck instanceof Function&&De.tagNameCheck(n))return!1}if(Ue&&!Ye[n]){var s=O(e)||e.parentNode,r=w(e)||e.childNodes;if(r&&s)for(var a=r.length-1;a>=0;--a)s.insertBefore(b(r[a],!0),y(e))}return gt(e),!0}return e instanceof c&&!ft(e)?(gt(e),!0):"noscript"!==n&&"noembed"!==n||!S(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=T(t,me," "),t=T(t,ve," "),e.textContent!==t&&(C(i.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(gt(e),!0)},Ct=function(e,t,i){if(He&&("id"===t||"name"===t)&&(i in r||i in at))return!1;if(Oe&&!Se[t]&&S(be,t));else if(Ne&&S(ye,t));else if(!Ee[t]||Se[t]){if(!(xt(e)&&(De.tagNameCheck instanceof RegExp&&S(De.tagNameCheck,e)||De.tagNameCheck instanceof Function&&De.tagNameCheck(e))&&(De.attributeNameCheck instanceof RegExp&&S(De.attributeNameCheck,t)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(t))||"is"===t&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&S(De.tagNameCheck,i)||De.tagNameCheck instanceof Function&&De.tagNameCheck(i))))return!1}else if(Je[t]);else if(S(ke,T(i,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==D(i,"data:")||!Ke[e])if(Ie&&!S(we,T(i,_e,"")));else if(i)return!1;return!0},xt=function(e){return e.indexOf("-")>0},Et=function(t){var n,s,r,a;_t("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};for(a=o.length;a--;){var c=n=o[a],u=c.name,d=c.namespaceURI;if(s="value"===u?n.value:A(n.value),r=ge(u),l.attrName=r,l.attrValue=s,l.keepAttr=!0,l.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,l),s=l.attrValue,!l.forceKeepAttr&&(mt(u,t),l.keepAttr))if(S(/\/>/i,s))mt(u,t);else{Me&&(s=T(s,me," "),s=T(s,ve," "));var h=ge(t.nodeName);if(Ct(h,r,s)){if(!Be||"id"!==r&&"name"!==r||(mt(u,t),s=We+s),se&&"object"===e(m)&&"function"==typeof m.getAttributeType)if(d);else switch(m.getAttributeType(h,r)){case"TrustedHTML":s=se.createHTML(s);break;case"TrustedScriptURL":s=se.createScriptURL(s)}try{d?t.setAttributeNS(d,u,s):t.setAttribute(u,s),k(i.removed)}catch(e){}}}}_t("afterSanitizeAttributes",t,null)}},Tt=function e(t){var i,n=bt(t);for(_t("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)_t("uponSanitizeShadowNode",i,null),kt(i)||(i.content instanceof a&&e(i.content),Et(i));_t("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(s){var r,o,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((it=!s)&&(s="\x3c!--\x3e"),"string"!=typeof s&&!wt(s)){if("function"!=typeof s.toString)throw N("toString is not a function");if("string"!=typeof(s=s.toString()))throw N("dirty is not a string, aborting")}if(!i.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof s)return t.toStaticHTML(s);if(wt(s))return t.toStaticHTML(s.outerHTML)}return s}if(Le||lt(h),i.removed=[],"string"==typeof s&&(Ve=!1),Ve){if(s.nodeName){var p=ge(s.nodeName);if(!Ce[p]||Ae[p])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(s instanceof l)1===(o=(r=vt("\x3c!----\x3e")).ownerDocument.importNode(s,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!$e&&!Me&&!Pe&&-1===s.indexOf("<"))return se&&Fe?se.createHTML(s):s;if(!(r=vt(s)))return $e?null:Fe?re:""}r&&Re&>(r.firstChild);for(var f=bt(Ve?s:r);c=f.nextNode();)3===c.nodeType&&c===u||kt(c)||(c.content instanceof a&&Tt(c.content),Et(c),u=c);if(u=null,Ve)return s;if($e){if(je)for(d=ce.call(r.ownerDocument);r.firstChild;)d.appendChild(r.firstChild);else d=r;return Ee.shadowroot&&(d=de.call(n,d,!0)),d}var g=Pe?r.outerHTML:r.innerHTML;return Pe&&Ce["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(ee,r.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+g),Me&&(g=T(g,me," "),g=T(g,ve," ")),se&&Fe?se.createHTML(g):g},i.setConfig=function(e){lt(e),Le=!0},i.clearConfig=function(){rt=null,Le=!1},i.isValidAttribute=function(e,t,i){rt||lt({});var n=ge(e),s=ge(t);return Ct(n,s,i)},i.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],C(pe[e],t))},i.removeHook=function(e){if(pe[e])return k(pe[e])},i.removeHooks=function(e){pe[e]&&(pe[e]=[])},i.removeAllHooks=function(){pe={}},i}return ne()}()},726:function(e,t,i){var n,s,r;
|
|
9
11
|
/*! jQuery Fancy File Input plugin - v2.0.4 - 2018-11-23
|
|
10
|
-
* Copyright (c) 2018 Atlassian Pty Ltd; Licensed Apache-2.0 */void 0===(r=this)&&void 0!==window&&(r=window),n=[i(472)],void 0===(s=function(
|
|
12
|
+
* Copyright (c) 2018 Atlassian Pty Ltd; Licensed Apache-2.0 */void 0===(r=this)&&void 0!==window&&(r=window),n=[i(472)],void 0===(s=function(e){return r.FancyFileInput=function(e){"use strict";var t=/^.*[\\\/]/,i=/\{0\}/gi,n=function(){var e=3,t=document.createElement("div"),i=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(i[0]);return e>4?e:document.documentMode}();function s(t,i){var n=e(t).data("FancyFileInput");if(n)return n;i=e.extend({},s.defaults,i),this.el=t,this.$el=e(t),this.$label=this.createLabel(i.buttonText),this._addLabelText(),this.$clearButton=e("<button>",{text:this.$label.attr("data-ffi-clearButtonText")||i.clearButtonText,class:"ffi-clear",type:"button",tabindex:"-1"}),this.multipleFileTextPattern=this.$label.attr("data-ffi-multipleFileTextPattern")||i.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"](),this.isFocused=!1}return s.defaults={buttonText:"Browse…",clearButtonText:"Clear",multipleFileTextPattern:"{0} files"},s.prototype._addLabelText=function(){var t=e('label[for="'+this.el.id+'"]');t.length&&this.$el.attr("aria-label",t.text())},s.prototype.createLabel=function(t){var i=this.$el.parent(".ffi[data-ffi-button-text]");return i.length||(i=this.$el.wrap(e("<label>",{class:"ffi","data-ffi-button-text":t})).parent()),i},s.prototype.isDisabled=function(){return this.$el.is(":disabled")},s.prototype.formatMultipleFileText=function(e){return this.multipleFileTextPattern.replace(i,e)},s.prototype.bindEvents=function(){this.$el.on("invalid"+this._eventNamespace,e.proxy(this.checkValidity,this)).on("change"+this._eventNamespace,e.proxy(this.change,this)).on("keydown"+this._eventNamespace,e.proxy(this.keydown,this)).on("mousedown"+this._eventNamespace,e.proxy(this.mousedown,this)).on("mouseup"+this._eventNamespace,e.proxy(this.mouseup,this)).on("focus"+this._eventNamespace,e.proxy(this.focus,this)).on("blur"+this._eventNamespace,e.proxy(this.blur,this)),this.$clearButton.on("click"+this._eventNamespace,e.proxy(this.clear,this))},s.prototype.unbindEvents=function(){this.$el.off(this._eventNamespace),this.$clearButton.off(this._eventNamespace)},s.prototype.fireEvent=function(e){this.$el.trigger(e+this._eventNamespace)},s.prototype.enable=function(){this.bindEvents(),this.$el.prop("disabled",!1),this.$label.removeClass(this.CLASSES.disabled)},s.prototype.disable=function(){this.unbindEvents(),this.$el.prop("disabled",!0),this.$label.addClass(this.CLASSES.disabled)},s.prototype.clear=function(){return this.$el.wrap("<form>").closest("form").get(0).reset(),this.$el.unwrap(),this.el.value="",this.change(),!1},s.prototype.focus=function(){var e=this;this.$label.addClass(this.CLASSES.focused),n&&!this.isFocused&&(this.isFocused=!0,setTimeout((function(){e.$el.blur(),e.$el.focus()}),0))},s.prototype.blur=function(){n&&this.isFocused||(this.$label.removeClass(this.CLASSES.focused),this.isFocused=!1)},s.prototype.mousedown=function(){this.$label.addClass(this.CLASSES.active)},s.prototype.mouseup=function(){this.$label.removeClass(this.CLASSES.active)},s.prototype.keydown=function(e){var t=e.which,i=9;if(8!==t&&46!==t||(this.clear(),e.preventDefault()),n&&t===i){var s=this;this.isFocused=!1,this.$el.prop("disabled",!0),setTimeout((function(){s.$el.prop("disabled",!1).blur()}),0)}},s.prototype.checkValidity=function(){if(this.el.required){var e=this.$el.is(":invalid");this.$label.toggleClass(this.CLASSES.invalid,e).toggleClass(this.CLASSES.valid,!e)}},s.prototype.change=function(){var e,i="";this.checkValidity(),(e=this.el.multiple&&this.el.files.length>1?this.formatMultipleFileText(this.el.files.length):this.el.value).length?(i=e.replace(t,""),this.$clearButton.appendTo(this.$label)):this.$clearButton.detach(),this.$el.focus(),this.setFieldText(i),this.fireEvent("value-changed")},s.prototype.setFieldText=function(e){var t="data-ffi-value";e.length?(this.$label.attr(t,e),this.fireEvent("value-added")):(this.$label.removeAttr(t),this.fireEvent("value-cleared"))},e.fn.fancyFileInput=function(t){return this.each((function(){var i=new s(this,t);e(this).data("FancyFileInput",i)}))},s}(e)}.apply(t,n))||(e.exports=s)},251:(e,t,i)=>{var n,s;!function(){"use strict";void 0===(s="function"==typeof(n=["jquery","./data","./disable-selection","./focusable","./form","./ie","./keycode","./labels","./jquery-patch.js","./plugin","./safe-active-element","./safe-blur","./scroll-parent","./tabbable","./unique-id","./version"])?n.call(t,i,t,e):n)||(e.exports=s)}()},736:(e,t,i)=>{var n,s,r;
|
|
11
13
|
/*!
|
|
12
14
|
* jQuery UI :data 1.13.0
|
|
13
15
|
* http://jqueryui.com
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
* Copyright jQuery Foundation and other contributors
|
|
16
18
|
* Released under the MIT license.
|
|
17
19
|
* http://jquery.org/license
|
|
18
|
-
*/!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(
|
|
20
|
+
*/!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(e){return e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(i){return!!e.data(i,t)}})):function(t,i,n){return!!e.data(t,n[3])}})})?n.apply(t,s):n)||(e.exports=r)}()},808:(e,t,i)=>{var n,s,r;!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?n.apply(t,s):n)||(e.exports=r)}()},506:(e,t,i)=>{var n,s,r;
|
|
19
21
|
/*!
|
|
20
22
|
* jQuery UI Keycode 1.13.0
|
|
21
23
|
* http://jqueryui.com
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
* Copyright jQuery Foundation and other contributors
|
|
24
26
|
* Released under the MIT license.
|
|
25
27
|
* http://jquery.org/license
|
|
26
|
-
*/!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(
|
|
28
|
+
*/!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=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}})?n.apply(t,s):n)||(e.exports=r)}()},111:(e,t,i)=>{var n,s,r;!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(e){return e.ui.plugin={add:function(t,i,n){var s,r=e.ui[t].prototype;for(s in n)r.plugins[s]=r.plugins[s]||[],r.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,r=e.plugins[t];if(r&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<r.length;s++)e.options[r[s][0]]&&r[s][1].apply(e.element,i)}}})?n.apply(t,s):n)||(e.exports=r)}()},783:(e,t,i)=>{var n,s,r;!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(e){return e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(i){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t}})?n.apply(t,s):n)||(e.exports=r)}()},692:(e,t,i)=>{var n,s,r;!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(e){return e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")}})?n.apply(t,s):n)||(e.exports=r)}()},534:(e,t,i)=>{var n,s,r;
|
|
27
29
|
/*!
|
|
28
30
|
* jQuery UI Scroll Parent 1.13.0
|
|
29
31
|
* http://jqueryui.com
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
* Copyright jQuery Foundation and other contributors
|
|
32
34
|
* Released under the MIT license.
|
|
33
35
|
* http://jquery.org/license
|
|
34
|
-
*/!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(
|
|
36
|
+
*/!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(e){return e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=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&&r.length?r:e(this[0].ownerDocument||document)}})?n.apply(t,s):n)||(e.exports=r)}()},21:(e,t,i)=>{var n,s,r;!function(a){"use strict";s=[i(472)],void 0===(r="function"==typeof(n=function(e){return e.ui=e.ui||{},e.ui.version="1.13.0"})?n.apply(t,s):n)||(e.exports=r)}()},993:(e,t,i)=>{var n,s,r;
|
|
35
37
|
/*!
|
|
36
38
|
* jQuery UI Widget 1.13.0
|
|
37
39
|
* http://jqueryui.com
|
|
@@ -39,7 +41,7 @@
|
|
|
39
41
|
* Copyright jQuery Foundation and other contributors
|
|
40
42
|
* Released under the MIT license.
|
|
41
43
|
* http://jquery.org/license
|
|
42
|
-
*/!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(
|
|
44
|
+
*/!function(a){"use strict";s=[i(472),i(21)],void 0===(r="function"==typeof(n=function(e){var t=0,i=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return e.cleanData=function(t){return function(i){var n,s,r;for(r=0;null!=(s=i[r]);r++)(n=e._data(s,"events"))&&n.remove&&e(s).triggerHandler("remove");t(i)}}(e.cleanData),e.widget=function(t,i,n){var s,r,a,o={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);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],r=e[l][t]=function(e,t){if(!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},e.extend(r,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(a=new i).options=e.widget.extend({},a.options),e.each(n,(function(e,t){o[e]="function"==typeof t?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,r=this._superApply;return this._super=n,this._superApply=s,e=t.apply(this,arguments),this._super=i,this._superApply=r,e}}():t})),r.prototype=e.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||t},o,{constructor:r,namespace:l,widgetName:t,widgetFullName:c}),s?(e.each(s._childConstructors,(function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,r,i._proto)})),delete s._childConstructors):i._childConstructors.push(r),e.widget.bridge(t,r),r},e.widget.extend=function(t){for(var s,r,a=n.call(arguments,1),o=0,l=a.length;o<l;o++)for(s in a[o])r=a[o][s],i.call(a[o],s)&&void 0!==r&&(e.isPlainObject(r)?t[s]=e.isPlainObject(t[s])?e.widget.extend({},t[s],r):e.widget.extend({},r):t[s]=r);return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName||t;e.fn[t]=function(r){var a="string"==typeof r,o=n.call(arguments,1),l=this;return a?this.length||"instance"!==r?this.each((function(){var i,n=e.data(this,s);return"instance"===r?(l=n,!1):n?"function"!=typeof n[r]||"_"===r.charAt(0)?e.error("no such method '"+r+"' for "+t+" widget instance"):(i=n[r].apply(n,o))!==n&&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 '"+r+"'")})):l=void 0:(o.length&&(r=e.widget.extend.apply(null,[r].concat(o))),this.each((function(){var t=e.data(this,s);t?(t.option(r||{}),t._init&&t._init()):e.data(this,s,new i(r,this))}))),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=t++,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(),i),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,r,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},n=t.split("."),t=n.shift(),n.length){for(s=a[t]=e.widget.extend({},this.options[t]),r=0;r<n.length-1;r++)s[n[r]]=s[n[r]]||{},s=s[n[r]];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];a[t]=i}return this._setOptions(a),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(){t.element.each((function(t,i){e.map(n.classesElementLookup,(function(e){return e})).some((function(e){return e.is(i)}))||n._on(e(i),{remove:"_untrackClassesElement"})}))}function r(r,a){var o,l;for(l=0;l<r.length;l++)o=n.classesElementLookup[r[l]]||e(),t.add?(s(),o=e(e.uniqueSort(o.get().concat(t.element.get())))):o=e(o.not(t.element).get()),n.classesElementLookup[r[l]]=o,i.push(r[l]),a&&t.classes[r[l]]&&i.push(t.classes[r[l]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&r(t.keys.match(/\S+/g)||[],!0),t.extra&&r(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,r={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return r.element.toggleClass(this._classes(r),n),this},_on:function(t,i,n){var s,r=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,a){function o(){if(t||!0!==r.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?r[a]:a).apply(r,arguments)}"string"!=typeof a&&(o.guid=a.guid=a.guid||o.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+r.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){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,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,r,a=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],r=i.originalEvent)for(s in r)s in i||(i[s]=r[s]);return this.element.trigger(i,n),!("function"==typeof a&&!1===a.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,r){var a;"string"==typeof s&&(s={effect:s});var o=s?!0===s||"number"==typeof s?i:s.effect||i:t;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),a=!e.isEmptyObject(s),s.complete=r,s.delay&&n.delay(s.delay),a&&e.effects&&e.effects.effect[o]?n[t](s):o!==t&&n[o]?n[o](s.duration,s.easing,r):n.queue((function(i){e(this)[t](),r&&r.call(n[0]),i()}))}})),e.widget})?n.apply(t,s):n)||(e.exports=r)}()},207:(e,t,i)=>{var n,s,r;
|
|
43
45
|
/*!
|
|
44
46
|
* jQuery UI Datepicker 1.13.0
|
|
45
47
|
* http://jqueryui.com
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
* Copyright jQuery Foundation and other contributors
|
|
48
50
|
* Released under the MIT license.
|
|
49
51
|
* http://jquery.org/license
|
|
50
|
-
*/!function(a){"use strict";s=[i(472),i(21),i(506)],void 0===(r="function"==typeof(n=function(t){var e;function i(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function n(){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},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,r)}function r(){t.datepicker._isDisabledDatepicker(e.inline?e.dpDiv.parent()[0]:e.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}return t.extend(t.ui,{datepicker:{version:"1.13.0"}}),t.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s,r;s="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(r=this._newInst(t(e),s)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,r):s&&this._inlineDatepicker(e,r)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),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),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s,r,a=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span>").addClass(this._appendClass).text(a),e[o?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),r=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=t("<img>").addClass(this._triggerClass).attr({src:r,alt:s,title:s}):(i.trigger=t("<button type='button'>").addClass(this._triggerClass),r?i.trigger.html(t("<img>").attr({src:r,alt:s,title:s})):i.trigger.text(s)),e[o?"before":"after"](i.trigger),i.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,s,r=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,n=0,s=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},r.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),t.input.attr("size",this._formatDate(t,r).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,r){var o,l,c,u,d,h=this._dialogInst;return h||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",h)),a(h.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(h,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,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(i){var n,s=t(i),r=t.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),t.removeData(i,"datepicker"),"input"===n?(r.append.remove(),r.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===r&&(e=null,this._curInst=null))},_enableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,r.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=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,r.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=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var s,r,o,l,c=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):c?"all"===i?t.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(e,!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(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,s,r=t.datepicker._getInst(e.target),a=!0,o=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return(s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",r.dpDiv))[0]&&t.datepicker._selectDay(e.target,r.selectedMonth,r.selectedYear,s[0]),(i=t.datepicker._get(r,"onSelect"))?(n=t.datepicker._formatDate(r),i.apply(r.input?r.input[0]:null,[n,r])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(r,"stepBigMonths"):-t.datepicker._get(r,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(r,"stepBigMonths"):+t.datepicker._get(r,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(r,"stepBigMonths"):-t.datepicker._get(r,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(r,"stepBigMonths"):+t.datepicker._get(r,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,s=t.datepicker._getInst(e.target);if(t.datepicker._get(s,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var n,s,r,o,l,c,u;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(r=(s=t.datepicker._get(n,"beforeShow"))?s.apply(e,[e,n]):{})&&(a(n.settings,r),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each((function(){return!(o|="fixed"===t(this).css("position"))})),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),l=t.datepicker._checkOffset(n,l,o),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(c=t.datepicker._get(n,"showAnim"),u=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?n.dpDiv.show(c,t.datepicker._get(n,"showOptions"),u):n.dpDiv[c||"show"](c?u:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n)))},_updateDatepicker:function(i){this.maxRows=4,e=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,s=this._getNumberOfMonths(i),a=s[1],o=17,l=i.dpDiv.find("."+this._dayOverClass+" a"),c=t.datepicker._get(i,"onUpdateDatepicker");l.length>0&&r.apply(l.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&i.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",o*a+"em"),i.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.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)),c&&c.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var s=e.dpDiv.outerWidth(),r=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-a:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+o?t(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+r>c&&c>r?Math.abs(r+o):0),i},_findPos:function(e){for(var i,n=this._getInst(e),s=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,s,r,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),s=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,s):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(r=this._get(a,"onClose"))&&r.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var s=t(e),r=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(r,i,n),this._updateDatepicker(r))},_gotoToday:function(e){var i,n=t(e),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):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var s=t(e),r=this._getInst(s[0]);r["selected"+("M"===n?"Month":"Year")]=r["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(s)},_selectDay:function(e,i,n,s){var r,a=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((r=this._getInst(a[0])).selectedDay=r.currentDay=parseInt(t("a",s).attr("data-date")),r.selectedMonth=r.currentMonth=i,r.selectedYear=r.currentYear=n,this._selectDate(e,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,s=t(e),r=this._getInst(s[0]);i=null!=i?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),(n=this._get(r,"onSelect"))?n.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,s,r=this._get(e,"altField");r&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),s=this.formatDate(i,n,this._getFormatConfig(e)),t(document).find(r).val(s))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,r,a,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,h=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,b=-1,y=!1,w=function(t){var i=s+1<e.length&&e.charAt(s+1)===t;return i&&s++,i},_=function(t){var e=w(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s=new RegExp("^\\d{"+("y"===t?n:1)+","+n+"}"),r=i.substring(l).match(s);if(!r)throw"Missing number at position "+l;return l+=r[0].length,parseInt(r[0],10)},C=function(e,n,s){var r=-1,a=t.map(w(e)?s:n,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(a,(function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return r=e[0],l+=n.length,!1})),-1!==r)return r+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<e.length;s++)if(y)"'"!==e.charAt(s)||w("'")?k():y=!1;else switch(e.charAt(s)){case"d":v=_("d");break;case"D":C("D",d,h);break;case"o":b=_("o");break;case"m":m=_("m");break;case"M":m=C("M",p,f);break;case"y":g=_("y");break;case"@":g=(o=new Date(_("@"))).getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"!":g=(o=new Date((_("!")-this._ticksTo1970)/1e4)).getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"'":w("'")?k():y=!0;break;default:k()}if(l<i.length&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=u?0:-100)),b>-1)for(m=1,v=b;;){if(v<=(r=this._getDaysInMonth(g,m-1)))break;m++,v-=r}if((o=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||o.getMonth()+1!==m||o.getDate()!==v)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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},u=function(t,e,i,n){return l(t)?n[e]:i[e]},d="",h=!1;if(e)for(n=0;n<t.length;n++)if(h)"'"!==t.charAt(n)||l("'")?d+=t.charAt(n):h=!1;else switch(t.charAt(n)){case"d":d+=c("d",e.getDate(),2);break;case"D":d+=u("D",e.getDay(),s,r);break;case"o":d+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",e.getMonth()+1,2);break;case"M":d+=u("M",e.getMonth(),a,o);break;case"y":d+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=t.charAt(n)}return d},_possibleChars:function(t){var e,i="",n=!1,s=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||s("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),r=s,a=this._getFormatConfig(t);try{r=this.parseDate(i,n,a)||s}catch(t){n=e?"":n}t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),t.currentDay=n?r.getDate():0,t.currentMonth=n?r.getMonth():0,t.currentYear=n?r.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var s=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},r=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=n.getFullYear(),r=n.getMonth(),a=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":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":r+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,r));break;case"y":case"Y":s+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,r))}l=o.exec(i)}return new Date(s,r,a)},a=null==i||""===i?n:"string"==typeof i?r(i):"number"==typeof i?isNaN(i)?n:s(i):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(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,r=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),s===t.selectedMonth&&r===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var i,n,s,r,a,o,l,c,u,d,h,p,f,g,m,v,b,y,w,_,C,k,x,E,D,T,A,S,O,I,N,P,M,L,R,$,j,F,H,W=new Date,B=this._daylightSavingAdjust(new Date(W.getFullYear(),W.getMonth(),W.getDate())),V=this._get(e,"isRTL"),U=this._get(e,"showButtonPanel"),z=this._get(e,"hideIfNoPrevNext"),Y=this._get(e,"navigationAsDateFormat"),q=this._getNumberOfMonths(e),K=this._get(e,"showCurrentAtPos"),J=this._get(e,"stepMonths"),G=1!==q[0]||1!==q[1],Q=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),Z=this._getMinMaxDate(e,"max"),tt=e.drawMonth-K,et=e.drawYear;if(tt<0&&(tt+=12,et--),Z)for(i=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-q[0]*q[1]+1,Z.getDate())),i=X&&i<X?X:i;this._daylightSavingAdjust(new Date(et,tt,1))>i;)--tt<0&&(tt=11,et--);for(e.drawMonth=tt,e.drawYear=et,n=this._get(e,"prevText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(et,tt-J,1)),this._getFormatConfig(e)):n,s=this._canAdjustMonth(e,-1,et,tt)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(V?"e":"w")).text(n))[0].outerHTML:z?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(V?"e":"w")).text(n))[0].outerHTML,r=this._get(e,"nextText"),r=Y?this.formatDate(r,this._daylightSavingAdjust(new Date(et,tt+J,1)),this._getFormatConfig(e)):r,a=this._canAdjustMonth(e,1,et,tt)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:r}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(V?"w":"e")).text(r))[0].outerHTML:z?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:r}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(V?"w":"e")).text(r))[0].outerHTML,o=this._get(e,"currentText"),l=this._get(e,"gotoCurrent")&&e.currentDay?Q:B,o=Y?this.formatDate(o,l,this._getFormatConfig(e)):o,c="",e.inline||(c=t("<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(e,"closeText"))[0].outerHTML),u="",U&&(u=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(V?c:"").append(this._isInRange(e,l)?t("<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(V?"":c)[0].outerHTML),d=parseInt(this._get(e,"firstDay"),10),d=isNaN(d)?0:d,h=this._get(e,"showWeek"),p=this._get(e,"dayNames"),f=this._get(e,"dayNamesMin"),g=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),b=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),w=this._getDefaultDate(e),_="",k=0;k<q[0];k++){for(x="",this.maxRows=4,E=0;E<q[1];E++){if(D=this._daylightSavingAdjust(new Date(et,tt,e.selectedDay)),T=" ui-corner-all",A="",G){if(A+="<div class='ui-datepicker-group",q[1]>1)switch(E){case 0:A+=" ui-datepicker-group-first",T=" ui-corner-"+(V?"right":"left");break;case q[1]-1:A+=" ui-datepicker-group-last",T=" ui-corner-"+(V?"left":"right");break;default:A+=" ui-datepicker-group-middle",T=""}A+="'>"}for(A+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===k?V?a:s:"")+(/all|right/.test(T)&&0===k?V?s:a:"")+this._generateMonthYearHeader(e,tt,et,X,Z,k>0||E>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=h?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",C=0;C<7;C++)S+="<th scope='col'"+((C+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[O=(C+d)%7]+"'>"+f[O]+"</span></th>";for(A+=S+"</tr></thead><tbody>",I=this._getDaysInMonth(et,tt),et===e.selectedYear&&tt===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,I)),N=(this._getFirstDayOfMonth(et,tt)-d+7)%7,P=Math.ceil((N+I)/7),M=G&&this.maxRows>P?this.maxRows:P,this.maxRows=M,L=this._daylightSavingAdjust(new Date(et,tt,1-N)),R=0;R<M;R++){for(A+="<tr>",$=h?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(L)+"</td>":"",C=0;C<7;C++)j=v?v.apply(e.input?e.input[0]:null,[L]):[!0,""],H=(F=L.getMonth()!==tt)&&!y||!j[0]||X&&L<X||Z&&L>Z,$+="<td class='"+((C+d+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(L.getTime()===D.getTime()&&tt===e.selectedMonth&&e._keyEvent||w.getTime()===L.getTime()&&w.getTime()===D.getTime()?" "+this._dayOverClass:"")+(H?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!b?"":" "+j[1]+(L.getTime()===Q.getTime()?" "+this._currentClass:"")+(L.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&&!b||!j[2]?"":" title='"+j[2].replace(/'/g,"'")+"'")+(H?"":" data-handler='selectDay' data-event='click' data-month='"+L.getMonth()+"' data-year='"+L.getFullYear()+"'")+">"+(F&&!b?" ":H?"<span class='ui-state-default'>"+L.getDate()+"</span>":"<a class='ui-state-default"+(L.getTime()===B.getTime()?" ui-state-highlight":"")+(L.getTime()===Q.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#' aria-current='"+(L.getTime()===Q.getTime()?"true":"false")+"' data-date='"+L.getDate()+"'>"+L.getDate()+"</a>")+"</td>",L.setDate(L.getDate()+1),L=this._daylightSavingAdjust(L);A+=$+"</tr>"}++tt>11&&(tt=0,et++),x+=A+="</tbody></table>"+(G?"</div>"+(q[0]>0&&E===q[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=x}return _+=u,e._keyEvent=!1,_},_generateMonthYearHeader:function(t,e,i,n,s,r,a,o){var l,c,u,d,h,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),y=this._get(t,"selectMonthLabel"),w=this._get(t,"selectYearLabel"),_="<div class='ui-datepicker-title'>",C="";if(r||!m)C+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,C+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(C+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+o[u]+"</option>");C+="</select>"}if(b||(_+=C+(!r&&m&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",r||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),f=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e})(d[0]),g=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+w+"' data-handler='selectYear' data-event='change'>";f<=g;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),b&&(_+=(!r&&m&&v?"":" ")+C),_+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),r=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,r)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&e<i?i:e;return n&&s>n?n:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),r=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(t,r)},_isInRange:function(t,e){var i,n,s=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),a=null,o=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||e.getTime()>=s.getTime())&&(!r||e.getTime()<=r.getTime())&&(!a||e.getFullYear()>=a)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new n,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.13.0",t.datepicker})?n.apply(e,s):n)||(t.exports=r)}()},757:(t,e,i)=>{var n,s,r;
|
|
52
|
+
*/!function(a){"use strict";s=[i(472),i(21),i(506)],void 0===(r="function"==typeof(n=function(e){var t;function i(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}function n(){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=s(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(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,r)}function r(){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.13.0"}}),e.extend(n.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,r;s="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(r=this._newInst(e(t),s)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,r):s&&this._inlineDatepicker(t,r)},_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?s(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,r,a=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=e("<span>").addClass(this._appendClass).text(a),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"),r=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:r,alt:s,title:s}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),r?i.trigger.html(e("<img>").attr({src:r,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])):e.datepicker._showDatepicker(t[0]),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,r=new Date(2009,11,20),a=this._get(e,"dateFormat");a.match(/[DM]/)&&(t=function(e){for(i=0,n=0,s=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},r.setMonth(t(this._get(e,a.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).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,d,h=this._dialogInst;return h||(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),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",h)),a(h.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(h,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,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.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",h),this},_destroyDatepicker:function(i){var n,s=e(i),r=e.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),e.removeData(i,"datepicker"),"input"===n?(r.append.remove(),r.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(),t===r&&(t=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,s=e(t),r=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,r.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),r=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,r.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,r=e.datepicker._getInst(t.target),a=!0,o=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),a=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",r.dpDiv))[0]&&e.datepicker._selectDay(t.target,r.selectedMonth,r.selectedYear,s[0]),(i=e.datepicker._get(r,"onSelect"))?(n=e.datepicker._formatDate(r),i.apply(r.input?r.input[0]:null,[n,r])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(r,"stepBigMonths"):-e.datepicker._get(r,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(r,"stepBigMonths"):+e.datepicker._get(r,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),a=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),a=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(r,"stepBigMonths"):-e.datepicker._get(r,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),a=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(r,"stepBigMonths"):+e.datepicker._get(r,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),a=t.ctrlKey||t.metaKey;break;default:a=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):a=!1;a&&(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 n,s,r,o,l,c,u;("input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)||(n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(r=(s=e.datepicker._get(n,"beforeShow"))?s.apply(t,[t,n]):{})&&(a(n.settings,r),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),o=!1,e(t).parents().each((function(){return!(o|="fixed"===e(this).css("position"))})),l={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),l=e.datepicker._checkOffset(n,l,o),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(c=e.datepicker._get(n,"showAnim"),u=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[c]?n.dpDiv.show(c,e.datepicker._get(n,"showOptions"),u):n.dpDiv[c||"show"](c?u:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(i){this.maxRows=4,t=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,s=this._getNumberOfMonths(i),a=s[1],o=17,l=i.dpDiv.find("."+this._dayOverClass+" a"),c=e.datepicker._get(i,"onUpdateDatepicker");l.length>0&&r.apply(l.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&i.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",o*a+"em"),i.dpDiv[(1!==s[0]||1!==s[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)),c&&c.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),r=t.dpDiv.outerHeight(),a=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-a: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+r>c&&c>r?Math.abs(r+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,r,a=this._curInst;!a||t&&a!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),s=function(){e.datepicker._tidyDialog(a)},e.effects&&(e.effects.effect[i]||e.effects[i])?a.dpDiv.hide(i,e.datepicker._get(a,"showOptions"),n,s):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(r=this._get(a,"onClose"))&&r.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),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),r=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(r,i,n),this._updateDatepicker(r))},_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):(i=new Date,s.selectedDay=i.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),r=this._getInst(s[0]);r["selected"+("M"===n?"Month":"Year")]=r["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(s)},_selectDay:function(t,i,n,s){var r,a=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((r=this._getInst(a[0])).selectedDay=r.currentDay=parseInt(e("a",s).attr("data-date")),r.selectedMonth=r.currentMonth=i,r.selectedYear=r.currentYear=n,this._selectDate(t,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),r=this._getInst(s[0]);i=null!=i?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),(n=this._get(r,"onSelect"))?n.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,r=this._get(t,"altField");r&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(r).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,r,a,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,h=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,b=-1,y=!1,w=function(e){var i=s+1<t.length&&t.charAt(s+1)===e;return i&&s++,i},_=function(e){var t=w(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=new RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),r=i.substring(l).match(s);if(!r)throw"Missing number at position "+l;return l+=r[0].length,parseInt(r[0],10)},k=function(t,n,s){var r=-1,a=e.map(w(t)?s:n,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(a,(function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return r=t[0],l+=n.length,!1})),-1!==r)return r+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==t.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<t.length;s++)if(y)"'"!==t.charAt(s)||w("'")?C():y=!1;else switch(t.charAt(s)){case"d":v=_("d");break;case"D":k("D",d,h);break;case"o":b=_("o");break;case"m":m=_("m");break;case"M":m=k("M",p,f);break;case"y":g=_("y");break;case"@":g=(o=new Date(_("@"))).getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"!":g=(o=new Date((_("!")-this._ticksTo1970)/1e4)).getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"'":w("'")?C():y=!0;break;default:C()}if(l<i.length&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=u?0:-100)),b>-1)for(m=1,v=b;;){if(v<=(r=this._getDaysInMonth(g,m-1)))break;m++,v-=r}if((o=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||o.getMonth()+1!==m||o.getDate()!==v)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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,a=(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]},d="",h=!1;if(t)for(n=0;n<e.length;n++)if(h)"'"!==e.charAt(n)||l("'")?d+=e.charAt(n):h=!1;else switch(e.charAt(n)){case"d":d+=c("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),s,r);break;case"o":d+=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":d+=c("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),a,o);break;case"y":d+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=e.charAt(n)}return d},_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),r=s,a=this._getFormatConfig(e);try{r=this.parseDate(i,n,a)||s}catch(e){n=t?"":n}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=n?r.getDate():0,e.currentMonth=n?r.getMonth():0,e.currentYear=n?r.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=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},r=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(),r=n.getMonth(),a=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":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":r+=parseInt(l[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(s,r));break;case"y":case"Y":s+=parseInt(l[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(s,r))}l=o.exec(i)}return new Date(s,r,a)},a=null==i||""===i?n:"string"==typeof i?r(i):"number"==typeof i?isNaN(i)?n:s(i):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,r=e.selectedYear,a=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=a.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=a.getMonth(),e.drawYear=e.selectedYear=e.currentYear=a.getFullYear(),s===e.selectedMonth&&r===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(){var t={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}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var i,n,s,r,a,o,l,c,u,d,h,p,f,g,m,v,b,y,w,_,k,C,x,E,T,D,A,S,N,O,I,M,P,L,R,$,j,F,H,B=new Date,W=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth(),B.getDate())),U=this._get(t,"isRTL"),V=this._get(t,"showButtonPanel"),z=this._get(t,"hideIfNoPrevNext"),Y=this._get(t,"navigationAsDateFormat"),q=this._getNumberOfMonths(t),K=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),J=1!==q[0]||1!==q[1],Q=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),ee=t.drawMonth-K,te=t.drawYear;if(ee<0&&(ee+=12,te--),Z)for(i=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-q[0]*q[1]+1,Z.getDate())),i=X&&i<X?X:i;this._daylightSavingAdjust(new Date(te,ee,1))>i;)--ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,n=this._get(t,"prevText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(te,ee-G,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,-1,te,ee)?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-"+(U?"e":"w")).text(n))[0].outerHTML:z?"":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-"+(U?"e":"w")).text(n))[0].outerHTML,r=this._get(t,"nextText"),r=Y?this.formatDate(r,this._daylightSavingAdjust(new Date(te,ee+G,1)),this._getFormatConfig(t)):r,a=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:r}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(r))[0].outerHTML:z?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:r}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(r))[0].outerHTML,o=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Q:W,o=Y?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(U?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(U?"":c)[0].outerHTML),d=parseInt(this._get(t,"firstDay"),10),d=isNaN(d)?0:d,h=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),g=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),b=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),w=this._getDefaultDate(t),_="",C=0;C<q[0];C++){for(x="",this.maxRows=4,E=0;E<q[1];E++){if(T=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),D=" ui-corner-all",A="",J){if(A+="<div class='ui-datepicker-group",q[1]>1)switch(E){case 0:A+=" ui-datepicker-group-first",D=" ui-corner-"+(U?"right":"left");break;case q[1]-1:A+=" ui-datepicker-group-last",D=" ui-corner-"+(U?"left":"right");break;default:A+=" ui-datepicker-group-middle",D=""}A+="'>"}for(A+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&0===C?U?a:s:"")+(/all|right/.test(D)&&0===C?U?s:a:"")+this._generateMonthYearHeader(t,ee,te,X,Z,C>0||E>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",k=0;k<7;k++)S+="<th scope='col'"+((k+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[N=(k+d)%7]+"'>"+f[N]+"</span></th>";for(A+=S+"</tr></thead><tbody>",O=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,O)),I=(this._getFirstDayOfMonth(te,ee)-d+7)%7,M=Math.ceil((I+O)/7),P=J&&this.maxRows>M?this.maxRows:M,this.maxRows=P,L=this._daylightSavingAdjust(new Date(te,ee,1-I)),R=0;R<P;R++){for(A+="<tr>",$=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(L)+"</td>":"",k=0;k<7;k++)j=v?v.apply(t.input?t.input[0]:null,[L]):[!0,""],H=(F=L.getMonth()!==ee)&&!y||!j[0]||X&&L<X||Z&&L>Z,$+="<td class='"+((k+d+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(L.getTime()===T.getTime()&&ee===t.selectedMonth&&t._keyEvent||w.getTime()===L.getTime()&&w.getTime()===T.getTime()?" "+this._dayOverClass:"")+(H?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!b?"":" "+j[1]+(L.getTime()===Q.getTime()?" "+this._currentClass:"")+(L.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(F&&!b||!j[2]?"":" title='"+j[2].replace(/'/g,"'")+"'")+(H?"":" data-handler='selectDay' data-event='click' data-month='"+L.getMonth()+"' data-year='"+L.getFullYear()+"'")+">"+(F&&!b?" ":H?"<span class='ui-state-default'>"+L.getDate()+"</span>":"<a class='ui-state-default"+(L.getTime()===W.getTime()?" ui-state-highlight":"")+(L.getTime()===Q.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#' aria-current='"+(L.getTime()===Q.getTime()?"true":"false")+"' data-date='"+L.getDate()+"'>"+L.getDate()+"</a>")+"</td>",L.setDate(L.getDate()+1),L=this._daylightSavingAdjust(L);A+=$+"</tr>"}++ee>11&&(ee=0,te++),x+=A+="</tbody></table>"+(J?"</div>"+(q[0]>0&&E===q[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=x}return _+=u,t._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,n,s,r,a,o){var l,c,u,d,h,p,f,g,m=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),b=this._get(e,"showMonthAfterYear"),y=this._get(e,"selectMonthLabel"),w=this._get(e,"selectYearLabel"),_="<div class='ui-datepicker-title'>",k="";if(r||!m)k+="<span class='ui-datepicker-month'>"+a[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,k+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(k+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>");k+="</select>"}if(b||(_+=k+(!r&&m&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",r||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),f=(p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t})(d[0]),g=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+w+"' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",_+=e.yearshtml,e.yearshtml=null}return _+=this._get(e,"yearSuffix"),b&&(_+=(!r&&m&&v?"":" ")+k),_+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),r=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,r)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.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),r=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(e,r)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),a=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!r||t.getTime()<=r.getTime())&&(!a||t.getFullYear()>=a)&&(!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["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.0",e.datepicker})?n.apply(t,s):n)||(e.exports=r)}()},757:(e,t,i)=>{var n,s,r;
|
|
51
53
|
/*!
|
|
52
54
|
* jQuery UI Draggable 1.13.0
|
|
53
55
|
* http://jqueryui.com
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
* Copyright jQuery Foundation and other contributors
|
|
56
58
|
* Released under the MIT license.
|
|
57
59
|
* http://jquery.org/license
|
|
58
|
-
*/!function(a){"use strict";s=[i(472),i(927),i(736),i(111),i(783),i(692),i(534),i(21),i(993)],void 0===(r="function"==typeof(n=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.13.0",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(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){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:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),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)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.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(e){var i=this.options,n="function"==typeof i.helper,s=n?t(i.helper.apply(this.element[0],[e])):"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(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?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 e,i,n,s=this.options,r=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=t(s.containment))[0])&&(e=/(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),(e?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,(e?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)):this.containment=s.containment:this.containment=[0,0,t(r).width()-this.helperProportions.width-this.margins.left,(t(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.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:e.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(t,e){var i,n,s,r,a=this.options,o=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(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,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),a.grid&&(s=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.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-a.grid[1]:s+a.grid[1]:s,r=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-a.grid[0]:r+a.grid[0]:r),"y"===a.axis&&(l=this.originalPageX),"x"===a.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(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var s=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))}))},stop:function(e,i,n){var s=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,(function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))}))},drag:function(e,i,n){t.each(n.sortables,(function(){var s=!1,r=this;r.positionAbs=n.positionAbs,r.helperProportions=n.helperProportions,r.offset.click=n.offset.click,r._intersectsWith(r.containerCache)&&(s=!0,t.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&t.contains(r.element[0],this.element[0])&&(s=!1),s}))),s?(r.isOver||(r.isOver=1,n._parent=i.helper.parent(),r.currentItem=i.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return i.helper[0]},e.target=r.currentItem[0],r._mouseCapture(e,!0),r._mouseStart(e,!0,!0),r.offset.click.top=n.offset.click.top,r.offset.click.left=n.offset.click.left,r.offset.parent.left-=n.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=n.offset.parent.top-r.offset.parent.top,n._trigger("toSortable",e),n.dropped=r.element,t.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,r.fromOutside=n),r.currentItem&&(r._mouseDrag(e),i.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",e,r._uiHash(r)),r._mouseStop(e,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var s=t("body"),r=n.options;s.css("cursor")&&(r._cursor=s.css("cursor")),s.css("cursor",r.cursor)},stop:function(e,i,n){var s=n.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var s=t(i.helper),r=n.options;s.css("opacity")&&(r._opacity=s.css("opacity")),s.css("opacity",r.opacity)},stop:function(e,i,n){var s=n.options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,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(e,i,n){var s=n.options,r=!1,a=n.scrollParentNotHidden[0],o=n.document[0];a!==o&&"HTML"!==a.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+a.offsetHeight-e.pageY<s.scrollSensitivity?a.scrollTop=r=a.scrollTop+s.scrollSpeed:e.pageY-n.overflowOffset.top<s.scrollSensitivity&&(a.scrollTop=r=a.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+a.offsetWidth-e.pageX<s.scrollSensitivity?a.scrollLeft=r=a.scrollLeft+s.scrollSpeed:e.pageX-n.overflowOffset.left<s.scrollSensitivity&&(a.scrollLeft=r=a.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t(o).scrollTop()<s.scrollSensitivity?r=t(o).scrollTop(t(o).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(o).scrollTop())<s.scrollSensitivity&&(r=t(o).scrollTop(t(o).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(o).scrollLeft()<s.scrollSensitivity?r=t(o).scrollLeft(t(o).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(o).scrollLeft())<s.scrollSensitivity&&(r=t(o).scrollLeft(t(o).scrollLeft()+s.scrollSpeed)))),!1!==r&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var s=n.options;n.snapElements=[],t(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each((function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,n){var s,r,a,o,l,c,u,d,h,p,f=n.options,g=f.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,b=i.offset.top,y=b+n.helperProportions.height;for(h=n.snapElements.length-1;h>=0;h--)c=(l=n.snapElements[h].left-n.margins.left)+n.snapElements[h].width,d=(u=n.snapElements[h].top-n.margins.top)+n.snapElements[h].height,v<l-g||m>c+g||y<u-g||b>d+g||!t.contains(n.snapElements[h].item.ownerDocument,n.snapElements[h].item)?(n.snapElements[h].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(u-y)<=g,r=Math.abs(d-b)<=g,a=Math.abs(l-v)<=g,o=Math.abs(c-m)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),a&&(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)),p=s||r||a||o,"outer"!==f.snapMode&&(s=Math.abs(u-b)<=g,r=Math.abs(d-y)<=g,a=Math.abs(l-m)<=g,o=Math.abs(c-v)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),a&&(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[h].snapping&&(s||r||a||o||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=s||r||a||o||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var s,r=n.options,a=t.makeArray(t(r.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));a.length&&(s=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each((function(e){t(this).css("zIndex",s+e)})),this.css("zIndex",s+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var s=t(i.helper),r=n.options;s.css("zIndex")&&(r._zIndex=s.css("zIndex")),s.css("zIndex",r.zIndex)},stop:function(e,i,n){var s=n.options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}}),t.ui.draggable})?n.apply(e,s):n)||(t.exports=r)}()},927:(t,e,i)=>{var n,s,r;
|
|
60
|
+
*/!function(a){"use strict";s=[i(472),i(927),i(736),i(111),i(783),i(692),i(534),i(21),i(993)],void 0===(r="function"==typeof(n=function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.13.0",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(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(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=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(i).length||e.ui.safeBlur(i)},_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,r=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("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)):this.containment=s.containment:this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]: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()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_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,r,a=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)),a.grid&&(s=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.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-a.grid[1]:s+a.grid[1]:s,r=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-a.grid[0]:r+a.grid[0]:r),"y"===a.axis&&(l=this.originalPageX),"x"===a.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(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,s))}))},drag:function(t,i,n){e.each(n.sortables,(function(){var s=!1,r=this;r.positionAbs=n.positionAbs,r.helperProportions=n.helperProportions,r.offset.click=n.offset.click,r._intersectsWith(r.containerCache)&&(s=!0,e.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(s=!1),s}))),s?(r.isOver||(r.isOver=1,n._parent=i.helper.parent(),r.currentItem=i.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return i.helper[0]},t.target=r.currentItem[0],r._mouseCapture(t,!0),r._mouseStart(t,!0,!0),r.offset.click.top=n.offset.click.top,r.offset.click.left=n.offset.click.left,r.offset.parent.left-=n.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=n.offset.parent.top-r.offset.parent.top,n._trigger("toSortable",t),n.dropped=r.element,e.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,r.fromOutside=n),r.currentItem&&(r._mouseDrag(t),i.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",t,r._uiHash(r)),r._mouseStop(t,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.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"),r=n.options;s.css("cursor")&&(r._cursor=s.css("cursor")),s.css("cursor",r.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),r=n.options;s.css("opacity")&&(r._opacity=s.css("opacity")),s.css("opacity",r.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,r=!1,a=n.scrollParentNotHidden[0],o=n.document[0];a!==o&&"HTML"!==a.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+a.offsetHeight-t.pageY<s.scrollSensitivity?a.scrollTop=r=a.scrollTop+s.scrollSpeed:t.pageY-n.overflowOffset.top<s.scrollSensitivity&&(a.scrollTop=r=a.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+a.offsetWidth-t.pageX<s.scrollSensitivity?a.scrollLeft=r=a.scrollLeft+s.scrollSpeed:t.pageX-n.overflowOffset.left<s.scrollSensitivity&&(a.scrollLeft=r=a.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(o).scrollTop()<s.scrollSensitivity?r=e(o).scrollTop(e(o).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(o).scrollTop())<s.scrollSensitivity&&(r=e(o).scrollTop(e(o).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(o).scrollLeft()<s.scrollSensitivity?r=e(o).scrollLeft(e(o).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(o).scrollLeft())<s.scrollSensitivity&&(r=e(o).scrollLeft(e(o).scrollLeft()+s.scrollSpeed)))),!1!==r&&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,r,a,o,l,c,u,d,h,p,f=n.options,g=f.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,b=i.offset.top,y=b+n.helperProportions.height;for(h=n.snapElements.length-1;h>=0;h--)c=(l=n.snapElements[h].left-n.margins.left)+n.snapElements[h].width,d=(u=n.snapElements[h].top-n.margins.top)+n.snapElements[h].height,v<l-g||m>c+g||y<u-g||b>d+g||!e.contains(n.snapElements[h].item.ownerDocument,n.snapElements[h].item)?(n.snapElements[h].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(u-y)<=g,r=Math.abs(d-b)<=g,a=Math.abs(l-v)<=g,o=Math.abs(c-m)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),a&&(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)),p=s||r||a||o,"outer"!==f.snapMode&&(s=Math.abs(u-b)<=g,r=Math.abs(d-y)<=g,a=Math.abs(l-m)<=g,o=Math.abs(c-v)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),a&&(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[h].snapping&&(s||r||a||o||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=s||r||a||o||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s,r=n.options,a=e.makeArray(e(r.stack)).sort((function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)}));a.length&&(s=parseInt(e(a[0]).css("zIndex"),10)||0,e(a).each((function(t){e(this).css("zIndex",s+t)})),this.css("zIndex",s+a.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var s=e(i.helper),r=n.options;s.css("zIndex")&&(r._zIndex=s.css("zIndex")),s.css("zIndex",r.zIndex)},stop:function(t,i,n){var s=n.options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}}),e.ui.draggable})?n.apply(t,s):n)||(e.exports=r)}()},927:(e,t,i)=>{var n,s,r;
|
|
59
61
|
/*!
|
|
60
62
|
* jQuery UI Mouse 1.13.0
|
|
61
63
|
* http://jqueryui.com
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
* Copyright jQuery Foundation and other contributors
|
|
64
66
|
* Released under the MIT license.
|
|
65
67
|
* http://jquery.org/license
|
|
66
|
-
*/!function(a){"use strict";s=[i(472),i(808),i(21),i(993)],void 0===(r="function"==typeof(n=function(
|
|
68
|
+
*/!function(a){"use strict";s=[i(472),i(808),i(21),i(993)],void 0===(r="function"==typeof(n=function(e){var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.13.0",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,r=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&e(i.target).closest(this.options.cancel).length;return!(s&&!r&&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(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!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}})})?n.apply(t,s):n)||(e.exports=r)}()},940:(e,t,i)=>{var n,s,r;
|
|
67
69
|
/*!
|
|
68
70
|
* jQuery UI Sortable 1.13.0
|
|
69
71
|
* http://jqueryui.com
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
* Copyright jQuery Foundation and other contributors
|
|
72
74
|
* Released under the MIT license.
|
|
73
75
|
* http://jquery.org/license
|
|
74
|
-
*/!function(a){"use strict";s=[i(472),i(927),i(736),i(808),i(534),i(21),i(993)],void 0===(r="function"==typeof(n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.13.0",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(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.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(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,r.widgetName+"-item")===r)return n=t(this),!1})),t.data(e.target,r.widgetName+"-item")===r&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(s=!0)})),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var s,r,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==a.appendTo?a.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),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},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.cursorAt&&this._adjustOffsetFromHelper(a.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(),t.extend(this.offset,{parent:this._getParentOffset()}),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(r)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),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(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,s,r,a=this.options;if(this.position=this._generatePosition(e),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"),this._contactContainers(e),null!==this.innermostContainer)for(a.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),r=this.options.axis,a={};r&&"x"!==r||(a.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(a.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,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.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 e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=t.left,a=r+t.width,o=t.top,l=o+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>o&&n+c<l,h="y"===this.options.axis||e+u>r&&e+u<a,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!s)&&(e=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,r,a=[],o=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(s=t(l[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&o.push(["function"==typeof r.options.items?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function c(){a.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,r,a,o,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(s=t(h[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(d.push(["function"==typeof r.options.items?r.options.items.call(r.element[0],e,{item:this.currentItem}):t(r.options.items,r.element),r]),this.containers.push(r));for(i=d.length-1;i>=0;i--)for(a=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=t(o[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var i,n,s,r;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?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),r=s.offset(),n.left=r.left,n.top=r.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),null!==this.innermostContainer&&this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,s=(e=e||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,r){i&&!s.forcePlaceholderSize||(r.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td> </td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,s,r,a,o,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(this.innermostContainer=h,h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,r=null,a=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,e[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(e[d]-l)<s&&(s=Math.abs(e[d]-l),r=this.items[n],this.direction=c?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));r?this._rearrange(e,r,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],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[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,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(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.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 e,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)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(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():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,r=e.pageX,a=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.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&&(e.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1],a=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((r-this.originalPageX)/s.grid[0])*s.grid[0],r=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:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.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(t,e){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(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||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.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})})?n.apply(e,s):n)||(t.exports=r)}()},596:(t,e,i)=>{var n;!function(){"use strict";var s=window.DocumentFragment,r=window.HTMLElement.prototype,a=r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector;function o(t,e){if(t.__SKATE_TEMPLATE_HTML_DATA)return t.__SKATE_TEMPLATE_HTML_DATA[e]}function l(t,e,i){return t.__SKATE_TEMPLATE_HTML_DATA||(t.__SKATE_TEMPLATE_HTML_DATA={}),t.__SKATE_TEMPLATE_HTML_DATA[e]=i,t}function c(t){var e=t.match(/\s*<([^\s>]+)/),i=document.createElement(e&&{caption:"table",dd:"dl",dt:"dl",li:"ul",tbody:"table",td:"tr",thead:"table",tr:"tbody"}[e[1]]||"div");return i.innerHTML=t,u(i.childNodes)}function u(t){for(var e=document.createDocumentFragment();t&&t.length;)e.appendChild(t[0]);return e}function d(t,e){for(var i=[],n=t.nextSibling;n!==e;)i.push(n),n=n.nextSibling;return i}function h(t,e){if(e){for(var i=t.querySelectorAll(e),n=i.length,s=[],r=0;r<n;r++){var a=i[r];a.parentNode===t&&s.push(a)}return s}return[].slice.call(t.childNodes)||[]}function p(t){for(var e=t.defaultNodes,i=e.length,n=0;n<i;n++)t.container.insertBefore(e[n],t.endNode);t.isDefault=!0}function f(t){for(var e=t.defaultNodes,i=e.length,n=0;n<i;n++){var s=e[n];s.parentNode.removeChild(s)}t.isDefault=!1}function g(t,e){return{get:function(){var i=t[e];return"function"==typeof i?i.bind(t):i},set:function(i){t[e]=i}}}function m(t){var e=t.getElementsByTagName("content");if(e&&e.length){for(var i=[];e.length;){var n=e[0],s=n.parentNode,r=n.getAttribute("select"),a=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:r,startNode:a}),s.replaceChild(o,n),s.insertBefore(a,o),a.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:r})+" "}l(t,"content",i)}}function v(t){var e,i=t.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{e=JSON.parse(i[2])}catch(e){throw new Error('Unable to parse content comment data: "'+e+'" in "\x3c!--'+t.textContent+'--\x3e".')}return{data:e||{defaultContent:void 0,isDefault:void 0,selector:void 0},type:i[1]?"close":"open"}}}function b(t){var e,i,n=t.childNodes,s=n.length,r=[];for(e=0;e<s;e++){var a=n[e];if(8===a.nodeType){var o=v(a);if(o)if("open"===o.type){if(i)throw new Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+a.textContent+'" in "'+a.parentNode.innerHTML+'".');i={container:a.parentNode,contentNode:a,defaultNodes:o.data.defaultContent&&c(o.data.defaultContent).childNodes||[],isDefault:o.data.isDefault,selector:o.data.selector,startNode:a}}else if("close"===o.type){if(!i)throw new Error('Unmatched closing content placeholder: "'+a.textContent+'" in "'+a.parentNode.innerHTML+'".');i.endNode=a,r.push(i),i=void 0}}else r=r.concat(b(a))}return r}function y(){var t=[].slice.call(arguments).join("");return function(e){var i=u(e.childNodes);e.innerHTML=t,m(e),i.childNodes.length&&y.wrap(e).appendChild(i)}}y.wrap=function(t){return o(t,"content")||l(t,"content",b(t)),function(t,e){var i={};for(var n in t)n in e?Object.defineProperty(i,n,e[n]):Object.defineProperty(i,n,g(t,n));return i}(t,(i=o(e=t,"content"),n=i.length,{childNodes:{get:function(){for(var t=[],e=0;e<n;e++){var s=i[e];s.isDefault||(t=t.concat(d(s.startNode,s.endNode)))}return t}},firstChild:{get:function(){var t=this.childNodes;return t.length&&t[0]||null}},innerHTML:{get:function(){for(var t="",e=this.childNodes,i=e.length,n=0;n<i;n++){var s=e[n];t+=s.outerHTML||s.textContent}return t},set:function(t){for(var e=c(t),s=0;s<n;s++){for(var r=i[s],a=d(r.startNode,r.endNode),o=0;o<a.length;o++){var l=a[o];l.parentNode.removeChild(l)}for(var u=h(e,r.selector),g=0;g<u.length;g++)r.container.insertBefore(u[g],r.endNode);u.length?f(r):p(r)}}},lastChild:{get:function(){for(var t=n-1;t>-1;t--)if(!i[t].isDefault){var e=this.childNodes;return e[e.length-1]}return null}},outerHTML:{get:function(){var t=this.tagName.toLowerCase(),e="<"+t,i=this.attributes;if(i)for(var n=i.length,s=0;s<n;s++){var r=i[s];e+=" "+r.nodeName+'="'+r.nodeValue+'"'}return e+=">",(e+=this.innerHTML)+"</"+t+">"}},textContent:{get:function(){for(var t="",e=this.childNodes,i=this.childNodes.length,n=0;n<i;n++)t+=e[n].textContent;return t},set:function(t){var e;this.innerHTML="";for(var s=0;s<n;s++){var r=i[s];if(!r.selector){e=r;break}}e&&(t?(f(e),e.container.insertBefore(document.createTextNode(t),e.endNode)):p(e))}},appendChild:{value:function(t){if(t instanceof s){var e=t.childNodes;return[].slice.call(e).forEach(function(t){this.appendChild(t)}.bind(this)),this}for(var r=0;r<n;r++){var o=i[r],l=o.selector;if(!l||t instanceof window.HTMLElement&&a.call(t,l)){f(o),o.endNode.parentNode.insertBefore(t,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(t,e){if(!e)return this.appendChild(t);if(t instanceof s){var r=t.childNodes;if(r)for(var o=r.length,l=0;l<o;l++)this.insertBefore(r[l],e);return this}var c=!1;t:for(var u=0;u<n;u++)for(var h=i[u],p=d(h.startNode,h.endNode),f=p.length,g=0;g<f;g++){var m=p[g];if(m===e&&(c=!0),c){var v=h.selector;if(!v||a.call(t,v)){m.parentNode.insertBefore(t,m);break t}}}if(!c)throw new Error("DOMException 8: The node before which the new node is to be inserted is not a child of this node.");return t}},removeChild:{value:function(t){for(var e=!1,s=0;s<n;s++){var r=i[s];if(r.container===t.parentNode){r.container.removeChild(t),e=!0;break}r.startNode.nextSibling===r.endNode&&p(r)}if(!e)throw new Error("DOMException 8: The node in which you are trying to remove is not a child of this node.");return t}},replaceChild:{value:function(t,e){for(var s=0;s<n;s++){var r=i[s];if(r.container===e.parentNode){r.container.replaceChild(t,e);break}}return this}}}));var e,i,n},window.skateTemplateHtml=y,void 0===(n=function(){return y}.call(e,i,e,t))||(t.exports=n),t.exports=y}()},844:(t,e)=>{var i,n,s;n=[e],void 0===(s="function"==typeof(i=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e="data-skate-ignore";t.ATTR_IGNORE=e;var i="a";t.TYPE_ATTRIBUTE=i;var n="c";t.TYPE_CLASSNAME=n;var s="t";t.TYPE_ELEMENT=s})?i.apply(e,n):i)||(t.exports=s)},53:(t,e)=>{var i,n,s;n=[e,t],void 0===(s="function"==typeof(i=function(t,e){"use strict";e.exports=function(t){var e=void 0===arguments[1]?"":arguments[1],i=t.__SKATE_DATA||(t.__SKATE_DATA={});return e&&(i[e]||(i[e]={}))||i}})?i.apply(e,n):i)||(t.exports=s)},377:(t,e,i)=>{var n,s,r;s=[e,t,i(18),i(907),i(821),i(713),i(429)],void 0===(r="function"==typeof(n=function(t,e,i,n,s,r,a){"use strict";var o,l=(o=i)&&o.__esModule?o.default:o,c=n.initElements,u=n.removeElements,d=a.getClosestIgnoredElement;function h(t){for(var e=t.length,i=0;i<e;i++){var n=t[i],s=n.addedNodes,r=n.removedNodes;s&&s.length&&!d(s[0].parentNode)&&c(s),r&&r.length&&u(r)}}function p(){var t=new window.MutationObserver(h);return t.observe(document,{childList:!0,subtree:!0}),t}e.exports={register:function(t){return t&&this.unregister(),l.observer||(l.observer=p()),this},unregister:function(){return l.observer&&(l.observer.disconnect(),l.observer=void 0),this}}})?n.apply(e,s):n)||(t.exports=r)},713:(t,e)=>{var i,n,s;n=[e],void 0===(s="function"==typeof(i=function(t){"use strict";var e=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=e||i,s=window.HTMLElement.prototype;function r(t,e){var i=t.childNodes;if(i)for(var n=i.length,s=0;s<n;s++){var a=i[s];e(a,t),r(a,e)}}function a(){var t=Object.getOwnPropertyDescriptor(s,"innerHTML"),e=function(){return t.get.call(this)};e._hasBeenEnhanced=!0,Object.defineProperty(s,"innerHTML",{get:e,set:function(e){r(this,(function(t,e){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,e,null,null,null,null),t.dispatchEvent(i)})),t.set.call(this,e)}})}if(n){var o=Object.getOwnPropertyDescriptor(s,"innerHTML");o&&o.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),a())}})?i.apply(e,n):i)||(t.exports=s)},18:(t,e,i)=>{var n,s,r;s=[e,t,i(83)],void 0===(r="function"==typeof(n=function(t,e,i){"use strict";var n,s="__skate_"+(n=i,n&&n.__esModule?n.default:n).replace(/[^\w]/g,"_");window[s]||(window[s]={observer:void 0,registry:{}}),e.exports=window[s]})?n.apply(e,s):n)||(t.exports=r)},907:(t,e,i)=>{var n,s,r;s=[e,i(844),i(53),i(821),i(838),i(429)],void 0===(r="function"==typeof(n=function(t,e,i,n,s,r){"use strict";var a=function(t){return t&&t.__esModule?t.default:t};Object.defineProperty(t,"__esModule",{value:!0});var o=e.ATTR_IGNORE,l=a(i),c=a(s),u=r.camelCase,d=r.elementContains,h=r.hasOwn,p=r.inherit,f=r.objEach,g=window.Node,m=window.HTMLElement.prototype,v=m.matches||m.msMatchesSelector||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector,b=!v.call(document.createElement("div"),"div"),y=function(t,e){if(b){var i=t.cloneNode();return document.createElement("div").appendChild(i),v.call(i,e)}return v.call(t,e)},w=/Edge/.test(navigator.userAgent);function _(t){var e=t.split(" ");return{name:e.shift(),delegate:e.join(" ")}}function C(t,e){var i=e.attributes;if("object"==typeof i)for(var n in i)if(h(i,n)&&h(i[n],"value")&&!t.hasAttribute(n)){var s=i[n].value;s="function"==typeof s?s(t):s,t.setAttribute(n,s)}}function k(t,e,i){Object.defineProperty(t,i,{get:function(){return this.getAttribute(e)},set:function(t){void 0===t?this.removeAttribute(e):this.setAttribute(e,t)}})}function x(t,e){var i=e.attributes;if("object"==typeof i)for(var n in i){var s=u(n);h(i,n)&&!h(t,s)&&k(t,n,s)}}function E(t,e,i){var n,s,r,a=i.name,o=i.newValue;w&&(r=l(t,"cachedAttributeOldValues"));var c=w&&h(r,a)?r[a]:i.oldValue,u="string"==typeof o,d="string"==typeof c,p=e.attributes,f=p&&p[a];!d&&u?s="created":d&&u?s="updated":d&&!u&&(s="removed"),w&&("removed"===s?delete r[a]:r[a]=o),f&&"function"==typeof f[s]?n=f[s]:f&&"function"==typeof f.fallback?n=f.fallback:"function"==typeof f?n=f:"function"==typeof p&&(n=p),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(t,{type:s,name:a,newValue:o,oldValue:c})}function D(t,e){var i,n=t.attributes,s=[],r=n.length;for(i=0;i<r;i++)s.push(n[i]);for(i=0;i<r;i++){var a=s[i];E(t,e,{name:a.nodeName,newValue:a.value||a.nodeValue})}}function T(t,e){var i=t.attributes;e.attributes&&!c.isNativeCustomElement(e.id)&&new window.MutationObserver((function(n){n.forEach((function(n){var s=n.attributeName,r=i[s];E(t,e,{name:s,newValue:r&&(r.value||r.nodeValue),oldValue:n.oldValue})}))})).observe(t,{attributes:!0,attributeOldValue:!0})}function A(t,e){function i(e,i){return function(n){if(!i)return e(t,n,t);for(var s=n.target;s&&s!==document&&s!==t.parentNode;){if(y(s,i))return e(t,n,s);s=s.parentNode}}}"object"==typeof e.events&&f(e.events,(function(e,n){var s=_(n),r=!!s.delegate&&("blur"===s.name||"focus"===s.name);t.addEventListener(s.name,i(e,s.delegate),r)}))}function S(t,e){var i=l(t,e.id);i.created||(i.created=!0,p(t,e.prototype,!0),e.template&&!t.hasAttribute(e.resolvedAttribute)&&e.template(t),t.removeAttribute(e.unresolvedAttribute),t.setAttribute(e.resolvedAttribute,""),A(t,e),T(t,e),x(t,e),C(t,e),D(t,e),e.created&&e.created(t))}function O(t,e){var i=l(t,e.id);i.attached||d(document,t)&&(i.attached=!0,e.attached&&e.attached(t),i.detached=!1)}function I(t,e){var i=l(t,e.id);i.detached||(i.detached=!0,e.detached&&e.detached(t),i.attached=!1)}function N(t,e){S(t,e),O(t,e)}function P(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.nodeType===g.ELEMENT_NODE&&!i.attributes[o]){for(var n=c.getForElement(i),s=n.length,r=0;r<s;r++)N(i,n[r]);var a=i.childNodes||[];a.length&&P(a)}}}function M(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.nodeType===g.ELEMENT_NODE){M(i.childNodes);for(var n=c.getForElement(i),s=n.length,r=0;r<s;r++)I(i,n[r])}}}t.initElements=P,t.removeElements=M,t.triggerAttached=O,t.triggerAttributeChanged=E,t.triggerCreated=S,t.triggerDetached=I})?n.apply(e,s):n)||(t.exports=r)},821:(t,e)=>{var i,n,s;n=[e],void 0===(s="function"==typeof(i=function(t){"use strict";var e;e=window,
|
|
76
|
+
*/!function(a){"use strict";s=[i(472),i(927),i(736),i(808),i(534),i(21),i(993)],void 0===(r="function"==typeof(n=function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.13.0",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(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,(function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"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,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,r.widgetName+"-item")===r)return n=e(this),!1})),e.data(t.target,r.widgetName+"-item")===r&&(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,r,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==a.appendTo?a.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"),a.cursorAt&&this._adjustOffsetFromHelper(a.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()}),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",a.cursor),this.storedStylesheet=e("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(r)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.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&&!a.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,r,a=this.options;if(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"),this._contactContainers(t),null!==this.innermostContainer)for(a.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!a.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],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===r?"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===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return 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(),r=this.options.axis,a={};r&&"x"!==r||(a.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(a.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(a,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,r=e.left,a=r+e.width,o=e.top,l=o+e.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>o&&n+c<l,h="y"===this.options.axis||t+u>r&&t+u<a,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:r<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&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,r,a=[],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--)(r=e.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&o.push(["function"==typeof r.options.items?r.options.items.call(r.element):e(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function c(){a.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(a)},_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,r,a,o,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(s=e(h[i],this.document[0])).length-1;n>=0;n--)(r=e.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(d.push(["function"==typeof r.options.items?r.options.items.call(r.element[0],t,{item:this.currentItem}):e(r.options.items,r.element),r]),this.containers.push(r));for(i=d.length-1;i>=0;i--)for(a=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=e(o[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,n,s,r;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()),r=s.offset(),n.left=r.left,n.top=r.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),null!==this.innermostContainer&&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,r){i&&!s.forcePlaceholderSize||(r.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||r.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),r.width()||r.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> </td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(t){var i,n,s,r,a,o,l,c,u,d,h=null,p=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(h&&e.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(this.innermostContainer=h,h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,r=null,a=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,t[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(t[d]-l)<s&&(s=Math.abs(t[d]-l),r=this.items[n],this.direction=c?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));r?this._rearrange(t,r,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],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[p]._trigger("over",t,this._uiHash(this)),this.containers[p].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||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(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){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()}}return{top:0,left:0}},_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,r=/(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():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(t){var i,n,s=this.options,r=t.pageX,a=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]&&(r=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1],a=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((r-this.originalPageX)/s.grid[0])*s.grid[0],r=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:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:r-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.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),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}}})})?n.apply(t,s):n)||(e.exports=r)}()},596:(e,t,i)=>{var n;!function(){"use strict";var s=window.DocumentFragment,r=window.HTMLElement.prototype,a=r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.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 d(e,t){for(var i=[],n=e.nextSibling;n!==t;)i.push(n),n=n.nextSibling;return i}function h(e,t){if(t){for(var i=e.querySelectorAll(t),n=i.length,s=[],r=0;r<n;r++){var a=i[r];a.parentNode===e&&s.push(a)}return s}return[].slice.call(e.childNodes)||[]}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(e,t){return{get:function(){var i=e[t];return"function"==typeof i?i.bind(e):i},set:function(i){e[t]=i}}}function m(e){var t=e.getElementsByTagName("content");if(t&&t.length){for(var i=[];t.length;){var n=t[0],s=n.parentNode,r=n.getAttribute("select"),a=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:r,startNode:a}),s.replaceChild(o,n),s.insertBefore(a,o),a.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:r})+" "}l(e,"content",i)}}function v(e){var t,i=e.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{t=JSON.parse(i[2])}catch(t){throw new 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"}}}function b(e){var t,i,n=e.childNodes,s=n.length,r=[];for(t=0;t<s;t++){var a=n[t];if(8===a.nodeType){var o=v(a);if(o)if("open"===o.type){if(i)throw new Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+a.textContent+'" in "'+a.parentNode.innerHTML+'".');i={container:a.parentNode,contentNode:a,defaultNodes:o.data.defaultContent&&c(o.data.defaultContent).childNodes||[],isDefault:o.data.isDefault,selector:o.data.selector,startNode:a}}else if("close"===o.type){if(!i)throw new Error('Unmatched closing content placeholder: "'+a.textContent+'" in "'+a.parentNode.innerHTML+'".');i.endNode=a,r.push(i),i=void 0}}else r=r.concat(b(a))}return r}function y(){var e=[].slice.call(arguments).join("");return function(t){var i=u(t.childNodes);t.innerHTML=e,m(t),i.childNodes.length&&y.wrap(t).appendChild(i)}}y.wrap=function(e){return o(e,"content")||l(e,"content",b(e)),function(e,t){var i={};for(var n in e)n in t?Object.defineProperty(i,n,t[n]):Object.defineProperty(i,n,g(e,n));return i}(e,(i=o(t=e,"content"),n=i.length,{childNodes:{get:function(){for(var e=[],t=0;t<n;t++){var s=i[t];s.isDefault||(e=e.concat(d(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 t=c(e),s=0;s<n;s++){for(var r=i[s],a=d(r.startNode,r.endNode),o=0;o<a.length;o++){var l=a[o];l.parentNode.removeChild(l)}for(var u=h(t,r.selector),g=0;g<u.length;g++)r.container.insertBefore(u[g],r.endNode);u.length?f(r):p(r)}}},lastChild:{get:function(){for(var e=n-1;e>-1;e--)if(!i[e].isDefault){var t=this.childNodes;return t[t.length-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 r=i[s];t+=" "+r.nodeName+'="'+r.nodeValue+'"'}return t+=">",(t+=this.innerHTML)+"</"+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 t;this.innerHTML="";for(var s=0;s<n;s++){var r=i[s];if(!r.selector){t=r;break}}t&&(e?(f(t),t.container.insertBefore(document.createTextNode(e),t.endNode)):p(t))}},appendChild:{value:function(e){if(e instanceof s){var t=e.childNodes;return[].slice.call(t).forEach(function(e){this.appendChild(e)}.bind(this)),this}for(var r=0;r<n;r++){var o=i[r],l=o.selector;if(!l||e instanceof window.HTMLElement&&a.call(e,l)){f(o),o.endNode.parentNode.insertBefore(e,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(e,i){return"afterbegin"===e?this.insertBefore(c(i),this.childNodes[0]):"beforeend"===e?this.appendChild(c(i)):t.insertAdjacentHTML(e,i),this}},insertBefore:{value:function(e,t){if(!t)return this.appendChild(e);if(e instanceof s){var r=e.childNodes;if(r)for(var o=r.length,l=0;l<o;l++)this.insertBefore(r[l],t);return this}var c=!1;e:for(var u=0;u<n;u++)for(var h=i[u],p=d(h.startNode,h.endNode),f=p.length,g=0;g<f;g++){var m=p[g];if(m===t&&(c=!0),c){var v=h.selector;if(!v||a.call(e,v)){m.parentNode.insertBefore(e,m);break e}}}if(!c)throw new 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 t=!1,s=0;s<n;s++){var r=i[s];if(r.container===e.parentNode){r.container.removeChild(e),t=!0;break}r.startNode.nextSibling===r.endNode&&p(r)}if(!t)throw new 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,t){for(var s=0;s<n;s++){var r=i[s];if(r.container===t.parentNode){r.container.replaceChild(e,t);break}}return this}}}));var t,i,n},window.skateTemplateHtml=y,void 0===(n=function(){return y}.call(t,i,t,e))||(e.exports=n),e.exports=y}()},844:(e,t)=>{var i,n,s;n=[t],void 0===(s="function"==typeof(i=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="data-skate-ignore";e.ATTR_IGNORE=t;var i="a";e.TYPE_ATTRIBUTE=i;var n="c";e.TYPE_CLASSNAME=n;var s="t";e.TYPE_ELEMENT=s})?i.apply(t,n):i)||(e.exports=s)},53:(e,t)=>{var i,n,s;n=[t,e],void 0===(s="function"==typeof(i=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.apply(t,n):i)||(e.exports=s)},377:(e,t,i)=>{var n,s,r;s=[t,e,i(18),i(907),i(821),i(713),i(429)],void 0===(r="function"==typeof(n=function(e,t,i,n,s,r,a){"use strict";var o,l=(o=i)&&o.__esModule?o.default:o,c=n.initElements,u=n.removeElements,d=a.getClosestIgnoredElement;function h(e){for(var t=e.length,i=0;i<t;i++){var n=e[i],s=n.addedNodes,r=n.removedNodes;s&&s.length&&!d(s[0].parentNode)&&c(s),r&&r.length&&u(r)}}function p(){var e=new window.MutationObserver(h);return e.observe(document,{childList:!0,subtree:!0}),e}t.exports={register:function(e){return e&&this.unregister(),l.observer||(l.observer=p()),this},unregister:function(){return l.observer&&(l.observer.disconnect(),l.observer=void 0),this}}})?n.apply(t,s):n)||(e.exports=r)},713:(e,t)=>{var i,n,s;n=[t],void 0===(s="function"==typeof(i=function(e){"use strict";var t=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=t||i,s=window.HTMLElement.prototype;function r(e,t){var i=e.childNodes;if(i)for(var n=i.length,s=0;s<n;s++){var a=i[s];t(a,e),r(a,t)}}function a(){var e=Object.getOwnPropertyDescriptor(s,"innerHTML"),t=function(){return e.get.call(this)};t._hasBeenEnhanced=!0,Object.defineProperty(s,"innerHTML",{get:t,set:function(t){r(this,(function(e,t){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,t,null,null,null,null),e.dispatchEvent(i)})),e.set.call(this,t)}})}if(n){var o=Object.getOwnPropertyDescriptor(s,"innerHTML");o&&o.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),a())}})?i.apply(t,n):i)||(e.exports=s)},18:(e,t,i)=>{var n,s,r;s=[t,e,i(83)],void 0===(r="function"==typeof(n=function(e,t,i){"use strict";var n,s="__skate_"+(n=i,n&&n.__esModule?n.default:n).replace(/[^\w]/g,"_");window[s]||(window[s]={observer:void 0,registry:{}}),t.exports=window[s]})?n.apply(t,s):n)||(e.exports=r)},907:(e,t,i)=>{var n,s,r;s=[t,i(844),i(53),i(821),i(838),i(429)],void 0===(r="function"==typeof(n=function(e,t,i,n,s,r){"use strict";var a=function(e){return e&&e.__esModule?e.default:e};Object.defineProperty(e,"__esModule",{value:!0});var o=t.ATTR_IGNORE,l=a(i),c=a(s),u=r.camelCase,d=r.elementContains,h=r.hasOwn,p=r.inherit,f=r.objEach,g=window.Node,m=window.HTMLElement.prototype,v=m.matches||m.msMatchesSelector||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector,b=!v.call(document.createElement("div"),"div"),y=function(e,t){if(b){var i=e.cloneNode();return document.createElement("div").appendChild(i),v.call(i,t)}return v.call(e,t)},w=/Edge/.test(navigator.userAgent);function _(e){var t=e.split(" ");return{name:t.shift(),delegate:t.join(" ")}}function k(e,t){var i=t.attributes;if("object"==typeof i)for(var n in i)if(h(i,n)&&h(i[n],"value")&&!e.hasAttribute(n)){var s=i[n].value;s="function"==typeof s?s(e):s,e.setAttribute(n,s)}}function C(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)}})}function x(e,t){var i=t.attributes;if("object"==typeof i)for(var n in i){var s=u(n);h(i,n)&&!h(e,s)&&C(e,n,s)}}function E(e,t,i){var n,s,r,a=i.name,o=i.newValue;w&&(r=l(e,"cachedAttributeOldValues"));var c=w&&h(r,a)?r[a]:i.oldValue,u="string"==typeof o,d="string"==typeof c,p=t.attributes,f=p&&p[a];!d&&u?s="created":d&&u?s="updated":d&&!u&&(s="removed"),w&&("removed"===s?delete r[a]:r[a]=o),f&&"function"==typeof f[s]?n=f[s]:f&&"function"==typeof f.fallback?n=f.fallback:"function"==typeof f?n=f:"function"==typeof p&&(n=p),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(e,{type:s,name:a,newValue:o,oldValue:c})}function T(e,t){var i,n=e.attributes,s=[],r=n.length;for(i=0;i<r;i++)s.push(n[i]);for(i=0;i<r;i++){var a=s[i];E(e,t,{name:a.nodeName,newValue:a.value||a.nodeValue})}}function D(e,t){var i=e.attributes;t.attributes&&!c.isNativeCustomElement(t.id)&&new window.MutationObserver((function(n){n.forEach((function(n){var s=n.attributeName,r=i[s];E(e,t,{name:s,newValue:r&&(r.value||r.nodeValue),oldValue:n.oldValue})}))})).observe(e,{attributes:!0,attributeOldValue:!0})}function A(e,t){function i(t,i){return function(n){if(!i)return t(e,n,e);for(var s=n.target;s&&s!==document&&s!==e.parentNode;){if(y(s,i))return t(e,n,s);s=s.parentNode}}}"object"==typeof t.events&&f(t.events,(function(t,n){var s=_(n),r=!!s.delegate&&("blur"===s.name||"focus"===s.name);e.addEventListener(s.name,i(t,s.delegate),r)}))}function S(e,t){var i=l(e,t.id);i.created||(i.created=!0,p(e,t.prototype,!0),t.template&&!e.hasAttribute(t.resolvedAttribute)&&t.template(e),e.removeAttribute(t.unresolvedAttribute),e.setAttribute(t.resolvedAttribute,""),A(e,t),D(e,t),x(e,t),k(e,t),T(e,t),t.created&&t.created(e))}function N(e,t){var i=l(e,t.id);i.attached||d(document,e)&&(i.attached=!0,t.attached&&t.attached(e),i.detached=!1)}function O(e,t){var i=l(e,t.id);i.detached||(i.detached=!0,t.detached&&t.detached(e),i.attached=!1)}function I(e,t){S(e,t),N(e,t)}function M(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.nodeType===g.ELEMENT_NODE&&!i.attributes[o]){for(var n=c.getForElement(i),s=n.length,r=0;r<s;r++)I(i,n[r]);var a=i.childNodes||[];a.length&&M(a)}}}function P(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.nodeType===g.ELEMENT_NODE){P(i.childNodes);for(var n=c.getForElement(i),s=n.length,r=0;r<s;r++)O(i,n[r])}}}e.initElements=M,e.removeElements=P,e.triggerAttached=N,e.triggerAttributeChanged=E,e.triggerCreated=S,e.triggerDetached=O})?n.apply(t,s):n)||(e.exports=r)},821:(e,t)=>{var i,n,s;n=[t],void 0===(s="function"==typeof(i=function(e){"use strict";var t;t=window,
|
|
75
77
|
/**
|
|
76
78
|
* @license
|
|
77
79
|
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
@@ -81,7 +83,7 @@
|
|
|
81
83
|
* Code distributed by Google as part of the polymer project is also
|
|
82
84
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
83
85
|
*/
|
|
84
|
-
"undefined"==typeof WeakMap&&function(){var t=Object.defineProperty,e=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+e+++"__"};i.prototype={set:function(e,i){var n=e[this.name];return n&&n[0]===e?n[1]=i:t(e,this.name,{value:[e,i],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];return!(!e||e[0]!==t||(e[0]=e[1]=void 0,0))},has:function(t){var e=t[this.name];return!!e&&e[0]===t}},window.WeakMap=i}(),function(t){if(!t.JsMutationObserver){var e,i=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))e=setTimeout;else if(window.setImmediate)e=window.setImmediate;else{var n=[],s=String(Math.random());window.addEventListener("message",(function(t){if(t.data===s){var e=n;n=[],e.forEach((function(t){t()}))}})),e=function(t){n.push(t),window.postMessage(s,"*")}}var r,a,o=!1,l=[],c=0;g.prototype={observe:function(t,e){if(t=d(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var n,s=i.get(t);s||i.set(t,s=[]);for(var r=0;r<s.length;r++)if(s[r].observer===this){(n=s[r]).removeListeners(),n.options=e;break}n||(n=new k(this,t,e),s.push(n),this.nodes_.push(t)),n.addListeners()},disconnect:function(){this.nodes_.forEach((function(t){for(var e=i.get(t),n=0;n<e.length;n++){var s=e[n];if(s.observer===this){s.removeListeners(),e.splice(n,1);break}}}),this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},k.prototype={enqueue:function(t){var e=this.observer.records_,i=e.length;if(e.length>0){var n=C(e[i-1],t);if(n)return void(e[i-1]=n)}else u(this.observer);e[i]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=i.get(t);e||i.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach((function(t){this.removeListeners_(t);for(var e=i.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}}),this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,i=t.relatedNode.namespaceURI,n=t.target;(r=new b("attributes",n)).attributeName=e,r.attributeNamespace=i;var s=t.attrChange===MutationEvent.ADDITION?null:t.prevValue;f(n,(function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(i)))return t.attributeOldValue?y(s):r}));break;case"DOMCharacterDataModified":var r=b("characterData",n=t.target);s=t.prevValue,f(n,(function(t){if(t.characterData)return t.characterDataOldValue?y(s):r}));break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var a,o,l=t.target;"DOMNodeInserted"===t.type?(a=[l],o=[]):(a=[],o=[l]);var c=l.previousSibling,u=l.nextSibling;(r=b("childList",t.target.parentNode)).addedNodes=a,r.removedNodes=o,r.previousSibling=c,r.nextSibling=u,f(t.relatedNode,(function(t){if(t.childList)return r}))}w()}},t.JsMutationObserver=g,t.MutationObserver||(t.MutationObserver=g,g._isPolyfilled=!0)}function u(t){l.push(t),o||(o=!0,e(h))}function d(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}function h(){o=!1;var t=l;l=[],t.sort((function(t,e){return t.uid_-e.uid_}));var e=!1;t.forEach((function(t){var i=t.takeRecords();p(t),i.length&&(t.callback_(i,t),e=!0)})),e&&h()}function p(t){t.nodes_.forEach((function(e){var n=i.get(e);n&&n.forEach((function(e){e.observer===t&&e.removeTransientObservers()}))}))}function f(t,e){for(var n=t;n;n=n.parentNode){var s=i.get(n);if(s)for(var r=0;r<s.length;r++){var a=s[r],o=a.options;if(n===t||o.subtree){var l=e(o);l&&a.enqueue(l)}}}}function g(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++c}function m(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function v(t){var e=new m(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}function b(t,e){return r=new m(t,e)}function y(t){return a||((a=v(r)).oldValue=t,a)}function w(){r=a=void 0}function _(t){return t===a||t===r}function C(t,e){return t===e?t:a&&_(t)?a:null}function k(t,e,i){this.observer=t,this.target=e,this.options=i,this.transientObservedNodes=[]}}(e)})?i.apply(e,n):i)||(t.exports=s)},838:(t,e,i)=>{var n,s,r;s=[e,t,i(844),i(18),i(429)],void 0===(r="function"==typeof(n=function(t,e,i,n,s){"use strict";var r=function(t){return t&&t.__esModule?t.default:t},a=i.TYPE_ATTRIBUTE,o=i.TYPE_CLASSNAME,l=i.TYPE_ELEMENT,c=r(n),u=s.hasOwn,d=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;function p(t){var e=t.classList;if(e)return e;var i=t.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}e.exports={clear:function(){return c.registry={},this},get:function(t){return u(c.registry,t)&&c.registry[t]},getForElement:function(t){var e,i,n=t.attributes,s=n.length,r=[],u=n.is,d=u&&(u.value||u.nodeValue),h=(t.tagName||t.localName).toLowerCase(),f=d||h;this.isType(f,l)&&(i=(e=c.registry[f]).extends,d?h===i&&r.push(e):i||r.push(e));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,a)&&((i=(e=c.registry[m]).extends)&&h!==i||r.push(e))}for(var v=p(t),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,o)&&((i=(e=c.registry[w]).extends)&&h!==i||r.push(e))}return r},isType:function(t,e){var i=this.get(t);return i&&i.type===e},isNativeCustomElement:function(t){return h()&&this.isType(t,l)&&d(t)},set:function(t,e){if(u(c.registry,t))throw new Error('A component definition of type "'+e.type+'" with the ID of "'+t+'" already exists.');return c.registry[t]=e,this}}})?n.apply(e,s):n)||(t.exports=r)},953:(t,e,i)=>{var n,s,r;s=[e,t,i(844),i(377),i(907),i(838),i(429),i(83)],void 0===(r="function"==typeof(n=function(t,e,i,n,s,r,a,o){"use strict";var l=function(t){return t&&t.__esModule?t.default:t},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,d=i.TYPE_ELEMENT,h=l(n),p=s.triggerCreated,f=s.triggerAttached,g=s.triggerDetached,m=s.triggerAttributeChanged,v=s.initElements,b=l(r),y=a.debounce,w=a.inherit,_=l(o),C=window.HTMLElement,k=!!document.attachEvent;function x(){return k?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState}var E=y((function(){var t=function(){v(document.documentElement.childNodes)};x()?t():k?window.addEventListener("load",t):document.addEventListener("DOMContentLoaded",t)}));function D(t){function e(){var i,n=t.extends,s=t.id;return n?(i=document.createElement(n)).setAttribute("is",s):i=document.createElement(s),t.prototype=e.prototype,p(i,t),i}return e.prototype=t.prototype,e}function T(t,e){if(e=w({},e),(e=w(e,T.defaults)).id=t,b.set(t,e),b.isNativeCustomElement(t)){var i=e.extends?document.createElement(e.extends).constructor.prototype:C.prototype;i.isPrototypeOf(e.prototype)||(e.prototype=w(Object.create(i),e.prototype,!0));var n={prototype:w(e.prototype,{createdCallback:function(){p(this,e)},attachedCallback:function(){f(this,e)},detachedCallback:function(){g(this,e)},attributeChangedCallback:function(t,i,n){m(this,e,{name:t,oldValue:i,newValue:n})}})};return e.extends&&(n.extends=e.extends),document.registerElement(t,n)}if(E(),h.register(!!e.detached),b.isType(t,d))return D(e)}T.init=function(t){var e=t;return t?("string"==typeof t?e=t=document.querySelectorAll(t):t instanceof C&&(e=[t]),v(e),t):t},T.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:d},T.version=_,T.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:d,unresolvedAttribute:"unresolved"};var A=window.skate;T.noConflict=function(){return window.skate=A,T},window.skate=T,e.exports=T})?n.apply(e,s):n)||(t.exports=r)},429:(t,e,i)=>{var n,s,r;s=[e,i(844)],void 0===(r="function"==typeof(n=function(t,e){"use strict";t.hasOwn=r,t.camelCase=a,t.elementContains=o,t.debounce=l,t.getClosestIgnoredElement=c,t.inherit=u,t.objEach=d,t.supportsNativeCustomElements=h,t.isValidNativeCustomElementName=p,Object.defineProperty(t,"__esModule",{value:!0});var i=e.ATTR_IGNORE,n=window.HTMLElement.prototype;t.elementPrototype=n;var s=n.contains;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){return t.split(/-/g).map((function(t,e){return 0===e?t:t[0].toUpperCase()+t.substring(1)})).join("")}function o(t,e){return t!==document||t.contains?t.contains?t.contains(e):s.call(t,e):document.head.contains(e)||document.body.contains(e)}function l(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),1))}}function c(t){for(var e=t;e instanceof Element;){if(e.hasAttribute(i))return e;e=e.parentNode}}function u(t,e,i){for(var n=Object.getOwnPropertyNames(e),s=n.length,r=0;r<s;r++){var a=n[r];if(i||void 0===t[a]){var o=Object.getOwnPropertyDescriptor(e,a);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?t[a]=e[a]:Object.defineProperty(t,a,o)}}return t}function d(t,e){for(var i in t)r(t,i)&&e(t[i],i)}function h(){return"function"==typeof document.registerElement}function p(t){return t.indexOf("-")>0}})?n.apply(e,s):n)||(t.exports=r)},83:(t,e)=>{var i,n,s;n=[e,t],void 0===(s="function"==typeof(i=function(t,e){"use strict";e.exports="0.13.17"})?i.apply(e,n):i)||(t.exports=s)},473:()=>{
|
|
86
|
+
"undefined"==typeof WeakMap&&function(){var e=Object.defineProperty,t=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+t+++"__"};i.prototype={set:function(t,i){var n=t[this.name];return n&&n[0]===t?n[1]=i:e(t,this.name,{value:[t,i],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=i}(),function(e){if(!e.JsMutationObserver){var t,i=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))t=setTimeout;else if(window.setImmediate)t=window.setImmediate;else{var n=[],s=String(Math.random());window.addEventListener("message",(function(e){if(e.data===s){var t=n;n=[],t.forEach((function(e){e()}))}})),t=function(e){n.push(e),window.postMessage(s,"*")}}var r,a,o=!1,l=[],c=0;g.prototype={observe:function(e,t){if(e=d(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var n,s=i.get(e);s||i.set(e,s=[]);for(var r=0;r<s.length;r++)if(s[r].observer===this){(n=s[r]).removeListeners(),n.options=t;break}n||(n=new C(this,e,t),s.push(n),this.nodes_.push(e)),n.addListeners()},disconnect:function(){this.nodes_.forEach((function(e){for(var t=i.get(e),n=0;n<t.length;n++){var s=t[n];if(s.observer===this){s.removeListeners(),t.splice(n,1);break}}}),this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},C.prototype={enqueue:function(e){var t=this.observer.records_,i=t.length;if(t.length>0){var n=k(t[i-1],e);if(n)return void(t[i-1]=n)}else u(this.observer);t[i]=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=i.get(e);t||i.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach((function(e){this.removeListeners_(e);for(var t=i.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}}),this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,i=e.relatedNode.namespaceURI,n=e.target;(r=new b("attributes",n)).attributeName=t,r.attributeNamespace=i;var s=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;f(n,(function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(i)))return e.attributeOldValue?y(s):r}));break;case"DOMCharacterDataModified":var r=b("characterData",n=e.target);s=e.prevValue,f(n,(function(e){if(e.characterData)return e.characterDataOldValue?y(s):r}));break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var a,o,l=e.target;"DOMNodeInserted"===e.type?(a=[l],o=[]):(a=[],o=[l]);var c=l.previousSibling,u=l.nextSibling;(r=b("childList",e.target.parentNode)).addedNodes=a,r.removedNodes=o,r.previousSibling=c,r.nextSibling=u,f(e.relatedNode,(function(e){if(e.childList)return r}))}w()}},e.JsMutationObserver=g,e.MutationObserver||(e.MutationObserver=g,g._isPolyfilled=!0)}function u(e){l.push(e),o||(o=!0,t(h))}function d(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function h(){o=!1;var e=l;l=[],e.sort((function(e,t){return e.uid_-t.uid_}));var t=!1;e.forEach((function(e){var i=e.takeRecords();p(e),i.length&&(e.callback_(i,e),t=!0)})),t&&h()}function p(e){e.nodes_.forEach((function(t){var n=i.get(t);n&&n.forEach((function(t){t.observer===e&&t.removeTransientObservers()}))}))}function f(e,t){for(var n=e;n;n=n.parentNode){var s=i.get(n);if(s)for(var r=0;r<s.length;r++){var a=s[r],o=a.options;if(n===e||o.subtree){var l=t(o);l&&a.enqueue(l)}}}}function g(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}function m(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 v(e){var t=new m(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}function b(e,t){return r=new m(e,t)}function y(e){return a||((a=v(r)).oldValue=e,a)}function w(){r=a=void 0}function _(e){return e===a||e===r}function k(e,t){return e===t?e:a&&_(e)?a:null}function C(e,t,i){this.observer=e,this.target=t,this.options=i,this.transientObservedNodes=[]}}(t)})?i.apply(t,n):i)||(e.exports=s)},838:(e,t,i)=>{var n,s,r;s=[t,e,i(844),i(18),i(429)],void 0===(r="function"==typeof(n=function(e,t,i,n,s){"use strict";var r=function(e){return e&&e.__esModule?e.default:e},a=i.TYPE_ATTRIBUTE,o=i.TYPE_CLASSNAME,l=i.TYPE_ELEMENT,c=r(n),u=s.hasOwn,d=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;function p(e){var t=e.classList;if(t)return t;var i=e.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}t.exports={clear:function(){return c.registry={},this},get:function(e){return u(c.registry,e)&&c.registry[e]},getForElement:function(e){var t,i,n=e.attributes,s=n.length,r=[],u=n.is,d=u&&(u.value||u.nodeValue),h=(e.tagName||e.localName).toLowerCase(),f=d||h;this.isType(f,l)&&(i=(t=c.registry[f]).extends,d?h===i&&r.push(t):i||r.push(t));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,a)&&((i=(t=c.registry[m]).extends)&&h!==i||r.push(t))}for(var v=p(e),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,o)&&((i=(t=c.registry[w]).extends)&&h!==i||r.push(t))}return r},isType:function(e,t){var i=this.get(e);return i&&i.type===t},isNativeCustomElement:function(e){return h()&&this.isType(e,l)&&d(e)},set:function(e,t){if(u(c.registry,e))throw new Error('A component definition of type "'+t.type+'" with the ID of "'+e+'" already exists.');return c.registry[e]=t,this}}})?n.apply(t,s):n)||(e.exports=r)},953:(e,t,i)=>{var n,s,r;s=[t,e,i(844),i(377),i(907),i(838),i(429),i(83)],void 0===(r="function"==typeof(n=function(e,t,i,n,s,r,a,o){"use strict";var l=function(e){return e&&e.__esModule?e.default:e},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,d=i.TYPE_ELEMENT,h=l(n),p=s.triggerCreated,f=s.triggerAttached,g=s.triggerDetached,m=s.triggerAttributeChanged,v=s.initElements,b=l(r),y=a.debounce,w=a.inherit,_=l(o),k=window.HTMLElement,C=!!document.attachEvent;function x(){return C?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState}var E=y((function(){var e=function(){v(document.documentElement.childNodes)};x()?e():C?window.addEventListener("load",e):document.addEventListener("DOMContentLoaded",e)}));function T(e){function t(){var i,n=e.extends,s=e.id;return n?(i=document.createElement(n)).setAttribute("is",s):i=document.createElement(s),e.prototype=t.prototype,p(i,e),i}return t.prototype=e.prototype,t}function D(e,t){if(t=w({},t),(t=w(t,D.defaults)).id=e,b.set(e,t),b.isNativeCustomElement(e)){var i=t.extends?document.createElement(t.extends).constructor.prototype:k.prototype;i.isPrototypeOf(t.prototype)||(t.prototype=w(Object.create(i),t.prototype,!0));var n={prototype:w(t.prototype,{createdCallback:function(){p(this,t)},attachedCallback:function(){f(this,t)},detachedCallback:function(){g(this,t)},attributeChangedCallback:function(e,i,n){m(this,t,{name:e,oldValue:i,newValue:n})}})};return t.extends&&(n.extends=t.extends),document.registerElement(e,n)}if(E(),h.register(!!t.detached),b.isType(e,d))return T(t)}D.init=function(e){var t=e;return e?("string"==typeof e?t=e=document.querySelectorAll(e):e instanceof k&&(t=[e]),v(t),e):e},D.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:d},D.version=_,D.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:d,unresolvedAttribute:"unresolved"};var A=window.skate;D.noConflict=function(){return window.skate=A,D},window.skate=D,t.exports=D})?n.apply(t,s):n)||(e.exports=r)},429:(e,t,i)=>{var n,s,r;s=[t,i(844)],void 0===(r="function"==typeof(n=function(e,t){"use strict";e.hasOwn=r,e.camelCase=a,e.elementContains=o,e.debounce=l,e.getClosestIgnoredElement=c,e.inherit=u,e.objEach=d,e.supportsNativeCustomElements=h,e.isValidNativeCustomElementName=p,Object.defineProperty(e,"__esModule",{value:!0});var i=t.ATTR_IGNORE,n=window.HTMLElement.prototype;e.elementPrototype=n;var s=n.contains;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){return e.split(/-/g).map((function(e,t){return 0===t?e:e[0].toUpperCase()+e.substring(1)})).join("")}function o(e,t){return e!==document||e.contains?e.contains?e.contains(t):s.call(e,t):document.head.contains(t)||document.body.contains(t)}function l(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),1))}}function c(e){for(var t=e;t instanceof Element;){if(t.hasAttribute(i))return t;t=t.parentNode}}function u(e,t,i){for(var n=Object.getOwnPropertyNames(t),s=n.length,r=0;r<s;r++){var a=n[r];if(i||void 0===e[a]){var o=Object.getOwnPropertyDescriptor(t,a);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?e[a]=t[a]:Object.defineProperty(e,a,o)}}return e}function d(e,t){for(var i in e)r(e,i)&&t(e[i],i)}function h(){return"function"==typeof document.registerElement}function p(e){return e.indexOf("-")>0}})?n.apply(t,s):n)||(e.exports=r)},83:(e,t)=>{var i,n,s;n=[t,e],void 0===(s="function"==typeof(i=function(e,t){"use strict";t.exports="0.13.17"})?i.apply(t,n):i)||(e.exports=s)},473:()=>{
|
|
85
87
|
/**!
|
|
86
88
|
* TableSorter 2.17.7 - Client-side table sorting with ease!
|
|
87
89
|
* @requires jQuery v1.2.6+
|
|
@@ -98,5 +100,5 @@
|
|
|
98
100
|
* @author Christian Bach/christian.bach@polyester.se
|
|
99
101
|
* @contributor Rob Garrison/https://github.com/Mottie/tablesorter
|
|
100
102
|
*/
|
|
101
|
-
!function(t){"use strict";t.extend({tablesorter:new function(){var e=this;function i(){var t=arguments[0],e=arguments.length>1?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function n(t,e){i(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function s(t){for(var e in t)return!1;return!0}function r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?t(n).attr(a.textAttribute)||n.textContent||n.innerText||t(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=e.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||t(n).text()||"",t.trim(l)}function a(t,n,s,a){for(var o,l=e.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(t,c=n[s].cells[a],a),t.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=e.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,t,c))return o;return e.getParserById("text")}function o(t){var s,r,o,l,c,u,d,h,p,f,g=t.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=e.getColumnData(t,g.headers,l),p=e.getParserById(e.getData(c,u,"extractor")),h=e.getParserById(e.getData(c,u,"sorter")),d="false"===e.getData(c,u,"parser"),g.empties[l]=e.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top"),g.strings[l]=e.getData(c,u,"string")||g.stringTo||"max",d&&(h=e.getParserById("no-parser")),p||(p=!1),h||(h=a(t,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,C=y.parsers;if(y.cache={},y.totalRows=0,!C)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&e.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=t(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(e.css.cssHasChild),v.child[o]=t.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==C[d]?(o=r(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===C[d].id?"":C[d].format(l,s,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(C[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&e.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=t(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=e.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);e.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||e.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(t){return/^d/i.test(t)||1===t}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=e.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===e.css.icon?e.css.icon:f.cssIcon+" "+e.css.icon)+'"></i>':"",f.$headers=t(s).find(f.selectorHeaders).each((function(i){a=t(this),r=e.getColumnData(s,f.headers,i,!0),f.headerContent[i]=t(this).html(),c=f.headerTemplate.replace(/\{content\}/g,t(this).html()).replace(/\{icon\}/g,l),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),t(this).html('<div class="'+e.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(t(this).attr("data-column"),10),this.order=u(e.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=e.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(e.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(e.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col",role:"columnheader"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(t,e,i){var n=t.config;n.$table.find(n.selectorRemove).remove(),o(t),l(t),y(n.$table,e,i)}function p(i){var n,s,r,a=i.config;a.$headers.each((function(o,l){s=t(l),r=e.getColumnData(i,a.headers,o,!0),n="false"===e.getData(l,r,"sorter")||"false"===e.getData(l,r,"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,r,a=i.config,o=a.sortList,l=o.length,c=e.css.sortNone+" "+a.cssNone,u=[e.css.sortAsc+" "+a.cssAsc,e.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=t(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each((function(){var i=t(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],s=i.text()+": "+e.language[i.hasClass(e.css.sortAsc)?"sortAsc":i.hasClass(e.css.sortDesc)?"sortDesc":"sortNone"]+e.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(t,e){return t&&t[e]&&t[e].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout((function(){m(i,n,s)}),50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&t(this).is("."+e.css.sortDesc+",."+e.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=e.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(e.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(t){var i,r,a,o,l,c,u,d,h,p,f=0,m=t.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=t.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort((function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],t):e["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,t)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,t):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,t):e["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,t,m)),d)return d}return n[m.columns].order-s[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(e,i){e[0].isUpdating&&e.trigger("updateComplete"),t.isFunction(i)&&i(e[0])}function y(t,i,n){var s=t[0].config.sortList;!1!==i&&!t[0].isProcessing&&s.length?t.trigger("sorton",[s,function(){b(t,n)},!0]):(b(t,n),e.applyWidget(t[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(e,s){e.stopPropagation(),n.sortList=[],f(i),v(i),c(i),t.isFunction(s)&&s(i)})).bind("updateAll"+n.namespace,(function(t,s,r){t.stopPropagation(),i.isUpdating=!0,e.refreshWidgets(i,!0,!0),e.restoreHeaders(i),d(i),e.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(t,e,n){t.stopPropagation(),i.isUpdating=!0,p(i),h(i,e,n)})).bind("updateCell"+n.namespace,(function(e,s,o,l){e.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=t(s),g=p.index(t.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=t.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?r(i,s,h):n.extractors[h].format(r(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(e,l,c,u){if(e.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=t(l).attr("role","row")).filter("tr").length,C=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[C].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?r(i,l[d].cells[f],f):n.extractors[f].format(r(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[C].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[C].colMax[f]||0));w.push(b),n.cache[C].normalized.push(w)}y(a,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,r,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(e,i){var n,s,r,a,o,l=e.config,c=i||l.sortList;l.sortList=[],t.each(c,(function(e,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===e?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=t.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),e.applyWidget(i),t.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(e,n,s){e.stopPropagation(),c(i,s),t.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(e,s){n.parsers&&n.parsers.length||o(i),l(i),t.isFunction(s)&&s(i)})).bind("applyWidgetId"+n.namespace,(function(t,s){t.stopPropagation(),e.getWidgetById(s).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(t,n){t.stopPropagation(),e.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(t,n,s){t.stopPropagation(),e.refreshWidgets(i,n,s)})).bind("destroy"+n.namespace,(function(t,n,s){t.stopPropagation(),e.destroy(i,n,s)})).bind("resetToLoadState"+n.namespace,(function(){e.refreshWidgets(i,!0,!0),n=t.extend(!0,e.defaults,n.originalSettings),i.hasInitialized=!1,e.setup(i,n)}))}e.version="2.17.7",e.parsers=[],e.widgets=[],e.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:[]},e.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"},e.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"},e.log=i,e.benchmark=n,e.construct=function(i){return this.each((function(){var n=this,s=t.extend(!0,{},e.defaults,i);s.originalSettings=i,!n.hasInitialized&&e.buildTable&&"TABLE"!==this.tagName?e.buildTable(n,s):e.setup(n,s)}))},e.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var r,a="",c=t(n),u=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,t.data(n,"tablesorter",s),s.debug&&t.data(n,"startoveralltimer",new Date),s.supportsDataObject=((r=t.fn.jquery.split("."))[0]=parseInt(r[0],10),r[0]>1||1===r[0]&&parseInt(r[1],10)>=4),s.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(c.attr("class"))||(a=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=c.addClass(e.css.table+" "+s.tableClass+a).attr("role","grid"),s.$headers=c.find(s.selectorHeaders),s.namespace?s.namespace="."+s.namespace.replace(/\W/g,""):s.namespace=".tablesorter"+Math.random().toString(16).slice(2),s.$table.children().children("tr").attr("role","row"),s.$tbodies=c.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(e){if(e.config.widthFixed&&0===t(e).find("colgroup").length){var i=t("<colgroup>"),n=t(e).width();t(e.tBodies[0]).find("tr:first").children(":visible").each((function(){i.append(t("<col>").css("width",parseInt(t(this).width()/n*1e3,10)/10+"%"))})),t(e).prepend(i)}}(n),o(n),s.totalRows=0,s.delayInit||l(n),e.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==c.data().sortlist?s.sortList=c.data().sortlist:u&&c.metadata()&&c.metadata().sortlist&&(s.sortList=c.metadata().sortlist),e.applyWidget(n,!0),s.sortList.length>0?c.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&e.applyWidget(n,!1)),s.showProcessing&&c.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,(function(t){clearTimeout(s.processTimer),e.isProcessing(n),"sortBegin"===t.type&&(s.processTimer=setTimeout((function(){e.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&e.benchmark("Overall initialization time",t.data(n,"startoveralltimer")),c.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},e.getColumnData=function(e,i,n,s){if(null!=i){var r,a=(e=t(e)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},e.computeColumnIndex=function(e){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<e.length;i++)for(l=e[i].cells,n=0;n<l.length;n++){for(o=l[n],a=t(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},e.isProcessing=function(i,n,s){var r=(i=t(i))[0].config,a=s||i.find("."+e.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&e.isValueInArray(parseFloat(t(this).attr("data-column")),r.sortList)>=0}))),i.add(a).addClass(e.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(e.css.processing+" "+r.cssProcessing)},e.processTbody=function(e,i,n){var s;if(e=t(e)[0],n)return e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=t.fn.detach?i.detach():i.remove();s=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),e.isProcessing=!1},e.clearTableBody=function(e){t(e)[0].config.$tbodies.children().detach()},e.bindEvents=function(e,i,n){var r,a=(e=t(e)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(e),c=t.fn.closest?t(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:t(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(e,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},e.restoreHeaders=function(i){var n=t(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){t(this).find("."+e.css.headerIn).length&&t(this).html(n.headerContent[i])}))},e.destroy=function(i,n,s){if((i=t(i)[0]).hasInitialized){e.refreshWidgets(i,!0,!0);var r=t(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+e.css.headerRow).removeClass(e.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&t.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([e.css.header,a.cssHeader,a.cssAsc,a.cssDesc,e.css.sortAsc,e.css.sortDesc,e.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),e.restoreHeaders(i),r.toggleClass(e.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},e.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},e.sortNatural=function(t,i){if(t===i)return 0;var n,s,r,a,o,l,c,u,d=e.regex;if(d.hex.test(i)){if((s=parseInt(t.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[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},e.sortNaturalAsc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:e.sortNatural(t,i)},e.sortNaturalDesc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:e.sortNatural(i,t)},e.sortText=function(t,e){return t>e?1:t<e?-1:0},e.getTextValue=function(t,e,i){if(i){var n,s=t?t.length:0,r=i+e;for(n=0;n<s;n++)r+=t.charCodeAt(n);return e*r}return 0},e.sortNumericAsc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),t-i)},e.sortNumericDesc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),i-t)},e.sortNumeric=function(t,e){return t-e},e.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},e.replaceAccents=function(t){var i,n="[",s=e.characterEquivalents;if(!e.characterRegex){for(i in e.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],e.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));e.characterRegex=new RegExp(n+"]")}if(e.characterRegex.test(t))for(i in s)"string"==typeof i&&(t=t.replace(e.characterRegexArray[i],i));return t},e.isValueInArray=function(t,e){var i,n=e.length;for(i=0;i<n;i++)if(e[i][0]===t)return i;return-1},e.addParser=function(t){var i,n=e.parsers.length,s=!0;for(i=0;i<n;i++)e.parsers[i].id.toLowerCase()===t.id.toLowerCase()&&(s=!1);s&&e.parsers.push(t)},e.getParserById=function(t){if("false"==t)return!1;var i,n=e.parsers.length;for(i=0;i<n;i++)if(e.parsers[i].id.toLowerCase()===t.toString().toLowerCase())return e.parsers[i];return!1},e.addWidget=function(t){e.widgets.push(t)},e.hasWidget=function(e,i){return(e=t(e)).length&&e[0].config&&e[0].config.widgetInit[i]||!1},e.getWidgetById=function(t){var i,n,s=e.widgets.length;for(i=0;i<s;i++)if((n=e.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===t.toLowerCase())return n},e.applyWidget=function(i,s){var r,a,o,l=(i=t(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=t.grep(l.widgets,(function(e,i){return t.inArray(e,l.widgets)===i})),t.each(l.widgets||[],(function(t,i){(o=e.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[t]=o)})),u.sort((function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1})),t.each(u,(function(e,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=t.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&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},e.refreshWidgets=function(n,s,r){var a,o=(n=t(n)[0]).config,l=o.widgets,c=e.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||t.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&e.applyWidget(n,s)},e.getData=function(e,i,n){var s,r,a="",o=t(e);return o.length?(s=!!t.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),t.trim(a)):""},e.formatFloat=function(e,i){return"string"!=typeof e||""===e?e:(e=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(e),isNaN(n)?t.trim(e):n);var n},e.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),e.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=t.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var n,s=t?t.split("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return t?e.formatFloat(r,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){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(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,n,s){if(t){var r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||e.getData(a,e.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return t(n).metadata()[r]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(r=h.eq(u)).children("tr").length>1&&(o=0,r.children("tr:visible").not(n.selectorRemove).each((function(){a=t(this),d.test(this.className)||o++,l=o%2==0,a.removeClass(s.zebra[l?1:0]).addClass(s.zebra[l?0:1])})));n.debug&&e.benchmark("Applying Zebra widget",c)},remove:function(e,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=t.tablesorter.processTbody(e,a.eq(s),!0)).children().removeClass(o),t.tablesorter.processTbody(e,r,!1)}})}(jQuery)},37:()=>{var t;void 0===(t=jQuery).fn.each2&&t.extend(t.fn,{each2:function(e){for(var i=t([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==e.call(i[0],n,i););return this}}),function(t,e){"use strict";if(window.Select2===e){var i,n,s,r,a,o,l,c,u={x:0,y:0},d={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(t){switch(t=t.which?t.which:t){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return(t=t.which?t.which:t)>=112&&t<=123}},h={"Ⓐ":"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"};o=t(document),c=1,r=function(){return c++},o.on("mousemove",(function(t){u.x=t.pageX,u.y=t.pageY})),i=O(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(i){var n,s,a,o,c,d=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==e&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(a=function(){return i.element.closest("body")},c=!1,function(){return!1===c&&(o=a(),c=!0),o}),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(A(i.containerCss)),this.container.addClass(A(i.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(i.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=n=this.container.find(d),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",(function(i){var n=u;n!==e&&n.x===i.pageX&&n.y===i.pageY||t(i.target).trigger("mousemove-filtered",i)})),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",d,this.bind(this.highlightUnderEvent)),function(t,e){var i=y(t,(function(t){e.trigger("scroll-debounced",t)}));e.on("scroll",(function(t){f(t.target,e.get())>=0&&i(t)}))}(80,this.results),this.dropdown.on("scroll-debounced",d,this.bind(this.loadMoreIfNeeded)),t(this.container).on("change",".select2-input",(function(t){t.stopPropagation()})),t(this.dropdown).on("change",".select2-input",(function(t){t.stopPropagation()})),t.fn.mousewheel&&n.mousewheel((function(t,e,i,s){var r=n.scrollTop();s>0&&r-s<=0?(n.scrollTop(0),w(t)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),w(t))})),b(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",(function(){s.addClass("select2-focused")})),s.on("blur",(function(){s.removeClass("select2-focused")})),this.dropdown.on("mouseup",d,this.bind((function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))}))),this.dropdown.on("click mouseup mousedown",(function(t){t.stopPropagation()})),t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var h=i.element.prop("disabled");h===e&&(h=!1),this.enable(!h);var p=i.element.prop("readonly");p===e&&(p=!1),this.readonly(p),l=l||function(){var e=t("<div class='select2-measure-scrollbar'></div>");e.appendTo("body");var i={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=e},destroy:function(){var t=this.opts.element,i=t.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),i!==e&&(i.container.remove(),i.dropdown.remove(),t.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show())},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:g(t.attr("locked"),"locked")||g(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(i){var n,s,r,a,o=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),"function"!=typeof(i=t.extend({},{populateResults:function(n,s,r){var a,l=this.opts.id;(a=function(n,s,c){var u,d,h,p,f,g,m,v,b,y;for(u=0,d=(n=i.sortResults(n,s,r)).length;u<d;u+=1)p=!(f=!0===(h=n[u]).disabled)&&l(h)!==e,g=h.children&&h.children.length>0,(m=t("<li></li>")).addClass("select2-results-dept-"+c),m.addClass("select2-result"),m.addClass(p?"select2-result-selectable":"select2-result-unselectable"),f&&m.addClass("select2-disabled"),g&&m.addClass("select2-result-with-children"),m.addClass(o.opts.formatResultCssClass(h)),(v=t(document.createElement("div"))).addClass("select2-result-label"),(y=i.formatResult(h,v,r,o.opts.escapeMarkup))!==e&&v.html(y),m.append(v),g&&((b=t("<ul></ul>")).addClass("select2-result-sub"),a(h.children,b,c+1),m.append(b)),m.data("select2-data",h),s.append(m)})(s,n,0)}},t.fn.select2.defaults,i)).id&&(r=i.id,i.id=function(t){return t[r]}),t.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(t){var i,s,r,a={results:[],more:!1},l=t.term;r=function(e,i){var n;e.is("option")?t.matcher(l,e.text(),e)&&i.push(o.optionToData(e)):e.is("optgroup")&&(n=o.optionToData(e),e.children().each2((function(t,e){r(e,n.children)})),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==e&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2((function(t,e){r(e,a.results)})),t.callback(a)})),i.id=function(t){return t.id},i.formatResultCssClass=function(t){return t.css}):"query"in i||("ajax"in i?((a=i.element.data("ajax-url"))&&a.length>0&&(i.ajax.url=a),i.query=x.call(i.element,i.ajax)):"data"in i?i.query=E(i.data):"tags"in i&&(i.query=D(i.tags),i.createSearchChoice===e&&(i.createSearchChoice=function(e){return{id:t.trim(e),text:t.trim(e)}}),i.initSelection===e&&(i.initSelection=function(e,n){var s=[];t(m(e.val(),i.separator)).each((function(){var e={id:this,text:this},n=i.tags;t.isFunction(n)&&(n=n()),t(n).each((function(){if(g(this.id,e.id))return e=this,!1})),s.push(e)})),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");return i},monitorSource:function(){var t,i,n=this.opts.element;n.on("change.select2",this.bind((function(t){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),t=this.bind((function(){var t=n.prop("disabled");t===e&&(t=!1),this.enable(!t);var i=n.prop("readonly");i===e&&(i=!1),this.readonly(i),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass)),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass))})),n.on("propertychange.select2",t),this.mutationCallback===e&&(this.mutationCallback=function(e){e.forEach(t)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==e&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var i=t.Event("select2-selecting",{val:this.id(e),object:e});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=t.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),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 t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===e&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){return t===e&&(t=!1),this._readonly!==t&&(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,i,n,s,r,a=this.dropdown,o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),h=t(window),p=h.width(),f=h.height(),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,b=o.left,y=v+d<=m,w=o.top-d>=this.body().scrollTop(),_=a.outerWidth(!1),C=b+_<=g;a.hasClass("select2-drop-above")?(i=!0,!w&&y&&(n=!0,i=!1)):(i=!1,!y&&w&&(n=!0,i=!0)),n&&(a.hide(),o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,C=(b=o.left)+(_=a.outerWidth(!1))<=g,a.show()),this.opts.dropdownAutoWidth?(r=t(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(_=a.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:l.width))>u?u=_:_=u,C=b+_<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(v-=(e=this.body().offset()).top,b-=e.left),C||(b=o.left+u-_),s={left:b,width:u},i?(s.bottom=f-o.top,s.top="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(s.top=v,s.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),s=t.extend(s,A(this.opts.dropdownCss)),a.css(s)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=t.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var e,i=this.containerId,n="scroll."+i,s="resize."+i,r="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==(e=t("#select2-drop-mask")).length&&((e=t(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body()),e.on("mousedown touchstart click",(function(e){var i,n=t("#select2-drop");n.length>0&&((i=n.data("select2")).opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),e.preventDefault(),e.stopPropagation())}))),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){t(this).on(s+" "+n+" "+r,(function(t){a.positionDropdown()}))}))},close:function(){if(this.opened()){var e=this.containerId,i="scroll."+e,n="resize."+e,s="orientationchange."+e;this.container.parents().add(window).each((function(){t(this).off(i).off(n).off(s)})),this.clearDropdownAlignmentPreference(),t("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(t.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return A(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,i,n,s,r,a,o,l=this.results;(i=this.highlight())<0||(0!=i?(e=this.findHighlightableChoices().find(".select2-result-label"),s=(n=t(e[i])).offset().top+n.outerHeight(!0),i===e.length-1&&(o=l.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(r=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(s-r)),(a=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+a)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(e){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=t(i[n+=e]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var i,n,s=this.findHighlightableChoices();if(0===arguments.length)return f(s.filter(".select2-highlighted")[0],s.get());e>=s.length&&(e=s.length-1),e<0&&(e=0),this.removeHighlight(),(i=t(s[e])).addClass("select2-highlighted"),this.ensureHighlightVisible(),(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")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var i=t(e.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 t=this.results,e=t.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),r=this.context;0!==e.length&&e.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(e.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:r,matcher:this.opts.matcher,callback:this.bind((function(a){n.opened()&&(n.opts.populateResults.call(this,t,a.results,{term:s,page:i,context:r}),n.postprocessResults(a,!1,!1),!0===a.more?(e.detach().appendTo(t).text(n.opts.formatLoadMore(i+1)),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):e.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var n,s,r,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),d=t.data(this.container,"select2-last-term");if((!0===i||!d||!g(u,d))&&(t.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),t.isArray(n)&&n.length>=h&&T(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(T(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+l.formatInputTooShort(a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?T(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+l.formatInputTooLong(a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+l.formatSearching()+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=e&&null!=s&&a.val(s),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var s;r==this.queryCount&&(this.opened()?(this.context=n.context===e?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&(s=this.opts.createSearchChoice.call(c,a.val(),n.results))!==e&&null!==s&&c.id(s)!==e&&null!==c.id(s)&&0===t(n.results).filter((function(){return g(c.id(this),c.id(s))})).length&&n.results.unshift(s),0===n.results.length&&T(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+l.formatNoMatches(a.val())+"</li>"):(o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&T(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+c.opts.escapeMarkup(l.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n}))):this.search.removeClass("select2-active"))}))})));f("<li class='select2-selection-limit'>"+l.formatSelectionTooBig(h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown()}function f(t){o.html(t),p()}},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 t;(t=this.search)[0]!==document.activeElement&&window.setTimeout((function(){var e,i=t[0],n=t.val().length;t.focus(),t.is(":visible")&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((e=i.createTextRange()).collapse(!1),e.select()))}),0)},selectHighlighted:function(t){var e=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(e),this.onSelect(i,t)):t&&t.noFocus&&this.close()},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==e?t.text():e)},getPlaceholderOption:function(){if(this.select){var t=this.select.children("option").first();if(this.opts.placeholderOption!==e)return"first"===this.opts.placeholderOption&&t||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===t.text()&&""===t.val())return t}},initContainerWidth:function(){var i=function(){var i,n,s,r,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==e)for(r=0,a=(n=i.split(";")).length;r<a;r+=1)if(null!==(s=n[r].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&s.length>=1)return s[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width")).indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==i&&this.container.css("width",i)}}),n=O(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,n,s;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(i=this.search.get(0)).createTextRange?((n=i.createTextRange()).collapse(!1),n.select()):i.setSelectionRange&&(s=this.search.val().length,i.setSelectionRange(s,s)),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(t.Event("select2-open"))},close:function(t){this.opened()&&(this.parent.close.apply(this,arguments),t=t||{focus:!0},this.focusser.removeAttr("disabled"),t.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){t("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,i=this.container,n=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=i.find(".select2-choice"),this.focusser=i.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+r()),t("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled())if(t.which!==d.PAGE_UP&&t.which!==d.PAGE_DOWN)switch(t.which){case d.UP:case d.DOWN:return this.moveHighlight(t.which===d.UP?-1:1),void w(t);case d.ENTER:return this.selectHighlighted(),void w(t);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(t),void w(t)}else w(t)}))),this.search.on("blur",this.bind((function(t){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind((function(){this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled()&&t.which!==d.TAB&&!d.isControl(t)&&!d.isFunctionKey(t)&&t.which!==d.ESC){if(!1!==this.opts.openOnEnter||t.which!==d.ENTER){if(t.which==d.DOWN||t.which==d.UP||t.which==d.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void w(t)}return t.which==d.DELETE||t.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(t)):void 0}w(t)}}))),b(this.focusser),this.focusser.on("keyup-change input",this.bind((function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}}))),e.on("mousedown","abbr",this.bind((function(t){var e;this.isInterfaceEnabled()&&(this.clear(),(e=t).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())}))),e.on("mousedown",this.bind((function(e){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(e)}))),n.on("mousedown",this.bind((function(){this.search.focus()}))),e.on("focus",this.bind((function(t){w(t)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.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(t.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var i=this.selection.data("select2-data");if(i){var n=t.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!==e&&(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 t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.setPlaceholder())}))}},isPlaceholderOptionSelected:function(){var t;return!!this.getPlaceholder()&&((t=this.getPlaceholderOption())!==e&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===e||null===this.opts.element.val())},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=t.find("option").filter((function(){return this.selected}));e(i.optionToData(n))}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=i.val(),r=null;e.query({matcher:function(t,i,n){var a=g(s,e.id(n));return a&&(r=n),a},callback:t.isFunction(n)?function(){n(r)}:t.noop})}),e},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===e?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===e)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,i){var n=0,s=this;if(this.findHighlightableChoices().each2((function(t,e){if(g(s.id(e.data("select2-data")),s.opts.element.val()))return n=t,!1})),!1!==i&&(!0===e&&n>=0?this.highlight(n):this.highlight(0)),!0===e){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(S(t.results)>=r)}},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),t(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(t,e){if(this.triggerSelect(t)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.close(),e&&e.noFocus||this.focusser.focus(),g(i,this.id(t))||this.triggerChange({added:t,removed:n})}},updateSelection:function(t){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),s.empty(),null!==t&&(i=this.opts.formatSelection(t,s,this.opts.escapeMarkup)),i!==e&&s.append(i),(n=this.opts.formatSelectionCssClass(t,s))!==e&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.container.addClass("select2-allowclear")},val:function(){var t,i=!1,n=null,s=this,r=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(t).find("option").filter((function(){return this.selected})).each2((function(t,e){return n=s.optionToData(e),!1})),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:r});else{if(!t&&0!==t)return void this.clear(i);if(this.opts.initSelection===e)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,(function(t){s.opts.element.val(t?s.id(t):""),s.updateSelection(t),s.setPlaceholder(),i&&s.triggerChange({added:t,removed:r})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==e&&(i=null),i;arguments.length>1&&(n=arguments[1]),t?(i=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),n&&this.triggerChange({added:t,removed:i})):this.clear(n)}}),s=O(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=[];t.find("option").filter((function(){return this.selected})).each2((function(t,e){n.push(i.optionToData(e))})),e(n)}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=m(i.val(),e.separator),r=[];e.query({matcher:function(i,n,a){var o=t.grep(s,(function(t){return g(t,e.id(a))})).length;return o&&r.push(a),o},callback:t.isFunction(n)?function(){for(var t=[],i=0;i<s.length;i++)for(var a=s[i],o=0;o<r.length;o++){var l=r[o];if(g(a,e.id(l))){t.push(l),r.splice(o,1);break}}n(t)}:t.noop})}),e},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){t("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(i);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",(function(e){n.search[0].focus(),n.selectChoice(t(this))})),this.search.attr("id","s2id_autogen"+r()),t("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind((function(){this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=e.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),a=function(e){var i=0,n=0;if("selectionStart"in(e=t(e)[0]))i=e.selectionStart,n=e.selectionEnd-i;else if("selection"in document){e.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-e.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var o=n;return i.which==d.LEFT&&s.length?o=s:i.which==d.RIGHT?o=r.length?r:null:i.which===d.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=s.length?s:r):i.which==d.DELETE?(this.unselect(n.first()),this.search.width(10),o=r.length?r:null):i.which==d.ENTER&&(o=null),this.selectChoice(o),w(i),void(o&&o.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(e.find(".select2-search-choice:not(.select2-locked)").last()),void w(i);if(this.selectChoice(null),this.opened())switch(i.which){case d.UP:case d.DOWN:return this.moveHighlight(i.which===d.UP?-1:1),void w(i);case d.ENTER:return this.selectHighlighted(),void w(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void w(i)}if(i.which!==d.TAB&&!d.isControl(i)&&!d.isFunctionKey(i)&&i.which!==d.BACKSPACE&&i.which!==d.ESC){if(i.which===d.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==d.PAGE_UP&&i.which!==d.PAGE_DOWN||w(i),i.which===d.ENTER&&w(i)}}}))),this.search.on("keyup",this.bind((function(t){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(t.Event("select2-blur"))}))),this.container.on("click",i,this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))}))),this.container.on("focus",i,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.clearSearch())}))}},clearSearch:function(){var t=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(t).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(t.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(e){var i=[],n=[],s=this;t(e).each((function(){f(s.id(this),i)<0&&(i.push(s.id(this)),n.push(this))})),e=n,this.selection.find(".select2-search-choice").remove(),t(e).each((function(){s.addSelectedChoice(this)})),s.postprocessResults()},tokenize:function(){var t=this.search.val();null!=(t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,e){this.triggerSelect(t)&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(t,!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.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),e&&e.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var n,s,r=!i.locked,a=t("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=t("<li class='select2-search-choice select2-locked'><div></div></li>"),l=r?a:o,c=this.id(i),u=this.getVal();(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=e&&l.find("div").replaceWith("<div>"+n+"</div>"),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=e&&l.addClass(s),r&&l.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").fadeOut("fast",this.bind((function(){this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()}))).dequeue(),w(e))}))).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),u.push(c),this.setVal(u)},unselect:function(e){var i,n,s=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(i=e.data("select2-data")){for(;(n=f(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();var r=t.Event("select2-removing");r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented()||(e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(t,e,i){var n=this.getVal(),s=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;s.each2((function(t,e){f(a.id(e.data("select2-data")),n)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))})),r.each2((function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&a.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&T(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+a.opts.formatNoMatches(a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-v(this.search)},resizeSearch:function(){var e,i,n,s,r=v(this.search);e=function(e){if(!a){var i=e[0].currentStyle||window.getComputedStyle(e[0],null);(a=t(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"),t("body").append(a)}return a.text(e.val()),a.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-r)<e&&(s=n-r),s<40&&(s=n-r),s<=0&&(s=e),this.search.width(Math.floor(s))},getVal:function(){var t;return this.select?null===(t=this.select.val())?[]:t:m(t=this.opts.element.val(),this.opts.separator)},setVal:function(e){var i;this.select?this.select.val(e):(i=[],t(e).each((function(){f(this,i)<0&&i.push(this)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(t,e){e=e.slice(0),t=t.slice(0);for(var i=0;i<e.length;i++)for(var n=0;n<t.length;n++)g(this.opts.id(e[i]),this.opts.id(t[n]))&&(e.splice(i,1),i>0&&i--,t.splice(n,1),n--);return{added:e,removed:t}},val:function(i,n){var s,r=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));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===e)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(e){var i=t.map(e,r.id);r.setVal(i),r.updateSelection(e),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(s,r.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){e.push(i.opts.id(t(this).data("select2-data")))})),this.setVal(e),this.triggerChange()},data:function(e,i){var n,s,r=this;if(0===arguments.length)return this.selection.find(".select2-search-choice").map((function(){return t(this).data("select2-data")})).get();s=this.data(),e||(e=[]),n=t.map(e,(function(t){return r.opts.id(t)})),this.setVal(n),this.updateSelection(e),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),t.fn.select2=function(){var i,r,a,o,l,c=Array.prototype.slice.call(arguments,0),u=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],d=["opened","isFocused","container","dropdown"],h=["val","data"],p={search:"externalSearch"};return this.each((function(){if(0===c.length||"object"==typeof c[0])(i=0===c.length?{}:t.extend({},c[0])).element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?l=i.element.prop("multiple"):(l=i.multiple||!1,"tags"in i&&(i.multiple=l=!0)),(r=l?new s:new n).init(i);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(f(c[0],u)<0)throw"Unknown method: "+c[0];if(o=e,(r=t(this).data("select2"))===e)return;if("container"===(a=c[0])?o=r.container:"dropdown"===a?o=r.dropdown:(p[a]&&(a=p[a]),o=r[a].apply(r,c.slice(1))),f(c[0],d)>=0||f(c[0],h)&&1==c.length)return!1}})),o===e?this:o},t.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,i,n){var s=[];return C(t.text,i.term,s,n),s.join("")},formatSelection:function(t,i,n){return t?n(t.text):e},sortResults:function(t,e,i){return t},formatResultCssClass:function(t){return e},formatSelectionCssClass:function(t,i){return e},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(t,e){var i=e-t.length;return"Please enter "+i+" more character"+(1==i?"":"s")},formatInputTooLong:function(t,e){var i=t.length-e;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t.id},matcher:function(t,e){return p(""+e).toUpperCase().indexOf(p(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(t,i,n,s){var r,a,o,l,c,u=t,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return e;for(;;){for(a=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((a=t.indexOf(c))>=0));o++);if(a<0)break;if(r=t.substring(0,a),t=t.substring(a+c.length),r.length>0&&(r=s.createSearchChoice.call(this,r,i))!==e&&null!==r&&s.id(r)!==e&&null!==s.id(r)){for(d=!1,o=0,l=i.length;o<l;o++)if(g(s.id(r),s.id(i[o]))){d=!0;break}d||n(r)}}return u!==t?t:void 0},escapeMarkup:k,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null},nextSearchTerm:function(t,i){return e}},t.fn.select2.ajaxDefaults={transport:t.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:x,local:E,tags:D},util:{debounce:y,markMatch:C,escapeMarkup:k,stripDiacritics:p},class:{abstract:i,single:n,multi:s}}}function p(t){var e,i,n,s;if(!t||t.length<1)return t;for(e="",i=0,n=t.length;i<n;i++)s=t.charAt(i),e+=h[s]||s;return e}function f(t,e){for(var i=0,n=e.length;i<n;i+=1)if(g(t,e[i]))return i;return-1}function g(t,i){return t===i||t!==e&&i!==e&&(null!==t&&null!==i&&(t.constructor===String?t+""==i+"":i.constructor===String&&i+""==t+""))}function m(e,i){var n,s,r;if(null===e||e.length<1)return[];for(s=0,r=(n=e.split(i)).length;s<r;s+=1)n[s]=t.trim(n[s]);return n}function v(t){return t.outerWidth(!1)-t.width()}function b(i){var n="keyup-change-value";i.on("keydown",(function(){t.data(i,n)===e&&t.data(i,n,i.val())})),i.on("keyup",(function(){var s=t.data(i,n);s!==e&&i.val()!==s&&(t.removeData(i,n),i.trigger("keyup-change"))}))}function y(t,i,n){var s;return n=n||e,function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout((function(){i.apply(n,e)}),t)}}function w(t){t.preventDefault(),t.stopPropagation()}function _(e,i,n){var s,r,a=[];(s=e.attr("class"))&&t((s=""+s).split(" ")).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(s=i.attr("class"))&&t((s=""+s).split(" ")).each2((function(){0!==this.indexOf("select2-")&&(r=n(this))&&a.push(r)})),e.attr("class",a.join(" "))}function C(t,e,i,n){var s=p(t.toUpperCase()).indexOf(p(e.toUpperCase())),r=e.length;s<0?i.push(n(t)):(i.push(n(t.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(t.substring(s,s+r))),i.push("</span>"),i.push(n(t.substring(s+r,t.length))))}function k(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))}function x(i){var n,s=null,r=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,r=a,c=i.transport||t.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||e,dataType:i.dataType||"json"},d=t.extend({},t.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,s&&s.abort(),i.params&&(t.isFunction(i.params)?t.extend(d,i.params.call(o)):t.extend(d,i.params)),t.extend(d,{url:r,dataType:i.dataType,data:n,success:function(t){var e=i.results(t,l.page);l.callback(e)}}),s=c.call(o,d)}),r)}}function E(e){var i,n,s=e,r=function(t){return""+t.text};t.isArray(s)&&(s={results:n=s}),!1===t.isFunction(s)&&(n=s,s=function(){return n});var a=s();return a.text&&(r=a.text,t.isFunction(r)||(i=a.text,r=function(t){return t[i]})),function(e){var i,n=e.term,a={results:[]};""!==n?(i=function(s,a){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],t(s.children).each2((function(t,e){i(e,o.children)})),(o.children.length||e.matcher(n,r(o),s))&&a.push(o)}else e.matcher(n,r(s),s)&&a.push(s)},t(s().results).each2((function(t,e){i(e,a.results)})),e.callback(a)):e.callback(s())}}function D(i){var n=t.isFunction(i);return function(s){var r=s.term,a={results:[]};t(n?i():i).each((function(){var t=this.text!==e,i=t?this.text:this;(""===r||s.matcher(r,i))&&a.results.push(t?this:{id:this,text:this})})),s.callback(a)}}function T(e,i){if(t.isFunction(e))return!0;if(!e)return!1;throw new Error(i+" must be a function or a falsy value")}function A(e){return t.isFunction(e)?e():e}function S(e){var i=0;return t.each(e,(function(t,e){e.children?i+=S(e.children):i++})),i}function O(e,i){var n=function(){};return(n.prototype=new e).constructor=n,n.prototype.parent=e.prototype,n.prototype=t.extend(n.prototype,i),n}}(jQuery)},562:()=>{jQuery.fn.serializeObject=function(){var t={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each((function(){""!==this.name&&(null===this.value&&(this.value=""),t[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)})),this.find("input:radio:checked").each((function(){t[this.name]=this.value})),this.find("select[multiple]").each((function(){var e=jQuery(this),i=e.val();e.data("aui-ss")?t[this.name]=i?i[0]:"":t[this.name]=null!==i?i:[]})),t}},775:e=>{"use strict";e.exports=t},472:t=>{"use strict";t.exports=e},302:t=>{"use strict";t.exports=i}},s={};function r(t){var e=s[t];if(void 0!==e)return e.exports;var i=s[t]={exports:{}};return n[t].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.r(a),r.d(a,{$:()=>Lt,CalendarWidget:()=>vo,CheckboxMultiselectEl:()=>Qn,DatePicker:()=>wo,DropdownEl:()=>cn,FancyFileInput:()=>Zn,FocusManager:()=>Cl,Header:()=>co,I18n:()=>I18n,InlineDialog2:()=>kl,InlineDialogEl:()=>_r,ItemCheckboxEl:()=>an,ItemLinkEl:()=>rn,ItemRadioEl:()=>on,LabelEl:()=>ns,LayerManager:()=>xl,MessageEl:()=>bn,NavigationEl:()=>xr,ProgressBarEl:()=>Rr,ProgressiveDataSet:()=>El,RestfulTable:()=>Wo,SectionEl:()=>ln,SelectEl:()=>Hs,SpinnerEl:()=>Qt,TabContainerEl:()=>aa,TabItemEl:()=>oa,TabPaneEl:()=>la,ToggleEl:()=>tr,_addID:()=>Ul,banner:()=>Bt,bind:()=>y,clone:()=>Dl,contextPath:()=>zl,debounce:()=>Tl,debounceImmediate:()=>Al,dialog2:()=>ae,dim:()=>Sl,error:()=>p,escapeHtml:()=>Ol,flag:()=>En,formValidation:()=>Il,format:()=>g,id:()=>Nl,isClipped:()=>Pl,keyCode:()=>Ml,layer:()=>Ll,log:()=>d,messages:()=>Rl,navigation:()=>Er,params:()=>jl,populateParameters:()=>$l,progressBars:()=>jr,responsiveheader:()=>Fl,select:()=>Hl,sidebar:()=>hl,tablessortable:()=>Wl,tabs:()=>Bl,toInit:()=>$t,trigger:()=>_,unbind:()=>w,undim:()=>Vl,version:()=>v,warn:()=>h,whenIType:()=>_l});var t=r(472),e=r.n(t);const i=window.jQuery||window.Zepto||e();function n(){"object"!=typeof window.AJS&&(window.AJS={})}function s(t,e){return n(),window.AJS[t]=e}var o=r(953),l=r.n(o);function c(t,e){var n=i(t);return void 0===e&&(e=!0),n.each((function(){this.disabled=!e}))}function u(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],console,arguments)}}l()("checkbox",{type:l().type.CLASSNAME,attached:function(t){e()("input[type=checkbox]",t).each((function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(t){e()(".aui-form-glyph",t).remove()}}),l()("radio",{type:l().type.CLASSNAME,attached:function(t){e()("input[type=radio]",t).each((function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(t){e()(".aui-form-glyph",t).remove()}}),s("enable",c),s("inlineHelp",(function(){i(document).on("click",".icon-inline-help",(function(){var t=i(this).siblings(".field-help");t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden")}))}));var d=u("log"),h=u("warn"),p=u("error");function f(t){var e=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(e,a){var o,l="";if(o=e.match(i))l=a.length>++e?a[e]:"";else if(o=e.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=e.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,g=0;g<u.length;g++){var m=u[g].match(r);if(null!=m){var v=parseInt(m[1],10);if(c<v){if(h){l=h;break}l=m[3];break}if(c==v&&"#"==m[2]){l=m[3];break}g==u.length-1&&(l=m[3]),h=m[3]}else d=!0}d&&p('The format "'+e+'" from message "'+t+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=f.apply(null,b)}}return l},o=function(t){for(var e=!1,i=-1,n=0,s=0;s<t.length;s++){var r=t.charAt(s);if("'"==r&&(e=!e),!e)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(t.substring(0,s+1)),a.push(t.substring(0,i)),a.push(t.substring(i+1,s)),a}}return null},l=function(t){var i=arguments,n="";if(!t)return n;for(var s=o(t);s;)t=t.substring(s[0].length),n+=s[1].replace(e,""),n+=a(s[2],i),s=o(t);return n+=t.replace(e,"")};return l.apply(null,arguments)}s("error",p),s("log",d),s("warn",h),s("format",f);const g=f;var m="9.4.7";s("version",m);const v=m,b=i(window);function y(t,e,i){try{return"function"==typeof i?b.on(t,false,e,i):b.on(t,false,e)}catch(t){d("error while binding: ",t.message)}}function w(t,e){try{return b.off(t,e)}catch(t){d("error while unbinding: ",t.message)}}function _(t,e){try{return b.trigger(t,e)}catch(t){d("error while triggering: "+t.message)}}s("bind",y),s("trigger",_),s("unbind",w);const C={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},k=new RegExp(`[${Object.keys(C).join("")}]`,"g");function x(t){return t.replace(k,(t=>C[t]))}s("escapeHtml",x);const E=x;var D=Object.prototype.hasOwnProperty,T=[];function A(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function S(t,e){if("function"==typeof t)return t;var i=!1;return e=e||{},function(n){var s,r=function(t){var e=new Error,i=e.stack||e.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[t+2]:n}(n||1)||"";if(!i||-1===T.indexOf(r)){T.push(r),i=!0;var a="DEPRECATED "+(e.deprecationType+" "||0)+"- "+(s=t,((s+="")?s.charAt(0).toUpperCase()+s.substring(1):"")+" has been deprecated")+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion||"a future release")+".";e.alternativeName&&(a+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(a+=" "+e.extraInfo),r=""===r?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+r,e.extraObject?A(a+="\n",e.extraObject,r):A(a,r)}}}function O(t,e){var n=t.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:e},t.options);S("'"+t.selector+"' pattern"+n,s)()}function I(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=S(e||t.name||"this function",i);return function(){return n(),t.apply(this,arguments)}}function N(t,e,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=I(t,e,n);return s.prototype=t.prototype,i.extend(s,t),s}var P=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),P=!0)}catch(t){}function M(t,e,i){if("function"==typeof t[e]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||e;t[e]=I(t[e],n,i)}else!function(t,e,i){if(P){var n=t[e];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=S(i.displayName||e,i);Object.defineProperty(t,e,{get:function(){return s(),n},set:function(t){return n=t,s(),t}})}}(t,e,i)}function L(t){return function(e){for(var i={selector:e,options:t||{}},n=document.querySelectorAll(e),s=0;s<n.length;s++)O(i,n[s]);!function(t){if($.push(t),!j){j=new MutationObserver((function(t){t.forEach((function(t){for(var e=t.addedNodes,i=0;i<e.length;i++){var n=e[i];1===n.nodeType&&$.forEach(R(n))}}))}));var e={childList:!0,subtree:!0};j.observe(document,e)}}(i)}}function R(t){return function(e){var i,n;i=t,n=e.selector,(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector).call(i,n)&&O(e,t)}}const $=[];let j;function F(t){t=t.jquery?t[0]:t,window.getComputedStyle(t,null).getPropertyValue("left")}var H;s("deprecate",{fn:I,construct:N,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(L(e))},prop:M,obj:function(t,e,n){for(var s in n=n||{},t)D.call(t,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=e+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,M(t,s,i.extend({},n)))},propertyDeprecationSupported:P,getMessageLogger:S});var W=[];function B(t,e){Array.prototype.forEach.call(document.body.children,(function(t){(function(t){return t.hasAttribute("aria-hidden")})(t)||function(t){return t.classList.contains("aui-layer")}(t)||(t.setAttribute("aria-hidden","true"),W.push(t))})),H||(H=document.body),!0===t&&U();var n=!!B.$dim&&!B.$dim[0].hasAttribute("hidden");return B.$dim&&(B.$dim.remove(),B.$dim=null),B.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),B.$dim.attr("tabindex","0"),B.$dim.appendTo(document.body),n||(F(B.$dim),B.cachedOverflow={overflow:H.style.overflow,overflowX:H.style.overflowX,overflowY:H.style.overflowY},H.style.overflowX="hidden",H.style.overflowY="hidden",H.style.overflow="hidden"),B.$dim.removeAttr("hidden"),e&&B.$dim.css({zIndex:e}),B.$dim}function V(){W.forEach((function(t){t.removeAttribute("aria-hidden")})),W=[],B.$dim&&(B.$dim[0].setAttribute("hidden",""),H&&(H.style.overflow=B.cachedOverflow.overflow,H.style.overflowX=B.cachedOverflow.overflowX,H.style.overflowY=B.cachedOverflow.overflowY))}var U=S("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});s("dim",B),s("undim",V);var z={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};s("keyCode",z);const Y=z;function q(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e}const K=l().noConflict();const J=function(t){return{set:function(e,i){void 0===t._state&&(t._state={}),t._state[e]=i},get:function(e){if(t._state)return t._state[e]}}};function G(t){return J(t).get("last-trigger")||tt(t)[0]}function Q(t,e){var i=e&&e.nodeType&&1===e.nodeType;return J(t).set("last-trigger",!!i&&e)}function X(t,e){var i=G(t);i&&e(i)}function Z(t,e){return Array.prototype.forEach.call(tt(t),e)}function tt(t){const e=window.frames,i=`[aria-controls="${t.id}"]`;let n=[],s=!1;for(let t=0;t<e.length;t++)try{let s=e[t].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(t){s=!0}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&h([`No triggers found for element (${t.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."].join(" ")),a}function et(t){return document.getElementById(t.getAttribute("aria-controls"))}function it(t){return"true"!==t.getAttribute("aria-disabled")}function nt(t,e){if(it(t)){var i=et(t);i&&i.message&&i.message(e)}}const st={click(t,e){(function(t,e){var n=i(e).closest("a[href]",t);return!!n.length&&n[0]!==t})(t,e.target)||(nt(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==Y.ENTER&&i!==Y.SPACE||(e.preventDefault(),e.type="click",st.click(t,e))},mouseenter(t,e){nt(t,e)},mouseleave(t,e){nt(t,e)},focus(t,e){nt(t,e)},blur(t,e){(function(t,e){let n=e.relatedTarget;return n||(n=document.activeElement),i(et(t)).find(n).length>0})(t,e)||nt(t,e)}};Object.keys(st).forEach((function(t){const e=st[t];i(document).on(`${t}.aui-trigger`,"[data-aui-trigger]",(function(i){e(i.currentTarget,function(t,e){const{target:i,currentTarget:n,relatedTarget:s}=t,{keyCode:r,which:a}=t;return{type:e,data:"keydown"===e?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>t.preventDefault()}}(i,t))}))})),K("data-aui-trigger",{type:K.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return it(this)}}}),q("aui/trigger"),function(){function t(t){return"visible"===i.css(t,"visibility")&&i(t).is(":visible")}function e(e,n){var s=e.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=e.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=e.href||n;return(l?!e.disabled:c?u:n)&&t(e)}i.extend(i.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(i.attr(t,"tabindex"))),"aui-tabbable":function(t){var n=i.attr(t,"tabindex"),s=isNaN(n);return(s||n>=0)&&e(t,!s)}})}();var rt="_aui-focus-restore";function at(t){return t.is(".aui-dialog2")}function ot(){this._focusTrapStack=[],this._handler}function lt(t,e){if(0===t.length)return;if(e.keyCode!==Y.TAB)return;const n=e.shiftKey?-1:1,s=e.target,r=t[t.length-1],a=r.find(":aui-tabbable");if(!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let t;if(t=i(s).closest(".aui-layer"),!t.length){t=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(s)}if(t.length){const e=t.find(":aui-tabbable"),i=e.index(s)+n;if(!(i<0||i>=e.length))return;{const e=G(t.get(0));l=a.index(e)}}}l=l>-1?(l+n)%a.length:0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),e.preventDefault())}let ct;function ut(){return ct||(ct=new ot),ct}ot.defaultFocusSelector=":aui-tabbable",ot.prototype.enter=function(t,e){if(function(t,e=document.activeElement){t.data(rt,e)}(t,e),"false"!==t.attr("data-aui-focus")){var n=t.attr("data-aui-focus-selector")||ot.defaultFocusSelector;(t.is(n)?t:t.find(n)).first().trigger("focus")}at(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=lt.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ot.prototype.exit=function(t){at(t)&&(this._focusTrapStack.pop(),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){i(e).trigger("blur");var n=function(t){return i(t.data(rt))}(t);n.length&&(t.removeData(rt),n.trigger("focus"))}},ut.global=ut(),s("FocusManager",ut);const dt=ut;function ht(t,e){var n="_aui-widget-"+t;return function(t,s){var r,a;i.isPlainObject(t)?a=t:(r=t,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new e(l,a||{})).$el).data(n,o),o}}let pt;!function(){if(window.CustomEvent)try{const t=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default");if("name"!==t.type)throw new Error("Could not set custom name");if("y"!==t.detail.x)throw new Error("Could not set detail");return void(pt=window.CustomEvent)}catch(t){}pt=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail);var n=i.preventDefault;return i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented||(this.defaultPrevented=!0)}},i},pt.prototype=window.Event.prototype}();const ft=pt,gt="_aui-internal-layer-",mt="_aui-internal-layer-global-";var vt=i(document);function bt(t,e,i,n){!function(t,e){var i=window.getComputedStyle(t).transitionProperty;return!!i&&i.indexOf(e)>-1}(t,e)?i.call(t):t.addEventListener("transitionend",(function s(r){e===r.propertyName&&(i.call(t),n&&t.removeEventListener("transitionend",s))}))}function yt(t,e,n){var s=i.Event(gt+e),r=i.Event(mt+e),a=new ft("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new ft("aui-"+n,{bubbles:!0,cancelable:!0});return t.trigger(s),t.trigger(r,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function wt(t){this.$el=i(t||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function _t(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}wt.prototype={below:function(){return At.global.item(At.global.indexOf(this.$el)-1)},above:function(){return At.global.item(At.global.indexOf(this.$el)+1)},changeSize:function(t,e){return this.$el.css("width",t),this.$el.css("height","content"===e?"":e),this},on:function(t,e){return this.$el.on(gt+t,e),this},off:function(t,e){return this.$el.off(gt+t,e),this},show:function(){return this.isVisible()||At.global.indexOf(this.$el)>-1?this:yt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),At.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const t=this;return bt(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),At.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 t=_t(this.el,"modal"),e=this.el.hasAttribute("persistent");return"true"===t||e},getDOMContainer:function(){let t=_t(this.el,"dom-container");return t&&(t=document.querySelector(t)||document.body),t},_hideLayer:function(t){return!(t&&!yt(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&dt.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(gt+"hide"),this.$el.trigger(mt+"hide",[this.$el]),!0)},_showLayer:function(t){let e=this.getDOMContainer();if(this.isBlanketed()||e){let t=e||"body";this.$el.parent().is(t)||this.$el.appendTo(t)}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",t),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&dt.global.enter(this.$el),this.$el.trigger(gt+"show"),this.$el.trigger(mt+"show",[this.$el])}};var Ct=ht("layer",wt);function kt(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function xt(t,e){return kt(t,(function(t){return t[0]===e[0]}))}function Et(t){return kt(t,(function(t){return Ct(t).isBlanketed()}))}function Dt(t,e){var i=Et(t);e!==i&&(i>-1?B(!1,t[i].css("z-index")-20):V())}function Tt(t,e,i,n=!0){if(e<0)return[!1,null];for(var s,r=t.length-1;r>=e;r--){s=t[r];var a=Ct(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];t.splice(r,1)}}return[!0,s]}function At(){this._stack=[]}function St(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return At.global.indexOf(e)>-1}Ct.on=function(t,e,i){return vt.on(mt+t,e,i),this},Ct.off=function(t,e,i){return vt.off(mt+t,e,i),this},At.prototype={push:function(t){var e=t instanceof i?t:i(t);if(xt(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var n=Ct(e),s=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return n._showLayer(s),n.isBlanketed()&&B(!1,s-20),this._stack.push(e),this},popLayersBeside:function(t){const e=i(t).get(0);if(!function(t){return!!G(t)}(e)){var n=Et(this._stack);return void Tt(this._stack,++n,!1)}const s=function(t){var e=G(t);if(e)return i(e).closest(".aui-layer").get(0)}(e);if(s){let t=this.indexOf(s);Tt(this._stack,++t,!1)}else Tt(this._stack,0,!1)},indexOf:function(t){return xt(this._stack,i(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=Ct(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=xt(this._stack,n);if(s<0)return null;for(s--;s>=0;){e=this._stack[s];var r=Ct(e);if(!r.isPersistent()||r.isBlanketed())return e;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=xt(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){e=this._stack[s];var r=Ct(e);if(!r.isPersistent()&&!r.isBlanketed())return e;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},popUntil:function(t,e=!1){var n=t instanceof i?t:i(t),s=xt(this._stack,n);if(-1===s)return null;const r=Et(this._stack),a=Ct(n),[o,l]=Tt(this._stack,s+1,a.isBlanketed(),e);return o&&a._hideLayer(e)?(this._stack.splice(s,1),Dt(this._stack,r),n):l},popTopIfNonPersistent:function(t=!1){var e=this.getTopLayer(),i=Ct(e);return!e||i.isPersistent()?null:this.popUntil(e,t)},popUntilTopBlanketed:function(t=!1){var e=Et(this._stack);if(e<0)return null;var i=this._stack[e];if(Ct(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=xt(this._stack,n);return Tt(this._stack,s,!0,t),n}return null}return Tt(this._stack,e,!0),Dt(this._stack,e),i},popUntilTopPersistent:function(t=!1){var e=At.global.getTopLayer();if(e){var i,n=Et(this._stack),s=Ct(e);if(s.isPersistent()){if(s.isBlanketed())return;if(e=At.global.getNextLowerNonPersistentOrBlanketedLayer(e),s=Ct(e),!e||s.isPersistent())return;i=xt(this._stack,e),Tt(this._stack,i,!0,t),Dt(this._stack,n)}else i=xt(this._stack,e),Tt(this._stack,i,!0,t),Dt(this._stack,n)}}},vt.on("keydown",(function(t){t.keyCode===Y.ESCAPE&&(At.global.popUntilTopPersistent(!0),t.preventDefault())})),vt.on("click",".aui-blanket",(function(t){At.global.popUntilTopBlanketed(!0)&&t.preventDefault()})),vt.on("click",(function(t){var e=i(t.target);if(!e.closest(".aui-blanket").length){var n=e.closest("[aria-controls]"),s=e.closest(".aui-layer");if(!s.length&&!St(n)){const e=i.Event("aui-close-layers-on-outer-click");return vt.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void At.global.hideAll()}if(!St(n)&&s.length){var r=At.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&Ct(r).hide()}}})),At.global=new At,Ct.Manager=At,s("layer",Ct);const Ot=Ct;s("LayerManager",Ot.Manager);Ot.Manager;const It={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},Nt=s("params",new Proxy({},{get:function(t,e){return S("AJS.params",It)(),t[e]}}));const Pt=I((function(t){t||(t=Nt),i(".parameters input").each((function(){var e=this.value,n=this.title||this.id;i(this).hasClass("list")?t[n]?t[n].push(e):t[n]=[e]:t[n]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});s("populateParameters",Pt);const Mt=Pt;i((function(){var t=i("body");t.data("auiVersion")||t.attr("data-aui-version",v),Mt()})),s("$",i);const Lt=i;function Rt(t){return i.when(i.ready).then((function(){setTimeout((function(){try{t.call(this,i)}catch(e){p("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}s("toInit",Rt);const $t=Rt,I18n={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.checkboxmultiselect.clear.selected":"Clear selected items","aui.select.no.suggestions":"No suggestions","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","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":""},getText:function(t,...e){return Object.prototype.hasOwnProperty.call(this.keys,t)?g.apply(null,[this.keys[t]].concat(e)):t}};for(const t in I18n)jt=t,Ft=I18n[t],n(),"object"!=typeof window.AJS.I18n&&(window.AJS.I18n={}),void 0===window.AJS.I18n[jt]&&(window.AJS.I18n[jt]=Ft);var jt,Ft;function Ht(t){var e=function({body:t,type:e="error"}){return i('<div class="aui-banner" role="banner"></div>').append(i.parseHTML(t||"")).addClass(`aui-banner-${e}`)}(t);return Wt().find(".aui-banner").get().forEach((function(t){t.hasAttribute("hidden")&&i(t).remove()})),function(t){var e=Wt();if(!e.length)throw new Error("You must implement the application header");t.prependTo(e),F(t),t[0].removeAttribute("hidden")}(e),e[0]}function Wt(){return i("#header")}q("aui/banner",Ht),s("banner",Ht);const Bt=Ht;var Vt=r(302);const Ut={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},zt={filled:!1,size:Ut.MEDIUM.name},Yt="Add CSS to the parent element of the <aui-spinner>.\nUse CSS flexbox or grid to vertically align it.\nSee https://css-tricks.com/centering-css-complete-guide/ for techniques.",qt=S("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Yt}),Kt=S("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Yt});function Jt(t){let e=Ut.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();Object.keys(Ut).map((t=>t.toLowerCase())).indexOf(t)>-1&&(e=t)}return e}function Gt(t){const{px:e,radius:i}=(0,Vt.find)(Ut,(e=>e.name===t._data.size))||Ut.MEDIUM;!function(t,e,i){const n=t.querySelector("svg"),s=t.querySelector("circle");n.setAttribute("size",e),n.setAttribute("height",e),n.setAttribute("width",e),n.setAttribute("viewBox",`0 0 ${e} ${e}`);const r=e/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(t,e,i),t._data.filled?function(t,e){const i=t.parentNode;if(i&&1===i.nodeType){const n=t.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+e/2;t.querySelector("svg").style.top=r-a+"px"}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}const Qt=K("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',Gt(t)},attached(t){Gt(t)},attributes:{filled:{created:function(t){qt(),t._data.filled=!0,Gt(t)},removed:function(t){t._data.filled=!1,Gt(t)}},size(t,e){t._data.size=Jt(e.newValue),Gt(t)}},prototype:{get _data(){return this.__data||(this._data=(0,Vt.defaults)({},zt))},set _data(t){return this.__data=t},set filled(t){Kt(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=Jt(t);this.setAttribute("size",e)}}});function Xt(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function Zt(t){return"INPUT"===t.nodeName}K("aui-button",{type:K.type.CLASSNAME,created:function(t){t._spinner=new Qt,t._spinner.setAttribute("size",Ut.SMALL.name)},prototype:{busy:function(){return Zt(this)||Xt(this)?(h("It is not valid to call busy() on an input button."),this):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy",""),this)},idle:function(){return Zt(this)||!Xt(this)?(h("It is not valid to call idle() on an input button."),this):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy"),this)},isBusy:function(){return Zt(this)?(h("It is not valid to call isBusy() on an input button."),!1):Xt(this)}}}),q("aui/button");const te=".aui-close-button",ee=`<button type="button" class="aui-close-button" aria-label="${I18n.getText("aui.words.close")}">`;var ie={"aui-focus":"false","aui-blanketed":"true"};function ne(t){var e;this._handlers=new WeakMap,this.$el=i(t||`\n <section role="dialog" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n ${ee}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),e=this.$el,i.each(ie,(function(t,i){var n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}ne.prototype.on=function(t,e){const i=this.$el;if(!this._handlers.get(e)){const n=function(t){t.target===i.get(0)&&e.apply(this,arguments)};Ot(i).on(t,n),this._handlers.set(e,n)}return this},ne.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(Ot(i).off(t,n),this._handlers.delete(e)),this},ne.prototype.show=function(){return Ot(this.$el).show(),this},ne.prototype.hide=function(){return Ot(this.$el).hide(),this},ne.prototype.remove=function(){return Ot(this.$el).remove(),this},ne.prototype.isVisible=function(){return Ot(this.$el).isVisible()};var se=ht("dialog2",ne),re=new Set;se.on=function(t,e){return re.has(e)||(Ot.on(t,".aui-dialog2",e),re.add(e)),this},se.off=function(t,e){return re.has(e)&&(Ot.off(t,".aui-dialog2",e),re.delete(e)),this},i(document).on("click keydown",".aui-dialog2-header .aui-close-button",(function(t){("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE)&&(t.preventDefault(),se(i(t.target).closest(".aui-dialog2")).hide())})),se.on("show",(function(t,e){e.find(te).attr("tabindex",0),e.attr("tabindex",-1);var i=e[0].hasAttribute("data-aui-focus-selector")&&e.attr("data-aui-focus-selector");if(i){var n=e.find(i);if(n.length>0)return n.first().focus()}e.focus()})),se.on("hide",(function(t,e){var i=Ot(e);e.data("aui-remove-on-hide")&&i.remove()})),q("aui/dialog2",se),s("dialog2",se);const ae=se;var oe,le,ce=r(596),ue=r.n(ce),de=navigator.userAgent.toLowerCase(),he=(/msie/.test(de),/windows nt 5.1/.test(de),/windows nt 6.0/.test(de),/windows nt 6.1/.test(de),/mac os x/.test(de));function pe(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function fe(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function ge(t){var e=fe(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(t){return t instanceof fe(t).Element||t instanceof Element}function ve(t){return t instanceof fe(t).HTMLElement||t instanceof HTMLElement}function be(t){return t?(t.nodeName||"").toLowerCase():null}function ye(t){return(me(t)?t.ownerDocument:t.document).documentElement}function we(t){return pe(ye(t)).left+ge(t).scrollLeft}function _e(t){return fe(t).getComputedStyle(t)}function Ce(t){var e=_e(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ke(t,e,i){void 0===i&&(i=!1);var n,s,r=ye(e),a=pe(t),o=ve(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==be(e)||Ce(r))&&(l=(n=e)!==fe(n)&&ve(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ge(n)),ve(e)?((c=pe(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=we(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function xe(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function Ee(t){return"html"===be(t)?t:t.assignedSlot||t.parentNode||t.host||ye(t)}function De(t){return["html","body","#document"].indexOf(be(t))>=0?t.ownerDocument.body:ve(t)&&Ce(t)?t:De(Ee(t))}function Te(t,e){void 0===e&&(e=[]);var i=De(t),n="body"===be(i),s=fe(i),r=n?[s].concat(s.visualViewport||[],Ce(i)?i:[]):i,a=e.concat(r);return n?a:a.concat(Te(Ee(r)))}function Ae(t){return["table","td","th"].indexOf(be(t))>=0}function Se(t){if(!ve(t)||"fixed"===_e(t).position)return null;var e=t.offsetParent;if(e){var i=ye(e);if("body"===be(e)&&"static"===_e(e).position&&"static"!==_e(i).position)return i}return e}function Oe(t){for(var e=fe(t),i=Se(t);i&&Ae(i)&&"static"===_e(i).position;)i=Se(i);return i&&"body"===be(i)&&"static"===_e(i).position?e:i||function(t){for(var e=Ee(t);ve(e)&&["html","body"].indexOf(be(e))<0;){var i=_e(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var Ie="top",Ne="bottom",Pe="right",Me="left",Le="auto",Re=[Ie,Ne,Pe,Me],$e="start",je="end",Fe="viewport",He="popper",We=Re.reduce((function(t,e){return t.concat([e+"-"+$e,e+"-"+je])}),[]),Be=[].concat(Re,[Le]).reduce((function(t,e){return t.concat([e,e+"-"+$e,e+"-"+je])}),[]),Ve=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ue(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}function ze(t,e){var i=Boolean(e.getRootNode&&e.getRootNode().host);if(t.contains(e))return!0;if(i){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ye(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function qe(t,e){return e===Fe?Ye(function(t){var e=fe(t),i=ye(t),n=e.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,o=0;return n&&(s=n.width,r=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,o=n.offsetTop)),{width:s,height:r,x:a+we(t),y:o}}(t)):ve(e)?function(t){var e=pe(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ye(function(t){var e=ye(t),i=ge(t),n=t.ownerDocument.body,s=Math.max(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=Math.max(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+we(t),o=-i.scrollTop;return"rtl"===_e(n||e).direction&&(a+=Math.max(e.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:o}}(ye(t)))}function Ke(t,e,i){var n="clippingParents"===e?function(t){var e=Te(Ee(t)),i=["absolute","fixed"].indexOf(_e(t).position)>=0&&ve(t)?Oe(t):t;return me(i)?e.filter((function(t){return me(t)&&ze(t,i)&&"body"!==be(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),r=s[0],a=s.reduce((function(e,i){var n=qe(t,i);return e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),qe(t,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Je(t){return t.split("-")[0]}function Ge(t){return t.split("-")[1]}function Qe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Xe(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Je(s):null,a=s?Ge(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Ie:e={x:o,y:i.y-n.height};break;case Ne:e={x:o,y:i.y+i.height};break;case Pe:e={x:i.x+i.width,y:l};break;case Me:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?Qe(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case $e:e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case je:e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}function Ze(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function ti(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function ei(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.boundary,a=void 0===r?"clippingParents":r,o=i.rootBoundary,l=void 0===o?Fe:o,c=i.elementContext,u=void 0===c?He:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=Ze("number"!=typeof f?f:ti(f,Re)),m=u===He?"reference":He,v=t.elements.reference,b=t.rects.popper,y=t.elements[h?m:u],w=Ke(me(y)?y:y.contextElement||ye(t.elements.popper),a,l),_=pe(v),C=Xe({reference:_,element:b,strategy:"absolute",placement:s}),k=Ye(Object.assign(Object.assign({},b),C)),x=u===He?k:_,E={top:w.top-x.top+g.top,bottom:x.bottom-w.bottom+g.bottom,left:w.left-x.left+g.left,right:x.right-w.right+g.right},D=t.modifiersData.offset;if(u===He&&D){var T=D[s];Object.keys(E).forEach((function(t){var e=[Pe,Ne].indexOf(t)>=0?1:-1,i=[Ie,Ne].indexOf(t)>=0?"y":"x";E[t]+=T[i]*e}))}return E}var ii={placement:"bottom",modifiers:[],strategy:"absolute"};function ni(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function si(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?ii:s;return function(t,e,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},ii),r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){d(),o.options=Object.assign(Object.assign(Object.assign({},r),o.options),i),o.scrollParents={reference:me(t)?Te(t):t.contextElement?Te(t.contextElement):[],popper:Te(e)};var s=function(t){var e=Ue(t);return Ve.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign(Object.assign(Object.assign({},i),e),{},{options:Object.assign(Object.assign({},i.options),e.options),data:Object.assign(Object.assign({},i.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=s.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:o,name:e,instance:u,options:n}),a=function(){};l.push(r||a)}})),u.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(ni(e,i)){o.rects={reference:ke(e,Oe(i),"fixed"===o.options.strategy),popper:xe(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(o)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(s())}))}))),a}),destroy:function(){d(),c=!0}};if(!ni(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var ri={passive:!0};var ai={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oi(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.offsets,a=t.position,o=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(r),u=c.x,d=c.y,h=r.hasOwnProperty("x"),p=r.hasOwnProperty("y"),f=Me,g=Ie,m=window;if(l){var v=Oe(i);v===fe(i)&&(v=ye(i)),s===Ie&&(g=Ne,d-=v.clientHeight-n.height,d*=o?1:-1),s===Me&&(f=Pe,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:a},l&&ai);return o?Object.assign(Object.assign({},y),{},((b={})[g]=p?"0":"",b[f]=h?"0":"",b.transform=(m.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",b)):Object.assign(Object.assign({},y),{},((e={})[g]=p?d+"px":"",e[f]=h?u+"px":"",e.transform="",e))}var li={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(t){return t.replace(/left|right|bottom|top/g,(function(t){return li[t]}))}var ui={start:"end",end:"start"};function di(t){return t.replace(/start|end/g,(function(t){return ui[t]}))}function hi(t,e,i){return Math.max(t,Math.min(e,i))}function pi(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function fi(t){return[Ie,Pe,Ne,Me].some((function(e){return t[e]>=0}))}var gi=si({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=fe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,ri)})),o&&l.addEventListener("resize",i.update,ri),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,ri)})),o&&l.removeEventListener("resize",i.update,ri)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Xe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o={placement:Je(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),oi(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),oi(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];ve(s)&&be(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});ve(n)&&be(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,a=Be.reduce((function(t,i){return t[i]=function(t,e,i){var n=Je(t),s=[Me,Ie].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign(Object.assign({},e),{},{placement:t})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[Me,Pe].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,e.rects,r),t}),{}),o=a[e.placement],l=o.x,c=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=Je(m),b=l||(v===m||!f?[ci(m)]:function(t){if(Je(t)===Le)return[];var e=ci(t);return[di(t),e,di(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Je(i)===Le?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Be:l,u=Ge(n),d=u?o?We:We.filter((function(t){return Ge(t)===u})):Re,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,i){return e[i]=ei(t,{placement:i,boundary:s,rootBoundary:r,padding:a})[Je(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),w=e.rects.reference,_=e.rects.popper,C=new Map,k=!0,x=y[0],E=0;E<y.length;E++){var D=y[E],T=Je(D),A=Ge(D)===$e,S=[Ie,Ne].indexOf(T)>=0,O=S?"width":"height",I=ei(e,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?A?Pe:Me:A?Ne:Ie;w[O]>_[O]&&(N=ci(N));var P=ci(N),M=[];if(r&&M.push(I[T]<=0),o&&M.push(I[N]<=0,I[P]<=0),M.every((function(t){return t}))){x=D,k=!1;break}C.set(D,M)}if(k)for(var L=function(t){var e=y.find((function(e){var i=C.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return x=e,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=ei(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Je(e.placement),b=Ge(e.placement),y=!b,w=Qe(v),_="x"===w?"y":"x",C=e.modifiersData.popperOffsets,k=e.rects.reference,x=e.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,D={x:0,y:0};if(C){if(r){var T="y"===w?Ie:Me,A="y"===w?Ne:Pe,S="y"===w?"height":"width",O=C[w],I=C[w]+m[T],N=C[w]-m[A],P=p?-x[S]/2:0,M=b===$e?k[S]:x[S],L=b===$e?-x[S]:-k[S],R=e.elements.arrow,$=p&&R?xe(R):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=j[T],H=j[A],W=hi(0,k[S],$[S]),B=y?k[S]/2-P-W-F-E:M-W-F-E,V=y?-k[S]/2+P+W+H+E:L+W+H+E,U=e.elements.arrow&&Oe(e.elements.arrow),z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,Y=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,q=C[w]+B-Y-z,K=C[w]+V-Y,J=hi(p?Math.min(I,q):I,O,p?Math.max(N,K):N);C[w]=J,D[w]=J-O}if(o){var G="x"===w?Ie:Me,Q="x"===w?Ne:Pe,X=C[_],Z=hi(X+m[G],X,X-m[Q]);C[_]=Z,D[_]=Z-X}e.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Je(i.placement),o=Qe(a),l=[Me,Pe].indexOf(a)>=0?"height":"width";if(s&&r){var c=i.modifiersData[n+"#persistent"].padding,u=xe(s),d="y"===o?Ie:Me,h="y"===o?Ne:Pe,p=i.rects.reference[l]+i.rects.reference[o]-r[o]-i.rects.popper[l],f=r[o]-i.rects.reference[o],g=Oe(s),m=g?"y"===o?g.clientHeight||0:g.clientWidth||0:0,v=p/2-f/2,b=c[d],y=m-u[l]-c[h],w=m/2-u[l]/2+v,_=hi(b,w,y),C=o;i.modifiersData[n]=((e={})[C]=_,e.centerOffset=_-w,e)}},effect:function(t){var e=t.state,i=t.options,n=t.name,s=i.element,r=void 0===s?"[data-popper-arrow]":s,a=i.padding,o=void 0===a?0:a;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&ze(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[n+"#persistent"]={padding:Ze("number"!=typeof o?o:ti(o,Re))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,a=ei(e,{elementContext:"reference"}),o=ei(e,{altBoundary:!0}),l=pi(a,n),c=pi(o,s,r),u=fi(l),d=fi(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const mi={"top left":"top-start","top center":"top","top right":"top-end","right top":"right-start","right middle":"right","right bottom":"right-end","bottom right":"bottom-end","bottom center":"bottom","bottom left":"bottom-start","left bottom":"left-end","left middle":"left","left top":"left-start"};function vi(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function bi(t){return vi(t,"alignment")||"right middle"}function yi(t){let[e,i]=bi(t).split(" ");return{side:e,snap:i}}function wi(t){let e=function(t){let e=vi(t,"alignment-container")||window;return"string"==typeof e&&(e=document.querySelector(e)),e}(t),i="left";if(e&&e!==window&&e!==document||(e=document.documentElement),e&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE){let n=e.getBoundingClientRect();t.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function _i(t,e){const i=yi(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=bi(t);return mi[e]||"right"}(t):(i.snap=wi(e),n="submenu"===i.side?mi[("right"===i.snap?"left":"right")+" top"]:mi[`${i.side} ${i.snap}`]),n}const Ci={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function ki(t,e,i={}){const n=yi(t),s=_i(t,e),r=Ci[s.split("-")[0]],a=e.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a||(i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document")}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains("aui-alignment-use-gpu")}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:t})=>{t.elements.popper&&t.elements.popper.setAttribute("x-placement",t.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return i.enabled&&i.fn(),t}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={fn:i.onEvents}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),t}}];a&&e.ownerDocument!=t.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(t){const e=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(t,e)=>t+e,s=t=>t.map(parseFloat).filter(Boolean).reduce(n,0),r=s([e.top,i.paddingTop,i.borderTop]),o=s([e.left,i.paddingLeft,i.borderLeft]);return t.offsets.reference.left+=o,t.offsets.reference.top+=r,t.offsets.popper.left+=o,t.offsets.popper.top+=r,t}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=gi(e,t,l),function(t,e,i){const n="aui-alignment-side-"+e,s="aui-alignment-snap-"+i;t.classList.contains(n)||t.classList.add(n),t.classList.contains(s)||t.classList.add(s)}(t,n.side,n.snap)}ki.prototype={destroy(){return this.popper.destroy(),this},changeTarget(t){const e=t.jquery?t[0]:t;return e&&e!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=e,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};const xi=ki;function Ei(t){let e=new i.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),12):e.reject(),e.promise()}var Di,Ti,Ai=0;function Si(t){if(Di=Ai+++"",Ti=t?t+Di:"aui-uid-"+Di,document.getElementById(Ti)){if(Ti=Ti+"-"+(new Date).getTime(),document.getElementById(Ti))throw new Error('Timestamped fallback ID "'+Ti+'" exists.');return Ti}return Ti}s("id",Si);const Oi=Si;function Ii(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function Ni(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}function Pi(t,e={}){const i=e&&e.type&&(e.type.indexOf("mouse")>-1||e.type.indexOf("hover")>-1);t.isSubmenu&&!i?t.focusItem(0):t.focus()}var Mi="unloaded",Li="loading",Ri="error";function $i(t,e){J(t).set("loading-state","success"),t.innerHTML=function(t){return t.map((function(t){var e=t.items.map((function(t){function e(e){return t[e]?`${e} ="true"`:""}function i(e){return t[e]?`${e}="${t[e]}"`:""}var n="aui-item-"+t.type;return`\n <${n} ${i("for")} ${i("href")} ${e("interactive")}\n ${e("checked")} ${e("disabled")} ${e("hidden")}>\n ${E(t.content)}\n </${n}>`})).join("");return`\n <aui-section ${t.label?`label="${t.label}"`:""}>\n ${e}\n </aui-section>`})).join("\n")}(e),K.init(t),X(t,(function(e){document.activeElement===e&&Pi(t)}))}function ji(t){J(t).set("loading-state",Ri),J(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Fi(t){t.src&&J(t).get("loading-state")!==Li&&(!function(t){J(t).set("loading-state",Li),J(t).set("hasErrorBeenShown",!1),X(t,(function(t){t.setAttribute("aria-busy","true")})),t.innerHTML=`\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(t),i.ajax(t.src).done((function(e,i,n){200===n.status?$i(t,e):ji(t)})).fail((function(){ji(t)})).always((function(){!function(t){X(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function Hi(t,e){return i(t).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(e).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Wi(t){return Hi(t,(()=>!0))}function Bi(t){return Hi(t,((t,e)=>!Ii(e)))}function Vi(t){Wi(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Ii(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Ui(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function zi(t,e){var n=e&&e.hasSubmenu&&e.hasSubmenu(),s="submenu auto"===t.getAttribute("data-aui-alignment");!n&&s&&function(t){var e=i(t),n=e.data("previous-data-aui-alignment");n?t.setAttribute("data-aui-alignment",n):t.removeAttribute("data-aui-alignment");e.removeData("previous-data-aui-alignment"),e.data("had-data-aui-alignment-static")||t.removeAttribute("data-aui-alignment-static");e.removeData("had-data-aui-alignment-static")}(t);var r=t.hasAttribute("data-aui-alignment");n&&!s?(!function(t){var e=i(t);t.hasAttribute("data-aui-alignment")&&e.data("previous-data-aui-alignment",t.getAttribute("data-aui-alignment"));e.data("had-data-aui-alignment-static",t.hasAttribute("data-aui-alignment-static"))}(t),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):r||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),Ui(t),t._auiAlignment=new xi(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(K.init(this),S("Dropdown2 lazy initialisation",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=i(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const n=e.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&e.is(".aui-dropdown2-trigger")&&(s.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const r=n.find(":focus");r.length&&e.is(".aui-dropdown2-trigger")&&r.blur()}));var Yi=!1;function qi(){Yi=!0}function Ki(t){Ot(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=i(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(`.${t}`).addClass(`aui-dropdown2-${t}`)}))}(t),Vi(t),i(t).trigger("aui-dropdown2-show"),X(t,(function(e){Ni(e,!0),t._returnTo=function(t,e){var i=e.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||t.parentNode}(t,e)})))})),t.addEventListener("aui-layer-hide",(function(e){t===e.target&&(i(t).trigger("aui-dropdown2-hide"),t._auiAlignment&&t._auiAlignment.destroy(),t._returnTo&&t.parentNode&&t.parentNode!==t._returnTo&&t._returnTo.appendChild(t),t.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Wi(t).removeClass("active aui-dropdown2-active"),X(t,(function(t){var e;e=!0===Yi,Yi=!1,e?(t.focus(),Ni(t,t.hasSubmenu&&t.hasSubmenu())):Ni(t,!1)})),delete t.isSubmenu,Q(t,null))}))}function Ji(t){var e=i(t);function n(e){return i(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){n(e.target)&&(e.keyCode===Y.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===Y.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===Y.LEFT?t.isSubmenu&&(qi(),t.hide(e),e.preventDefault()):e.keyCode===Y.ESCAPE?qi():e.keyCode===Y.TAB&&(qi(),t.hide(e)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!n(e.target))return;const s=e.currentTarget,r=e.keyCode,a=r===Y.ENTER,o=r===Y.SPACE;a&&i(s).is("a[href], button")||"click"!==e.type&&!a&&!o||function(e){var i=e.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void e.preventDefault();if(!(e.currentTarget.hasSubmenu&&e.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive"))){var n=t;do{var s=Ot(n);n=Ot(n).below(),s.$el.is(".aui-dropdown2")&&s.hide(e)}while(n)}}(e)})),e.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(n(e.target)){var i=e.currentTarget,s=i.hasSubmenu&&i.hasSubmenu();if(!e.isDefaultPrevented()&&!s){var r=Ot(t).above();r&&Ot(r).hide()}}}))}function Gi(t){t.classList.add("aui-dropdown2"),t.setAttribute("tabindex","-1"),t.hasAttribute("data-container")&&(t.setAttribute("data-aui-alignment-container",t.getAttribute("data-container")),t.removeAttribute("data-container")),Ki(t),Ji(t),i(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),i(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}i(window).on("resize",(0,Vt.debounce)((function(){i(".aui-dropdown2").each((function(t,e){K.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var Qi={toggle:function(t){this.isVisible()?this.hide(t):this.show(t)},show:function(t){var e=this;return t&&t.currentTarget&&t.currentTarget.classList.contains("aui-dropdown2-trigger")&&Q(e,t.currentTarget),Ot(e).show(),X(e,(function(t){zi(e,t)})),setTimeout((()=>Pi(e,t)),0),this},hide:function(){return Ot(this).hide(),this},focusNext:function(){var t,e=Bi(this),i=document.activeElement;e.last()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1)))},focusPrevious:function(){var t,e=Bi(this),i=document.activeElement;e.first()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1)))},focusItem:function(t){const e=Bi(this);"number"==typeof t&&(t=e.get(t));const n=i(t);n.focus(),e.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return Ot(this).isVisible()}},Xi={created:function(t){var e=t.children[0];e.setAttribute("aria-disabled","true"),e.classList.add("disabled","aui-dropdown2-disabled")},removed:function(t){var e=t.children[0];e.setAttribute("aria-disabled","false"),e.classList.remove("disabled","aui-dropdown2-disabled")}},Zi={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},tn={created:function(t){var e=t.children[0];e.classList.add("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!0),t.dispatchEvent(new ft("change",{bubbles:!0}))},removed:function(t){var e=t.children[0];e.classList.remove("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!1),t.dispatchEvent(new ft("change",{bubbles:!0}))}},en={created:function(t){Xi.created(t)},removed:function(t){Xi.removed(t)}},nn=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const sn=function(t=""){return t.split(" ").map((t=>t.trim())).filter((t=>t))},rn=K("aui-item-link",{template:ue()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Xi,interactive:Zi,hidden:en,href:nn("href"),"item-id":nn("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),i(e).addClass("aui-dropdown2-sub-trigger")},updated:function(t){t.children[0].setAttribute("aria-controls",t.getAttribute("for"))},removed:function(t){var e=t.children[0];e.removeAttribute("aria-controls"),i(e).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...sn(e.oldValue)),e.newValue&&i.classList.add(...sn(e.newValue))}}}),[an,on]=["checkbox","radio"].map((t=>K(`aui-item-${t}`,{template:ue()(`<span role="${t}" class="aui-dropdown2-${t}" tabindex="-1"><content></content></span>`),attributes:{"item-id":nn("id"),disabled:Xi,interactive:Zi,checked:tn,hidden:en}}))),ln=K("aui-section",{template:ue()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(t,e){const i=Oi();var n=t.children[0],s=t.children[1];n.textContent=e.newValue,n.id=i,s.setAttribute("aria-labelledby",i)}},created:function(t){t.classList.add("aui-dropdown2-section")}}),cn=K("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",Ot(t),J(t).set("loading-state",Mi),K.init(t)},detached:function(t){Ei(t).then((()=>Ui(t)))},attributes:{src:{}},prototype:Qi,events:{"aui-layer-show":function(t){var e=J(t).get("loading-state")===Mi,i=J(t).get("hasErrorBeenShown");(e||i)&&Fi(t),J(t).get("loading-state")===Ri&&J(t).set("hasErrorBeenShown",!0)}}});K("aui-dropdown2",{type:K.type.CLASSNAME,created:Gi,prototype:Qi}),K("data-aui-dropdown2",{type:K.type.ATTRIBUTE,created:Gi,prototype:Qi}),K("aui-dropdown2-trigger",{type:K.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==t)return;if(n.preventDefault(),!t.isEnabled())return;const r=document.getElementById(e);if(!r)return void p('Could not find a dropdown with id "'+e+'" in the DOM.');const a=i(t);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=t.hasSubmenu(),r}e||(e=t.getAttribute("aria-owns"),e?(t.removeAttribute("aria-owns"),t.setAttribute("aria-controls",e)):p('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),t.setAttribute("aria-haspopup",!0),t.setAttribute("aria-expanded",!1),"A"===t.nodeName&&!t.href&&t.setAttribute("href",`#${e}`),i(t).on("aui-button-invoke",n).on("click",n).on("keydown",(function(e){if(e.currentTarget!==t)return;const i=e.keyCode===Y.ENTER||e.keyCode===Y.SPACE,s=e.keyCode===Y.RIGHT&&t.hasSubmenu(),r=(e.keyCode===Y.UP||e.keyCode===Y.DOWN)&&!t.hasSubmenu();i?n(e):(r||s)&&n(e,document.activeElement===t)})).on("mouseenter",(function(i){if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const n=document.getElementById(e);if(n)return function(t){var e=J(t).get("loading-state")===Mi,i=J(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Fi(t)}(n),t.hasSubmenu()&&(n.show(i),n.isSubmenu=t.hasSubmenu()),n;p('Could not find a dropdown with id "'+e+'" in the DOM.')}))},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),K("aui-dropdown2-sub-trigger",{type:K.type.CLASSNAME,created:function(t){t.classList.add("aui-dropdown2-trigger"),K.init(t)}}),["checkbox","radio"].map((t=>K(`aui-dropdown2-${t}`,{type:K.type.CLASSNAME,created:function(e){const i="true"===e.getAttribute("aria-checked")||e.classList.contains("checked")||e.classList.contains("aui-dropdown2-checked");e.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",i),e.setAttribute("tabindex","0"),he&&e.setAttribute("role",t)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&this.parentNode.removeAttribute("checked"),i(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));var un=i(document),dn=function(t){var e={};return e.$trigger=i(t.currentTarget),e.$content=un.find("#"+e.$trigger.attr("aria-controls")),e.triggerIsParent=0!==e.$content.parent().filter(e.$trigger).length,e.$shortContent=e.triggerIsParent?e.$trigger.find(".aui-expander-short-content"):null,e.height=e.$content.css("min-height"),e.isCollapsible=!1!==e.$trigger.data("collapsible"),e.replaceText=e.$trigger.attr("data-replace-text"),e.replaceSelector=e.$trigger.data("replace-selector"),e},hn=function(t){if(t.replaceText){var e=t.replaceSelector?t.$trigger.find(t.replaceSelector):t.$trigger;t.$trigger.attr("data-replace-text",e.text()),e.text(t.replaceText)}},pn={"aui-expander-invoke":function(t){var e=i(t.currentTarget),n=un.find("#"+e.attr("aria-controls")),s=!1!==e.data("collapsible");"true"===n.attr("aria-expanded")&&s?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){var e=dn(t);"true"!==e.$content.attr("aria-expanded")&&(e.$content.attr("aria-expanded","true"),e.$trigger.attr("aria-expanded","true"),e.$content.get(0).removeAttribute("hidden"),hn(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(t){var e=dn(t);"true"===e.$content.attr("aria-expanded")&&(hn(e),e.$content.attr("aria-expanded","false"),e.$trigger.attr("aria-expanded","false"),e.triggerIsParent&&e.$shortContent.show(),0===e.$content.outerHeight()&&e.$content.get(0).setAttribute("hidden",""),e.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(t){i(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};un.on(pn,".aui-expander-trigger");function fn(t){vn[t]=function(e,n){n||(n=e,e="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function({id:t,closeable:e,fadeout:n,title:s,body:r},a){const o=s?`<p class="title"><strong>${E(s)}</strong></p>`:"",l=i(`<div class="aui-message">${o}</div>`).append(i.parseHTML(r||"")).addClass(e?"closeable":"").addClass(n?"fadeout":"").addClass(`aui-message-${a}`);t&&(/[#\'\"\.\s]/g.test(t)?h("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):l.attr("id",t));return l}(n,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(s,n.insert,e),n.closeable&&gn(s),n.fadeout&&mn(s,n.delay,n.duration),s}}function gn(t){i(t||"div.aui-message.closeable").each((function(){var t,e=i(this),n=e.find(te),s=n.length>0?n.first():i(ee);e.addClass("closeable"),e.append(s),(t=e).unbind("click.aui-message").unbind("keydown.aui-message"),t.on("click.aui-message",te,(function(t){i(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",te,(function(t){t.which!==Y.ENTER&&t.which!==Y.SPACE||(i(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function mn(t,e,n){e=void 0!==e?e:5e3,n=void 0!==n?n:500,i(t||"div.aui-message.fadeout").each((function(){var t=i(this),s=!1,r=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(n,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!r}t.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}var vn={setup:function(){gn(),mn()},makeCloseable:gn,makeFadeout:mn,createMessage:fn};i.fn.closeMessage=function(){var t=i(this);t.hasClass("aui-message")&&t.hasClass("closeable")&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),i(document).trigger("aui-message-close",[this]))},fn("generic"),fn("error"),fn("warning"),fn("info"),fn("confirmation"),fn("change"),fn("success"),fn("hint");const bn=K("aui-message",{created:function(t){var e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",vn[i](t,{body:e,closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")})}});i((function(){vn.setup()})),M(vn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(vn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(vn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),s("messages",vn);var yn="aui-flag-container",wn={body:"",close:"manual",title:"",type:"info"};function _n(t){(t=i.extend({},wn,t)).title=(t.title||"").toString().trim();var e=function({body:t,title:e,close:n,type:s}){const r=e?`<p class="title"><strong>${E(e)}</strong></p>`:"",a=i(`<div class="aui-message">${r}</div>`).append(i.parseHTML(t||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`);return i('<div class="aui-flag" aria-live="polite"></div>').append(a)}(t);return function(t){t[0].close=function(){kn(t)}}(e),"auto"===t.close?(Cn(e),function(t){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),5e3)}(e)):"manual"===t.close&&Cn(e),function(){const t=xn();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else i("body").prepend('<div id="aui-flag-container"></div>')}(),function(t){const e=xn();t.appendTo(e),F(t),t.removeAttr("hidden").attr("open","")}(e),e.get(0)}function Cn(t){var e=i(ee);return e.on("click",(function(){kn(t)})),e.on("keypress",(function(e){e.which!==Y.ENTER&&e.which!==Y.SPACE||(kn(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function kn(t){var e=t.get(0);return e.removeAttribute("open"),e.dispatchEvent(new ft("aui-flag-close",{bubbles:!0})),e}function xn(){return document.getElementById(yn)}q("aui/flag",_n),s("flag",_n);const En=_n;function Dn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Tn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Dn(Object(i),!0).forEach((function(e){An(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Dn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function An(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const Sn="aui-tooltip",On={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},In={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1};let Nn;const Pn=(t=!1)=>{const e=Nn&&Nn.get(0);e&&e.classList.toggle("assistive",t)};class Mn{constructor(t,e){this.triggerElement=t,this.$triggerElement=i(this.triggerElement),this.options=Tn(Tn({},In),e),this.enabled=this.options.enabled,this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),Ln.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,e.attr("aria-describedby",Sn),null}))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(".aui-tooltip",t):this.$triggerElement.off(".aui-tooltip")}buildTip(t){const e=this.options;return void 0===Nn&&(Nn=i('<div id="aui-tooltip" class="aui-tooltip assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>'),i(document.body).append(Nn)),e.html?Nn.find(".aui-tooltip-content").html(t):Nn.find(".aui-tooltip-content").text(t),Nn}getTipTitle(){const t=this.options;let e=("function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"").call(this.triggerElement);return 0===e.trim().length?void 0:e}show(){const t=this.getTipTitle();if(!1===this.enabled||!t)return;this.hide();const e=this.triggerElement,n=On[this.options.gravity];if(clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(e))return;const s=this.buildTip(t).get(0);this.popperTimeout=setTimeout((()=>{this.showTooltip(),this.popperInstance=gi(e,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on("scroll.aui-tooltip",(()=>this.hide()))}),300)}hide(){this.hideTooltip(),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off("scroll.aui-tooltip")}showTooltip(){Pn(!1)}hideTooltip(){Pn(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Ln=new WeakMap,Rn=(t,e)=>{let i=Ln.get(t);return void 0===i&&(i=new Mn(t,e),"object"==typeof t&&Ln.set(t,i)),i},$n=t=>t.map((t=>`${t}.aui-tooltip`)).join(" "),jn=$n(["mouseenter","focus"]),Fn=$n(["click","mouseleave","blur"]);i.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return Rn(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),e}const i=t||{},n=function(){Rn(this,i).show()},s=function(){Rn(this,i).hide()},r=i.live;return void 0!==r?(i.$delegationRoot=e,e.on(jn,r,n),e.on(Fn,r,s),e):(e.on(jn,n),e.on(Fn,s),e)};var Hn=function(t){function e(){return i('<div class="aui-dropdown2-section">')}var n=e();i("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(n);var s=e(),r=i("<ul />").appendTo(s);return i.each(t,(function(t,e){var n=i("<li />").attr({class:e.styleClass||""}).appendTo(r),s=i("<a />").text(e.label).attr("data-value",e.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(n);e.icon&&i("<span />").addClass("aui-icon").css("backgroundImage","url("+e.icon+')")').appendTo(s),e.selected&&s.addClass("aui-dropdown2-checked")})),i("<div />").append(n).append(s).html()},Wn=function(t,e){var n=t+"-dropdown",s=i("<select />").attr({name:t,multiple:"multiple"}).html(e),r=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=i("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":n,"aria-haspopup":!0});return i("<div />").append(s).append(a).append(r).html()};function Bn(t){var e=i(t.target);Vn(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function Vn(t,e,n){var s=t.$select.find("option").filter((function(){var t=i(this);return t.attr("value")===e&&t.prop("selected")!==n}));s.length&&(s.prop("selected",n),t.$select.trigger("change"))}function Un(t){t.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Kn(t).length<1}))}function zn(t){return t.map((function(){var t=i(this);return{value:t.val(),label:t.text(),icon:t.data("icon"),styleClass:t.data("styleClass"),title:t.attr("title"),disabled:t.attr("disabled"),selected:t.prop("selected")}}))}function Yn(t){t.$dropdown.html(Hn(function(t){return zn(t.getOptions())}(t))),Un(t)}function qn(t){var e=Jn(t),n=function(t){return 0===Kn(t).length}(t)?function(t){return i(t).data("allLabel")||"All"}(t):e.join(", ");t.$btn.text(n)}function Kn(t){return zn(t.getSelectedOptions())}function Jn(t){return i.map(Kn(t),(function(t){return t.label}))}const Gn=K("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||Oi("aui-checkbox-multiselect-");t.innerHTML=Wn(e,t.innerHTML),t.$select=i("select",t).on("change",(function(){qn(t),Un(t)})),t.$dropdown=i(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",Bn.bind(t)).on("aui-dropdown2-item-uncheck",Bn.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=i(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return function(t){return t.$dropdown[0].hasAttribute("hidden")?"":Jn(t).join(", ")}(t)}}),qn(t),Yn(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(t){Vn(this,t,!0)},unselectOption:function(t){Vn(this,t,!1)},getValue:function(){return this.$select.val()},deselectAllOptions:function(){this.$select.val([]).trigger("change"),this.$dropdown.find(".aui-dropdown2-checked,.checked").removeClass("aui-dropdown2-checked checked")},addOption:function(t){i("<option />").attr({value:t.value,icon:t.icon,disabled:t.disabled,selected:t.selected,title:t.title}).text(t.label).appendTo(this.$select),qn(this),Yn(this)},removeOption:function(t){this.$select.find("[value='"+t+"']").remove(),qn(this),Yn(this)}}});q("aui/checkbox-multiselect",Gn);const Qn=Gn;var Xn=r(726);const Zn=r.n(Xn)();const ts=function(t){function e(e){return n((function(){return t.hasAttribute(e)}),e+" wasn't defined")}function i(i){if(!e(i))return!1;var s=t.getAttribute(i);return n((function(){return document.getElementById(s)}),'an element with id set to "'+s+'" was not found')}function n(e,i){return!!e()||(t?p(i,t):p(i),!1)}return{attributeExists:e,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},es="-input";function is(t){return t.querySelector("label")}const ns=K("aui-label",{template:ue()("<label><content></content></label>"),created:function(t){t._label=is(t)},attached:function(t){ts(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?is(t).setAttribute("for",`${e.newValue}-input`):is(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?is(t).setAttribute("form",e.newValue):is(t).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(t,e){t.disabled&&e.preventDefault()}}});r(37);var ss=i.fn.select2,rs="aui-select2-container",as="aui-select2-drop aui-dropdown2",os="aui-has-avatar";i.fn.auiSelect2=function(t){var e;if(i.isPlainObject(t)){var n=i.extend({},t),s=n.hasAvatar?" "+os:"";n.containerCssClass=rs+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=as+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),(e=Array.prototype.slice.call(arguments,1)).unshift(n)}else e=arguments.length?arguments:[{containerCssClass:rs,dropdownCssClass:as}];return ss.apply(this,e)},i.fn.spin=I((function(t,e){let n={size:"small"};return"object"==typeof e&&(n=i.extend(n,e)),"object"==typeof t&&(n=i.extend(n,t)),"string"==typeof t&&(n.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=i(this),e=t.data();if(e){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),t.spinStop(),t.append(s),K.init(this),e.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=I((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=i(this).data();t&&t.spinner&&(t.spinner.remove(),delete t.spinner)}))}),"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"});const ls=K("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||E(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var t={};return this.hasAttribute("img-src")&&(t["img-src"]=encodeURI(this.getAttribute("img-src"))),t.value=this.value,t.label=E(this.textContent),t}}});var cs=r(775),us=r.n(cs),ds=us().Collection.extend({initialize:function(t,e){e||(e={}),e.matcher&&(this.matcher=e.matcher),e.model&&(this.model=e.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=e.maxResults||5,this._queryData=e.queryData||{},this._queryParamKey=e.queryParamKey||"q",this._queryEndpoint=e.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,(0,Vt.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(t){var e,i;this.value=t,i=this.getFilteredResults(t),this.respond(t,i),t&&this._queryEndpoint&&!this.hasQueryCache(t)&&this.shouldGetMoreResults(i)&&(e=this.fetch(t),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always((()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})})),e.done(((e,i,n)=>{this.addQueryCache(t,e,n)})),e.done((()=>{t=this.value,i=this.getFilteredResults(t),this.respond(t,i)})))},getQueryData:function(t){var e=(0,Vt.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=(0,Vt.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return us().Collection.prototype.fetch.call(this,e)},respond:function(t,e){return this.trigger("respond",{query:t,results:e}),e},matcher:function(t,e){},getFilteredResults:function(t){var e=[];return t?(e=this.filter((function(e){return!!this.matcher(e,t)}),this),this._maxResults&&(e=(0,Vt.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,s=this.parse(e,i);n[t]=(0,Vt.pluck)(s,this._idAttribute)},hasQueryCache:function(t){return this.queryCache.hasOwnProperty(t)},findQueryCache:function(t){return this.queryCache[t]},shouldGetMoreResults:function(t){return t.length<this._maxResults},setMaxResults:function(t){this._maxResults=t,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});s("ProgressiveDataSet",ds);const hs=ds,ps=us().Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}});function fs(){this._suggestions=[],this._activeIndex=-1}fs.prototype={onChange:function(){},onHighlightChange:function(){},get:function(t){return this._suggestions[t]},set:function(t){var e=this._suggestions;return this._suggestions=t||[],this.onChange(e),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(t){if(t)for(var e=0;e<this._suggestions.length;e++)this._suggestions[e].id===t.id&&this.highlight(e);return this},highlight:function(t){return this._activeIndex=t,this.onHighlightChange(),this},highlightPrevious:function(){var t=this._activeIndex,e=0===t?t:t-1;return this.highlight(e),this},highlightNext:function(){var t=this._activeIndex,e=t===this._suggestions.length-1?t:t+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};const gs=fs;function ms(t,e){return t+"-"+e}function vs(t,e){this.el=t,this.anchor=e}function bs(t){i(t).find(".aui-select-active").removeClass("aui-select-active")}vs.prototype={render:function(t,e,i){this.currListId=i;var n="";if(t.length){var s=e;t.forEach((function(t){var e=t.getLabel(),r=t.get("img-src"),a=r?`<img src="${encodeURI(r)}"/>`:"",o=t.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";n+=`<li role="option" class="aui-select-suggestion" id="${ms(i,s)}">${a}${e}${o}</li>`,s++})),e?this.el.querySelector("ul").innerHTML+=n:this.el.querySelector("ul").innerHTML=n}else e||(this.el.querySelector("ul").innerHTML=`<li role="option" class="aui-select-no-suggestions">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(t){bs(this.el),i(this.el).find("#"+ms(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var t;i((t=this).el).css("min-width",i(t.anchor).outerWidth()),Ot(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new xi(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){var t;bs(this.el),Ot(this.el).hide(),(t=this)._auiAlignment&&t._auiAlignment.disable()},destroy:function(){var t;this.hide(),(t=this)._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};const ys=vs,ws=ue()('\n <input type="text" class="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" role="button" tabindex="-1" type="button"></button>\n <div class="aui-popover" role="listbox" data-aui-alignment="bottom left" hidden>\n <ul class="aui-optionlist" role="presentation"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n');function _s(t){t._select.selectedIndex=-1,function(t){t._input.removeAttribute("style"),i(t._input).removeClass("aui-select-has-inline-image")}(t)}function Cs(t){return t._suggestionModel.getNumberOfResults()}function ks(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function xs(t){t._suggestionsView.hide(),t._input.setAttribute("aria-expanded","false")}function Es(t){var e=Cs(t)?0:-1;t._suggestionModel.highlight(e),xs(t)}function Ds(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function Ts(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){i(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function As(t,e){if(e){var i,n=document.createElement("option"),s=t._select,r=e.get("value")||e.get("label"),a=(i=e.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,t._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new ft("change",{bubbles:!0}))}}function Ss(t){As(t,t._suggestionModel.highlighted()),Ts(t),Es(t)}function Os(t){return new ps(t.serialize())}function Is(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(Os(n))}return e}function Ns(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function Ps(t,e){return i.map(e,(function(t){return t.id})).indexOf(t)}function Ms(t){t._progressiveDataSet=new hs(Is(t),{model:ps,matcher:ks,queryEndpoint:t._queryEndpoint,maxResults:20}),t._isSync=!t._queryEndpoint,t._progressiveDataSet.on("activity",(function(){t._progressiveDataSet.activeQueryCount&&!t._isSync?(!function(t){t._button.isBusy()||(t._button.busy(),t._input.setAttribute("aria-busy","true"),t._dropdown.setAttribute("aria-busy","true"))}(t),J(t).set("should-flag-new-suggestions",!1)):(!function(t){t._button.idle(),t._input.setAttribute("aria-busy","false"),t._dropdown.setAttribute("aria-busy","false")}(t),J(t).set("should-flag-new-suggestions",!0))})),t._progressiveDataSet.on("respond",(function(e){if(e.query&&!t._input.value)return;if(J(t).get("should-cancel-response"))return void(t._progressiveDataSet.activeQueryCount||J(t).set("should-cancel-response",!1));e.query||(e.results=Is(t));var i=-1!==Ps(t._input.value,e.results),n=!t._input.value;if(!t.hasAttribute("can-create-values")||i||n||e.results.push(function(t){var e=new ls;e.setAttribute("value",t._input.value);var i=Os(e);return i.set("new-value",!0),i}(t)),!J(t).get("should-include-selected")){var s=Ps(t.value,e.results);s>=0&&e.results.splice(s,1)}const r=function(t,e){const i=t._suggestionModel.getNumberOfResults();return t._suggestionModel.set(),t._suggestionModel.set(e.results),i!==t._suggestionModel.getNumberOfResults()}(t,e),a=t._suggestionModel.highlighted()||e.results[0];t._autoHighlight&&(t._suggestionModel.setHighlighted(a),setTimeout((function(){t._input.setAttribute("aria-activedescendant",Ns(t))}),50)),t._input.setAttribute("aria-expanded","true"),!t._isSync&&r&&t._suggestionsView.getActive()&&J(t).get("should-flag-new-suggestions")&&(t.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),t._suggestionsView.show()}))}function Ls(t){var e=t.value?"":t._input.value,i=""===t._input.value;J(t).set("should-include-selected",i),Ds(t,!0,e)}function Rs(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&J(t).set("should-cancel-response",!0)}function $s(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function js(t){Rs(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==$s(t);if(i||n)if(e)_s(t);else{var s=$s(t);void 0===s?_s(t):t._input.value=s}}(t),function(t){t._suggestionModel.highlight(-1)}(t),xs(t)}const Fs=K("aui-select",{template:ws,created:function(t){t._listId=Oi(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._suggestionsView=new ys(t._dropdown,t._input),t._suggestionModel=new gs,t._suggestionModel.onChange=function(e){var i=[];t._suggestionModel._suggestions.forEach((function(t){e.some((function(e){return t.id===e.id}))||i.push(t)})),t._suggestionsView.render(i,e.length,t._listId)},t._suggestionModel.onHighlightChange=function(){var e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e),t._input.setAttribute("aria-activedescendant",Ns(t))}},attached:function(t){K.init(t),Ms(t),function(t){t._dropdown.id=t._listId,t.querySelector("button").setAttribute("aria-controls",t._listId)}(t),t._input.setAttribute("aria-controls",t._listId),t.setAttribute("tabindex","-1"),function(t){i(t._dropdown).on("mouseover","li",(function(e){Cs(t)&&t._suggestionModel.highlight(i(e.target).index())}))}(t),function(t){let e=!1;i(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),i(t._dropdown).on("mousedown","li",(function(n){if(!Cs(t))return!1;t._suggestionModel.highlight(i(n.target).index()),Ss(t),t._suggestionsView.hide(),i(t).closest(".aui-layer").length>0&&(e=!0),t._input.removeAttribute("aria-activedescendant")}))}(t),function(t){var e=t._datalist.querySelector("aui-option[selected]");e&&As(t,Os(e))}(t),Es(t),Ts(t)},detached:function(t){i(document).off("aui-close-layers-on-outer-click"),Ei(t).then((()=>{xs(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+es)},name(t,e){t.querySelector("select").setAttribute("name",e.newValue)},placeholder(t,e){t.querySelector("input").setAttribute("placeholder",e.newValue)},src(t,e){t._queryEndpoint=e.newValue}},events:{"blur input":function(t){js(t)},"mousedown button":function(t){document.activeElement!==t._input||t._dropdown.hasAttribute("hidden")||J(t).set("prevent-open-on-button-click",!0)},"click input":function(t){Ls(t)},"click button":function(t){var e=J(t);e.get("prevent-open-on-button-click")?e.set("prevent-open-on-button-click",!1):(J(t).set("button-clicked-prevent-dropdown-hide",!0),t.focus())},input:function(t){t._input.value?(J(t).set("should-include-selected",!0),Ds(t,!0)):J(t).get("button-clicked-prevent-dropdown-hide")?J(t).set("button-clicked-prevent-dropdown-hide",!1):xs(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===Y.ESCAPE)return Rs(t),void xs(t);t._suggestionsView.isVisible()&&Cs(t)?e.keyCode===Y.ENTER?(Rs(t),Ss(t),e.preventDefault()):e.keyCode===Y.TAB?(!function(t){t._suggestionsView.isVisible()&&Ss(t)}(t),n=!0):e.keyCode===Y.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===Y.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==Y.UP&&e.keyCode!==Y.DOWN||(Ls(t),e.preventDefault()),n=n||e.defaultPrevented,setTimeout((function(){t._input.value===i||n||t.dispatchEvent(new ft("input",{bubbles:!0}))}),0)}},prototype:{get value(){var t=this._select.options[this._select.selectedIndex];return t?t.value:""},set value(t){if(""===t)(n=this)._input.value="",n._select.innerHTML="";else if(t){var e=this._progressiveDataSet,i=e.findWhere({value:t})||e.findWhere({label:t});!i&&this.hasAttribute("can-create-values")&&(i=new ps({value:t,label:t})),As(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),js(this),this},focus:function(){return this._input.focus(),Ls(this),this}}});q("aui/select",Fs),s("select",Fs);const Hs=Fs;function Ws(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}const Bs={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:Ws,computeEnumValue:function(t,e){const i=t=>t.toLowerCase()===e.toLowerCase(),n=null===e,s=!n&&!t.values.filter(i).length;return n?t.hasOwnProperty("missingDefault")?t.missingDefault:null:s?t.hasOwnProperty("invalidDefault")?t.invalidDefault:t.hasOwnProperty("missingDefault")?t.missingDefault:null:t.values.length?t.values.filter(i)[0]:null},setEnumAttribute:function(t,e,i){t.setAttribute(e.attribute,i)}};function Vs(t){return t._input||(t._input=t.querySelector("input"))}function Us(t){return t._spinner||(t._spinner=new Qt)}function zs(t,e){Vs(e).removeAttribute(t)}function Ys(t,e,i){Vs(e).setAttribute(t,i.newValue)}function qs(t){return{removed:zs.bind(this,t),fallback:Ys.bind(this,t)}}const Ks={removed:function(t){zs.call(this,"form",t),t._formId=null},fallback:function(t,e){Ys.call(this,"form",t,e),t._formId=e.newValue}};var Js={removed:zs.bind(void 0,"id"),fallback:function(t,e){const i=`${e.newValue}-input`;Vs(t).setAttribute("id",i)}},Gs={removed:function(t){zs.call(this,"value",t),Vs(t).value="on"},fallback:function(t,e){Ys.call(this,"value",t,e)}},Qs={removed:function(t){Vs(t).checked=!1},fallback:function(t){Vs(t).checked=!0}},Xs={removed:function(t){Vs(t).removeAttribute("aria-label")},fallback:function(t,e){Vs(t).setAttribute("aria-label",e.newValue)}};function Zs(t){Vs(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===Y.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Vs(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===le)try{document.querySelector(":focus-within"),le=!0}catch(t){le=!1}return le}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}const tr=K("aui-toggle",{template:ue()('<input type="checkbox" class="aui-toggle-input assistive">','<span class="aui-toggle-view">','<span class="aui-toggle-tick aui-icon aui-icon-small aui-iconfont-success"></span>','<span class="aui-toggle-cross aui-icon aui-icon-small aui-iconfont-close-dialog"></span>',"</span>"),created:function(t){Vs(t),Us(t).setAttribute("size",Ut.SMALL.name),i(Vs(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Zs(t),t.hasAttribute("checked")&&Vs(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){ts(t).attributeExists("label")},events:{click:function(t,e){var i=Vs(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new ft("change",{bubbles:!0}))}(t)),Ws(t,"checked",i.checked)}},attributes:{id:Js,checked:Qs,disabled:qs("disabled"),form:Ks,name:qs("name"),value:Gs,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){Vs(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){Vs(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:Xs},prototype:{focus:function(){return Vs(this).focus(),this},get checked(){return Vs(this).checked},set checked(t){Vs(this).checked!==t&&(Vs(this).checked=t,Ws(this,"checked",t))},get disabled(){return Vs(this).disabled},set disabled(t){return Ws(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return Ks.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return Vs(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return Vs(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===Vs(this).getAttribute("aria-busy")},set busy(t){const e=Vs(this),n=Us(this);var s,r;return Ws(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!t,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(t){t.disabled=r})),t}}});function er(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ir(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?er(Object(i),!0).forEach((function(e){nr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):er(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function nr(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function sr(t,e){X(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),Q(t,e)}function rr(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let n={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};n=ir(ir({},n),{onCreate:()=>{vr(t)&&dt().enter(i(t),i(e))},onEvents:{enabled:()=>{vr(t)&&dt().enter(i(t))},disabled:()=>{vr(t)&&dt().exit(i(t))}}}),t._auiAlignment=new xi(t,e,n)}}function ar(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function or(t,e){var i=e.currentTarget;i&&(sr(t,i),rr(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function lr(t=0){return function(e){e.open&&!Ot(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){(function(t){return J(t).get("mouse-inside")||t.contains(document.activeElement)})(e)||(e.open=!1),e._closingTimeout=null}),t))}}const cr={click(t,e){t.open&&!Ot(t).isPersistent()?t.open=!1:(sr(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:or,mouseleave:lr(1e3),focus:or,blur:lr(0)};function ur(t){var e=t.currentTarget;J(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function dr(t){var e=t.currentTarget;J(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function hr(t){var e=t.currentTarget;"hover"===e.respondsTo&&lr(1e3)(e)}function pr(t){J(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",ur),t.removeEventListener("mouseleave",dr),t.removeEventListener("blur",hr),"hover"===t.respondsTo&&(J(t).set("mouse-inside",!1),t.addEventListener("mouseenter",ur),t.addEventListener("mouseleave",dr),t.addEventListener("blur",hr))}function fr(t,e){return`${t}.nested-layer-${e}`}function gr(t){return Ot(t).show(),!0===Ot(t).isVisible()}function mr(t){return Ot(t).hide(),!1===Ot(t).isVisible()}function vr(t){return"hover"!==t.respondsTo}function br(t){t.__initialised||(Ot(t),i(t).on({[`${gt}show`]:function(){const t=this;!function(t){let e=i(t);const n=t.id,s=t=>e.find(G(t.target)).length<1;i(document).on(fr("aui-layer-show",n),(t=>{s(t)||e.attr("persistent","")})).on(fr("aui-layer-hide",n),(t=>{s(t)||e.removeAttr("persistent")})).on(fr("select2-opening",n),(()=>{e.attr("persistent","")})).on(fr("select2-close",n),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(t),X(t,(function(e){rr(t,e),e.setAttribute("aria-expanded","true")}))},[`${gt}hide`]:function(){const t=this;!function(t){const e=t.id;i(document).off(fr("aui-layer-hide",e)).off(fr("aui-layer-show",e)).off(fr("select2-opening",e)).off(fr("select2-close",e))}(t.id),t.ownerDocument.body.contains(t)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(t):ar(t),X(t,(function(t){t.setAttribute("aria-expanded","false")})),Q(t,null)}}),t.__initialised=!0)}const yr={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},wr=K("aui-inline-dialog",{prototype:{get open(){return Ot(this).isVisible()},set open(t){this.__propUpdate=!0,t?gr(this):mr(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){Bs.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=yr.attribute;return Bs.computeEnumValue(yr,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;Bs.setEnumAttribute(this,yr,t),e!==this.respondsTo&&pr(this)},message:function(t){var e,i,n;return i=t,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(e=this).respondsTo])&&n.indexOf(i.type)>-1&&cr[i.type](e,i),this}},attributes:{open:function(t,e){if(br(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){gr(t)||Ws(t,"open",!1)}if("removed"===e.type){mr(t)||Ws(t,"open",!0)}}},"responds-to":function(t,e){Bs.computeEnumValue(yr,e.oldValue)!==Bs.computeEnumValue(yr,e.newValue)&&pr(t)}},created:br,attached:function(t){ts(t).attributeExists("id"),t.setAttribute("tabindex",0),t.setAttribute("role","dialog"),X(t,(function(e){e.setAttribute("aria-expanded",t.open)})),Z(t,(function(t){t.setAttribute("aria-haspopup","true")})),pr(t)},detached:function(t){Ei(t).then((()=>{ar(t),Z(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){i('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});q("aui/inline-dialog2",wr),s("InlineDialog2",wr);const _r=wr;function Cr(t){if(this.$el=i(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new Cr(e)}))[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var e=this.$el.children(".aui-nav-selected");e.parents(".aui-nav > [aria-expanded=false]").add(e.filter("[aria-expanded=false]")).each((function(){kr(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){kr(i(this).siblings(".aui-nav")).toggle()})),n.each((function(){var t=i(this).parent("li[aria-expanded]"),e=i(this).find(".aui-icon"),n="true"===t.attr("aria-expanded");e.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}Cr.prototype.isNested=function(){return 1===this.$treeParent.length},Cr.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Cr.prototype.expand=function(){return this.$treeParent.attr("aria-expanded","true"),this.$subtreeToggleIcon.removeClass("aui-iconfont-collapsed").addClass("aui-iconfont-expanded").text(I18n.getText("aui.words.collapse")),this},Cr.prototype.collapse=function(){return this.$treeParent.attr("aria-expanded","false"),this.$subtreeToggleIcon.removeClass("aui-iconfont-expanded").addClass("aui-iconfont-collapsed").text(I18n.getText("aui.words.expand")),this},Cr.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const kr=ht("navigation",Cr),xr=K("aui-nav",{type:K.type.CLASSNAME,attached:function(t){new Cr(t)},detached:function(t){i(t).removeData()}});s("navigation",kr);const Er=kr;function Dr(t,e,{currentProgress:n,value:s}){const r=i(t),a=i(e);"number"==typeof s&&s<=1&&s>=0&&(a.trigger("aui-progress-indicator-before-update",[n,s]),r.one("transitionend webkitTransitionEnd",(function(){a.trigger("aui-progress-indicator-after-update",[n,s])})),function(t,e,i){F(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(r,a,s))}function Tr(t){var e=i(t).first(),n=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),F(e),n.css("width","")}const Ar={indeterminate:!1,max:1,val:0};function Sr(t){return(0,Vt.isNumber)(t)&&(0,Vt.isFinite)(t)&&!(0,Vt.isNaN)(t)}function Or(t,e=1){const i=parseFloat(t);return Sr(i)?i:Number(e)}function Ir(t,e=1){return Number(parseFloat(t).toFixed(e))}function Nr(t){const{val:e,max:i}=t,n=function(t){return t>0?t:Ar.max}(i),s=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),r=Ir(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:Ir(100*r,2)}}function Pr(t){const{val:e,valAsFraction:i,max:n}=Nr(t._data),s=t.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");t.indeterminate?(s.removeAttribute("aria-valuenow"),Tr(s)):(s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuemax",n),Dr(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function Mr(t,e){t._data.val=Or(e.newValue,e.oldValue||Ar.val),Pr(t)}function Lr(t,e){t._data.max=Or(e.newValue,e.oldValue||Ar.max),Pr(t)}const Rr=K("aui-progressbar",{template(t){t._data.max=Or(t.getAttribute("max"),Ar.max),t._data.val=Or(t.getAttribute("value"),Ar.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:s}=Nr(t._data),r=t._data.indeterminate?"":`data-value="${n}"`;t.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${e}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(t){Pr(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:Ar.val,fallback:function(t,e){if(t._updating)return!1;Mr(t,e)}},max:{value:Ar.max,fallback:function(t,e){if(t._updating)return!1;Lr(t,e)}}},prototype:{get _data(){return this.__data||(this._data=(0,Vt.defaults)({},Ar))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,Pr(this)},get value(){const{val:t}=Nr(this._data);return t},set value(t){if(!Sr(t))return!1;const e={newValue:Ir(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,Mr(this,e)},get max(){const{max:t}=Nr(this._data);return t},set max(t){if(!Sr(t))return!1;const e={newValue:Ir(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,Lr(this,e)}}}),$r={update:I((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var n=i(t).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===e;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),Dr(s,n,{currentProgress:o,value:e}),n}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:I(Tr,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};s("progressBars",$r);const jr=$r;r(473);const Fr={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Hr(t,e){let n=Object.assign({},Fr,e);return t.find("th").each((function(t,e){const s=i(e);n.headers[t]={},s.hasClass("aui-table-column-unsortable")?n.headers[t].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[t].sorter="issue-key"))})),t.tablesorter(n)}let Wr={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){const e=t.split("-"),i=e[0],n=e[1],s="..........",r="000000";let a=(i+s).slice(0,s.length);return a+=(r+n).slice(-r.length),a},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(t,e,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(t,e,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each((function(){Hr(i(this))}))},setTableSortable:function(t,e){return Hr(t,e)}};i(Wr.setup),s("tablessortable",Wr);function Br(t,e=""){var n=i(t),s=e||!1;n.each((function(){var t=i(this);t.attr("id")||t.attr("id",Oi(s))}))}s("_addID",Br);const Vr=Br;function Ur(t){return(t=i(t)).prop("scrollWidth")>t.prop("clientWidth")}s("isClipped",Ur);const zr=Ur;var Yr=window.skateTemplateHtml;function qr(t){let e=i(t),n=String(e.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Kr(t){let e=qr(t);return e?document.getElementById(e):null}var Jr={totalTabsWidth:function(t,e){var i=this.totalVisibleTabWidth(t),n=0;return e.find("li").each((function(t,e){n+=parseInt(e.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(t){var e=0;return t.each((function(t,n){e+=i(n).outerWidth()})),e},removeResponsiveDropdown:function(t,e){t.remove(),e.remove()},createResponsiveDropdownTrigger:function(t,e){var i=`<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-${e}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${e}"\n href="#aui-tabs-responsive-dropdown-${e}">...</a>\n </li>`;return t.append(i),t.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(t,e){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+e+'"><ul></ul></div>';return t.append(i),t.find("#aui-tabs-responsive-dropdown-"+e)},findNewVisibleTabs:function(t,e,n){function s(t,e,i){return t+e<=i}for(var r=0,a=0;s(r,n,e)&&a<t.length;a++){r+=i(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(t,e.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=i(t[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(a)},moveTabToResponsiveDropdown:function(t,e,i){var n=t.find("a");t.attr("data-aui-tab-width",t.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),t.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),e.find("ul").prepend(t)},moveInvisibleTabs:function(t,e,n){function s(t){return t>0}for(var r=0;s(e)&&r<t.length;r++){var a=i(t[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,n),e-=o}},moveTabOutOfDropdown:function(t,e){t.find("a").hasClass("aui-dropdown2-checked")&&(t.addClass("active-tab"),e.removeClass("active-tab")),t.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),e.before(t)}};function Gr(t){var e=i(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var n=Kr(e);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),e.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),e.hasClass("aui-tabs-responsive-item")){var o=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}e.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),e.closest(".tabs-menu").find("a").attr("aria-selected","false"),e.attr("aria-selected","true"),e.trigger("tabSelect",{tab:e,pane:s})}else p("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Qr(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function Xr(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return"_internal-aui-tabs-"+(e||"")+(i&&"true"!==i?"-"+i:"")}function Zr(t){ra.change(i(t.target).closest("a")),t&&t.preventDefault()}function ta(t){t.forEach((function(t,e){!function(t,e){var n=i(t),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Jr.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=Jr.createResponsiveDropdownTrigger(s,e),c=Jr.createResponsiveDropdown(n,e)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+e),o.attr("id","aui-tabs-responsive-trigger-"+e),o.attr("href","#aui-tabs-responsive-trigger-"+e),c.attr("id","aui-tabs-responsive-dropdown-"+e),d){var h=Jr.moveVisibleTabs(r.toArray(),n,a),p=Jr.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");Jr.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Zr),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Jr.moveTabOutOfDropdown(i(this),a)})),Jr.removeResponsiveDropdown(c,a))}(t,e)}))}function ea(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function ia(t){var e=i(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var n=e.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each((function(){var t,e,n;e=i(t=this),n=Kr(e),qr(t)||p('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),n?(Vr(e),e.attr("role","tab"),i(n).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.attr("aria-selected","false")):h("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",t)})),n.on("click.aui-tabs","a",Zr),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(sa)}(t)}}function na(){var t=i(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){ia(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),s=t.get(e);if(Qr(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(Xr(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&Gr(a)}}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function sa(t){t.setAttribute("role","tabpanel")}var ra={setup:function(){!function(){const t=(0,Vt.debounce)(ta,200);t(ea()),i(window).on("resize.aui-tabs",(()=>t(ea())))}(),na(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var t=i(this);t.attr("title")||zr(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof i?t:document.querySelector(t),n=i(e).first(),s=n.closest(".aui-tabs");Gr(n),Qr(s)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=qr(t);i&&window.localStorage.setItem(Xr(e),"#"+i)}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(ra.setup);const aa=K("aui-tabs",{created:function(t){i(t).addClass("aui-tabs horizontal-tabs"),K.init(t),ia(t)},template:Yr('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(t){var e=i(function(t){return t.querySelectorAll("aui-tabs-pane")}(this)).index(t);return e>-1&&ra.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[e].children[0]),this}}}),oa=K("aui-tabs-tab",{extends:"li",created:function(t){i(t).addClass("menu-item")},template:Yr('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),la=K("aui-tabs-pane",{attached:function(t){var e=i(function(t){return i(t).closest("aui-tabs").get(0)}(t)),n=i(t),s=e.find("aui-tabs-pane").index(n),r=new oa,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+t.id),Yr.wrap(r).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&a.addClass("active-tab"),n.siblings("ul").append(r)},template:Yr("<content></content>")});s("tabs",ra);const ca="_aui-form-notification-initialised",ua="data-aui-notification-wait",da="data-aui-notification-info",ha="data-aui-notification-error",pa=[ha,"data-aui-notification-success",ua,da];function fa(t){ga(t)||(!function(t){t.addClass(ca),ma(t)}(t),ya(t))}function ga(t){return t.hasClass(ca)}function ma(t,e){e=e||va(t),ba(t)===da&&t.after(function(t){if(t.length>1){return`<div class="description"><ul>${t.map((t=>`<li>${t}</li>`)).join("")}</ul></div>`}return`<div class="description">${t}</div>`}(e))}function va(t){var e=ba(t),i=e?t.attr(e):"";return""===i?i:function(t){var e;try{e=JSON.parse(t)}catch(i){e=[t]}return e}(i)}function ba(t){var e;return pa.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function ya(t){const e=i(t);if(!ga(e))return;const n=ba(e);Ca(e,n===ua);const s=va(e);s&&n===ha?wa(e,s):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(ha)||e.parent().find(".error").remove()}function wa(t,e){let i=_a(t,"error");i.length>0&&i.remove(),t.after(function(t){return`<div class="error"><ul>${t.map((t=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification">${t}</span>${t}</li>`)).join("")}</ul></div>`}(e))}function _a(t,e){return t.parent().find(`.${e}`)}function Ca(t,e){e&&!function(t){return t.next("aui-spinner").length>0}(t)?t.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):t.parent().find("aui-spinner").remove()}const ka=S("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});K("data-aui-notification-field",{attached:function(t){ka(),fa(i(t))},attributes:function(){const t={};return pa.forEach((function(e){t[e]=ya})),t}(),type:K.type.ATTRIBUTE}),q("aui/form-notification");var xa=["displayfield","watchfield","when","novalidate","state"],Ea=[];var Da={register:function(t,e){var n;if("string"==typeof t)n=t;else{var s=function(t){var e=!1;return t.some((function(t){var n=-1!==i.inArray(t,xa);return n&&(e=t),n})),e}(t);if(s)return h('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var r={validatorFunction:e,validatorTrigger:n};return Ea.push(r),r},validators:function(){return Ea}};q("aui/form-validation/validator-register",Da);const Ta=Da;function Aa(t){var e=t.el.value.length;let i=0===e;var n=parseInt(t.args("minlength"),10),s=parseInt(t.args("maxlength"),10);if(n&&s&&n===s&&!i&&e!==n){const e=Ma("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=Ma("minlength",t.args);t.invalidate(e)}else if(s&&e>s){const e=Ma("maxlength",t.args);t.invalidate(e)}else t.validate()}function Sa(t){return"password"===t.getAttribute("type")}function Oa(t,e){var i=t.match(e);return!!i&&t===i[0]}function Ia(t){var e=Ma("pattern",t.args);Oa(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function Na(t){var e=Ma("required",t.args);t.el.value?t.validate():t.invalidate(e)}function Pa(t){var e=Ma("validnumber",t.args),i=parseInt(t.el.value,10);if(isNaN(i))t.invalidate(e);else{var n=t.args("min"),s=t.args("max");n&&i<parseInt(n,10)?t.invalidate(Ma("min",t.args)):s&&i>parseInt(s,10)?t.invalidate(Ma("max",t.args)):t.validate()}}function Ma(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:La[t];var s=i;i||(s=[e(t)]);var r,a=e(t+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}Ta.register(["maxlength","minlength"],Aa),Ta.register("[maxlength],[minlength]",Aa),Ta.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,s=Ma("matchingfield",t.args,[e,n]);(Sa(t.el)||Sa(i))&&(s=Ma("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(s):t.validate()})),Ta.register(["doesnotcontain"],(function(t){var e=Ma("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),Ta.register(["pattern"],Ia),Ta.register("[pattern]",Ia),Ta.register(["required"],Na),Ta.register("[required]",Na),Ta.register(["min","max"],Pa),Ta.register("[min],[max]",Pa),Ta.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=Ma("dateformat",t.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=e.split(""),r="";s.forEach((function(t){var e=n.hasOwnProperty(t);r+=e?n[t]:t}));var a=new RegExp(r+"$","i");Oa(t.el.value,a)?t.validate():t.invalidate(i)})),Ta.register(["minchecked","maxchecked"],(function(t){var e=i(t.el).find(":checked").length,n=!t.args("minchecked")||e>=t.args("minchecked"),s=!t.args("maxchecked")||e<=t.args("maxchecked"),r=Ma("minchecked",t.args),a=Ma("maxchecked",t.args);n&&s?t.validate():n?s||t.invalidate(a):t.invalidate(r)}));var La={minlength:I18n.getText("aui.validation.message.minlength"),maxlength:I18n.getText("aui.validation.message.maxlength"),exactlength:I18n.getText("aui.validation.message.exactlength"),matchingfield:I18n.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":I18n.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:I18n.getText("aui.validation.message.doesnotcontain"),pattern:I18n.getText("aui.validation.message.pattern"),required:I18n.getText("aui.validation.message.required"),validnumber:I18n.getText("aui.validation.message.validnumber"),min:I18n.getText("aui.validation.message.min"),max:I18n.getText("aui.validation.message.max"),dateformat:I18n.getText("aui.validation.message.dateformat"),minchecked:I18n.getText("aui.validation.message.minchecked"),maxchecked:I18n.getText("aui.validation.message.maxchecked")};q("aui/form-validation/basic-validators");const Ra="data-aui-notification-",$a="invalid",ja="valid",Fa="validating",Ha="unvalidated",Wa="_aui-form-validation-initialised",Ba="_aui-internal-field-state-changed";function Va(t){(function(t){return t.hasClass(Wa)})(t)||(!function(t){t.addClass(Wa),ma(t)}(t),function(t){(function(t){var e,i=function(){t.trigger("aui-stop-typing")};t.on("keyup",(function(){clearTimeout(e),e=setTimeout(i,1500)}))})(t),function(t){var e=za(t,"when"),i=za(t,"watchfield");(i?t.add("#"+i):t).on(e,(function(){Ua(t)}))}(t)}(t),Ka(t,Ha))}function Ua(t){if(!za(t,"novalidate"))return function(t){!function(t){Ja(Qa(t),"none")}(t);var e=function(t){var e=[];return Ya().forEach((function(i,n){var s=i.validatorTrigger;t.is(s)&&e.push(n)})),e}(t);Ka(t,Fa);var n=function(t,e){var n=[];return e.forEach((function(e){var s=Ya()[e].validatorFunction,r=new i.Deferred;s(function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){Ka(t,$a,i),e.reject()},args:qa(t),el:t[0],$el:t};return M(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(t,r)),n.push(r)})),n}(t,e),s=i.when.apply(i,n);return s.done((function(){Ka(t,ja)})),s}(t);Ka(t,ja)}function za(t,e){var i=t.attr("data-aui-validation-"+e);return i||(i={when:"change"}[e]),i}function Ya(){return Ta.validators()}function qa(t){return function(e){return t.attr("data-aui-validation-"+e)||t.attr(e)}}function Ka(t,e,n){if(t.attr("data-aui-validation-state",e),e!==Ha){t.trigger(i.Event(Ba));var s=Qa(t),r={validating:"wait",invalid:"error",valid:"success"},a=r[e];e===Fa?function(t){setTimeout((function(){Xa(t)===Fa&&(Ja(t,"wait"),Ca(t,!0))}),500)}(t):Ja(s,a,n)}}function Ja(t,e,i){const n=function(t){return t.is("[data-aui-notification-wait]")}(t);!function(t){Ga(t,"wait"),Ca(t,!1),Ga(t,"success")}(t);var s,r;if(!("success"===e&&!n))if("none"===e)Ga(t,"error");else{const n=t.attr(Ra+e)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];t.attr(Ra+e,JSON.stringify(a)),"error"===e&&wa(t,a)}}function Ga(t,e){t.removeAttr(Ra+e),"error"===e&&_a(t,e).remove()}function Qa(t){var e=za(t,"displayfield");return void 0===e?t:i("#"+e)}function Xa(t){return t.attr("data-aui-validation-state")}function Za(t,e){e.preventDefault(),t.one(Ba,(function(){t.trigger("submit")}))}function to(t,e){var i="[data-aui-validation-state="+e+"]";return t.find(i)}i(document).on("submit",(function(t){var e=t.target,n=i(e),s=function(t){return a=t.find("."+Wa),e=i.map(a,(function(t){return Xa(i(t))})),n=-1!==e.indexOf($a),s=-1!==e.indexOf(Ha),r=-1!==e.indexOf(Fa),n?$a:s?Ha:r?Fa:ja;var e,n,s,r;var a}(n);if(s===Ha)Za(n,t),function(t){to(t,Ha).each((function(t,e){eo.validate(i(e))}))}(n);else if(s===Fa)Za(n,t);else if(s===$a)t.preventDefault(),function(t){to(t,$a).first().focus()}(n);else if(s===ja){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&t.preventDefault()}}));const eo={register:Ta.register,validate:function(t){Ua(t=i(t))}};K("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),Va(i(t)),K.init(t)},type:K.type.ATTRIBUTE}),q("aui/form-validation",eo),s("formValidation",eo);var io=I((function(t,e){var i,n;return function(){var s=arguments,r=this,a=function(){n=t.apply(r,s),r=s=null};return clearTimeout(i),i=setTimeout(a,e),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const no=io;s("debounce",io),s("debounceImmediate",I((function(t,e){var i,n=null;return function(){var s=this,r=arguments,a=function(){n=s=r=null};return null===n&&(i=t.apply(s,r)),clearTimeout(n),n=setTimeout(a,e),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const so=i(window);function ro(t){var e,n=this;this.element=t,this.$element=i(t),this.index=i("aui-header, .aui-header").index(t),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(e=i(n.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}ro.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=i(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=i(this).parent(),n=e.outerWidth(!0);t.totalWidth+=n,t.menuItems.push({$element:e,outerWidth:n})})),this.rightMostNavItemIndex=this.menuItems.length-1,so.on("resize",this._resizeHandler=no((function(){t.constructResponsiveDropdown()}),100));var e=this.$applicationLogo.find("img");0!==e.length&&(e.attr("data-aui-responsive-header-index",this.index),e.on("load",(function(){t.constructResponsiveDropdown()}))),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){so.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var t,e=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(e>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),t=e-this.moreMenuWidth;for(var i=-1;t-this.menuItems[i+1].outerWidth>=0;)t-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var t=document.createElement("li"),e=document.createElement("aui-dropdown-menu");e.id=`aui-responsive-header-dropdown-${this.index}`,K.init(e);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,K.init(n),e.appendChild(n);var s=function(t){var e=document.createElement("a");return e.setAttribute("class","aui-dropdown2-trigger"),e.setAttribute("href","#"),e.id=t.id+"-trigger",e.setAttribute("aria-controls",t.id),e.innerHTML=I18n.getText("aui.words.more"),e}(e);return t.appendChild(s),t.appendChild(e),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(t):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(t),this.moreMenuWidth=i(t).outerWidth(!0),i(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+t,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}e.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=t}},moveToResponsiveDropdown:function(t){if(!(t<=0)){for(var e=ue().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-t+1,r=n;r>=s;r--){var a=this.menuItems[r].$element,o=a.children("a");K.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const t=Array.from(o.get(0).classList).filter((t=>!t.startsWith("aui-")));l.setAttribute("extra-classes",t.join(" "))}K.init(l),ue().wrap(l).textContent=o.text(),a.detach(),e.insertBefore(l,e.firstChild),this.element.dispatchEvent(new ft("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=t}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const ao=function(t){let e=t._header;return e instanceof ro||(e=new ro(t),e.init(),t._header=e),e};function oo(){i(".aui-header").each((function(){ao(this)}))}i(oo);const lo={};lo.setup=I(oo,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),s("responsiveheader",lo);const co=K("aui-header-end",{type:K.type.ELEMENT,created:function(t){const e=t.parentElement;e&&e.classList.contains("aui-header")?ao(e):console.log("Could not async. initialise aui-header")}});var uo=r(207),ho=r.n(uo);const po=({minDate:t,maxDate:e,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:e||n.attr("max"),minDate:t||n.attr("min"),nextText:">",onSelect:function(t){n.val(t),n.trigger("change"),r(),s&&s.call(this,t)},onChangeMonthYear:a,prevText:"<"}),fo=(t,e)=>{let n,s,r,a=!1;const o=i("body"),l=e=>{let n=i(e.target),r=n.closest(s).length||n.is(t),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||e.keyCode===Y.ESCAPE)return h(),void(a=!1);n.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:t})=>(n=(({horizontalAlignment:t,datePickerUUID:e})=>{const n=new _r;n.id=e;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${t}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(t),datePickerUUID:e}),r=t.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),t.off("focus click",u),t.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),t.on("focusout keydown",c)}}},go=function(t){const e=t.getField(),n=t.getOptions(),s=t.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:h,destroyPolyfill:p,createPolyfill:f}=fo(e,s),g=t=>{i(t.currentTarget).val()&&r.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==r)return t(e)},n=i((()=>{r.datepicker("destroy")}));t.show=l,t.hide=c,t.destroyPolyfill=()=>{p(),e.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&e.attr("placeholder",m),v&&e.prop("type",v),e.removeAttr("data-aui-dp-uuid"),n(),delete t.destroyPolyfill,delete t.show,delete t.hide},t.setDate=i((t=>{r.datepicker("setDate",t)})),t.getDate=i((()=>r.datepicker("getDate"))),t.setMin=i((t=>r.datepicker("option","minDate",t))),t.setMax=i((t=>r.datepicker("option","maxDate",t)))}n.languageCode in mo.prototype.localisations||(n.languageCode="");const y=mo.prototype.localisations;if(e.attr("aria-controls",s),void 0===r){void 0!==e.attr("step")&&d("WARNING: The date picker polyfill currently does not support the step attribute!");const s=po({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:e,onSelect:n.onSelect,hide:t.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:t,popupContents:e,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(t),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),e.append(a)),r})({config:o,popupContents:a({$field:e}),getCalendarNode:h,hint:n.hint}),f(),e.on("propertychange keyup input paste",g),b=new MutationObserver((function(e){e.forEach((function(e){"min"===e.attributeName?t.setMin(e.target.getAttribute("min")):"max"===e.attributeName&&t.setMax(e.target.getAttribute("max"))}))})),b.observe(e.get(0),{attributes:!0})}e.on("focus click",o),e.attr("placeholder",n.placeholder),e.prop("type","text"),e.val(e.attr("value")),e.trigger("propertychange"),e.attr("data-aui-dp-uuid",s)};function mo(t,e){let n={};const s=Oi("date-picker"),r=i(t),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!mo.prototype.browserSupportsDateField,e=!1!==n.overrideBrowserDefault;(t||e)&&go(a)},reconfigure:t=>{n=i.extend(void 0,mo.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function vo(t,e){const n=i.extend({nextText:">",prevText:"<"},e),s=i(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const t=i("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(n.hint),s.append(t)}return s.reconfigure=t=>{s.datepicker("destroy"),s.datepicker(t)},s.destroy=()=>{s.datepicker("destroy")},s}mo.prototype.browserSupportsDateField=function(){if(void 0===oe){var t=document.createElement("input");t.setAttribute("type","date"),oe="date"===t.type}return oe}(),mo.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:ho().W3C},mo.prototype.localisations={dayNames:[I18n.getText("ajs.datepicker.localisations.day-names.sunday"),I18n.getText("ajs.datepicker.localisations.day-names.monday"),I18n.getText("ajs.datepicker.localisations.day-names.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names.thursday"),I18n.getText("ajs.datepicker.localisations.day-names.friday"),I18n.getText("ajs.datepicker.localisations.day-names.saturday")],dayNamesMin:[I18n.getText("ajs.datepicker.localisations.day-names-min.sunday"),I18n.getText("ajs.datepicker.localisations.day-names-min.monday"),I18n.getText("ajs.datepicker.localisations.day-names-min.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.thursday"),I18n.getText("ajs.datepicker.localisations.day-names-min.friday"),I18n.getText("ajs.datepicker.localisations.day-names-min.saturday")],firstDay:I18n.getText("ajs.datepicker.localisations.first-day"),isRTL:"true"===I18n.getText("ajs.datepicker.localisations.is-RTL"),monthNames:[I18n.getText("ajs.datepicker.localisations.month-names.january"),I18n.getText("ajs.datepicker.localisations.month-names.february"),I18n.getText("ajs.datepicker.localisations.month-names.march"),I18n.getText("ajs.datepicker.localisations.month-names.april"),I18n.getText("ajs.datepicker.localisations.month-names.may"),I18n.getText("ajs.datepicker.localisations.month-names.june"),I18n.getText("ajs.datepicker.localisations.month-names.july"),I18n.getText("ajs.datepicker.localisations.month-names.august"),I18n.getText("ajs.datepicker.localisations.month-names.september"),I18n.getText("ajs.datepicker.localisations.month-names.october"),I18n.getText("ajs.datepicker.localisations.month-names.november"),I18n.getText("ajs.datepicker.localisations.month-names.december")],showMonthAfterYear:"true"===I18n.getText("ajs.datepicker.localisations.show-month-after-year"),yearSuffix:I18n.getText("ajs.datepicker.localisations.year-suffix")};const bo="aui-datepicker",yo=t=>function(e){let i=this.data(bo);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(bo,i)),i};i.fn.datePicker=yo(mo),s("DatePicker",mo),i.fn.calendarWidget=yo(vo),s("CalendarWidget",vo);const wo=mo;r(251),r(993),r(927),r(757),r(940);const _o={NO_VALUE:"aui-restfultable-editable-no-value",NO_ENTRIES:"aui-restfultable-no-entires",RESTFUL_TABLE:"aui-restfultable",ROW:"aui-restfultable-row",READ_ONLY:"aui-restfultable-readonly",ACTIVE:"aui-restfultable-active",ALLOW_HOVER:"aui-restfultable-allowhover",FOCUSED:"aui-restfultable-focused",MOVEABLE:"aui-restfultable-movable",DISABLED:"aui-restfultable-disabled",SUBMIT:"aui-restfultable-submit",CANCEL:"aui-restfultable-cancel",EDIT_ROW:"aui-restfultable-editrow",CREATE:"aui-restfultable-create",DRAG_HANDLE:"aui-restfultable-draghandle",ORDER:"aui-restfultable-order",EDITABLE:"aui-restfultable-editable",ERROR:"error",DELETE:"aui-restfultable-delete",STATUS:"aui-restfultable-status"},Co=us().View,ko=us().View,xo=us().View,Eo={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};r(562);const Do={REORDER_SUCCESS:"RestfulTable.reorderSuccess",ROW_ADDED:"RestfulTable.rowAdded",ROW_REMOVED:"RestfulTable.rowRemoved",EDIT_ROW:"RestfulTable.switchedToEditMode",SERVER_ERROR:"RestfulTable.serverError",CREATED:"created",UPDATED:"updated",FOCUS:"focus",BLUR:"blur",SUBMIT:"submit",SAVE:"save",MODAL:"modal",MODELESS:"modeless",CANCEL:"cancel",CONTENT_REFRESHED:"contentRefreshed",RENDER:"render",FINISHED_EDITING:"finishedEditing",VALIDATION_ERROR:"validationError",SUBMIT_STARTED:"submitStarted",SUBMIT_FINISHED:"submitFinished",INITIALIZED:"initialized",ROW_INITIALIZED:"rowInitialized",ROW_EDIT:"editRow"},To='<aui-spinner size="small"></aui-spinner>',Ao="aui-spinner";function So(t){0===t.find(Ao).length&&t.find(`.${_o.STATUS}`).append(To)}function Oo(t){t.find(`.${_o.STATUS} aui-spinner`).remove()}var Io=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const No=us().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=i(this.el),this._event=Do,this.classNames=_o,this.dataKeys=Eo,this.columns=t.columns,this.isCreateRow=t.isCreateRow,this.allowReorder=t.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),t.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=t.model,this.model=new this._modelClass),this.fieldFocusSelector=t.fieldFocusSelector,this.on(this._event.CANCEL,(()=>{this.isCreateRow||(this.disabled=!0)})).on(this._event.SAVE,(t=>!this.disabled&&this.submit(t))).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()})).on(this._event.SUBMIT_STARTED,(()=>this._submitStarted())).on(this._event.SUBMIT_FINISHED,(()=>this._submitFinished()))},defaultColumnRenderer:function(t){return!1!==t.allowEdit?i("<input type='text' />").addClass("text").attr({name:t.name,value:t.value,"aria-label":t.ariaLabel}):t.value?document.createTextNode(t.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(t){27===t.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(t){return this.trigger(this._event.CANCEL),t.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(t){return this.hasFocus()||this.trigger(this._event.FOCUS,t.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(t){var e,i;return this.enable(),e=t?this.$el.find(this.fieldFocusSelector(t)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),e.focus().trigger("select"),this},disable:function(){var t,e;return Io&&(e=this.$el.find(":submit")).length&&(t=i("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(e.attr("class")).val(e.val()).data(this.dataKeys.ENABLED_SUBMIT,e),e.replaceWith(t)),this.$el.addClass(this.classNames.DISABLED).find(":submit").attr("disabled","disabled"),this},enable:function(){var t,e;return Io&&(e=(t=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&t.length&&t.replaceWith(e),this.$el.removeClass(this.classNames.DISABLED).find(":submit").removeAttr("disabled"),this},showLoading:function(){return So(this.$el),this},hideLoading:function(){return Oo(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var t=this.$el;return t.serializeObject?t.serializeObject():t.serialize()},mapSubmitParams:function(t){return this.model.changedAttributes(t)},submit:function(t){var e,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,t):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(t,e,i){400===i.status&&(n.renderErrors(e.errors),n.trigger(n._event.VALIDATION_ERROR,e.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return i("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&i.each(t,(function(t,i){e.$el.find("[name='"+t+"']").closest("td").append(e.renderError(t,i))})),this},render:function(t){var e=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),i.each(this.columns,(function(n,s){var r,a,o=t.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+s.id,o),r=e.isCreateRow&&s.createView?new s.createView({model:e.model}).render(l[0]):s.editView?new s.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=i("<td />"),"object"==typeof r&&r.done?r.done((function(t){a.append(t)})):a.append(r),s.styleClass&&a.addClass(s.styleClass),a.appendTo(e.$el)})),this.$el.append(this.renderOperations(t.update,t.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,t.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(t){var e=i('<td class="aui-restfultable-operations" />');return t?e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(i(`<td class="${this.classNames.STATUS}" />`))}}),Po=document||{},Mo=i(Po);function Lo(t,e){Mo.trigger(t,e)}function Ro(t,e,n){i(e).trigger(t,n),Lo(t,n),e.id&&Lo(e.id+"-"+t,n)}var $o=us().Model.extend({sync:function(t,e,i){var n=this,s=i.error;return i.error=function(t){n._serverErrorHandler(t,this),s&&s.apply(this,arguments)},us().sync.apply(us(),arguments)},save:function(t,e){var n,s=this,r=(e=e||{}).error,a=e.success;e.error=function(t,e){var n=i.parseJSON(e.responseText||e.data);r&&r.call(s,s,n,e)},this.isNew()?us().Model.prototype.save.call(this,t,e):t&&((n=new($o.extend({url:this.url()}))({id:this.id})).save=us().Model.prototype.save,e.success=function(t,e){s.clear().set(t.toJSON()),a&&a.call(s,s,e)},n.save(t,e))},destroy:function(t){t=t||{};var e=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:t.data||{},contentType:"application/json",success(i){e.collection&&e.collection.remove(e),t.success&&t.success.call(e,i)},error(i){e._serverErrorHandler(i,this),t.error&&t.error.call(e,i)}}),this},changedAttributes:function(t){var e={},n=this.toJSON();if(i.each(t,(function(t,s){n[t]?n[t]&&n[t]!==s&&("object"==typeof s&&(0,Vt.isEqual)(s,n[t])||(e[t]=s)):"string"==typeof s?""!==i.trim(s)&&(e[t]=s):i.isArray(s)?0!==s.length&&(e[t]=s):e[t]=s})),!(0,Vt.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var n;400!==t.status&&(n=i.parseJSON(t.responseText||t.data),Ro(Do.SERVER_ERROR,this,[n,t,e]))},fetch:function(t){t=t||{},this.clear(),us().Model.prototype.fetch.call(this,t)}});const jo=$o,Fo=us().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=Do,this.classNames=_o,this.dataKeys=Eo,this.columns=t.columns,this.allowEdit=t.allowEdit,this.allowDelete=t.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=t.index||0,this.deleteConfirmationCallback=t.deleteConfirmationCallback,this.allowReorder=t.allowReorder,this.$el=i(this.el),this.on(this._event.CANCEL,(()=>this.disabled=!0)).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>this.unfocus())).on(this._event.MODAL,(()=>this.$el.addClass(this.classNames.ACTIVE))).on(this._event.MODELESS,(()=>this.$el.removeClass(this.classNames.ACTIVE)))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(t){if(t.value)return document.createTextNode(t.value.toString())},sync:function(t){var e=this;return this.model.addExpand(t),this.showLoading(),this.model.save(t,{success:function(){e.hideLoading().render(),e.trigger(e._event.UPDATED)},error:function(){e.hideLoading()}}),this},refresh:function(t,e){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),t&&t.apply(this,arguments)},error:function(){i.hideLoading(),e&&e.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return So(this.$el),this},hideLoading:function(){return Oo(this.$el),this},edit:function(t){var e;return e=i(t.target).is("."+this.classNames.EDITABLE)?i(t.target).attr("data-field-name"):i(t.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(e){e.preventDefault(),t.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let t=this.deleteConfirmationCallback(this.model.toJSON());if(!t||!t.then)throw new Error("deleteConfirmationCallback needs to return a Promise");t.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var t=this,e=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),s=i(`<td class="${this.classNames.STATUS}" />`);return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,(function(n,s){var r,a=i("<td />"),o=e[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(t.$el),r&&i.trim(r)||(a.addClass(t.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)})),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,e),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var Ho=us().View.extend({initialize:function(t){var e=this;if(e.options=i.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=Do,e.classNames=_o,e.dataKeys=Eo,this.$table=i(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=i("<thead/>"),this.$theadRow=i("<tr />").appendTo(this.$thead),this.$tbody=i("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw new Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach((function(t){var n=i.isFunction(t.header)?t.header():t.header;void 0===n&&(h("You have not specified [header] for column ["+t.id+"]. Using id for now..."),n=t.id),e.$theadRow.append("<th>"+n+"</th>")})),e.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(t){e.focusedRow&&e.focusedRow.trigger(e._event.SAVE),t.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(t,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(e.classNames.MOVEABLE);return n.children().each((function(){var t=i(this),e=parseInt(0+t.css("border-left-width"),10),n=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+e+n;s.append(i("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))})),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(t,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(e.classNames.MOVEABLE).children().each((function(t){i(this).width(r.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'"> </td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),e.getRowFromElement(n.item[0]).trigger(e._event.MODAL)},stop:function(t,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(n.item[0]).trigger(e._event.MODELESS))},update:function(t,i){var n={row:e.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};e.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(t){return!i(t.target).is("."+e.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return e.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(t){void 0===e.options.addPosition&&"bottom"===e.options.createPosition||"bottom"===e.options.addPosition?e.addRow(t):e.addRow(t,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(e._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=i('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(t){e.getRows().forEach((function(i){i.model===t&&(i.hasFocus()&&e._createRow&&e._createRow.trigger(e._event.FOCUS),e.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;i.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):i.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,n=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var s=e.options.reverseOrder?n(t.nextItem):n(t.prevItem);i.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){t.row.hideLoading()},success:function(t){Ro(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var n=i.parseJSON(t.responseText||t.data);Ro(e._event.SERVER_ERROR,e,[n,t,this])}}),t.row.showLoading()}},_createCollection:function(){var t=this;return new(this.options.Collection.extend({sort:function(e){if(e||(e={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=t.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(...e){return this.tableRows=t.getRows(),us().Collection.prototype.remove.apply(this,e),this.tableRows=void 0,this}}))([],{comparator:function(e){var i;return(this&&void 0!==this.tableRows?this.tableRows:t.getRows()).some((function(t,n){if(t.model.id===e.id)return i=n,!0})),i}})},populate:function(t){this.options.reverseOrder&&t.reverse(),this.hideGlobalLoading(),t&&t.length?(this._models.reset([],{silent:!0}),this.renderRows(t),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),Ro(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=i('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+To+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(t,e){var i,n;if(!t.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(t));return n=new this.options.model(t),i=this._renderRow(n,e),this._models.add(n),this.removeNoEntriesMsg(),Ro(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Ro(this._event.ROW_REMOVED,this,[t,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var t=2;return this.allowReorder&&++t,this.options.columns.length+t},getRowFromElement:function(t){return i(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var t=this,e=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var n=i(this).data(t.dataKeys.ROW_VIEW);n&&e.push(n)})),e},_renderRow:function(t,e){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:t,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(t){Ro(this._event.EDIT_ROW,{},[this,s]),s.edit(this,t)})),i=n.render().$el,-1!==e&&("number"==typeof e&&0!==r.length?i.insertBefore(r[e]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var e=!1;return this.editRows.some((function(i){if(i.el===t.el)return e=!0,!0})),e},_applyFocusCoordinator:function(t){var e=this;return t.hasFocusBound||(t.hasFocusBound=!0,t.on(this._event.FOCUS,(function(){e.focusedRow&&e.focusedRow!==t&&e.focusedRow.trigger(e._event.BLUR),e.focusedRow=t,t instanceof Fo&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=i.inArray(t,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach((function(t){t.hasUpdates()||t.trigger(this._event.FINISHED_EDITING)}),this)},edit:function(t,e){var i=this,n=new this.options.views.editRow({el:t.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:t.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=t.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,(function(e,n){i._removeEditRow(this),this.off(),t.render().delegateEvents(),t.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()})).on(i._event.VALIDATION_ERROR,(function(){this.trigger(i._event.FOCUS)})).on(i._event.FINISHED_EDITING,(function(){i._removeEditRow(this),t.render().delegateEvents(),this.off()})).on(i._event.CANCEL,(function(){i._removeEditRow(this),this.off(),t.render().delegateEvents(),i._shiftFocusAfterEdit()})).on(i._event.BLUR,(function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)})),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,e),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(t=[]){var e=this._models.comparator,i=[];this._models.comparator=void 0;var n=t.map((t=>{var e=new this.options.model(t);return i.push(this._renderRow(e,-1).el),e}));return this._models.add(n,{silent:!0}),this._models.comparator=e,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(t){return{model:t.model||jo,allowEdit:!0,views:{editRow:No,row:Fo},Collection:us().Collection.extend({url:t.resources.self,model:t.model||jo}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});Ho.ClassNames=_o,Ho.CustomCreateView=Co,Ho.CustomEditView=ko,Ho.CustomReadView=xo,Ho.DataKeys=Eo,Ho.EditRow=No,Ho.EntryModel=jo,Ho.Events=Do,Ho.Row=Fo,s("RestfulTable",Ho);const Wo=Ho;function Bo(t){return i(t).clone().removeAttr("id")}s("clone",Bo);const Vo=Bo;var Uo=window.DocumentTouch;const zo="ontouchstart"in window||Uo&&document instanceof Uo;function Yo(t,e,i,n){t.find(`[${n}]`).attr(n,((t,n)=>e===n?i:void 0))}function qo(t,e){let n=i("<div></div>");n.append(t),n.find("[id]").each(((t,i)=>{const s=e(`${i.id}-`);!function(t,e,i){Yo(t,e,i,"aria-controls"),Yo(t,e,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Ko(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Jo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ko(Object(i),!0).forEach((function(e){Go(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ko(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Go(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Qo(t){return t.offset().top}function Xo(t){this.$el=i(t),this.$el.length&&(this.$body=i("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new il,function(t){if(!i(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const n=i(e.target);ol(t,n)}))})(t),zo&&function(t){if(window.matchMedia)return window.matchMedia(t).matches;var e=document.createElement("style");e.type="text/css",e.id="testMedia",e.innerText=`@media ${t} { #testMedia { width: 1px; } }`,document.head.appendChild(e);var i="1px"===window.getComputedStyle(e,null).width;return e.parentNode.removeChild(e),i}("only screen and (max-device-width:1024px)")&&i("body").addClass("aui-page-sidebar-touch");var e=null,n=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};i(window).on("scroll resize",n),n(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(i.Event(Zo+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),i(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var s=function(e){a(e)&&t.toggle()};function r(t){return t.keyCode===Y.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==Y.LEFT_SQUARE_BRACKET||t.shiftKey||t.ctrlKey||t.metaKey||(e=t.target,"value"in e||e.isContentEditable));var e}function o(t){return t.keyCode===Y.TAB&&t.shiftKey}function l(t,e){return t===e.find(":aui-tabbable")[0]}function c(t,e){return t===e.find(":aui-tabbable").last()[0]}function u(t){t.attr("persistent",""),t.find(":aui-tabbable").first().focus(),setTimeout((function(){t.removeAttr("persistent")}),100)}i(document).on("keypress",s),t._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip(Jo(Jo({},cl),{},{live:t.collapsedTriggersSelector,suppress:function(){const e=i(this),n=!1===t.isCollapsed();return!0===rl(e)||n}})),t.$el.tooltip(Jo(Jo({},cl),{},{live:t.toggleSelector,title:function(){return t.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}})),t.$el.on("keydown",t.collapsedTriggersSelector,(function(e){if(t.isCollapsed()){var n=e.target,s=sl(n);if(!s)return;var a=i(s);r(e)&&s.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||r(t)&&c(t.target,a))&&(n.focus(),i(this).off("keydown"),al())})))}}))}(this),function(t){i(t.collapsedTriggersSelector).each((function(){var e=i(this);ol(t,e)}))}(this))}var Zo="_aui-internal-sidebar-";function tl(t){return i.map(t.split(" "),(function(t){return Zo+t})).join(" ")}function el(){return document.querySelectorAll(Xo.prototype.inlineDialogSelector)}function il(){this.inlineDialog=null}function nl(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function sl(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function rl(t){return 0!==nl(t).length}function al(){var t=el();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function ol(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),rl(e))){var n=document.createElement("aui-inline-dialog"),s=Oi("sidebar-submenu");return e.attr("aria-controls",s),e.attr("data-aui-trigger",""),K.init(e),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),t.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(Xo.prototype.inlineDialogClass),document.body.appendChild(n),K.init(n),function(t,e,n){n.addEventListener("aui-layer-show",(function(s){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(s)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");e.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=ll;var n=t.is("a")?t.text():t.children(".aui-nav-heading").text(),s=i(e).find(".aui-navgroup-inner");function r(t){const e=Vo(t);return qo(e,Oi),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}s.children(".aui-nav-heading").attr("title",n).children("strong").text(n),r(nl(t)).appendTo(s)}(e,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,n),n}}Xo.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tl(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Xo.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tl(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Xo.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Xo.prototype.setTopPosition=function(t=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",t>Qo(this.$el)),this},Xo.prototype.setPosition=I(Xo.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Xo.prototype.setLeftPosition=function(t=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Xo.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:i.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:i.noop,wide:i.noop},e.expanded.narrow={narrow:i.noop,wide:function(t){t.$body.removeClass("aui-sidebar-collapsed"),t.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(t){t._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(t)?"narrow":"wide";return e[n][s][r](this),this},Xo.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=i.Event(Zo+"collapse-start",{isResponsive:t});return this.$el.trigger(e),e.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(Zo+"collapse-end",{isResponsive:t}))),this},Xo.prototype.collapse=function(){return this._collapse(!1)},Xo.prototype._expand=function(t,e){var n=i.Event(Zo+"expand-start",{isResponsive:e});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",s),this.$el.toggleClass("aui-sidebar-fly-out",s),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),i(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(i.Event(Zo+"expand-end",{isResponsive:e})),this},Xo.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Xo.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Xo.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Xo.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Xo.prototype.responsiveReflow=function(t,e){if(t){if(!this.isCollapsed()&&this.isViewportNarrow(e)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else e!==this._previousViewportWidth&&this.setCollapsedState(e)},Xo.prototype.reflow=function(t=window.pageYOffset,e=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=Qo(this.$el),a=null===this._previousViewportWidth;if(t!==this._previousScrollTop||e!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=t!==this._previousScrollTop&&(t<0||t+e>n);o||!a&&l||(this.setHeight(t,e,r),this.setTopPosition(t))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Xo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this},Xo.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Xo.prototype.collapsedTriggersSelector=[Xo.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Xo.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Xo.prototype.tooltipClassName="aui-sidebar-section-tooltip",Xo.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Xo.prototype.inlineDialogSelector="."+Xo.prototype.inlineDialogClass,il.prototype.submenu=function(t){return dl(),nl(t)},il.prototype.hasSubmenu=function(t){return dl(),rl(t)},il.prototype.submenuHeadingHeight=function(){return dl(),34},il.prototype.isShowing=function(){return dl(),Xo.prototype.isSubmenuVisible()},il.prototype.show=function(t,e){dl(),function(t){sl(t).open=!0}(e)},il.prototype.hide=function(){dl(),al()},il.prototype.inlineDialogShowHandler=function(){dl()},il.prototype.inlineDialogHideHandler=function(){dl()},il.prototype.moveSubmenuToInlineDialog=function(){dl()},il.prototype.restoreSubmenu=function(){dl()},Xo.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(el(),(function(t){return t.open}))},Xo.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const ll='<div class="aui-inline-dialog-contents"><div class="aui-sidebar-submenu" ><div class="aui-navgroup aui-navgroup-vertical"><div class="aui-navgroup-inner"><div class="aui-nav-heading"><strong></strong></div></div></div></div></div>';var cl={gravity:"w",title:function(){var t=i(this);return t.is("a")||t.is("button")?t.attr("title")||t.find(".aui-nav-item-label").text()||t.data("tooltip"):t.children(".aui-nav").attr("title")||t.children(".aui-nav-heading").text()}};var ul=ht("sidebar",Xo);i((function(){ul(".aui-sidebar")}));var dl=S("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});s("sidebar",ul);const hl=ul;r(42),r(529);function pl(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===Y.ESCAPE&&n.is(":visible")&&u.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=i.extend({},t,arguments[3])),t=i.extend({},e,t);var n=i("<div></div>").addClass("aui-popup");t.id&&n.attr("id",t.id);var s=2600;i(".aui-dialog").each((function(){var t=i(this);s=t.css("z-index")>s?t.css("z-index"):s}));var r=function e(i,r){return t.width=i=i||t.width,t.height=r=r||t.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),e}(t.width,t.height);i("body").append(n),n.hide(),c(n);var a=i(".aui-blanket"),o=function(t,e){var n=i(t,e);return!!n.length&&(n.focus(),!0)},l=function(e){if(0===i(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",e))||o(n,i(".dialog-button-panel",e))||o(n,i(".dialog-page-menu",e))}},u={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&r(e,i),this.show()},show:function(){var e=function(){i(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),B(),0!==(a=i(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){n.is(":visible")&&u.hide()})),n.show(),pl.current=this,l(n),i(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){i(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&V();var e=document.activeElement;this.element.has(e).length&&e.blur(),i(document).trigger("hideLayer",["popup",this]),pl.current=null,this.enable()},element:n,remove:function(){n.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=i("<div class='dialog-blanket'> </div>").css({height:n.height(),width:n.width()}),n.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return u}var fl=function(){function t(t,e,n,s){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<button></button>").html(e).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function e(t,e,n,s,r){t.buttonpanel||t.addButtonPanel(),r||(r="#"),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<a></a>").html(e).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function n(t,e){var i="left"==t?-1:1;return function(t){var n=this.page[e];if(this.id!=(1==i?n.length-1:0)){i*=t||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==e&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(t){return function(){this.page[t].splice(this.id,1);for(var e=0,i=this.page[t].length;e<i;e++)this.page[t][e].id=e;this.item.remove()}}t.prototype.moveUp=t.prototype.moveLeft=n("left","button"),t.prototype.moveDown=t.prototype.moveRight=n("right","button"),t.prototype.remove=s("button"),t.prototype.html=function(t){return this.item.html(t)},t.prototype.onclick=function(t){let e=this;if(void 0===t)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===t.call(this,e.page.dialog,e.page,i)},"function"==typeof t&&this.item.click(this._onclick)};var r=function(t,e,n,s,r){n instanceof i||(n=i(n)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=i("<button></button>").html(e).addClass("item-button"),r&&(this.button[0].id=r),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var a=t.panel.length,o=this;t.menu.append(this.item),t.body.append(this.body),t.panel[a]=this;var l=function(){var e;t.curtab+1&&((e=t.panel[t.curtab]).body.hide(),e.item.removeClass("selected"),"function"==typeof e.onblur&&e.onblur()),t.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof t.ontabchange&&t.ontabchange(o,e)};this.button.click?this.button.click(l):(d("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?t.menu.css("display","none"):t.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},r.prototype.setPadding=function(t){return isNaN(+t)||(this.body.css("padding",+t),this.padding=+t,this.page.recalcSize()),this};var a=function(t,e){this.dialog=t,this.id=t.page.length,this.element=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<ul></ul>").addClass("dialog-page-menu").css("height",t.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],e&&this.body.addClass(e),t.popup.element.append(this.element.append(this.menu).append(this.body)),t.page[t.page.length]=this};function o(t,e,n){var s={};+t||(t=(s=Object(t)).width,e=s.height,n=s.id),this.height=e||480,this.width=t||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=pl(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var t=this.header?62:0,e=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-t-e;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new r(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(t||"").addClass("dialog-title"),e&&this.header.addClass(e),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(e,i,n){return new t(this,e,i,n),this.recalcSize(),this},a.prototype.addLink=function(t,i,n,s){return new e(this,t,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(t){this.panel[t.id||t].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(t,e){return this.page[this.curpage].addHeader(t,e),this},o.prototype.addButton=function(t,e,i){return this.page[this.curpage].addButton(t,e,i),this},o.prototype.addLink=function(t,e,i,n){return this.page[this.curpage].addLink(t,e,i,n),this},o.prototype.addSubmit=function(t,e){return this.page[this.curpage].addButton(t,e,"button-panel-submit-button"),this},o.prototype.addCancel=function(t,e){return this.page[this.curpage].addLink(t,e,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(t,e,i,n){return this.page[this.curpage].addPanel(t,e,i,n),this},o.prototype.addPage=function(t){return new a(this,t),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(t){return this.page[this.curpage].hide(),this.curpage=t,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(t,e){var i=null==e?this.curpage:t;return null==e&&(e=t),this.page[i].panel[e]},o.prototype.getPage=function(t){return this.page[t]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(t,e){if(null!=e){var i=t.id||t;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===e?t:e)},o.prototype.show=function(){return this.popup.show(),_("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),_("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),_("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(t){var e=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(t+"").replace(r,(function(t,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&e.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&e.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&e.push(d[h][n][r]),"header"==n&&d[h].header&&e.push(d[h].header)}else e=e.concat(d)}));for(var a={length:e.length},o=e.length;o--;)for(var l in a[o]=e[o],e[o])l in a||function(t){a[t]=function(){for(var e=this.length;e--;)"function"==typeof this[e][t]&&this[e][t].apply(this[e],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var t=0,e=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:t||this.height});this.page[0].menu.height(t),this.height=t+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();fl=N(fl,"Dialog constructor",{alternativeName:"Dialog2"}),pl=N(pl,"Dialog popup constructor",{alternatveName:"Dialog2"}),s("Dialog",fl),s("popup",pl);const gl=!1;var ml=-1!==navigator.platform.indexOf("Mac"),vl=-1!==navigator.userAgent.indexOf("Safari"),bl=/^(backspace|tab|r(ight|eturn)|s(hift|pace|croll)|c(trl|apslock)|alt|pa(use|ge(up|down))|e(sc|nd)|home|left|up|d(el|own)|insert|f\d\d?|numlock|meta)/i;const yl=t=>{const e=t[0];if(e){const t=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",t,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};function wl(t){var e=[],n=i.Callbacks();function s(t){!pl.current&&n&&n.fire(t)}function r(t){t.preventDefault()}function a(t){(t&&t.split?i.trim(t).split(" "):[t]).forEach((function(t){!function(t){var n=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),s=t.match(bl);n?(i+=n[0],t=t.substring(n[0].length)):s?(e.push(i+s[0]),t=t.substring(s[0].length),i=""):(e.push(i+t[0]),t=t.substring(1),i="")}return e}(t.toString()),a=function(t){var e=t.length;for(;e--;)if(t[e].length>1&&"space"!==t[e])return!0;return!1}(n)?"keydown":"keypress";e.push(n),i(document).on(a,gl,n,s),i(document).on(a+" keyup",gl,n,r)}(t)}))}function o(t,e,i){return i?e+=" ("+I18n.getText("aui.keyboard.shortcut.type.x",t.shift()):(e=e.replace(/\)$/,""),e+=I18n.getText("aui.keyboard.shortcut.or.x",t.shift())),t.forEach((function(t){e+=" "+I18n.getText("aui.keyboard.shortcut.then.x",t)})),e+=")"}return a(t),wl.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(t){for(var n=i(t),s=n.attr("title")||"",r=e.slice(),a=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=!l,u=c?s:s.substring(0,s.length-l.length);r.length;){var d=r.shift();a.some((function(t){return(0,Vt.isEqual)(d,t)}))||(l=o(d.slice(),l,c),c=!1)}ml&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",u+l),n.data("kbShortcutAppended",l),n.data("boundKeyCombos",a.concat(e))},removeShortcutsFromTitle:function(t){var e=i(t),n=e.data("kbShortcutAppended");if(n){var s=e.attr("title");e.attr("title",s.replace(n,"")),e.removeData("kbShortcutAppended"),e.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}wl.makeShortcut=function(t){var e=t.executor,n=t.bindKeys,s=t.addShortcutsToTitle,r=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return e.add((function(){const e=i(n);let s=e.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(t){t.keyCode===Y.ESCAPE&&s&&s.removeClass(r)})),s.length&&s.removeClass(r),s=t(s,e,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,n){var s;return n&&0===t.length?e.eq(0):(s=i.inArray(t.get(0),e))<e.length-1?(s+=1,e.eq(s)):n?e.eq(0):t})),moveToPrevItem:c((function(t,e,n){var s;return n&&0===t.length?e.filter(":last"):(s=i.inArray(t.get(0),e))>0?(s-=1,e.eq(s)):n?e.filter(":last"):t})),click:function(t){return l.push(t),s(t),e.add((function(){const e=i(t);yl(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),s(t),e.add((function(){var e=i(t)[0];e&&{a:!0,link:!0}[e.nodeName.toLowerCase()]&&(window.location.href=e.href)})),this},execute:function(t){var i=this;return e.add((function(){t.apply(i,arguments)})),this},evaluate:function(t){t.call(this)},moveToAndClick:function(t){return l.push(t),s(t),e.add((function(){const e=i(t);e.length>0&&(yl(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),s(t),e.add((function(e){var n=i(t);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&e.preventDefault())})),this},or:function(t){return n(t),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)r(l[t]);l=[]}}},wl.fromJSON=function(t,e){var n=[];return t&&i.each(t,(function(t,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(t){p("When using a parameter array, array must be in strict JSON format: "+a)}i.isArray(o)||p("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];i.each(s.keys,(function(){var t=this;e&&ml&&(t=i.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var s=wl(t);s[r].apply(s,o),n.push(s)}))})),n},i(document).on("iframeAppended",(function(t,e){i(e).load((function(){i(e).contents().on("keyup keydown keypress",(function(t){vl&&"keypress"===t.type||i(t.target).is(":input")||i.event.trigger(t,arguments,document,!0)}))}))})),s("whenIType",wl);const _l=wl,{FocusManager:Cl,InlineDialog2:kl,LayerManager:xl,ProgressiveDataSet:El,clone:Dl,debounce:Tl,debounceImmediate:Al,dim:Sl,escapeHtml:Ol,formValidation:Il,id:Nl,isClipped:Pl,keyCode:Ml,layer:Ll,messages:Rl,populateParameters:$l,params:jl,responsiveheader:Fl,select:Hl,tablessortable:Wl,tabs:Bl,undim:Vl,_addID:Ul}=window.AJS,{contextPath:zl}=window.AJS})(),a})()}));
|
|
103
|
+
!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;"undefined"!=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 r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?e(n).attr(a.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=t.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function a(e,n,s,a){for(var o,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(e,c=n[s].cells[a],a),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!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")}function o(e){var s,r,o,l,c,u,d,h,p,f,g=e.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=t.getColumnData(e,g.headers,l),p=t.getParserById(t.getData(c,u,"extractor")),h=t.getParserById(t.getData(c,u,"sorter")),d="false"===t.getData(c,u,"parser"),g.empties[l]=t.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top"),g.strings[l]=t.getData(c,u,"string")||g.stringTo||"max",d&&(h=t.getParserById("no-parser")),p||(p=!1),h||(h=a(e,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,k=y.parsers;if(y.cache={},y.totalRows=0,!k)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&t.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=e(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(t.css.cssHasChild),v.child[o]=e.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==k[d]?(o=r(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===k[d].id?"":k[d].format(l,s,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(k[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=e(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=t.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);t.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||t.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(e){return/^d/i.test(e)||1===e}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=t.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===t.css.icon?t.css.icon:f.cssIcon+" "+t.css.icon)+'"></i>':"",f.$headers=e(s).find(f.selectorHeaders).each((function(i){a=e(this),r=t.getColumnData(s,f.headers,i,!0),f.headerContent[i]=e(this).html(),c=f.headerTemplate.replace(/\{content\}/g,e(this).html()).replace(/\{icon\}/g,l),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col",role:"columnheader"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),o(e),l(e),y(n.$table,t,i)}function p(i){var n,s,r,a=i.config;a.$headers.each((function(o,l){s=e(l),r=t.getColumnData(i,a.headers,o,!0),n="false"===t.getData(l,r,"sorter")||"false"===t.getData(l,r,"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,r,a=i.config,o=a.sortList,l=o.length,c=t.css.sortNone+" "+a.cssNone,u=[t.css.sortAsc+" "+a.cssAsc,t.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each((function(){var i=e(this),n=this.order[(this.count+1)%(a.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,t){return e&&e[t]&&e[t].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout((function(){m(i,n,s)}),50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=t.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(t.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(e){var i,r,a,o,l,c,u,d,h,p,f=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),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort((function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],e):t["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,e)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,e):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,e):t["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,e,m)),d)return d}return n[m.columns].order-s[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(t,i){t[0].isUpdating&&t.trigger("updateComplete"),e.isFunction(i)&&i(t[0])}function y(e,i,n){var s=e[0].config.sortList;!1!==i&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){b(e,n)},!0]):(b(e,n),t.applyWidget(e[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(t,s){t.stopPropagation(),n.sortList=[],f(i),v(i),c(i),e.isFunction(s)&&s(i)})).bind("updateAll"+n.namespace,(function(e,s,r){e.stopPropagation(),i.isUpdating=!0,t.refreshWidgets(i,!0,!0),t.restoreHeaders(i),d(i),t.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(e,t,n){e.stopPropagation(),i.isUpdating=!0,p(i),h(i,t,n)})).bind("updateCell"+n.namespace,(function(t,s,o,l){t.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=e(s),g=p.index(e.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=e.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?r(i,s,h):n.extractors[h].format(r(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(t,l,c,u){if(t.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=e(l).attr("role","row")).filter("tr").length,k=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[k].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?r(i,l[d].cells[f],f):n.extractors[f].format(r(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[k].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[k].colMax[f]||0));w.push(b),n.cache[k].normalized.push(w)}y(a,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,r,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(t,i){var n,s,r,a,o,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,(function(t,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===t?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=e.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),t.applyWidget(i),e.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(t,n,s){t.stopPropagation(),c(i,s),e.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(t,s){n.parsers&&n.parsers.length||o(i),l(i),e.isFunction(s)&&s(i)})).bind("applyWidgetId"+n.namespace,(function(e,s){e.stopPropagation(),t.getWidgetById(s).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(e,n){e.stopPropagation(),t.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(e,n,s){e.stopPropagation(),t.refreshWidgets(i,n,s)})).bind("destroy"+n.namespace,(function(e,n,s){e.stopPropagation(),t.destroy(i,n,s)})).bind("resetToLoadState"+n.namespace,(function(){t.refreshWidgets(i,!0,!0),n=e.extend(!0,t.defaults,n.originalSettings),i.hasInitialized=!1,t.setup(i,n)}))}t.version="2.17.7",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=this,s=e.extend(!0,{},t.defaults,i);s.originalSettings=i,!n.hasInitialized&&t.buildTable&&"TABLE"!==this.tagName?t.buildTable(n,s):t.setup(n,s)}))},t.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var r,a="",c=e(n),u=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,e.data(n,"tablesorter",s),s.debug&&e.data(n,"startoveralltimer",new Date),s.supportsDataObject=((r=e.fn.jquery.split("."))[0]=parseInt(r[0],10),r[0]>1||1===r[0]&&parseInt(r[1],10)>=4),s.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(c.attr("class"))||(a=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=c.addClass(t.css.table+" "+s.tableClass+a).attr("role","grid"),s.$headers=c.find(s.selectorHeaders),s.namespace?s.namespace="."+s.namespace.replace(/\W/g,""):s.namespace=".tablesorter"+Math.random().toString(16).slice(2),s.$table.children().children("tr").attr("role","row"),s.$tbodies=c.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(t){if(t.config.widthFixed&&0===e(t).find("colgroup").length){var i=e("<colgroup>"),n=e(t).width();e(t.tBodies[0]).find("tr:first").children(":visible").each((function(){i.append(e("<col>").css("width",parseInt(e(this).width()/n*1e3,10)/10+"%"))})),e(t).prepend(i)}}(n),o(n),s.totalRows=0,s.delayInit||l(n),t.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==c.data().sortlist?s.sortList=c.data().sortlist:u&&c.metadata()&&c.metadata().sortlist&&(s.sortList=c.metadata().sortlist),t.applyWidget(n,!0),s.sortList.length>0?c.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&t.applyWidget(n,!1)),s.showProcessing&&c.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,(function(e){clearTimeout(s.processTimer),t.isProcessing(n),"sortBegin"===e.type&&(s.processTimer=setTimeout((function(){t.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&t.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),c.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},t.getColumnData=function(t,i,n,s){if(null!=i){var r,a=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},t.computeColumnIndex=function(t){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<t.length;i++)for(l=t[i].cells,n=0;n<l.length;n++){for(o=l[n],a=e(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},t.isProcessing=function(i,n,s){var r=(i=e(i))[0].config,a=s||i.find("."+t.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),r.sortList)>=0}))),i.add(a).addClass(t.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(t.css.processing+" "+r.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(t,i,n){var r,a=(t=e(t)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(t),c=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(t,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("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 r=e(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([t.css.header,a.cssHeader,a.cssAsc,a.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),t.restoreHeaders(i),r.toggleClass(t.css.table+" "+a.tableClass+" tablesorter-"+a.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,r,a,o,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[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,r){if(e===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,r){if(e===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-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,r=i+t;for(n=0;n<s;n++)r+=e.charCodeAt(n);return t*r}return 0},t.sortNumericAsc=function(e,i,n,s,r,a){if(e===i)return 0;var o=a.config,l=o.string[o.empties[r]||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,r,a){if(e===i)return 0;var o=a.config,l=o.string[o.empties[r]||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:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},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]=new RegExp("["+s[i]+"]","g"));t.characterRegex=new 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 r,a,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=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?0:1})),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&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},t.refreshWidgets=function(n,s,r){var a,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||e.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,r,a="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(a)):""},t.formatFloat=function(t,i){return"string"!=typeof t||""===t?t:(t=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(t),isNaN(n)?e.trim(t):n);var n},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(i,n){var s=n.config;return i&&(i=e.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?t.replaceAccents(i):i),i},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},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(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},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("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return e?t.formatFloat(r,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(t){return t?e.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},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 r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||t.getData(a,t.getColumnData(i,r.headers,s),"dateFormat")||r.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,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[r]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(r=h.eq(u)).children("tr").length>1&&(o=0,r.children("tr:visible").not(n.selectorRemove).each((function(){a=e(this),d.test(this.className)||o++,l=o%2==0,a.removeClass(s.zebra[l?1:0]).addClass(s.zebra[l?0:1])})));n.debug&&t.benchmark("Applying Zebra widget",c)},remove:function(t,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=e.tablesorter.processTbody(t,a.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,r,!1)}})}(jQuery)},37:()=>{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,r,a,o,l,c,u={x:0,y:0},d={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 d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},h={"Ⓐ":"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"};o=e(document),c=1,r=function(){return c++},o.on("mousemove",(function(e){u.x=e.pageX,u.y=e.pageY})),i=N(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,a,o,c,d=".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.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(a=function(){return i.element.closest("body")},c=!1,function(){return!1===c&&(o=a(),c=!0),o}),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(A(i.containerCss)),this.container.addClass(A(i.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(i.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=n=this.container.find(d),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",(function(i){var n=u;n!==t&&n.x===i.pageX&&n.y===i.pageY||e(i.target).trigger("mousemove-filtered",i)})),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",d,this.bind(this.highlightUnderEvent)),function(e,t){var i=y(e,(function(e){t.trigger("scroll-debounced",e)}));t.on("scroll",(function(e){f(e.target,t.get())>=0&&i(e)}))}(80,this.results),this.dropdown.on("scroll-debounced",d,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&&n.mousewheel((function(e,t,i,s){var r=n.scrollTop();s>0&&r-s<=0?(n.scrollTop(0),w(e)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),w(e))})),b(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",(function(){s.addClass("select2-focused")})),s.on("blur",(function(){s.removeClass("select2-focused")})),this.dropdown.on("mouseup",d,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",(function(e){e.stopPropagation()})),e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var h=i.element.prop("disabled");h===t&&(h=!1),this.enable(!h);var p=i.element.prop("readonly");p===t&&(p=!1),this.readonly(p),l=l||function(){var t=e("<div class='select2-measure-scrollbar'></div>");t.appendTo("body");var i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=t},destroy:function(){var e=this.opts.element,i=e.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),i!==t&&(i.container.remove(),i.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())},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:g(e.attr("locked"),"locked")||g(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,r,a,o=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 new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),"function"!=typeof(i=e.extend({},{populateResults:function(n,s,r){var a,l=this.opts.id;(a=function(n,s,c){var u,d,h,p,f,g,m,v,b,y;for(u=0,d=(n=i.sortResults(n,s,r)).length;u<d;u+=1)p=!(f=!0===(h=n[u]).disabled)&&l(h)!==t,g=h.children&&h.children.length>0,(m=e("<li></li>")).addClass("select2-results-dept-"+c),m.addClass("select2-result"),m.addClass(p?"select2-result-selectable":"select2-result-unselectable"),f&&m.addClass("select2-disabled"),g&&m.addClass("select2-result-with-children"),m.addClass(o.opts.formatResultCssClass(h)),(v=e(document.createElement("div"))).addClass("select2-result-label"),(y=i.formatResult(h,v,r,o.opts.escapeMarkup))!==t&&v.html(y),m.append(v),g&&((b=e("<ul></ul>")).addClass("select2-result-sub"),a(h.children,b,c+1),m.append(b)),m.data("select2-data",h),s.append(m)})(s,n,0)}},e.fn.select2.defaults,i)).id&&(r=i.id,i.id=function(e){return e[r]}),e.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,r,a={results:[],more:!1},l=e.term;r=function(t,i){var n;t.is("option")?e.matcher(l,t.text(),t)&&i.push(o.optionToData(t)):t.is("optgroup")&&(n=o.optionToData(t),t.children().each2((function(e,t){r(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){r(t,a.results)})),e.callback(a)})),i.id=function(e){return e.id},i.formatResultCssClass=function(e){return e.css}):"query"in i||("ajax"in i?((a=i.element.data("ajax-url"))&&a.length>0&&(i.ajax.url=a),i.query=x.call(i.element,i.ajax)):"data"in i?i.query=E(i.data):"tags"in i&&(i.query=T(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,n){var s=[];e(m(t.val(),i.separator)).each((function(){var t={id:this,text:this},n=i.tags;e.isFunction(n)&&(n=n()),e(n).each((function(){if(g(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");return i},monitorSource:function(){var e,i,n=this.opts.element;n.on("change.select2",this.bind((function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),e=this.bind((function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=n.prop("readonly");i===t&&(i=!1),this.readonly(i),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass)),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass))})),n.on("propertychange.select2",e),this.mutationCallback===t&&(this.mutationCallback=function(t){t.forEach(e)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(this.mutationCallback),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});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,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){return e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,r,a=this.dropdown,o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),h=e(window),p=h.width(),f=h.height(),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,b=o.left,y=v+d<=m,w=o.top-d>=this.body().scrollTop(),_=a.outerWidth(!1),k=b+_<=g;a.hasClass("select2-drop-above")?(i=!0,!w&&y&&(n=!0,i=!1)):(i=!1,!y&&w&&(n=!0,i=!0)),n&&(a.hide(),o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,k=(b=o.left)+(_=a.outerWidth(!1))<=g,a.show()),this.opts.dropdownAutoWidth?(r=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(_=a.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:l.width))>u?u=_:_=u,k=b+_<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(v-=(t=this.body().offset()).top,b-=t.left),k||(b=o.left+u-_),s={left:b,width:u},i?(s.bottom=f-o.top,s.top="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(s.top=v,s.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),s=e.extend(s,A(this.opts.dropdownCss)),a.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(),!0)},opening:function(){var t,i=this.containerId,n="scroll."+i,s="resize."+i,r="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(t){var i,n=e("#select2-drop");n.length>0&&((i=n.data("select2")).opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),t.preventDefault(),t.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 a=this;this.container.parents().add(window).each((function(){e(this).on(s+" "+n+" "+r,(function(e){a.positionDropdown()}))}))},close:function(){if(this.opened()){var t=this.containerId,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(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return A(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var t,i,n,s,r,a,o,l=this.results;(i=this.highlight())<0||(0!=i?(t=this.findHighlightableChoices().find(".select2-result-label"),s=(n=e(t[i])).offset().top+n.outerHeight(!0),i===t.length-1&&(o=l.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(r=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(s-r)),(a=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+a)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .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 f(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.ensureHighlightVisible(),(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")},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(),r=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:r,matcher:this.opts.matcher,callback:this.bind((function(a){n.opened()&&(n.opts.populateResults.call(this,e,a.results,{term:s,page:i,context:r}),n.postprocessResults(a,!1,!1),!0===a.more?(t.detach().appendTo(e).text(n.opts.formatLoadMore(i+1)),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var n,s,r,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),d=e.data(this.container,"select2-last-term");if((!0===i||!d||!g(u,d))&&(e.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&D(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(D(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+l.formatInputTooShort(a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?D(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+l.formatInputTooLong(a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+l.formatSearching()+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=t&&null!=s&&a.val(s),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var s;r==this.queryCount&&(this.opened()?(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&(s=this.opts.createSearchChoice.call(c,a.val(),n.results))!==t&&null!==s&&c.id(s)!==t&&null!==c.id(s)&&0===e(n.results).filter((function(){return g(c.id(this),c.id(s))})).length&&n.results.unshift(s),0===n.results.length&&D(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+l.formatNoMatches(a.val())+"</li>"):(o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&D(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+c.opts.escapeMarkup(l.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n}))):this.search.removeClass("select2-active"))}))})));f("<li class='select2-selection-limit'>"+l.formatSelectionTooBig(h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown()}function f(e){o.html(e),p()}},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(),e.is(":visible")&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))}),0)},selectHighlighted:function(e){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(""===e.text()&&""===e.val())return e}},initContainerWidth:function(){var i=function(){var i,n,s,r,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==t)for(r=0,a=(n=i.split(";")).length;r<a;r+=1)if(null!==(s=n[r].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&s.length>=1)return s[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width")).indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==i&&this.container.css("width",i)}}),n=N(i,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,n,s;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(i=this.search.get(0)).createTextRange?((n=i.createTextRange()).collapse(!1),n.select()):i.setSelectionRange&&(s=this.search.val().length,i.setSelectionRange(s,s)),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(e){this.opened()&&(this.parent.close.apply(this,arguments),e=e||{focus:!0},this.focusser.removeAttr("disabled"),e.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,i=this.container,n=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=i.find(".select2-choice"),this.focusser=i.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+r()),e("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled())if(e.which!==d.PAGE_UP&&e.which!==d.PAGE_DOWN)switch(e.which){case d.UP:case d.DOWN:return this.moveHighlight(e.which===d.UP?-1:1),void w(e);case d.ENTER:return this.selectHighlighted(),void w(e);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(e),void w(e)}else w(e)}))),this.search.on("blur",this.bind((function(e){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind((function(){this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()&&e.which!==d.TAB&&!d.isControl(e)&&!d.isFunctionKey(e)&&e.which!==d.ESC){if(!1!==this.opts.openOnEnter||e.which!==d.ENTER){if(e.which==d.DOWN||e.which==d.UP||e.which==d.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void w(e)}return e.which==d.DELETE||e.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(e)):void 0}w(e)}}))),b(this.focusser),this.focusser.on("keyup-change input",this.bind((function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}}))),t.on("mousedown","abbr",this.bind((function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection.focus())}))),t.on("mousedown",this.bind((function(t){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(t)}))),n.on("mousedown",this.bind((function(){this.search.focus()}))),t.on("focus",this.bind((function(e){w(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.addClass("select2-offscreen"),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(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.setPlaceholder())}))}},isPlaceholderOptionSelected:function(){var e;return!!this.getPlaceholder()&&((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}));t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),r=null;t.query({matcher:function(e,i,n){var a=g(s,t.id(n));return a&&(r=n),a},callback:e.isFunction(n)?function(){n(r)}:e.noop})}),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()&&e!==t){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(e,t,i){var n=0,s=this;if(this.findHighlightableChoices().each2((function(e,t){if(g(s.id(t.data("select2-data")),s.opts.element.val()))return n=e,!1})),!1!==i&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(S(e.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.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||this.focusser.focus(),g(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)),i!==t&&s.append(i),(n=this.opts.formatSelectionCssClass(e,s))!==t&&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,r=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)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:r});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw new 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:r})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==t&&(i=null),i;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)}}),s=N(i,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},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})).each2((function(e,t){n.push(i.optionToData(t))})),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=m(i.val(),t.separator),r=[];t.query({matcher:function(i,n,a){var o=e.grep(s,(function(e){return g(e,t.id(a))})).length;return o&&r.push(a),o},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<s.length;i++)for(var a=s[i],o=0;o<r.length;o++){var l=r[o];if(g(a,t.id(l))){e.push(l),r.splice(o,1);break}}n(e)}:e.noop})}),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)},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-search-choice:not(.select2-locked)",(function(t){n.search[0].focus(),n.selectChoice(e(this))})),this.search.attr("id","s2id_autogen"+r()),e("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind((function(){this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),a=function(t){var i=0,n=0;if("selectionStart"in(t=e(t)[0]))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==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var o=n;return i.which==d.LEFT&&s.length?o=s:i.which==d.RIGHT?o=r.length?r:null:i.which===d.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=s.length?s:r):i.which==d.DELETE?(this.unselect(n.first()),this.search.width(10),o=r.length?r:null):i.which==d.ENTER&&(o=null),this.selectChoice(o),w(i),void(o&&o.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void w(i);if(this.selectChoice(null),this.opened())switch(i.which){case d.UP:case d.DOWN:return this.moveHighlight(i.which===d.UP?-1:1),void w(i);case d.ENTER:return this.selectHighlighted(),void w(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void w(i)}if(i.which!==d.TAB&&!d.isControl(i)&&!d.isFunctionKey(i)&&i.which!==d.BACKSPACE&&i.which!==d.ESC){if(i.which===d.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==d.PAGE_UP&&i.which!==d.PAGE_DOWN||w(i),i.which===d.ENTER&&w(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.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.clearSearch())}))}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();e!==t&&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.updateResults(!0),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(){f(s.id(this),i)<0&&(i.push(s.id(this)),n.push(this))})),t=n,this.selection.find(".select2-search-choice").remove(),e(t).each((function(){s.addSelectedChoice(this)})),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))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),!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.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var n,s,r=!i.locked,a=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=r?a:o,c=this.id(i),u=this.getVal();(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith("<div>"+n+"</div>"),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=t&&l.addClass(s),r&&l.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind((function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").fadeOut("fast",this.bind((function(){this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()}))).dequeue(),w(t))}))).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),u.push(c),this.setVal(u)},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")){for(;(n=f(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();var r=e.Event("select2-removing");r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented()||(t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(e,t,i){var n=this.getVal(),s=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;s.each2((function(e,t){f(a.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))})),r.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&&a.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)&&D(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+a.opts.formatNoMatches(a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-v(this.search)},resizeSearch:function(){var t,i,n,s,r=v(this.search);t=function(t){if(!a){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(a=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("body").append(a)}return a.text(t.val()),a.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-r)<t&&(s=n-r),s<40&&(s=n-r),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:m(e=this.opts.element.val(),this.opts.separator)},setVal:function(t){var i;this.select?this.select.val(t):(i=[],e(t).each((function(){f(this,i)<0&&i.push(this)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var i=0;i<t.length;i++)for(var n=0;n<e.length;n++)g(this.opts.id(t[i]),this.opts.id(e[n]))&&(t.splice(i,1),i>0&&i--,e.splice(n,1),n--);return{added:t,removed:e}},val:function(i,n){var s,r=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));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 new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(t){var i=e.map(t,r.id);r.setVal(i),r.updateSelection(t),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(s,r.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){t.push(i.opts.id(e(this).data("select2-data")))})),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,r=this;if(0===arguments.length)return this.selection.find(".select2-search-choice").map((function(){return e(this).data("select2-data")})).get();s=this.data(),t||(t=[]),n=e.map(t,(function(e){return r.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,r,a,o,l,c=Array.prototype.slice.call(arguments,0),u=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],d=["opened","isFocused","container","dropdown"],h=["val","data"],p={search:"externalSearch"};return this.each((function(){if(0===c.length||"object"==typeof c[0])(i=0===c.length?{}:e.extend({},c[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?l=i.element.prop("multiple"):(l=i.multiple||!1,"tags"in i&&(i.multiple=l=!0)),(r=l?new s:new n).init(i);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(f(c[0],u)<0)throw"Unknown method: "+c[0];if(o=t,(r=e(this).data("select2"))===t)return;if("container"===(a=c[0])?o=r.container:"dropdown"===a?o=r.dropdown:(p[a]&&(a=p[a]),o=r[a].apply(r,c.slice(1))),f(c[0],d)>=0||f(c[0],h)&&1==c.length)return!1}})),o===t?this:o},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return k(e.text,i.term,s,n),s.join("")},formatSelection:function(e,i,n){return e?n(e.text):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return t},formatSelectionCssClass:function(e,i){return t},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" 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..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e.id},matcher:function(e,t){return p(""+t).toUpperCase().indexOf(p(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,s){var r,a,o,l,c,u=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(a=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((a=e.indexOf(c))>=0));o++);if(a<0)break;if(r=e.substring(0,a),e=e.substring(a+c.length),r.length>0&&(r=s.createSearchChoice.call(this,r,i))!==t&&null!==r&&s.id(r)!==t&&null!==s.id(r)){for(d=!1,o=0,l=i.length;o<l;o++)if(g(s.id(r),s.id(i[o]))){d=!0;break}d||n(r)}}return u!==e?e:void 0},escapeMarkup:C,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t}},e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:x,local:E,tags:T},util:{debounce:y,markMatch:k,escapeMarkup:C,stripDiacritics:p},class:{abstract:i,single:n,multi:s}}}function p(e){var t,i,n,s;if(!e||e.length<1)return e;for(t="",i=0,n=e.length;i<n;i++)s=e.charAt(i),t+=h[s]||s;return t}function f(e,t){for(var i=0,n=t.length;i<n;i+=1)if(g(e,t[i]))return i;return-1}function g(e,i){return e===i||e!==t&&i!==t&&(null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+""))}function m(t,i){var n,s,r;if(null===t||t.length<1)return[];for(s=0,r=(n=t.split(i)).length;s<r;s+=1)n[s]=e.trim(n[s]);return n}function v(e){return e.outerWidth(!1)-e.width()}function b(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);s!==t&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))}))}function y(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 w(e){e.preventDefault(),e.stopPropagation()}function _(t,i,n){var s,r,a=[];(s=t.attr("class"))&&e((s=""+s).split(" ")).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(s=i.attr("class"))&&e((s=""+s).split(" ")).each2((function(){0!==this.indexOf("select2-")&&(r=n(this))&&a.push(r)})),t.attr("class",a.join(" "))}function k(e,t,i,n){var s=p(e.toUpperCase()).indexOf(p(t.toUpperCase())),r=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+r))),i.push("</span>"),i.push(n(e.substring(s+r,e.length))))}function C(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))}function x(i){var n,s=null,r=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,r=a,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"},d=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,s&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(d,i.params.call(o)):e.extend(d,i.params)),e.extend(d,{url:r,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page);l.callback(t)}}),s=c.call(o,d)}),r)}}function E(t){var i,n,s=t,r=function(e){return""+e.text};e.isArray(s)&&(s={results:n=s}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var a=s();return a.text&&(r=a.text,e.isFunction(r)||(i=a.text,r=function(e){return e[i]})),function(t){var i,n=t.term,a={results:[]};""!==n?(i=function(s,a){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,r(o),s))&&a.push(o)}else t.matcher(n,r(s),s)&&a.push(s)},e(s().results).each2((function(e,t){i(t,a.results)})),t.callback(a)):t.callback(s())}}function T(i){var n=e.isFunction(i);return function(s){var r=s.term,a={results:[]};e(n?i():i).each((function(){var e=this.text!==t,i=e?this.text:this;(""===r||s.matcher(r,i))&&a.results.push(e?this:{id:this,text:this})})),s.callback(a)}}function D(t,i){if(e.isFunction(t))return!0;if(!t)return!1;throw new Error(i+" must be a function or a falsy value")}function A(t){return e.isFunction(t)?t():t}function S(t){var i=0;return e.each(t,(function(e,t){t.children?i+=S(t.children):i++})),i}function N(t,i){var n=function(){};return(n.prototype=new t).constructor=n,n.prototype.parent=t.prototype,n.prototype=e.extend(n.prototype,i),n}}(jQuery)},562:()=>{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")?e[this.name]=i?i[0]:"":e[this.name]=null!==i?i:[]})),e}},775:t=>{"use strict";t.exports=e},472:e=>{"use strict";e.exports=t},302:e=>{"use strict";e.exports=i}},s={};function r(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,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.r(a),r.d(a,{$:()=>Re,CalendarWidget:()=>wo,CheckboxMultiselectEl:()=>es,DatePicker:()=>Co,DropdownEl:()=>un,FancyFileInput:()=>is,FocusManager:()=>El,Header:()=>po,I18n:()=>I18n,InlineDialog2:()=>Tl,InlineDialogEl:()=>xr,ItemCheckboxEl:()=>on,ItemLinkEl:()=>an,ItemRadioEl:()=>ln,LabelEl:()=>as,LayerManager:()=>Dl,MessageEl:()=>yn,NavigationEl:()=>Dr,ProgressBarEl:()=>Fr,ProgressiveDataSet:()=>Al,RestfulTable:()=>Vo,SectionEl:()=>cn,SelectEl:()=>Us,SpinnerEl:()=>Xe,TabContainerEl:()=>ca,TabItemEl:()=>ua,TabPaneEl:()=>da,ToggleEl:()=>nr,_addID:()=>ql,banner:()=>Ue,bind:()=>w,clone:()=>Sl,contextPath:()=>Kl,debounce:()=>Nl,debounceImmediate:()=>Ol,dialog2:()=>ot,dim:()=>Il,error:()=>f,escapeHtml:()=>Ml,flag:()=>Tn,formValidation:()=>Pl,format:()=>m,id:()=>Ll,isClipped:()=>Rl,keyCode:()=>$l,layer:()=>jl,log:()=>h,messages:()=>Fl,navigation:()=>Ar,params:()=>Bl,populateParameters:()=>Hl,progressBars:()=>Br,responsiveheader:()=>Wl,select:()=>Ul,sidebar:()=>gl,tablessortable:()=>Vl,tabs:()=>zl,toInit:()=>je,trigger:()=>k,unbind:()=>_,undim:()=>Yl,version:()=>b,warn:()=>p,whenIType:()=>xl});var e=r(472),t=r.n(e);const i=window.jQuery||window.Zepto||t();function n(){"object"!=typeof window.AJS&&(window.AJS={})}function s(e,t){return n(),window.AJS[e]=t}var o=r(953),l=r.n(o);function c(e){let i;return{type:l().type.CLASSNAME,attached:function(n){!function(e,t){let i=!1;if(t((()=>{i=!0})),i)return;const n=new MutationObserver((e=>{(function(e){for(const t of e)if("childList"===t.type)return!0;return!1})(e)&&t((()=>n.disconnect()))}));n.observe(e,{childList:!0})}(n,(s=>{i=s;const r=t()(`input[type=${e}]`,n);r.each((function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)}));r.length>0&&i()}))},detached:function(e){t()(".aui-form-glyph",e).remove(),i&&i()}}}function u(e,t){var n=i(e);return void 0===t&&(t=!0),n.each((function(){this.disabled=!t}))}function d(e){return function(){"undefined"!=typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}l()("checkbox",c("checkbox")),l()("radio",c("radio")),s("enable",u),s("inlineHelp",(function(){i(document).on("click",".icon-inline-help",(function(){var e=i(this).siblings(".field-help");e.hasClass("hidden")?e.removeClass("hidden"):e.addClass("hidden")}))}));var h=d("log"),p=d("warn"),f=d("error");function g(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(t,a){var o,l="";if(o=t.match(i))l=a.length>++t?a[t]:"";else if(o=t.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=t.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,p=0;p<u.length;p++){var m=u[p].match(r);if(null!=m){var v=parseInt(m[1],10);if(c<v){if(h){l=h;break}l=m[3];break}if(c==v&&"#"==m[2]){l=m[3];break}p==u.length-1&&(l=m[3]),h=m[3]}else d=!0}d&&f('The format "'+t+'" from message "'+e+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=g.apply(null,b)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var r=e.charAt(s);if("'"==r&&(t=!t),!t)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(e.substring(0,s+1)),a.push(e.substring(0,i)),a.push(e.substring(i+1,s)),a}}return null},l=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+=a(s[2],i),s=o(e);return n+=e.replace(t,"")};return l.apply(null,arguments)}s("error",f),s("log",h),s("warn",p),s("format",g);const m=g;var v="9.4.9";s("version",v);const b=v,y=i(window);function w(e,t,i){try{return"function"==typeof i?y.on(e,false,t,i):y.on(e,false,t)}catch(e){h("error while binding: ",e.message)}}function _(e,t){try{return y.off(e,t)}catch(e){h("error while unbinding: ",e.message)}}function k(e,t){try{return y.trigger(e,t)}catch(e){h("error while triggering: "+e.message)}}s("bind",w),s("trigger",k),s("unbind",_);const C={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},x=new RegExp(`[${Object.keys(C).join("")}]`,"g");function E(e){return e.replace(x,(e=>C[e]))}s("escapeHtml",E);const T=E;var D=Object.prototype.hasOwnProperty,A=[];function S(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function N(e,t){if("function"==typeof e)return e;var i=!1;return t=t||{},function(n){var s,r=function(e){var t=new Error,i=t.stack||t.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[e+2]:n}(n||1)||"";if(!i||-1===A.indexOf(r)){A.push(r),i=!0;var a="DEPRECATED "+(t.deprecationType+" "||0)+"- "+(s=e,((s+="")?s.charAt(0).toUpperCase()+s.substring(1):"")+" has been deprecated")+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion||"a future release")+".";t.alternativeName&&(a+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(a+=" "+t.extraInfo),r=""===r?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+r,t.extraObject?S(a+="\n",t.extraObject,r):S(a,r)}}}function O(e,t){var n=e.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:t},e.options);N("'"+e.selector+"' pattern"+n,s)()}function I(e,t,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=N(t||e.name||"this function",i);return function(){return n(),e.apply(this,arguments)}}function M(e,t,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=I(e,t,n);return s.prototype=e.prototype,i.extend(s,e),s}var P=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),P=!0)}catch(e){}function L(e,t,i){if("function"==typeof e[t]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||t;e[t]=I(e[t],n,i)}else!function(e,t,i){if(P){var n=e[t];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=N(i.displayName||t,i);Object.defineProperty(e,t,{get:function(){return s(),n},set:function(e){return n=e,s(),e}})}}(e,t,i)}function R(e){return function(t){for(var i={selector:t,options:e||{}},n=document.querySelectorAll(t),s=0;s<n.length;s++)O(i,n[s]);!function(e){if(j.push(e),!F){F=new MutationObserver((function(e){e.forEach((function(e){for(var t=e.addedNodes,i=0;i<t.length;i++){var n=t[i];1===n.nodeType&&j.forEach($(n))}}))}));var t={childList:!0,subtree:!0};F.observe(document,t)}}(i)}}function $(e){return function(t){var i,n;i=e,n=t.selector,(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector).call(i,n)&&O(t,e)}}const j=[];let F;function H(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}var B;s("deprecate",{fn:I,construct:M,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(R(t))},prop:L,obj:function(e,t,n){for(var s in n=n||{},e)D.call(e,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=t+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,L(e,s,i.extend({},n)))},propertyDeprecationSupported:P,getMessageLogger:N});var W=[];function U(e,t){Array.prototype.forEach.call(document.body.children,(function(e){(function(e){return e.hasAttribute("aria-hidden")})(e)||function(e){return e.classList.contains("aui-layer")}(e)||(e.setAttribute("aria-hidden","true"),W.push(e))})),B||(B=document.body),!0===e&&z();var n=!!U.$dim&&!U.$dim[0].hasAttribute("hidden");return U.$dim&&(U.$dim.remove(),U.$dim=null),U.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),U.$dim.attr("tabindex","0"),U.$dim.appendTo(document.body),n||(H(U.$dim),U.cachedOverflow={overflow:B.style.overflow,overflowX:B.style.overflowX,overflowY:B.style.overflowY},B.style.overflowX="hidden",B.style.overflowY="hidden",B.style.overflow="hidden"),U.$dim.removeAttr("hidden"),t&&U.$dim.css({zIndex:t}),U.$dim}function V(){W.forEach((function(e){e.removeAttribute("aria-hidden")})),W=[],U.$dim&&(U.$dim[0].setAttribute("hidden",""),B&&(B.style.overflow=U.cachedOverflow.overflow,B.style.overflowX=U.cachedOverflow.overflowX,B.style.overflowY=U.cachedOverflow.overflowY))}var z=N("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});s("dim",U),s("undim",V);var Y={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};s("keyCode",Y);const q=Y;function K(e,t){window.define&&(0,window.define)(e,[],(function(){return t}));return t}const G=l().noConflict();const J=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 Q(e){return J(e).get("last-trigger")||te(e)[0]}function X(e,t){var i=t&&t.nodeType&&1===t.nodeType;return J(e).set("last-trigger",!!i&&t)}function Z(e,t){var i=Q(e);i&&t(i)}function ee(e,t){return Array.prototype.forEach.call(te(e),t)}function te(e){const t=window.frames,i=`[aria-controls="${e.id}"]`;let 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}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&p([`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."].join(" ")),a}function ie(e){return document.getElementById(e.getAttribute("aria-controls"))}function ne(e){return"true"!==e.getAttribute("aria-disabled")}function se(e,t){if(ne(e)){var i=ie(e);i&&i.message&&i.message(t)}}const re={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(se(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==q.ENTER&&i!==q.SPACE||(t.preventDefault(),t.type="click",re.click(e,t))},mouseenter(e,t){se(e,t)},mouseleave(e,t){se(e,t)},focus(e,t){se(e,t)},blur(e,t){(function(e,t){let n=t.relatedTarget;return n||(n=document.activeElement),i(ie(e)).find(n).length>0})(e,t)||se(e,t)}};Object.keys(re).forEach((function(e){const t=re[e];i(document).on(`${e}.aui-trigger`,"[data-aui-trigger]",(function(i){t(i.currentTarget,function(e,t){const{target:i,currentTarget:n,relatedTarget:s}=e,{keyCode:r,which:a}=e;return{type:t,data:"keydown"===t?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))}))})),G("data-aui-trigger",{type:G.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return ne(this)}}}),K("aui/trigger"),function(){function e(e){return"visible"===i.css(e,"visibility")&&i(e).is(":visible")}function t(t,n){var s=t.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=t.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!t.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&e(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=t.href||n;return(l?!t.disabled:c?u:n)&&e(t)}i.extend(i.expr.pseudos,{"aui-focusable":e=>t(e,!isNaN(i.attr(e,"tabindex"))),"aui-tabbable":function(e){var n=i.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&t(e,!s)}})}();var ae="_aui-focus-restore";function oe(e){return e.is(".aui-dialog2")}function le(){this._focusTrapStack=[],this._handler}function ce(e,t){if(0===e.length)return;if(t.keyCode!==q.TAB)return;const n=t.shiftKey?-1:1,s=t.target,r=e[e.length-1],a=r.find(":aui-tabbable");if(!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let e;if(e=i(s).closest(".aui-layer"),!e.length){e=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(s)}if(e.length){const t=e.find(":aui-tabbable"),i=t.index(s)+n;if(!(i<0||i>=t.length))return;{const t=Q(e.get(0));l=a.index(t)}}}l=l>-1?(l+n)%a.length:0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),t.preventDefault())}let ue;function de(){return ue||(ue=new le),ue}le.defaultFocusSelector=":aui-tabbable",le.prototype.enter=function(e,t){if(function(e,t=document.activeElement){e.data(ae,t)}(e,t),"false"!==e.attr("data-aui-focus")){var n=e.attr("data-aui-focus-selector")||le.defaultFocusSelector;(e.is(n)?e:e.find(n)).first().trigger("focus")}oe(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=ce.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},le.prototype.exit=function(e){oe(e)&&(this._focusTrapStack.pop(),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var t=document.activeElement;if(e[0]===t||e.has(t).length){i(t).trigger("blur");var n=function(e){return i(e.data(ae))}(e);n.length&&(e.removeData(ae),n.trigger("focus"))}},de.global=de(),s("FocusManager",de);const he=de;function pe(e,t){var n="_aui-widget-"+e;return function(e,s){var r,a;i.isPlainObject(e)?a=e:(r=e,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new t(l,a||{})).$el).data(n,o),o}}let fe;!function(){if(window.CustomEvent)try{const e=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default");if("name"!==e.type)throw new Error("Could not set custom name");if("y"!==e.detail.x)throw new Error("Could not set detail");return void(fe=window.CustomEvent)}catch(e){}fe=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail);var n=i.preventDefault;return i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented||(this.defaultPrevented=!0)}},i},fe.prototype=window.Event.prototype}();const ge=fe,me="_aui-internal-layer-",ve="_aui-internal-layer-global-";var be=i(document);function ye(e,t,i,n){!function(e,t){var i=window.getComputedStyle(e).transitionProperty;return!!i&&i.indexOf(t)>-1}(e,t)?i.call(e):e.addEventListener("transitionend",(function s(r){t===r.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))}))}function we(e,t,n){var s=i.Event(me+t),r=i.Event(ve+t),a=new ge("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new ge("aui-"+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(r,[e]),e[0].dispatchEvent(a),e[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function _e(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function ke(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}_e.prototype={below:function(){return Se.global.item(Se.global.indexOf(this.$el)-1)},above:function(){return Se.global.item(Se.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(me+e,t),this},off:function(e,t){return this.$el.off(me+e,t),this},show:function(){return this.isVisible()||Se.global.indexOf(this.$el)>-1?this:we(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Se.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return ye(this.$el.get(0),"opacity",(function(){e.isVisible()||(this.style.display="none")}),!0),Se.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=ke(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=ke(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!we(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&he.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(me+"hide"),this.$el.trigger(ve+"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()&&he.global.enter(this.$el),this.$el.trigger(me+"show"),this.$el.trigger(ve+"show",[this.$el])}};var Ce=pe("layer",_e);function xe(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function Ee(e,t){return xe(e,(function(e){return e[0]===t[0]}))}function Te(e){return xe(e,(function(e){return Ce(e).isBlanketed()}))}function De(e,t){var i=Te(e);t!==i&&(i>-1?U(!1,e[i].css("z-index")-20):V())}function Ae(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,r=e.length-1;r>=t;r--){s=e[r];var a=Ce(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];e.splice(r,1)}}return[!0,s]}function Se(){this._stack=[]}function Ne(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Se.global.indexOf(t)>-1}Ce.on=function(e,t,i){return be.on(ve+e,t,i),this},Ce.off=function(e,t,i){return be.off(ve+e,t,i),this},Se.prototype={push:function(e){var t=e instanceof i?e:i(e);if(Ee(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=Ce(t),s=function(e){var t;if(e.length){var i=e[e.length-1],n=parseInt(i.css("z-index"),10);t=(isNaN(n)?0:n)+100}else t=0;return Math.max(3e3,t)}(this._stack);return n._showLayer(s),n.isBlanketed()&&U(!1,s-20),this._stack.push(t),this},popLayersBeside:function(e){const t=i(e).get(0);if(!function(e){return!!Q(e)}(t)){var n=Te(this._stack);return void Ae(this._stack,++n,!1)}const s=function(e){var t=Q(e);if(t)return i(t).closest(".aui-layer").get(0)}(t);if(s){let e=this.indexOf(s);Ae(this._stack,++e,!1)}else Ae(this._stack,0,!1)},indexOf:function(e){return Ee(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach((function(e){let t=Ce(e);t.isBlanketed()||t.isPersistent()||t.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Ee(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var r=Ce(t);if(!r.isPersistent()||r.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Ee(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var r=Ce(t);if(!r.isPersistent()&&!r.isBlanketed())return t;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},popUntil:function(e,t=!1){var n=e instanceof i?e:i(e),s=Ee(this._stack,n);if(-1===s)return null;const r=Te(this._stack),a=Ce(n),[o,l]=Ae(this._stack,s+1,a.isBlanketed(),t);return o&&a._hideLayer(t)?(this._stack.splice(s,1),De(this._stack,r),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=Ce(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=Te(this._stack);if(t<0)return null;var i=this._stack[t];if(Ce(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=Ee(this._stack,n);return Ae(this._stack,s,!0,e),n}return null}return Ae(this._stack,t,!0),De(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Se.global.getTopLayer();if(t){var i,n=Te(this._stack),s=Ce(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Se.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=Ce(t),!t||s.isPersistent())return;i=Ee(this._stack,t),Ae(this._stack,i,!0,e),De(this._stack,n)}else i=Ee(this._stack,t),Ae(this._stack,i,!0,e),De(this._stack,n)}}},be.on("keydown",(function(e){e.keyCode===q.ESCAPE&&(Se.global.popUntilTopPersistent(!0),e.preventDefault())})),be.on("click",".aui-blanket",(function(e){Se.global.popUntilTopBlanketed(!0)&&e.preventDefault()})),be.on("click",(function(e){var t=i(e.target);if(!t.closest(".aui-blanket").length){var n=t.closest("[aria-controls]"),s=t.closest(".aui-layer");if(!s.length&&!Ne(n)){const t=i.Event("aui-close-layers-on-outer-click");return be.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Se.global.hideAll()}if(!Ne(n)&&s.length){var r=Se.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&Ce(r).hide()}}})),Se.global=new Se,Ce.Manager=Se,s("layer",Ce);const Oe=Ce;s("LayerManager",Oe.Manager);Oe.Manager;const Ie={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},Me=s("params",new Proxy({},{get:function(e,t){return N("AJS.params",Ie)(),e[t]}}));const Pe=I((function(e){e||(e=Me),i(".parameters input").each((function(){var t=this.value,n=this.title||this.id;i(this).hasClass("list")?e[n]?e[n].push(t):e[n]=[t]:e[n]=t.match(/^(tru|fals)e$/i)?"true"===t.toLowerCase():t}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});s("populateParameters",Pe);const Le=Pe;i((function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",b),Le()})),s("$",i);const Re=i;function $e(e){return i.when(i.ready).then((function(){setTimeout((function(){try{e.call(this,i)}catch(t){f("Failed to run init function: "+t.message,e,t,t.stack)}}),1)})),this}s("toInit",$e);const je=$e,I18n={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.checkboxmultiselect.clear.selected":"Clear selected items","aui.select.no.suggestions":"No suggestions","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","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":""},getText:function(e,...t){return Object.prototype.hasOwnProperty.call(this.keys,e)?m.apply(null,[this.keys[e]].concat(t)):e}};for(const e in I18n)Fe=e,He=I18n[e],n(),"object"!=typeof window.AJS.I18n&&(window.AJS.I18n={}),void 0===window.AJS.I18n[Fe]&&(window.AJS.I18n[Fe]=He);var Fe,He;function Be(e){var t=function({body:e,type:t="error"}){return i('<div class="aui-banner" role="banner"></div>').append(i.parseHTML(e||"")).addClass(`aui-banner-${t}`)}(e);return We().find(".aui-banner").get().forEach((function(e){e.hasAttribute("hidden")&&i(e).remove()})),function(e){var t=We();if(!t.length)throw new Error("You must implement the application header");e.prependTo(t),H(e),e[0].removeAttribute("hidden")}(t),t[0]}function We(){return i("#header")}K("aui/banner",Be),s("banner",Be);const Ue=Be;var Ve=r(302);const ze={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},Ye={filled:!1,size:ze.MEDIUM.name},qe="Add CSS to the parent element of the <aui-spinner>.\nUse CSS flexbox or grid to vertically align it.\nSee https://css-tricks.com/centering-css-complete-guide/ for techniques.",Ke=N("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:qe}),Ge=N("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:qe});function Je(e){let t=ze.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();Object.keys(ze).map((e=>e.toLowerCase())).indexOf(e)>-1&&(t=e)}return t}function Qe(e){const{px:t,radius:i}=(0,Ve.find)(ze,(t=>t.name===e._data.size))||ze.MEDIUM;!function(e,t,i){const n=e.querySelector("svg"),s=e.querySelector("circle");n.setAttribute("size",t),n.setAttribute("height",t),n.setAttribute("width",t),n.setAttribute("viewBox",`0 0 ${t} ${t}`);const r=t/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(e,t,i),e._data.filled?function(e,t){const i=e.parentNode;if(i&&1===i.nodeType){const n=e.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+t/2;e.querySelector("svg").style.top=r-a+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const Xe=G("aui-spinner",{template(e){e.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',Qe(e)},attached(e){Qe(e)},attributes:{filled:{created:function(e){Ke(),e._data.filled=!0,Qe(e)},removed:function(e){e._data.filled=!1,Qe(e)}},size(e,t){e._data.size=Je(t.newValue),Qe(e)}},prototype:{get _data(){return this.__data||(this._data=(0,Ve.defaults)({},Ye))},set _data(e){return this.__data=e},set filled(e){Ge(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=Je(e);this.setAttribute("size",t)}}});function Ze(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function et(e){return"INPUT"===e.nodeName}G("aui-button",{type:G.type.CLASSNAME,created:function(e){e._spinner=new Xe,e._spinner.setAttribute("size",ze.SMALL.name)},prototype:{busy:function(){return et(this)||Ze(this)?(p("It is not valid to call busy() on an input button."),this):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy",""),this)},idle:function(){return et(this)||!Ze(this)?(p("It is not valid to call idle() on an input button."),this):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy"),this)},isBusy:function(){return et(this)?(p("It is not valid to call isBusy() on an input button."),!1):Ze(this)}}}),K("aui/button");const tt=".aui-close-button",it=`<button type="button" class="aui-close-button" aria-label="${I18n.getText("aui.words.close")}">`;var nt={"aui-focus":"false","aui-blanketed":"true"};function st(e){var t;this._handlers=new WeakMap,this.$el=i(e||`\n <section role="dialog" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n ${it}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),t=this.$el,i.each(nt,(function(e,i){var n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)}))}st.prototype.on=function(e,t){const i=this.$el;if(!this._handlers.get(t)){const n=function(e){e.target===i.get(0)&&t.apply(this,arguments)};Oe(i).on(e,n),this._handlers.set(t,n)}return this},st.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Oe(i).off(e,n),this._handlers.delete(t)),this},st.prototype.show=function(){return Oe(this.$el).show(),this},st.prototype.hide=function(){return Oe(this.$el).hide(),this},st.prototype.remove=function(){return Oe(this.$el).remove(),this},st.prototype.isVisible=function(){return Oe(this.$el).isVisible()};var rt=pe("dialog2",st),at=new Set;rt.on=function(e,t){return at.has(t)||(Oe.on(e,".aui-dialog2",t),at.add(t)),this},rt.off=function(e,t){return at.has(t)&&(Oe.off(e,".aui-dialog2",t),at.delete(t)),this},i(document).on("click keydown",".aui-dialog2-header .aui-close-button",(function(e){("click"===e.type||e.keyCode===q.ENTER||e.keyCode===q.SPACE)&&(e.preventDefault(),rt(i(e.target).closest(".aui-dialog2")).hide())})),rt.on("show",(function(e,t){t.find(tt).attr("tabindex",0),t.attr("tabindex",-1);var i=t[0].hasAttribute("data-aui-focus-selector")&&t.attr("data-aui-focus-selector");if(i){var n=t.find(i);if(n.length>0)return n.first().focus()}t.focus()})),rt.on("hide",(function(e,t){var i=Oe(t);t.data("aui-remove-on-hide")&&i.remove()})),K("aui/dialog2",rt),s("dialog2",rt);const ot=rt;var lt,ct,ut=r(596),dt=r.n(ut),ht=navigator.userAgent.toLowerCase(),pt=(/msie/.test(ht),/windows nt 5.1/.test(ht),/windows nt 6.0/.test(ht),/windows nt 6.1/.test(ht),/mac os x/.test(ht));function ft(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function gt(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function mt(e){var t=gt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vt(e){return e instanceof gt(e).Element||e instanceof Element}function bt(e){return e instanceof gt(e).HTMLElement||e instanceof HTMLElement}function yt(e){return e?(e.nodeName||"").toLowerCase():null}function wt(e){return(vt(e)?e.ownerDocument:e.document).documentElement}function _t(e){return ft(wt(e)).left+mt(e).scrollLeft}function kt(e){return gt(e).getComputedStyle(e)}function Ct(e){var t=kt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function xt(e,t,i){void 0===i&&(i=!1);var n,s,r=wt(t),a=ft(e),o=bt(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==yt(t)||Ct(r))&&(l=(n=t)!==gt(n)&&bt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:mt(n)),bt(t)?((c=ft(t)).x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=_t(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Et(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Tt(e){return"html"===yt(e)?e:e.assignedSlot||e.parentNode||e.host||wt(e)}function Dt(e){return["html","body","#document"].indexOf(yt(e))>=0?e.ownerDocument.body:bt(e)&&Ct(e)?e:Dt(Tt(e))}function At(e,t){void 0===t&&(t=[]);var i=Dt(e),n="body"===yt(i),s=gt(i),r=n?[s].concat(s.visualViewport||[],Ct(i)?i:[]):i,a=t.concat(r);return n?a:a.concat(At(Tt(r)))}function St(e){return["table","td","th"].indexOf(yt(e))>=0}function Nt(e){if(!bt(e)||"fixed"===kt(e).position)return null;var t=e.offsetParent;if(t){var i=wt(t);if("body"===yt(t)&&"static"===kt(t).position&&"static"!==kt(i).position)return i}return t}function Ot(e){for(var t=gt(e),i=Nt(e);i&&St(i)&&"static"===kt(i).position;)i=Nt(i);return i&&"body"===yt(i)&&"static"===kt(i).position?t:i||function(e){for(var t=Tt(e);bt(t)&&["html","body"].indexOf(yt(t))<0;){var i=kt(t);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return t;t=t.parentNode}return null}(e)||t}var It="top",Mt="bottom",Pt="right",Lt="left",Rt="auto",$t=[It,Mt,Pt,Lt],jt="start",Ft="end",Ht="viewport",Bt="popper",Wt=$t.reduce((function(e,t){return e.concat([t+"-"+jt,t+"-"+Ft])}),[]),Ut=[].concat($t,[Rt]).reduce((function(e,t){return e.concat([t,t+"-"+jt,t+"-"+Ft])}),[]),Vt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zt(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}function Yt(e,t){var i=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(i){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function qt(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kt(e,t){return t===Ht?qt(function(e){var t=gt(e),i=wt(e),n=t.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,o=0;return n&&(s=n.width,r=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,o=n.offsetTop)),{width:s,height:r,x:a+_t(e),y:o}}(e)):bt(t)?function(e){var t=ft(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):qt(function(e){var t=wt(e),i=mt(e),n=e.ownerDocument.body,s=Math.max(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=Math.max(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+_t(e),o=-i.scrollTop;return"rtl"===kt(n||t).direction&&(a+=Math.max(t.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:o}}(wt(e)))}function Gt(e,t,i){var n="clippingParents"===t?function(e){var t=At(Tt(e)),i=["absolute","fixed"].indexOf(kt(e).position)>=0&&bt(e)?Ot(e):e;return vt(i)?t.filter((function(e){return vt(e)&&Yt(e,i)&&"body"!==yt(e)})):[]}(e):[].concat(t),s=[].concat(n,[i]),r=s[0],a=s.reduce((function(t,i){var n=Kt(e,i);return t.top=Math.max(n.top,t.top),t.right=Math.min(n.right,t.right),t.bottom=Math.min(n.bottom,t.bottom),t.left=Math.max(n.left,t.left),t}),Kt(e,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Jt(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Xt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zt(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Jt(s):null,a=s?Qt(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case It:t={x:o,y:i.y-n.height};break;case Mt:t={x:o,y:i.y+i.height};break;case Pt:t={x:i.x+i.width,y:l};break;case Lt:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?Xt(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case jt:t[c]=Math.floor(t[c])-Math.floor(i[u]/2-n[u]/2);break;case Ft:t[c]=Math.floor(t[c])+Math.ceil(i[u]/2-n[u]/2)}}return t}function ei(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function ti(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function ii(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.boundary,a=void 0===r?"clippingParents":r,o=i.rootBoundary,l=void 0===o?Ht:o,c=i.elementContext,u=void 0===c?Bt:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=ei("number"!=typeof f?f:ti(f,$t)),m=u===Bt?"reference":Bt,v=e.elements.reference,b=e.rects.popper,y=e.elements[h?m:u],w=Gt(vt(y)?y:y.contextElement||wt(e.elements.popper),a,l),_=ft(v),k=Zt({reference:_,element:b,strategy:"absolute",placement:s}),C=qt(Object.assign(Object.assign({},b),k)),x=u===Bt?C:_,E={top:w.top-x.top+g.top,bottom:x.bottom-w.bottom+g.bottom,left:w.left-x.left+g.left,right:x.right-w.right+g.right},T=e.modifiersData.offset;if(u===Bt&&T){var D=T[s];Object.keys(E).forEach((function(e){var t=[Pt,Mt].indexOf(e)>=0?1:-1,i=[It,Mt].indexOf(e)>=0?"y":"x";E[e]+=D[i]*t}))}return E}var ni={placement:"bottom",modifiers:[],strategy:"absolute"};function si(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ri(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,r=void 0===s?ni:s;return function(e,t,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},ni),r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){d(),o.options=Object.assign(Object.assign(Object.assign({},r),o.options),i),o.scrollParents={reference:vt(e)?At(e):e.contextElement?At(e.contextElement):[],popper:At(t)};var s=function(e){var t=zt(e);return Vt.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign(Object.assign(Object.assign({},i),t),{},{options:Object.assign(Object.assign({},i.options),t.options),data:Object.assign(Object.assign({},i.data),t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=s.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var r=s({state:o,name:t,instance:u,options:n}),a=function(){};l.push(r||a)}})),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,i=e.popper;if(si(t,i)){o.rects={reference:xt(t,Ot(i),"fixed"===o.options.strategy),popper:Et(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(o)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(s())}))}))),a}),destroy:function(){d(),c=!0}};if(!si(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),u}}var ai={passive:!0};var oi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function li(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.offsets,a=e.position,o=e.gpuAcceleration,l=e.adaptive,c=function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:Math.round(t*n)/n||0,y:Math.round(i*n)/n||0}}(r),u=c.x,d=c.y,h=r.hasOwnProperty("x"),p=r.hasOwnProperty("y"),f=Lt,g=It,m=window;if(l){var v=Ot(i);v===gt(i)&&(v=wt(i)),s===It&&(g=Mt,d-=v.clientHeight-n.height,d*=o?1:-1),s===Lt&&(f=Pt,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:a},l&&oi);return o?Object.assign(Object.assign({},y),{},((b={})[g]=p?"0":"",b[f]=h?"0":"",b.transform=(m.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",b)):Object.assign(Object.assign({},y),{},((t={})[g]=p?d+"px":"",t[f]=h?u+"px":"",t.transform="",t))}var ci={left:"right",right:"left",bottom:"top",top:"bottom"};function ui(e){return e.replace(/left|right|bottom|top/g,(function(e){return ci[e]}))}var di={start:"end",end:"start"};function hi(e){return e.replace(/start|end/g,(function(e){return di[e]}))}function pi(e,t,i){return Math.max(e,Math.min(t,i))}function fi(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function gi(e){return[It,Pt,Mt,Lt].some((function(t){return e[t]>=0}))}var mi=ri({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,ai)})),o&&l.addEventListener("resize",i.update,ai),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ai)})),o&&l.removeEventListener("resize",i.update,ai)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Zt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o={placement:Jt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),li(Object.assign(Object.assign({},o),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),li(Object.assign(Object.assign({},o),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];bt(s)&&yt(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});bt(n)&&yt(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,r=void 0===s?[0,0]:s,a=Ut.reduce((function(e,i){return e[i]=function(e,t,i){var n=Jt(e),s=[Lt,It].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign(Object.assign({},t),{},{placement:e})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[Lt,Pt].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,t.rects,r),e}),{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=t.options.placement,v=Jt(m),b=l||(v===m||!f?[ui(m)]:function(e){if(Jt(e)===Rt)return[];var t=ui(e);return[hi(e),t,hi(t)]}(m)),y=[m].concat(b).reduce((function(e,i){return e.concat(Jt(i)===Rt?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Ut:l,u=Qt(n),d=u?o?Wt:Wt.filter((function(e){return Qt(e)===u})):$t,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,i){return t[i]=ii(e,{placement:i,boundary:s,rootBoundary:r,padding:a})[Jt(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),w=t.rects.reference,_=t.rects.popper,k=new Map,C=!0,x=y[0],E=0;E<y.length;E++){var T=y[E],D=Jt(T),A=Qt(T)===jt,S=[It,Mt].indexOf(D)>=0,N=S?"width":"height",O=ii(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),I=S?A?Pt:Lt:A?Mt:It;w[N]>_[N]&&(I=ui(I));var M=ui(I),P=[];if(r&&P.push(O[D]<=0),o&&P.push(O[I]<=0,O[M]<=0),P.every((function(e){return e}))){x=T,C=!1;break}k.set(T,P)}if(C)for(var L=function(e){var t=y.find((function(t){var i=k.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=ii(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Jt(t.placement),b=Qt(t.placement),y=!b,w=Xt(v),_="x"===w?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,x=t.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):g,T={x:0,y:0};if(k){if(r){var D="y"===w?It:Lt,A="y"===w?Mt:Pt,S="y"===w?"height":"width",N=k[w],O=k[w]+m[D],I=k[w]-m[A],M=p?-x[S]/2:0,P=b===jt?C[S]:x[S],L=b===jt?-x[S]:-C[S],R=t.elements.arrow,$=p&&R?Et(R):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=j[D],H=j[A],B=pi(0,C[S],$[S]),W=y?C[S]/2-M-B-F-E:P-B-F-E,U=y?-C[S]/2+M+B+H+E:L+B+H+E,V=t.elements.arrow&&Ot(t.elements.arrow),z=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,Y=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,q=k[w]+W-Y-z,K=k[w]+U-Y,G=pi(p?Math.min(O,q):O,N,p?Math.max(I,K):I);k[w]=G,T[w]=G-N}if(o){var J="x"===w?It:Lt,Q="x"===w?Mt:Pt,X=k[_],Z=pi(X+m[J],X,X-m[Q]);k[_]=Z,T[_]=Z-X}t.modifiersData[n]=T}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Jt(i.placement),o=Xt(a),l=[Lt,Pt].indexOf(a)>=0?"height":"width";if(s&&r){var c=i.modifiersData[n+"#persistent"].padding,u=Et(s),d="y"===o?It:Lt,h="y"===o?Mt:Pt,p=i.rects.reference[l]+i.rects.reference[o]-r[o]-i.rects.popper[l],f=r[o]-i.rects.reference[o],g=Ot(s),m=g?"y"===o?g.clientHeight||0:g.clientWidth||0:0,v=p/2-f/2,b=c[d],y=m-u[l]-c[h],w=m/2-u[l]/2+v,_=pi(b,w,y),k=o;i.modifiersData[n]=((t={})[k]=_,t.centerOffset=_-w,t)}},effect:function(e){var t=e.state,i=e.options,n=e.name,s=i.element,r=void 0===s?"[data-popper-arrow]":s,a=i.padding,o=void 0===a?0:a;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Yt(t.elements.popper,r)&&(t.elements.arrow=r,t.modifiersData[n+"#persistent"]={padding:ei("number"!=typeof o?o:ti(o,$t))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=ii(t,{elementContext:"reference"}),o=ii(t,{altBoundary:!0}),l=fi(a,n),c=fi(o,s,r),u=gi(l),d=gi(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const vi={"top left":"top-start","top center":"top","top right":"top-end","right top":"right-start","right middle":"right","right bottom":"right-end","bottom right":"bottom-end","bottom center":"bottom","bottom left":"bottom-start","left bottom":"left-end","left middle":"left","left top":"left-start"};function bi(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function yi(e){return bi(e,"alignment")||"right middle"}function wi(e){let[t,i]=yi(e).split(" ");return{side:t,snap:i}}function _i(e){let t=function(e){let t=bi(e,"alignment-container")||window;return"string"==typeof t&&(t=document.querySelector(t)),t}(e),i="left";if(t&&t!==window&&t!==document||(t=document.documentElement),t&&t.nodeType&&t.nodeType===Node.ELEMENT_NODE){let n=t.getBoundingClientRect();e.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function ki(e,t){const i=wi(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=yi(e);return vi[t]||"right"}(e):(i.snap=_i(t),n="submenu"===i.side?vi[("right"===i.snap?"left":"right")+" top"]:vi[`${i.side} ${i.snap}`]),n}const Ci={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function xi(e,t,i={}){const n=wi(e),s=ki(e,t),r=Ci[s.split("-")[0]],a=t.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a||(i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document")}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains("aui-alignment-use-gpu")}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return i.enabled&&i.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={fn:i.onEvents}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),e}}];a&&t.ownerDocument!=e.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(e){const t=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),r=s([t.top,i.paddingTop,i.borderTop]),o=s([t.left,i.paddingLeft,i.borderLeft]);return e.offsets.reference.left+=o,e.offsets.reference.top+=r,e.offsets.popper.left+=o,e.offsets.popper.top+=r,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=mi(t,e,l),function(e,t,i){const n="aui-alignment-side-"+t,s="aui-alignment-snap-"+i;e.classList.contains(n)||e.classList.add(n),e.classList.contains(s)||e.classList.add(s)}(e,n.side,n.snap)}xi.prototype={destroy(){return this.popper.destroy(),this},changeTarget(e){const t=e.jquery?e[0]:e;return t&&t!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=t,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};const Ei=xi;function Ti(e){let t=new i.Deferred;return e?setTimeout((()=>{e.parentElement||t.resolve()}),12):t.reject(),t.promise()}var Di,Ai,Si=0;function Ni(e){if(Di=Si+++"",Ai=e?e+Di:"aui-uid-"+Di,document.getElementById(Ai)){if(Ai=Ai+"-"+(new Date).getTime(),document.getElementById(Ai))throw new Error('Timestamped fallback ID "'+Ai+'" exists.');return Ai}return Ai}s("id",Ni);const Oi=Ni;function Ii(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function Mi(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}function Pi(e,t={}){if(t&&t.type){const i=t.type.indexOf("mouse")>-1||t.type.indexOf("hover")>-1,n=t.type.indexOf("key")>-1;if(e.isSubmenu)i?e.focus():e.focusItem(0);else if(n){if(t.keyCode===q.UP){const t=Ui(e);t&&t.length&&e.focusItem(t.length-1)}else e.focusItem(0)}else e.focus()}}var Li="unloaded",Ri="loading",$i="error";function ji(e,t){J(e).set("loading-state","success"),e.innerHTML=function(e){return e.map((function(e){var t=e.items.map((function(e){function t(t){return e[t]?`${t} ="true"`:""}function i(t){return e[t]?`${t}="${e[t]}"`:""}var n="aui-item-"+e.type;return`\n <${n} ${i("for")} ${i("href")} ${t("interactive")}\n ${t("checked")} ${t("disabled")} ${t("hidden")}>\n ${T(e.content)}\n </${n}>`})).join("");return`\n <aui-section ${e.label?`label="${e.label}"`:""}>\n ${t}\n </aui-section>`})).join("\n")}(t),G.init(e),Z(e,(function(t){document.activeElement===t&&Pi(e)}))}function Fi(e){J(e).set("loading-state",$i),J(e).set("hasErrorBeenShown",e.isVisible()),e.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Hi(e){e.src&&J(e).get("loading-state")!==Ri&&(!function(e){J(e).set("loading-state",Ri),J(e).set("hasErrorBeenShown",!1),Z(e,(function(e){e.setAttribute("aria-busy","true")})),e.innerHTML=`\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(e),i.ajax(e.src).done((function(t,i,n){200===n.status?ji(e,t):Fi(e)})).fail((function(){Fi(e)})).always((function(){!function(e){Z(e,(function(e){e.setAttribute("aria-busy","false")}))}(e)})))}function Bi(e,t){return i(e).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(t).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Wi(e){return Bi(e,(()=>!0))}function Ui(e){return Bi(e,((e,t)=>!Ii(t)))}function Vi(e){Wi(e).each(((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Ii(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function zi(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Yi(e,t){var n=t&&t.hasSubmenu&&t.hasSubmenu(),s="submenu auto"===e.getAttribute("data-aui-alignment");!n&&s&&function(e){var t=i(e),n=t.data("previous-data-aui-alignment");n?e.setAttribute("data-aui-alignment",n):e.removeAttribute("data-aui-alignment");t.removeData("previous-data-aui-alignment"),t.data("had-data-aui-alignment-static")||e.removeAttribute("data-aui-alignment-static");t.removeData("had-data-aui-alignment-static")}(e);var r=e.hasAttribute("data-aui-alignment");n&&!s?(!function(e){var t=i(e);e.hasAttribute("data-aui-alignment")&&t.data("previous-data-aui-alignment",e.getAttribute("data-aui-alignment"));t.data("had-data-aui-alignment-static",e.hasAttribute("data-aui-alignment-static"))}(e),e.setAttribute("data-aui-alignment","submenu auto"),e.setAttribute("data-aui-alignment-static",!0)):r||(e.setAttribute("data-aui-alignment","bottom auto"),e.setAttribute("data-aui-alignment-static",!0)),zi(e),e._auiAlignment=new Ei(e,t,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:t.hasSubmenu&&t.hasSubmenu()?[-3,0]:[0,3]}),e._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(G.init(this),N("Dropdown2 lazy initialisation",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(e){const t=i(e.currentTarget);if(t.is(".aui-dropdown2-active"))return;if(t.closest(".aui-dropdown2").length)return;const n=t.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&t.is(".aui-dropdown2-trigger")&&(s.blur(),t.trigger("aui-button-invoke"),e.preventDefault());const r=n.find(":focus");r.length&&t.is(".aui-dropdown2-trigger")&&r.blur()}));var qi=!1;function Ki(){qi=!0}function Gi(e){Oe(e),e.addEventListener("aui-layer-show",(function(t){e===t.target&&(!function(e){var t=i(e);["disabled","interactive","active","checked"].forEach((e=>{t.find(`.${e}`).addClass(`aui-dropdown2-${e}`)}))}(e),Vi(e),i(e).trigger("aui-dropdown2-show"),Z(e,(function(t){Mi(t,!0),e._returnTo=function(e,t){var i=t.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||e.parentNode}(e,t)})))})),e.addEventListener("aui-layer-hide",(function(t){e===t.target&&(i(e).trigger("aui-dropdown2-hide"),e._auiAlignment&&e._auiAlignment.destroy(),e._returnTo&&e.parentNode&&e.parentNode!==e._returnTo&&e._returnTo.appendChild(e),e.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Wi(e).removeClass("active aui-dropdown2-active"),Z(e,(function(e){var t;t=!0===qi,qi=!1,t?(e.focus(),Mi(e,e.hasSubmenu&&e.hasSubmenu())):Mi(e,!1)})),delete e.isSubmenu,X(e,null))}))}function Ji(e){var t=i(e);function n(t){return i(t).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===e}t.on("keydown",(function(t){n(t.target)&&(t.keyCode===q.DOWN?(e.focusNext(),t.preventDefault()):t.keyCode===q.UP?(e.focusPrevious(),t.preventDefault()):t.keyCode===q.LEFT?e.isSubmenu&&(Ki(),e.hide(t),t.preventDefault()):t.keyCode===q.ESCAPE?Ki():t.keyCode===q.TAB&&(Ki(),e.hide(t)))}));t.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(t){if(!n(t.target))return;const s=t.currentTarget,r=t.keyCode,a=r===q.ENTER,o=r===q.SPACE;a&&i(s).is("a[href], button")||"click"!==t.type&&!a&&!o||function(t){var i=t.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void t.preventDefault();if(!(t.currentTarget.hasSubmenu&&t.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive"))){var n=e;do{var s=Oe(n);n=Oe(n).below(),s.$el.is(".aui-dropdown2")&&s.hide(t)}while(n)}}(t)})),t.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(t){if(n(t.target)){var i=t.currentTarget,s=i.hasSubmenu&&i.hasSubmenu();if(!t.isDefaultPrevented()&&!s){var r=Oe(e).above();r&&Oe(r).hide()}}}))}function Qi(e){e.classList.add("aui-dropdown2"),e.setAttribute("tabindex","-1"),e.hasAttribute("data-container")&&(e.setAttribute("data-aui-alignment-container",e.getAttribute("data-container")),e.removeAttribute("data-container")),Gi(e),Ji(e),i(e).on("click keydown",".aui-dropdown2-checkbox",(function(e){if("click"===e.type||e.keyCode===q.ENTER||e.keyCode===q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),t.isEnabled()&&(t.isChecked()?t.uncheck():t.check())}})),i(e).on("click keydown",".aui-dropdown2-radio",(function(e){if("click"===e.type||e.keyCode===q.ENTER||e.keyCode===q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(t).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),t.check())}}))}i(window).on("resize",(0,Ve.debounce)((function(){i(".aui-dropdown2").each((function(e,t){G.init(t),t.isVisible()&&t.hide()}))}),1e3,!0));var Xi={toggle:function(e){this.isVisible()?this.hide(e):this.show(e)},show:function(e){var t=this;return e&&e.currentTarget&&e.currentTarget.classList.contains("aui-dropdown2-trigger")&&X(t,e.currentTarget),Oe(t).show(),Z(t,(function(e){Yi(t,e)})),setTimeout((()=>Pi(t,e)),0),this},hide:function(){return Oe(this).hide(),this},focusNext:function(){var e,t=Ui(this),i=document.activeElement;t.last()[0]!==i&&(e=t.toArray().indexOf(i),this.focusItem(t.get(e+1)))},focusPrevious:function(){var e,t=Ui(this),i=document.activeElement;t.first()[0]!==i&&(e=t.toArray().indexOf(i),this.focusItem(t.get(e-1)))},focusItem:function(e){const t=Ui(this);"number"==typeof e&&(e=t.get(e));const n=i(e);n.focus(),t.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return Oe(this).isVisible()}},Zi={created:function(e){var t=e.children[0];t.setAttribute("aria-disabled","true"),t.classList.add("disabled","aui-dropdown2-disabled")},removed:function(e){var t=e.children[0];t.setAttribute("aria-disabled","false"),t.classList.remove("disabled","aui-dropdown2-disabled")}},en={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},tn={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new ge("change",{bubbles:!0}))},removed:function(e){var t=e.children[0];t.classList.remove("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!1),e.dispatchEvent(new ge("change",{bubbles:!0}))}},nn={created:function(e){Zi.created(e)},removed:function(e){Zi.removed(e)}},sn=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const rn=function(e=""){return e.split(" ").map((e=>e.trim())).filter((e=>e))},an=G("aui-item-link",{template:dt()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Zi,interactive:en,hidden:nn,href:sn("href"),"item-id":sn("id"),for:{created:function(e){var t=e.children[0];t.setAttribute("aria-controls",e.getAttribute("for")),i(t).addClass("aui-dropdown2-sub-trigger")},updated:function(e){e.children[0].setAttribute("aria-controls",e.getAttribute("for"))},removed:function(e){var t=e.children[0];t.removeAttribute("aria-controls"),i(t).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(e,t){const i=e.children[0];t.oldValue&&i.classList.remove(...rn(t.oldValue)),t.newValue&&i.classList.add(...rn(t.newValue))}}}),[on,ln]=["checkbox","radio"].map((e=>G(`aui-item-${e}`,{template:dt()(`<span role="${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":sn("id"),disabled:Zi,interactive:en,checked:tn,hidden:nn}}))),cn=G("aui-section",{template:dt()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(e,t){const i=Oi();var n=e.children[0],s=e.children[1];n.textContent=t.newValue,n.id=i,s.setAttribute("aria-labelledby",i)}},created:function(e){e.classList.add("aui-dropdown2-section")}}),un=G("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Oe(e),J(e).set("loading-state",Li),G.init(e)},detached:function(e){Ti(e).then((()=>zi(e)))},attributes:{src:{}},prototype:Xi,events:{"aui-layer-show":function(e){var t=J(e).get("loading-state")===Li,i=J(e).get("hasErrorBeenShown");(t||i)&&Hi(e),J(e).get("loading-state")===$i&&J(e).set("hasErrorBeenShown",!0)}}});G("aui-dropdown2",{type:G.type.CLASSNAME,created:Qi,prototype:Xi}),G("data-aui-dropdown2",{type:G.type.ATTRIBUTE,created:Qi,prototype:Xi}),G("aui-dropdown2-trigger",{type:G.type.CLASSNAME,created:function(e){let t=e.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==e)return;if(n.preventDefault(),!e.isEnabled())return;const r=document.getElementById(t);if(!r)return void f('Could not find a dropdown with id "'+t+'" in the DOM.');const a=i(e);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=e.hasSubmenu(),r}t||(t=e.getAttribute("aria-owns"),t?(e.removeAttribute("aria-owns"),e.setAttribute("aria-controls",t)):f('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),e.setAttribute("aria-haspopup",!0),e.setAttribute("aria-expanded",!1),"A"===e.nodeName&&!e.href&&e.setAttribute("href",`#${t}`),i(e).on("aui-button-invoke",n).on("click",n).on("keydown",(function(t){if(t.currentTarget!==e)return;const i=t.keyCode===q.ENTER||t.keyCode===q.SPACE,s=t.keyCode===q.RIGHT&&e.hasSubmenu(),r=(t.keyCode===q.UP||t.keyCode===q.DOWN)&&!e.hasSubmenu();i?n(t):(r||s)&&n(t,document.activeElement===e)})).on("mouseenter",(function(i){if(i.currentTarget!==e)return;if(i.preventDefault(),!e.isEnabled())return;const n=document.getElementById(t);if(n)return function(e){var t=J(e).get("loading-state")===Li,i=J(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&Hi(e)}(n),e.hasSubmenu()&&(n.show(i),n.isSubmenu=e.hasSubmenu()),n;f('Could not find a dropdown with id "'+t+'" in the DOM.')}))},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),G("aui-dropdown2-sub-trigger",{type:G.type.CLASSNAME,created:function(e){e.classList.add("aui-dropdown2-trigger"),G.init(e)}}),["checkbox","radio"].map((e=>G(`aui-dropdown2-${e}`,{type:G.type.CLASSNAME,created:function(t){const i="true"===t.getAttribute("aria-checked")||t.classList.contains("checked")||t.classList.contains("aui-dropdown2-checked");t.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",i),t.setAttribute("tabindex","0"),pt&&t.setAttribute("role",e)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${e}`&&this.parentNode.removeAttribute("checked"),i(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${e}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));var dn=i(document),hn=function(e){var t={};return t.$trigger=i(e.currentTarget),t.$content=dn.find("#"+t.$trigger.attr("aria-controls")),t.triggerIsParent=0!==t.$content.parent().filter(t.$trigger).length,t.$shortContent=t.triggerIsParent?t.$trigger.find(".aui-expander-short-content"):null,t.height=t.$content.css("min-height"),t.isCollapsible=!1!==t.$trigger.data("collapsible"),t.replaceText=t.$trigger.attr("data-replace-text"),t.replaceSelector=t.$trigger.data("replace-selector"),t},pn=function(e){if(e.replaceText){var t=e.replaceSelector?e.$trigger.find(e.replaceSelector):e.$trigger;e.$trigger.attr("data-replace-text",t.text()),t.text(e.replaceText)}},fn={"aui-expander-invoke":function(e){var t=i(e.currentTarget),n=dn.find("#"+t.attr("aria-controls")),s=!1!==t.data("collapsible");"true"===n.attr("aria-expanded")&&s?t.trigger("aui-expander-collapse"):t.trigger("aui-expander-expand")},"aui-expander-expand":function(e){var t=hn(e);"true"!==t.$content.attr("aria-expanded")&&(t.$content.attr("aria-expanded","true"),t.$trigger.attr("aria-expanded","true"),t.$content.get(0).removeAttribute("hidden"),pn(t),t.triggerIsParent&&t.$shortContent.hide(),t.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(e){var t=hn(e);"true"===t.$content.attr("aria-expanded")&&(pn(t),t.$content.attr("aria-expanded","false"),t.$trigger.attr("aria-expanded","false"),t.triggerIsParent&&t.$shortContent.show(),0===t.$content.outerHeight()&&t.$content.get(0).setAttribute("hidden",""),t.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(e){i(e.currentTarget).trigger("aui-expander-invoke",e.currentTarget)}};dn.on(fn,".aui-expander-trigger");function gn(e){bn[e]=function(t,n){n||(n=t,t="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function({id:e,closeable:t,fadeout:n,title:s,body:r},a){const o=s?`<p class="title"><strong>${T(s)}</strong></p>`:"",l=i(`<div class="aui-message">${o}</div>`).append(i.parseHTML(r||"")).addClass(t?"closeable":"").addClass(n?"fadeout":"").addClass(`aui-message-${a}`);e&&(/[#\'\"\.\s]/g.test(e)?p("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):l.attr("id",e));return l}(n,e);return function(e,t,i){"prepend"===t?e.prependTo(i):"before"===t?e.insertBefore(i):"after"===t?e.insertAfter(i):e.appendTo(i)}(s,n.insert,t),n.closeable&&mn(s),n.fadeout&&vn(s,n.delay,n.duration),s}}function mn(e){i(e||"div.aui-message.closeable").each((function(){var e,t=i(this),n=t.find(tt),s=n.length>0?n.first():i(it);t.addClass("closeable"),t.append(s),(e=t).unbind("click.aui-message").unbind("keydown.aui-message"),e.on("click.aui-message",tt,(function(e){i(e.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",tt,(function(e){e.which!==q.ENTER&&e.which!==q.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())}))}))}function vn(e,t,n){t=void 0!==t?t:5e3,n=void 0!==n?n:500,i(e||"div.aui-message.fadeout").each((function(){var e=i(this),s=!1,r=!1;function a(){e.stop(!0,!1).delay(t).fadeOut(n,(function(){e.closeMessage()}))}function o(){e.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!r}e.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}var bn={setup:function(){mn(),vn()},makeCloseable:mn,makeFadeout:vn,createMessage:gn};i.fn.closeMessage=function(){var e=i(this);e.hasClass("aui-message")&&e.hasClass("closeable")&&(e.stop(!0),e.trigger("messageClose",[this]),e.remove(),i(document).trigger("aui-message-close",[this]))},gn("generic"),gn("error"),gn("warning"),gn("info"),gn("confirmation"),gn("change"),gn("success"),gn("hint");const yn=G("aui-message",{created:function(e){var t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",bn[i](e,{body:t,closeable:e.getAttribute("closeable"),delay:e.getAttribute("delay"),duration:e.getAttribute("duration"),fadeout:e.getAttribute("fadeout"),title:e.getAttribute("title")})}});i((function(){bn.setup()})),L(bn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),L(bn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),L(bn,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),L(bn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),L(bn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),L(bn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),s("messages",bn);var wn="aui-flag-container",_n={body:"",close:"manual",title:"",type:"info"};function kn(e){(e=i.extend({},_n,e)).title=(e.title||"").toString().trim();var t=function({body:e,title:t,close:n,type:s}){const r=t?`<p class="title"><strong>${T(t)}</strong></p>`:"",a=i(`<div class="aui-message">${r}</div>`).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`);return i('<div class="aui-flag" aria-live="polite"></div>').append(a)}(e);return function(e){e[0].close=function(){xn(e)}}(t),"auto"===e.close?(Cn(t),function(e){e.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){e[0].close()}),5e3)}(t)):"manual"===e.close&&Cn(t),function(){const e=En();if(e){const t=e.querySelectorAll(".aui-flag:not([open])");Array.from(t).map((e=>e.parentNode.removeChild(e)))}else i("body").prepend('<div id="aui-flag-container"></div>')}(),function(e){const t=En();e.appendTo(t),H(e),e.removeAttr("hidden").attr("open","")}(t),t.get(0)}function Cn(e){var t=i(it);return t.on("click",(function(){xn(e)})),t.on("keypress",(function(t){t.which!==q.ENTER&&t.which!==q.SPACE||(xn(e),t.preventDefault())})),e.find(".aui-message").append(t)[0]}function xn(e){var t=e.get(0);return t.removeAttribute("open"),t.dispatchEvent(new ge("aui-flag-close",{bubbles:!0})),t}function En(){return document.getElementById(wn)}K("aui/flag",kn),s("flag",kn);const Tn=kn;var Dn=r(951),An=r.n(Dn);function Sn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Nn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(i),!0).forEach((function(t){On(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Sn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function On(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const In="aui-tooltip",Mn={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},Pn={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let Ln;const Rn=(e=!1)=>{const t=Ln&&Ln.get(0);t&&t.classList.toggle("assistive",e)};class $n{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options=Nn(Nn({},Pn),t),this.enabled=this.options.enabled,this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),jn.delete(this.triggerElement)}moveTitleToTooltip(){const e=this,t=this.$triggerElement;t.attr("title",(function(i,n){return e.originalTitle=n,e.options.aria&&t.attr("aria-describedby",In),null}))}unbindHandlers(){const e=this.options.live;this.options.$delegationRoot&&e?this.options.$delegationRoot.off(".aui-tooltip",e):this.$triggerElement.off(".aui-tooltip")}buildTip(e){const t=this.options;void 0===Ln&&(Ln=i('<div id="aui-tooltip" class="aui-tooltip assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>'),i(document.body).append(Ln));const n=Ln.find(".aui-tooltip-content");return t.html?(t.sanitize&&(e=An().sanitize(e)),n.html(e)):n.text(e),t.maxWidth&&n.css("max-width",t.maxWidth+"px"),Ln}getTipTitle(){const e=this.options;let t=("function"==typeof e.title?e.title:"string"==typeof e.title?()=>e.title:()=>this.originalTitle||"").call(this.triggerElement);return t&&t.trim().length?t:void 0}show(){const e=this.getTipTitle();if(!1===this.enabled||!e)return;this.hide();const t=this.triggerElement,n=Mn[this.options.gravity];if(clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(t))return;const s=this.buildTip(e).get(0);this.popperTimeout=setTimeout((()=>{this.showTooltip(),this.popperInstance=mi(t,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on("scroll.aui-tooltip",(()=>this.hide()))}),300)}hide(){this.hideTooltip(),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off("scroll.aui-tooltip")}showTooltip(){Rn(!1)}hideTooltip(){Rn(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const jn=new WeakMap,Fn=(e,t)=>{let i=jn.get(e);return void 0===i&&(i=new $n(e,t),"object"==typeof e&&jn.set(e,i)),i},Hn=e=>e.map((e=>`${e}.aui-tooltip`)).join(" "),Bn=Hn(["mouseenter","focus"]),Wn=Hn(["click","mouseleave","blur"]);i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return Fn(e)}if("string"==typeof e){const i=t.tooltip(!0),n=e;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),t}const i=e||{},n=function(){Fn(this,i).show()},s=function(){Fn(this,i).hide()},r=i.live;return void 0!==r?(i.$delegationRoot=t,t.on(Bn,r,n),t.on(Wn,r,s),t):(t.on(Bn,n),t.on(Wn,s),t)};var Un=function(e){function t(){return i('<div class="aui-dropdown2-section">')}var n=t();i("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(n);var s=t(),r=i("<ul />").appendTo(s);return i.each(e,(function(e,t){var n=i("<li />").attr({class:t.styleClass||""}).appendTo(r),s=i("<a />").text(t.label).attr("data-value",t.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(n);t.icon&&i("<span />").addClass("aui-icon").css("backgroundImage","url("+t.icon+')")').appendTo(s),t.selected&&s.addClass("aui-dropdown2-checked")})),i("<div />").append(n).append(s).html()},Vn=function(e,t){var n=e+"-dropdown",s=i("<select />").attr({name:e,multiple:"multiple"}).html(t),r=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=i("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":n,"aria-haspopup":!0});return i("<div />").append(s).append(a).append(r).html()};function zn(e){var t=i(e.target);Yn(this,t.attr("data-value"),t.hasClass("aui-dropdown2-checked"))}function Yn(e,t,n){var s=e.$select.find("option").filter((function(){var e=i(this);return e.attr("value")===t&&e.prop("selected")!==n}));s.length&&(s.prop("selected",n),e.$select.trigger("change"))}function qn(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Qn(e).length<1}))}function Kn(e){return e.map((function(){var e=i(this);return{value:e.val(),label:e.text(),icon:e.data("icon"),styleClass:e.data("styleClass"),title:e.attr("title"),disabled:e.attr("disabled"),selected:e.prop("selected")}}))}function Gn(e){e.$dropdown.html(Un(function(e){return Kn(e.getOptions())}(e))),qn(e)}function Jn(e){var t=Xn(e),n=function(e){return 0===Qn(e).length}(e)?function(e){return i(e).data("allLabel")||"All"}(e):t.join(", ");e.$btn.text(n)}function Qn(e){return Kn(e.getSelectedOptions())}function Xn(e){return i.map(Qn(e),(function(e){return e.label}))}const Zn=G("aui-checkbox-multiselect",{attached:function(e){var t=e.getAttribute("name")||Oi("aui-checkbox-multiselect-");e.innerHTML=Vn(t,e.innerHTML),e.$select=i("select",e).on("change",(function(){Jn(e),qn(e)})),e.$dropdown=i(".aui-checkbox-multiselect-dropdown",e).on("aui-dropdown2-item-check",zn.bind(e)).on("aui-dropdown2-item-uncheck",zn.bind(e)).on("click","button[data-aui-checkbox-multiselect-clear]",e.deselectAllOptions.bind(e)),e.$btn=i(".aui-checkbox-multiselect-btn",e).tooltip({title:function(){return function(e){return e.$dropdown[0].hasAttribute("hidden")?"":Xn(e).join(", ")}(e)}}),Jn(e),Gn(e)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){Yn(this,e,!0)},unselectOption:function(e){Yn(this,e,!1)},getValue:function(){return this.$select.val()},deselectAllOptions:function(){this.$select.val([]).trigger("change"),this.$dropdown.find(".aui-dropdown2-checked,.checked").removeClass("aui-dropdown2-checked checked")},addOption:function(e){i("<option />").attr({value:e.value,icon:e.icon,disabled:e.disabled,selected:e.selected,title:e.title}).text(e.label).appendTo(this.$select),Jn(this),Gn(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),Jn(this),Gn(this)}}});K("aui/checkbox-multiselect",Zn);const es=Zn;var ts=r(726);const is=r.n(ts)();const ns=function(e){function t(t){return n((function(){return e.hasAttribute(t)}),t+" wasn't defined")}function i(i){if(!t(i))return!1;var s=e.getAttribute(i);return n((function(){return document.getElementById(s)}),'an element with id set to "'+s+'" was not found')}function n(t,i){return!!t()||(e?f(i,e):f(i),!1)}return{attributeExists:t,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},ss="-input";function rs(e){return e.querySelector("label")}const as=G("aui-label",{template:dt()("<label><content></content></label>"),created:function(e){e._label=rs(e)},attached:function(e){ns(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?rs(e).setAttribute("for",`${t.newValue}-input`):rs(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?rs(e).setAttribute("form",t.newValue):rs(e).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(e,t){e.disabled&&t.preventDefault()}}});r(37);var os=i.fn.select2,ls="aui-select2-container",cs="aui-select2-drop aui-dropdown2",us="aui-has-avatar";i.fn.auiSelect2=function(e){var t;if(i.isPlainObject(e)){var n=i.extend({},e),s=n.hasAvatar?" "+us:"";n.containerCssClass=ls+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=cs+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),(t=Array.prototype.slice.call(arguments,1)).unshift(n)}else t=arguments.length?arguments:[{containerCssClass:ls,dropdownCssClass:cs}];return os.apply(this,t)},i.fn.spin=I((function(e,t){let n={size:"small"};return"object"==typeof t&&(n=i.extend(n,t)),"object"==typeof e&&(n=i.extend(n,e)),"string"==typeof e&&(n.size=e),"boolean"==typeof e&&!1===e?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const e=i(this),t=e.data();if(t){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),e.spinStop(),e.append(s),G.init(this),t.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=I((function(){return this.each((function(){if(!this||!this.nodeType)return;const e=i(this).data();e&&e.spinner&&(e.spinner.remove(),delete e.spinner)}))}),"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"});const ds=G("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||T(this.textContent)},set:function(t){e.setAttribute("value",t)}})},prototype:{serialize:function(){var e={};return this.hasAttribute("img-src")&&(e["img-src"]=encodeURI(this.getAttribute("img-src"))),e.value=this.value,e.label=T(this.textContent),e}}});var hs=r(775),ps=r.n(hs),fs=ps().Collection.extend({initialize:function(e,t){t||(t={}),t.matcher&&(this.matcher=t.matcher),t.model&&(this.model=t.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=t.maxResults||5,this._queryData=t.queryData||{},this._queryParamKey=t.queryParamKey||"q",this._queryEndpoint=t.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,(0,Ve.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(e){var t,i;this.value=e,i=this.getFilteredResults(e),this.respond(e,i),e&&this._queryEndpoint&&!this.hasQueryCache(e)&&this.shouldGetMoreResults(i)&&(t=this.fetch(e),this.activeQueryCount++,this.trigger("activity",{activity:!0}),t.always((()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})})),t.done(((t,i,n)=>{this.addQueryCache(e,t,n)})),t.done((()=>{e=this.value,i=this.getFilteredResults(e),this.respond(e,i)})))},getQueryData:function(e){var t=(0,Ve.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,Ve.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return ps().Collection.prototype.fetch.call(this,t)},respond:function(e,t){return this.trigger("respond",{query:e,results:t}),t},matcher:function(e,t){},getFilteredResults:function(e){var t=[];return e?(t=this.filter((function(t){return!!this.matcher(t,e)}),this),this._maxResults&&(t=(0,Ve.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,Ve.pluck)(s,this._idAttribute)},hasQueryCache:function(e){return this.queryCache.hasOwnProperty(e)},findQueryCache:function(e){return this.queryCache[e]},shouldGetMoreResults:function(e){return e.length<this._maxResults},setMaxResults:function(e){this._maxResults=e,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});s("ProgressiveDataSet",fs);const gs=fs,ms=ps().Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}});function vs(){this._suggestions=[],this._activeIndex=-1}vs.prototype={onChange:function(){},onHighlightChange:function(){},get:function(e){return this._suggestions[e]},set:function(e){var t=this._suggestions;return this._suggestions=e||[],this.onChange(t),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(e){if(e)for(var t=0;t<this._suggestions.length;t++)this._suggestions[t].id===e.id&&this.highlight(t);return this},highlight:function(e){return this._activeIndex=e,this.onHighlightChange(),this},highlightPrevious:function(){var e=this._activeIndex,t=0===e?e:e-1;return this.highlight(t),this},highlightNext:function(){var e=this._activeIndex,t=e===this._suggestions.length-1?e:e+1;return this.highlight(t),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};const bs=vs;function ys(e,t){return e+"-"+t}function ws(e,t){this.el=e,this.anchor=t}function _s(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}ws.prototype={render:function(e,t,i){this.currListId=i;var n="";if(e.length){var s=t;e.forEach((function(e){var t=e.getLabel(),r=e.get("img-src"),a=r?`<img src="${encodeURI(r)}"/>`:"",o=e.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";n+=`<li role="option" class="aui-select-suggestion" id="${ys(i,s)}">${a}${t}${o}</li>`,s++})),t?this.el.querySelector("ul").innerHTML+=n:this.el.querySelector("ul").innerHTML=n}else t||(this.el.querySelector("ul").innerHTML=`<li role="option" class="aui-select-no-suggestions">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(e){_s(this.el),i(this.el).find("#"+ys(this.currListId,e)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var e;i((e=this).el).css("min-width",i(e.anchor).outerWidth()),Oe(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new Ei(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){var e;_s(this.el),Oe(this.el).hide(),(e=this)._auiAlignment&&e._auiAlignment.disable()},destroy:function(){var e;this.hide(),(e=this)._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};const ks=ws,Cs=dt()('\n <input type="text" class="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" role="button" tabindex="-1" type="button"></button>\n <div class="aui-popover" role="listbox" data-aui-alignment="bottom left" hidden>\n <ul class="aui-optionlist" role="presentation"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n');function xs(e){e._select.selectedIndex=-1,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function Es(e){return e._suggestionModel.getNumberOfResults()}function Ts(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function Ds(e){e._suggestionsView.hide(),e._input.setAttribute("aria-expanded","false")}function As(e){var t=Es(e)?0:-1;e._suggestionModel.highlight(t),Ds(e)}function Ss(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function Ns(e){var t=e._suggestionModel.highlighted()&&e._suggestionModel.highlighted().get("img-src");t&&function(e,t){i(e._input).addClass("aui-select-has-inline-image"),e._input.setAttribute("style","background-image: url("+encodeURI(t)+")")}(e,t)}function Os(e,t){if(t){var i,n=document.createElement("option"),s=e._select,r=t.get("value")||t.get("label"),a=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,e._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new ge("change",{bubbles:!0}))}}function Is(e){Os(e,e._suggestionModel.highlighted()),Ns(e),As(e)}function Ms(e){return new ms(e.serialize())}function Ps(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(Ms(n))}return t}function Ls(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function Rs(e,t){return i.map(t,(function(e){return e.id})).indexOf(e)}function $s(e){e._progressiveDataSet=new gs(Ps(e),{model:ms,matcher:Ts,queryEndpoint:e._queryEndpoint,maxResults:20}),e._isSync=!e._queryEndpoint,e._progressiveDataSet.on("activity",(function(){e._progressiveDataSet.activeQueryCount&&!e._isSync?(!function(e){e._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true"))}(e),J(e).set("should-flag-new-suggestions",!1)):(!function(e){e._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false")}(e),J(e).set("should-flag-new-suggestions",!0))})),e._progressiveDataSet.on("respond",(function(t){if(t.query&&!e._input.value)return;if(J(e).get("should-cancel-response"))return void(e._progressiveDataSet.activeQueryCount||J(e).set("should-cancel-response",!1));t.query||(t.results=Ps(e));var i=-1!==Rs(e._input.value,t.results),n=!e._input.value;if(!e.hasAttribute("can-create-values")||i||n||t.results.push(function(e){var t=new ds;t.setAttribute("value",e._input.value);var i=Ms(t);return i.set("new-value",!0),i}(e)),!J(e).get("should-include-selected")){var s=Rs(e.value,t.results);s>=0&&t.results.splice(s,1)}const r=function(e,t){const i=e._suggestionModel.getNumberOfResults();return e._suggestionModel.set(),e._suggestionModel.set(t.results),i!==e._suggestionModel.getNumberOfResults()}(e,t),a=e._suggestionModel.highlighted()||t.results[0];e._autoHighlight&&(e._suggestionModel.setHighlighted(a),setTimeout((function(){e._input.setAttribute("aria-activedescendant",Ls(e))}),50)),e._input.setAttribute("aria-expanded","true"),!e._isSync&&r&&e._suggestionsView.getActive()&&J(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),e._suggestionsView.show()}))}function js(e){var t=e.value?"":e._input.value,i=""===e._input.value;J(e).set("should-include-selected",i),Ss(e,!0,t)}function Fs(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&J(e).set("should-cancel-response",!0)}function Hs(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function Bs(e){Fs(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==Hs(e);if(i||n)if(t)xs(e);else{var s=Hs(e);void 0===s?xs(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(-1)}(e),Ds(e)}const Ws=G("aui-select",{template:Cs,created:function(e){e._listId=Oi(),e._input=e.querySelector("input"),e._select=e.querySelector("select"),e._dropdown=e.querySelector(".aui-popover"),e._datalist=e.querySelector("datalist"),e._button=e.querySelector("button"),e._suggestionsView=new ks(e._dropdown,e._input),e._suggestionModel=new bs,e._suggestionModel.onChange=function(t){var i=[];e._suggestionModel._suggestions.forEach((function(e){t.some((function(t){return e.id===t.id}))||i.push(e)})),e._suggestionsView.render(i,t.length,e._listId)},e._suggestionModel.onHighlightChange=function(){var t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t),e._input.setAttribute("aria-activedescendant",Ls(e))}},attached:function(e){G.init(e),$s(e),function(e){e._dropdown.id=e._listId,e.querySelector("button").setAttribute("aria-controls",e._listId)}(e),e._input.setAttribute("aria-controls",e._listId),e.setAttribute("tabindex","-1"),function(e){i(e._dropdown).on("mouseover","li",(function(t){Es(e)&&e._suggestionModel.highlight(i(t.target).index())}))}(e),function(e){let t=!1;i(document).on("aui-close-layers-on-outer-click.single-select",(e=>{t&&(e.preventDefault(),t=!1)})),i(e._dropdown).on("mousedown","li",(function(n){if(!Es(e))return!1;e._suggestionModel.highlight(i(n.target).index()),Is(e),e._suggestionsView.hide(),i(e).closest(".aui-layer").length>0&&(t=!0),e._input.removeAttribute("aria-activedescendant")}))}(e),function(e){var t=e._datalist.querySelector("aui-option[selected]");t&&Os(e,Ms(t))}(e),As(e),Ns(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),Ti(e).then((()=>{Ds(e),e._suggestionsView.destroy()}))},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+ss)},name(e,t){e.querySelector("select").setAttribute("name",t.newValue)},placeholder(e,t){e.querySelector("input").setAttribute("placeholder",t.newValue)},src(e,t){e._queryEndpoint=t.newValue}},events:{"blur input":function(e){Bs(e)},"mousedown button":function(e){document.activeElement!==e._input||e._dropdown.hasAttribute("hidden")||J(e).set("prevent-open-on-button-click",!0)},"click input":function(e){js(e)},"click button":function(e){var t=J(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):(J(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?(J(e).set("should-include-selected",!0),Ss(e,!0)):J(e).get("button-clicked-prevent-dropdown-hide")?J(e).set("button-clicked-prevent-dropdown-hide",!1):Ds(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===q.ESCAPE)return Fs(e),void Ds(e);e._suggestionsView.isVisible()&&Es(e)?t.keyCode===q.ENTER?(Fs(e),Is(e),t.preventDefault()):t.keyCode===q.TAB?(!function(e){e._suggestionsView.isVisible()&&Is(e)}(e),n=!0):t.keyCode===q.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===q.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==q.UP&&t.keyCode!==q.DOWN||(js(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout((function(){e._input.value===i||n||e.dispatchEvent(new ge("input",{bubbles:!0}))}),0)}},prototype:{get value(){var e=this._select.options[this._select.selectedIndex];return e?e.value:""},set value(e){if(""===e)(n=this)._input.value="",n._select.innerHTML="";else if(e){var t=this._progressiveDataSet,i=t.findWhere({value:e})||t.findWhere({label:e});!i&&this.hasAttribute("can-create-values")&&(i=new ms({value:e,label:e})),Os(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Bs(this),this},focus:function(){return this._input.focus(),js(this),this}}});K("aui/select",Ws),s("select",Ws);const Us=Ws;function Vs(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const zs={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:Vs,computeEnumValue:function(e,t){const i=e=>e.toLowerCase()===t.toLowerCase(),n=null===t,s=!n&&!e.values.filter(i).length;return n?e.hasOwnProperty("missingDefault")?e.missingDefault:null:s?e.hasOwnProperty("invalidDefault")?e.invalidDefault:e.hasOwnProperty("missingDefault")?e.missingDefault:null:e.values.length?e.values.filter(i)[0]:null},setEnumAttribute:function(e,t,i){e.setAttribute(t.attribute,i)}};function Ys(e){return e._input||(e._input=e.querySelector("input"))}function qs(e){return e._spinner||(e._spinner=new Xe)}function Ks(e,t){Ys(t).removeAttribute(e)}function Gs(e,t,i){Ys(t).setAttribute(e,i.newValue)}function Js(e){return{removed:Ks.bind(this,e),fallback:Gs.bind(this,e)}}const Qs={removed:function(e){Ks.call(this,"form",e),e._formId=null},fallback:function(e,t){Gs.call(this,"form",e,t),e._formId=t.newValue}};var Xs={removed:Ks.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}-input`;Ys(e).setAttribute("id",i)}},Zs={removed:function(e){Ks.call(this,"value",e),Ys(e).value="on"},fallback:function(e,t){Gs.call(this,"value",e,t)}},er={removed:function(e){Ys(e).checked=!1},fallback:function(e){Ys(e).checked=!0}},tr={removed:function(e){Ys(e).removeAttribute("aria-label")},fallback:function(e,t){Ys(e).setAttribute("aria-label",t.newValue)}};function ir(e){Ys(e).addEventListener("keydown",(function(t){e.busy&&t.keyCode===q.SPACE&&t.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Ys(e).addEventListener("click",(function(t){e.busy&&t.preventDefault()})),function(){if(void 0===ct)try{document.querySelector(":focus-within"),ct=!0}catch(e){ct=!1}return ct}()||(e._input.addEventListener("focus",(()=>e.classList.add("active"))),e._input.addEventListener("blur",(()=>e.classList.remove("active"))))}const nr=G("aui-toggle",{template:dt()('<input type="checkbox" class="aui-toggle-input assistive">','<span class="aui-toggle-view">','<span class="aui-toggle-tick aui-icon aui-icon-small aui-iconfont-success"></span>','<span class="aui-toggle-cross aui-icon aui-icon-small aui-iconfont-close-dialog"></span>',"</span>"),created:function(e){Ys(e),qs(e).setAttribute("size",ze.SMALL.name),i(Ys(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),ir(e),e.hasAttribute("checked")&&Ys(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){ns(e).attributeExists("label")},events:{click:function(e,t){var i=Ys(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked,function(e){e._canFireEventsNow&&e.dispatchEvent(new ge("change",{bubbles:!0}))}(e)),Vs(e,"checked",i.checked)}},attributes:{id:Xs,checked:er,disabled:Js("disabled"),form:Qs,name:Js("name"),value:Zs,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(e,t){Ys(e).setAttribute("tooltip-on",t.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(e,t){Ys(e).setAttribute("tooltip-off",t.newValue||I18n.getText("aui.toggle.off"))}},label:tr},prototype:{focus:function(){return Ys(this).focus(),this},get checked(){return Ys(this).checked},set checked(e){Ys(this).checked!==e&&(Ys(this).checked=e,Vs(this,"checked",e))},get disabled(){return Ys(this).disabled},set disabled(e){return Vs(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return Qs.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return Ys(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return Ys(this).value},set value(e){let t=null===e?"":e;return this.setAttribute("value",t),t},get busy(){return"true"===Ys(this).getAttribute("aria-busy")},set busy(e){const t=Ys(this),n=qs(this);var s,r;return Vs(this,"busy",e),e?(t.setAttribute("aria-busy","true"),t.indeterminate=!0,this.checked?(t.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(t.classList.remove("indeterminate-checked"),t.indeterminate=!1,t.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(e){e.disabled=r})),e}}});function sr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function rr(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(i),!0).forEach((function(t){ar(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):sr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function ar(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function or(e,t){Z(e,(function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)})),X(e,t)}function lr(e,t){if(e._auiAlignment)e._auiAlignment.changeTarget(t),e._auiAlignment.enable();else{let n={overflowContainer:"viewport"===e.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};n=rr(rr({},n),{onCreate:()=>{wr(e)&&he().enter(i(e),i(t))},onEvents:{enabled:()=>{wr(e)&&he().enter(i(e))},disabled:()=>{wr(e)&&he().exit(i(e))}}}),e._auiAlignment=new Ei(e,t,n)}}function cr(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function ur(e,t){var i=t.currentTarget;i&&(or(e,i),lr(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function dr(e=0){return function(t){t.open&&!Oe(t).isPersistent()&&(clearTimeout(t._closingTimeout),t._closingTimeout=setTimeout((function(){(function(e){return J(e).get("mouse-inside")||e.contains(document.activeElement)})(t)||(t.open=!1),t._closingTimeout=null}),e))}}const hr={click(e,t){e.open&&!Oe(e).isPersistent()?e.open=!1:(or(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:ur,mouseleave:dr(1e3),focus:ur,blur:dr(0)};function pr(e){var t=e.currentTarget;J(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function fr(e){var t=e.currentTarget;J(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function gr(e){var t=e.currentTarget;"hover"===t.respondsTo&&dr(1e3)(t)}function mr(e){J(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",pr),e.removeEventListener("mouseleave",fr),e.removeEventListener("blur",gr),"hover"===e.respondsTo&&(J(e).set("mouse-inside",!1),e.addEventListener("mouseenter",pr),e.addEventListener("mouseleave",fr),e.addEventListener("blur",gr))}function vr(e,t){return`${e}.nested-layer-${t}`}function br(e){return Oe(e).show(),!0===Oe(e).isVisible()}function yr(e){return Oe(e).hide(),!1===Oe(e).isVisible()}function wr(e){return"hover"!==e.respondsTo}function _r(e){e.__initialised||(Oe(e),i(e).on({[`${me}show`]:function(){const e=this;!function(e){let t=i(e);const n=e.id,s=e=>t.find(Q(e.target)).length<1;i(document).on(vr("aui-layer-show",n),(e=>{s(e)||t.attr("persistent","")})).on(vr("aui-layer-hide",n),(e=>{s(e)||t.removeAttr("persistent")})).on(vr("select2-opening",n),(()=>{t.attr("persistent","")})).on(vr("select2-close",n),(()=>{setTimeout((()=>{t.removeAttr("persistent")}),150)}))}(e),Z(e,(function(t){lr(e,t),t.setAttribute("aria-expanded","true")}))},[`${me}hide`]:function(){const e=this;!function(e){const t=e.id;i(document).off(vr("aui-layer-hide",t)).off(vr("aui-layer-show",t)).off(vr("select2-opening",t)).off(vr("select2-close",t))}(e.id),e.ownerDocument.body.contains(e)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(e):cr(e),Z(e,(function(e){e.setAttribute("aria-expanded","false")})),X(e,null)}}),e.__initialised=!0)}const kr={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},Cr=G("aui-inline-dialog",{prototype:{get open(){return Oe(this).isVisible()},set open(e){this.__propUpdate=!0,e?br(this):yr(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){zs.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=kr.attribute;return zs.computeEnumValue(kr,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;zs.setEnumAttribute(this,kr,e),t!==this.respondsTo&&mr(this)},message:function(e){var t,i,n;return i=e,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(t=this).respondsTo])&&n.indexOf(i.type)>-1&&hr[i.type](t,i),this}},attributes:{open:function(e,t){if(_r(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){br(e)||Vs(e,"open",!1)}if("removed"===t.type){yr(e)||Vs(e,"open",!0)}}},"responds-to":function(e,t){zs.computeEnumValue(kr,t.oldValue)!==zs.computeEnumValue(kr,t.newValue)&&mr(e)}},created:_r,attached:function(e){ns(e).attributeExists("id"),e.setAttribute("tabindex",0),e.setAttribute("role","dialog"),Z(e,(function(t){t.setAttribute("aria-expanded",e.open)})),ee(e,(function(e){e.setAttribute("aria-haspopup","true")})),mr(e)},detached:function(e){Ti(e).then((()=>{cr(e),ee(e,(function(e){e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded")}))}))},template:function(e){i('<div class="aui-inline-dialog-contents"></div>').append(e.childNodes).appendTo(e)}});K("aui/inline-dialog2",Cr),s("InlineDialog2",Cr);const xr=Cr;function Er(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(e,t){return new Er(t)}))[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var t=this.$el.children(".aui-nav-selected");t.parents(".aui-nav > [aria-expanded=false]").add(t.filter("[aria-expanded=false]")).each((function(){Tr(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){Tr(i(this).siblings(".aui-nav")).toggle()})),n.each((function(){var e=i(this).parent("li[aria-expanded]"),t=i(this).find(".aui-icon"),n="true"===e.attr("aria-expanded");t.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}Er.prototype.isNested=function(){return 1===this.$treeParent.length},Er.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Er.prototype.expand=function(){return this.$treeParent.attr("aria-expanded","true"),this.$subtreeToggleIcon.removeClass("aui-iconfont-collapsed").addClass("aui-iconfont-expanded").text(I18n.getText("aui.words.collapse")),this},Er.prototype.collapse=function(){return this.$treeParent.attr("aria-expanded","false"),this.$subtreeToggleIcon.removeClass("aui-iconfont-expanded").addClass("aui-iconfont-collapsed").text(I18n.getText("aui.words.expand")),this},Er.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const Tr=pe("navigation",Er),Dr=G("aui-nav",{type:G.type.CLASSNAME,attached:function(e){new Er(e)},detached:function(e){i(e).removeData()}});s("navigation",Tr);const Ar=Tr;function Sr(e,t,{currentProgress:n,value:s}){const r=i(e),a=i(t);"number"==typeof s&&s<=1&&s>=0&&(a.trigger("aui-progress-indicator-before-update",[n,s]),r.one("transitionend webkitTransitionEnd",(function(){a.trigger("aui-progress-indicator-after-update",[n,s])})),function(e,t,i){H(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(r,a,s))}function Nr(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),H(t),n.css("width","")}const Or={indeterminate:!1,max:1,val:0};function Ir(e){return(0,Ve.isNumber)(e)&&(0,Ve.isFinite)(e)&&!(0,Ve.isNaN)(e)}function Mr(e,t=1){const i=parseFloat(e);return Ir(i)?i:Number(t)}function Pr(e,t=1){return Number(parseFloat(e).toFixed(t))}function Lr(e){const{val:t,max:i}=e,n=function(e){return e>0?e:Or.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),r=Pr(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:Pr(100*r,2)}}function Rr(e){const{val:t,valAsFraction:i,max:n}=Lr(e._data),s=e.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),Nr(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),Sr(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function $r(e,t){e._data.val=Mr(t.newValue,t.oldValue||Or.val),Rr(e)}function jr(e,t){e._data.max=Mr(t.newValue,t.oldValue||Or.max),Rr(e)}const Fr=G("aui-progressbar",{template(e){e._data.max=Mr(e.getAttribute("max"),Or.max),e._data.val=Mr(e.getAttribute("value"),Or.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=Lr(e._data),r=e._data.indeterminate?"":`data-value="${n}"`;e.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${t}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(e){Rr(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:Or.val,fallback:function(e,t){if(e._updating)return!1;$r(e,t)}},max:{value:Or.max,fallback:function(e,t){if(e._updating)return!1;jr(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,Ve.defaults)({},Or))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,Rr(this)},get value(){const{val:e}=Lr(this._data);return e},set value(e){if(!Ir(e))return!1;const t={newValue:Pr(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,$r(this,t)},get max(){const{max:e}=Lr(this._data);return e},set max(e){if(!Ir(e))return!1;const t={newValue:Pr(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,jr(this,t)}}}),Hr={update:I((function(e,t){if("string"==typeof e){let t=document.getElementById(e);t&&(e=t)}var n=i(e).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===t;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),Sr(s,n,{currentProgress:o,value:t}),n}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:I(Nr,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};s("progressBars",Hr);const Br=Hr;r(473);const Wr={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Ur(e,t){let n=Object.assign({},Wr,t);return e.find("th").each((function(e,t){const s=i(t);n.headers[e]={},s.hasClass("aui-table-column-unsortable")?n.headers[e].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[e].sorter="issue-key"))})),e.tablesorter(n)}let Vr={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){const t=e.split("-"),i=t[0],n=t[1],s="..........",r="000000";let a=(i+s).slice(0,s.length);return a+=(r+n).slice(-r.length),a},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(e,t,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(e,t,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each((function(){Ur(i(this))}))},setTableSortable:function(e,t){return Ur(e,t)}};i(Vr.setup),s("tablessortable",Vr);function zr(e,t=""){var n=i(e),s=t||!1;n.each((function(){var e=i(this);e.attr("id")||e.attr("id",Oi(s))}))}s("_addID",zr);const Yr=zr;function qr(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}s("isClipped",qr);const Kr=qr;var Gr=window.skateTemplateHtml;function Jr(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Qr(e){let t=Jr(e);return t?document.getElementById(t):null}var Xr={totalTabsWidth:function(e,t){var i=this.totalVisibleTabWidth(e),n=0;return t.find("li").each((function(e,t){n+=parseInt(t.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(e){var t=0;return e.each((function(e,n){t+=i(n).outerWidth()})),t},removeResponsiveDropdown:function(e,t){e.remove(),t.remove()},createResponsiveDropdownTrigger:function(e,t){var i=`<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-${t}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${t}"\n href="#aui-tabs-responsive-dropdown-${t}">...</a>\n </li>`;return e.append(i),e.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(e,t){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+t+'"><ul></ul></div>';return e.append(i),e.find("#aui-tabs-responsive-dropdown-"+t)},findNewVisibleTabs:function(e,t,n){function s(e,t,i){return e+t<=i}for(var r=0,a=0;s(r,n,t)&&a<e.length;a++){r+=i(e[a]).outerWidth(!0)}return e.slice(0,a-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=e.length-1;l>=o;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(a)},moveTabToResponsiveDropdown:function(e,t,i){var n=e.find("a");e.attr("data-aui-tab-width",e.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),e.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),t.find("ul").prepend(e)},moveInvisibleTabs:function(e,t,n){function s(e){return e>0}for(var r=0;s(t)&&r<e.length;r++){var a=i(e[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<t&&this.moveTabOutOfDropdown(a,n),t-=o}},moveTabOutOfDropdown:function(e,t){e.find("a").hasClass("aui-dropdown2-checked")&&(e.addClass("active-tab"),t.removeClass("active-tab")),e.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),t.before(e)}};function Zr(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=Qr(t);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=t.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),t.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),t.hasClass("aui-tabs-responsive-item")){var o=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}t.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),t.closest(".tabs-menu").find("a").attr("aria-selected","false"),t.attr("aria-selected","true"),t.trigger("tabSelect",{tab:t,pane:s})}else f("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",e)}}function ea(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function ta(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return"_internal-aui-tabs-"+(t||"")+(i&&"true"!==i?"-"+i:"")}function ia(e){la.change(i(e.target).closest("a")),e&&e.preventDefault()}function na(e){e.forEach((function(e,t){!function(e,t){var n=i(e),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Xr.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=Xr.createResponsiveDropdownTrigger(s,t),c=Xr.createResponsiveDropdown(n,t)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+t),o.attr("id","aui-tabs-responsive-trigger-"+t),o.attr("href","#aui-tabs-responsive-trigger-"+t),c.attr("id","aui-tabs-responsive-dropdown-"+t),d){var h=Xr.moveVisibleTabs(r.toArray(),n,a),p=Xr.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");Xr.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",ia),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Xr.moveTabOutOfDropdown(i(this),a)})),Xr.removeResponsiveDropdown(c,a))}(e,t)}))}function sa(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function ra(e){var t=i(e);if(e.setAttribute("role","application"),!t.data("aui-tab-events-bound")){var n=t.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each((function(){var e,t,n;t=i(e=this),n=Qr(t),Jr(e)||f('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(Yr(t),t.attr("role","tab"),i(n).attr("aria-labelledby",t.attr("id")),t.parent().hasClass("active-tab")?t.attr("aria-selected","true"):t.attr("aria-selected","false")):p("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",e)})),n.on("click.aui-tabs","a",ia),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(oa)}(e)}}function aa(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each((function(){ra(this)})),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(ea(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(ta(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&Zr(a)}}else p("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function oa(e){e.setAttribute("role","tabpanel")}var la={setup:function(){!function(){const e=(0,Ve.debounce)(na,200);e(sa()),i(window).on("resize.aui-tabs",(()=>e(sa())))}(),aa(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var e=i(this);e.attr("title")||Kr(e)&&e.attr("title",e.text())}))},change:function(e){var t=e instanceof HTMLElement||e instanceof i?e:document.querySelector(e),n=i(t).first(),s=n.closest(".aui-tabs");Zr(n),ea(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=Jr(e);i&&window.localStorage.setItem(ta(t),"#"+i)}else p("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(la.setup);const ca=G("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),G.init(e),ra(e)},template:Gr('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(e){var t=i(function(e){return e.querySelectorAll("aui-tabs-pane")}(this)).index(e);return t>-1&&la.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),ua=G("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:Gr('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),da=G("aui-tabs-pane",{attached:function(e){var t=i(function(e){return i(e).closest("aui-tabs").get(0)}(e)),n=i(e),s=t.find("aui-tabs-pane").index(n),r=new ua,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+e.id),Gr.wrap(r).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&a.addClass("active-tab"),n.siblings("ul").append(r)},template:Gr("<content></content>")});s("tabs",la);const ha="_aui-form-notification-initialised",pa="data-aui-notification-wait",fa="data-aui-notification-info",ga="data-aui-notification-error",ma=[ga,"data-aui-notification-success",pa,fa];function va(e){ba(e)||(!function(e){e.addClass(ha),ya(e)}(e),ka(e))}function ba(e){return e.hasClass(ha)}function ya(e,t){t=t||wa(e),_a(e)===fa&&e.after(function(e){if(e.length>1){return`<div class="description"><ul>${e.map((e=>`<li>${e}</li>`)).join("")}</ul></div>`}return`<div class="description">${e}</div>`}(t))}function wa(e){var t=_a(e),i=t?e.attr(t):"";return""===i?i:function(e){var t;try{t=JSON.parse(e)}catch(i){t=[e]}return t}(i)}function _a(e){var t;return ma.some((function(i){if(e.is("["+i+"]"))return t=i,!0})),t}function ka(e){const t=i(e);if(!ba(t))return;const n=_a(t);Ea(t,n===pa);const s=wa(t);s&&n===ga?Ca(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(ga)||t.parent().find(".error").remove()}function Ca(e,t){let i=xa(e,"error");i.length>0&&i.remove(),e.after(function(e){return`<div class="error"><ul>${e.map((e=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification">${e}</span>${e}</li>`)).join("")}</ul></div>`}(t))}function xa(e,t){return e.parent().find(`.${t}`)}function Ea(e,t){t&&!function(e){return e.next("aui-spinner").length>0}(e)?e.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):e.parent().find("aui-spinner").remove()}const Ta=N("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});G("data-aui-notification-field",{attached:function(e){Ta(),va(i(e))},attributes:function(){const e={};return ma.forEach((function(t){e[t]=ka})),e}(),type:G.type.ATTRIBUTE}),K("aui/form-notification");var Da=["displayfield","watchfield","when","novalidate","state"],Aa=[];var Sa={register:function(e,t){var n;if("string"==typeof e)n=e;else{var s=function(e){var t=!1;return e.some((function(e){var n=-1!==i.inArray(e,Da);return n&&(t=e),n})),t}(e);if(s)return p('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+e.join("],[data-aui-validation-")+"]"}var r={validatorFunction:t,validatorTrigger:n};return Aa.push(r),r},validators:function(){return Aa}};K("aui/form-validation/validator-register",Sa);const Na=Sa;function Oa(e){var t=e.el.value.length;let i=0===t;var n=parseInt(e.args("minlength"),10),s=parseInt(e.args("maxlength"),10);if(n&&s&&n===s&&!i&&t!==n){const t=$a("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=$a("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=$a("maxlength",e.args);e.invalidate(t)}else e.validate()}function Ia(e){return"password"===e.getAttribute("type")}function Ma(e,t){var i=e.match(t);return!!i&&e===i[0]}function Pa(e){var t=$a("pattern",e.args);Ma(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function La(e){var t=$a("required",e.args);e.el.value?e.validate():e.invalidate(t)}function Ra(e){var t=$a("validnumber",e.args),i=parseInt(e.el.value,10);if(isNaN(i))e.invalidate(t);else{var n=e.args("min"),s=e.args("max");n&&i<parseInt(n,10)?e.invalidate($a("min",e.args)):s&&i>parseInt(s,10)?e.invalidate($a("max",e.args)):e.validate()}}function $a(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:ja[e];var s=i;i||(s=[t(e)]);var r,a=t(e+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}Na.register(["maxlength","minlength"],Oa),Na.register("[maxlength],[minlength]",Oa),Na.register(["matchingfield"],(function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=$a("matchingfield",e.args,[t,n]);(Ia(e.el)||Ia(i))&&(s=$a("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()})),Na.register(["doesnotcontain"],(function(e){var t=$a("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)})),Na.register(["pattern"],Pa),Na.register("[pattern]",Pa),Na.register(["required"],La),Na.register("[required]",La),Na.register(["min","max"],Ra),Na.register("[min],[max]",Ra),Na.register(["dateformat"],(function(e){var t=e.args("dateformat"),i=$a("dateformat",e.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=t.split(""),r="";s.forEach((function(e){var t=n.hasOwnProperty(e);r+=t?n[e]:e}));var a=new RegExp(r+"$","i");Ma(e.el.value,a)?e.validate():e.invalidate(i)})),Na.register(["minchecked","maxchecked"],(function(e){var t=i(e.el).find(":checked").length,n=!e.args("minchecked")||t>=e.args("minchecked"),s=!e.args("maxchecked")||t<=e.args("maxchecked"),r=$a("minchecked",e.args),a=$a("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(a):e.invalidate(r)}));var ja={minlength:I18n.getText("aui.validation.message.minlength"),maxlength:I18n.getText("aui.validation.message.maxlength"),exactlength:I18n.getText("aui.validation.message.exactlength"),matchingfield:I18n.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":I18n.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:I18n.getText("aui.validation.message.doesnotcontain"),pattern:I18n.getText("aui.validation.message.pattern"),required:I18n.getText("aui.validation.message.required"),validnumber:I18n.getText("aui.validation.message.validnumber"),min:I18n.getText("aui.validation.message.min"),max:I18n.getText("aui.validation.message.max"),dateformat:I18n.getText("aui.validation.message.dateformat"),minchecked:I18n.getText("aui.validation.message.minchecked"),maxchecked:I18n.getText("aui.validation.message.maxchecked")};K("aui/form-validation/basic-validators");const Fa="data-aui-notification-",Ha="invalid",Ba="valid",Wa="validating",Ua="unvalidated",Va="_aui-form-validation-initialised",za="_aui-internal-field-state-changed";function Ya(e){(function(e){return e.hasClass(Va)})(e)||(!function(e){e.addClass(Va),ya(e)}(e),function(e){(function(e){var t,i=function(){e.trigger("aui-stop-typing")};e.on("keyup",(function(){clearTimeout(t),t=setTimeout(i,1500)}))})(e),function(e){var t=Ka(e,"when"),i=Ka(e,"watchfield");(i?e.add("#"+i):e).on(t,(function(){qa(e)}))}(e)}(e),Qa(e,Ua))}function qa(e){if(!Ka(e,"novalidate"))return function(e){!function(e){Xa(eo(e),"none")}(e);var t=function(e){var t=[];return Ga().forEach((function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)})),t}(e);Qa(e,Wa);var n=function(e,t){var n=[];return t.forEach((function(t){var s=Ga()[t].validatorFunction,r=new i.Deferred;s(function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){Qa(e,Ha,i),t.reject()},args:Ja(e),el:e[0],$el:e};return L(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,r)),n.push(r)})),n}(e,t),s=i.when.apply(i,n);return s.done((function(){Qa(e,Ba)})),s}(e);Qa(e,Ba)}function Ka(e,t){var i=e.attr("data-aui-validation-"+t);return i||(i={when:"change"}[t]),i}function Ga(){return Na.validators()}function Ja(e){return function(t){return e.attr("data-aui-validation-"+t)||e.attr(t)}}function Qa(e,t,n){if(e.attr("data-aui-validation-state",t),t!==Ua){e.trigger(i.Event(za));var s=eo(e),r={validating:"wait",invalid:"error",valid:"success"},a=r[t];t===Wa?function(e){setTimeout((function(){to(e)===Wa&&(Xa(e,"wait"),Ea(e,!0))}),500)}(e):Xa(s,a,n)}}function Xa(e,t,i){const n=function(e){return e.is("[data-aui-notification-wait]")}(e);!function(e){Za(e,"wait"),Ea(e,!1),Za(e,"success")}(e);var s,r;if(!("success"===t&&!n))if("none"===t)Za(e,"error");else{const n=e.attr(Fa+t)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];e.attr(Fa+t,JSON.stringify(a)),"error"===t&&Ca(e,a)}}function Za(e,t){e.removeAttr(Fa+t),"error"===t&&xa(e,t).remove()}function eo(e){var t=Ka(e,"displayfield");return void 0===t?e:i("#"+t)}function to(e){return e.attr("data-aui-validation-state")}function io(e,t){t.preventDefault(),e.one(za,(function(){e.trigger("submit")}))}function no(e,t){var i="[data-aui-validation-state="+t+"]";return e.find(i)}i(document).on("submit",(function(e){var t=e.target,n=i(t),s=function(e){return a=e.find("."+Va),t=i.map(a,(function(e){return to(i(e))})),n=-1!==t.indexOf(Ha),s=-1!==t.indexOf(Ua),r=-1!==t.indexOf(Wa),n?Ha:s?Ua:r?Wa:Ba;var t,n,s,r;var a}(n);if(s===Ua)io(n,e),function(e){no(e,Ua).each((function(e,t){so.validate(i(t))}))}(n);else if(s===Wa)io(n,e);else if(s===Ha)e.preventDefault(),function(e){no(e,Ha).first().focus()}(n);else if(s===Ba){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&e.preventDefault()}}));const so={register:Na.register,validate:function(e){qa(e=i(e))}};G("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),Ya(i(e)),G.init(e)},type:G.type.ATTRIBUTE}),K("aui/form-validation",so),s("formValidation",so);var ro=I((function(e,t){var i,n;return function(){var s=arguments,r=this,a=function(){n=e.apply(r,s),r=s=null};return clearTimeout(i),i=setTimeout(a,t),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const ao=ro;s("debounce",ro),s("debounceImmediate",I((function(e,t){var i,n=null;return function(){var s=this,r=arguments,a=function(){n=s=r=null};return null===n&&(i=e.apply(s,r)),clearTimeout(n),n=setTimeout(a,t),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const oo=i(window);function lo(e){var t,n=this;this.element=e,this.$element=i(e),this.index=i("aui-header, .aui-header").index(e),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(t=i(n.$element[0].querySelector(".aui-header-primary")),function(e){return t.find(e)})}lo.prototype={init:function(){var e=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){e.primaryButtonsWidth+=i(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var t=i(this).parent(),n=t.outerWidth(!0);e.totalWidth+=n,e.menuItems.push({$element:t,outerWidth:n})})),this.rightMostNavItemIndex=this.menuItems.length-1,oo.on("resize",this._resizeHandler=ao((function(){e.constructResponsiveDropdown()}),100));var t=this.$applicationLogo.find("img");0!==t.length&&(t.attr("data-aui-responsive-header-index",this.index),t.on("load",(function(){e.constructResponsiveDropdown()}))),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){oo.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var e,t=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(t>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),e=t-this.moreMenuWidth;for(var i=-1;e-this.menuItems[i+1].outerWidth>=0;)e-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var e=document.createElement("li"),t=document.createElement("aui-dropdown-menu");t.id=`aui-responsive-header-dropdown-${this.index}`,G.init(t);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,G.init(n),t.appendChild(n);var s=function(e){var t=document.createElement("a");return t.setAttribute("class","aui-dropdown2-trigger"),t.setAttribute("href","#"),t.id=e.id+"-trigger",t.setAttribute("aria-controls",e.id),t.innerHTML=I18n.getText("aui.words.more"),t}(t);return e.appendChild(s),e.appendChild(t),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(e):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(e),this.moreMenuWidth=i(e).outerWidth(!0),i(e)},moveOutOfResponsiveDropdown:function(e){if(!(e<=0)){for(var t=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+e,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}t.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=dt().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,r=n;r>=s;r--){var a=this.menuItems[r].$element,o=a.children("a");G.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const e=Array.from(o.get(0).classList).filter((e=>!e.startsWith("aui-")));l.setAttribute("extra-classes",e.join(" "))}G.init(l),dt().wrap(l).textContent=o.text(),a.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new ge("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const co=function(e){let t=e._header;return t instanceof lo||(t=new lo(e),t.init(),e._header=t),t};function uo(){i(".aui-header").each((function(){co(this)}))}i(uo);const ho={};ho.setup=I(uo,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),s("responsiveheader",ho);const po=G("aui-header-end",{type:G.type.ELEMENT,created:function(e){const t=e.parentElement;t&&t.classList.contains("aui-header")?co(t):console.log("Could not async. initialise aui-header")}});var fo=r(207),go=r.n(fo);const mo=({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:t||n.attr("max"),minDate:e||n.attr("min"),nextText:">",onSelect:function(e){n.val(e),n.trigger("change"),r(),s&&s.call(this,e)},onChangeMonthYear:a,prevText:"<"}),vo=(e,t)=>{let n,s,r,a=!1;const o=i("body"),l=t=>{let n=i(t.target),r=n.closest(s).length||n.is(e),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||t.keyCode===q.ESCAPE)return h(),void(a=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:e})=>(n=(({horizontalAlignment:e,datePickerUUID:t})=>{const n=new xr;n.id=t;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${e}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(e=>e.offset().left<window.innerWidth/2?"left":"right")(e),datePickerUUID:t}),r=e.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",(e=>{a&&e.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),e.off("focus click",u),e.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),e.on("focusout keydown",c)}}},bo=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:p,createPolyfill:f}=vo(t,s),g=e=>{i(e.currentTarget).val()&&r.datepicker("setDate",t.val())},m=t.attr("placeholder"),v=t.prop("type");let b;{const i=e=>t=>{if(void 0!==r)return e(t)},n=i((()=>{r.datepicker("destroy")}));e.show=l,e.hide=c,e.destroyPolyfill=()=>{p(),t.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&t.attr("placeholder",m),v&&t.prop("type",v),t.removeAttr("data-aui-dp-uuid"),n(),delete e.destroyPolyfill,delete e.show,delete e.hide},e.setDate=i((e=>{r.datepicker("setDate",e)})),e.getDate=i((()=>r.datepicker("getDate"))),e.setMin=i((e=>r.datepicker("option","minDate",e))),e.setMax=i((e=>r.datepicker("option","maxDate",e)))}n.languageCode in yo.prototype.localisations||(n.languageCode="");const y=yo.prototype.localisations;if(t.attr("aria-controls",s),void 0===r){void 0!==t.attr("step")&&h("WARNING: The date picker polyfill currently does not support the step attribute!");const s=mo({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(e),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),t.append(a)),r})({config:o,popupContents:a({$field:t}),getCalendarNode:d,hint:n.hint}),f(),t.on("propertychange keyup input paste",g),b=new MutationObserver((function(t){t.forEach((function(t){"min"===t.attributeName?e.setMin(t.target.getAttribute("min")):"max"===t.attributeName&&e.setMax(t.target.getAttribute("max"))}))})),b.observe(t.get(0),{attributes:!0})}t.on("focus click",o),t.attr("placeholder",n.placeholder),t.prop("type","text"),t.val(t.attr("value")),t.trigger("propertychange"),t.attr("data-aui-dp-uuid",s)};function yo(e,t){let n={};const s=Oi("date-picker"),r=i(e),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const e=!yo.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&bo(a)},reconfigure:e=>{n=i.extend(void 0,yo.prototype.defaultOptions,e),a.reset()}};return a.reconfigure(t),a}function wo(e,t){const n=i.extend({nextText:">",prevText:"<"},t),s=i(e).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const e=i("<div/>").addClass("aui-datepicker-hint");e.append("<span/>").text(n.hint),s.append(e)}return s.reconfigure=e=>{s.datepicker("destroy"),s.datepicker(e)},s.destroy=()=>{s.datepicker("destroy")},s}yo.prototype.browserSupportsDateField=function(){if(void 0===lt){var e=document.createElement("input");e.setAttribute("type","date"),lt="date"===e.type}return lt}(),yo.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:go().W3C},yo.prototype.localisations={dayNames:[I18n.getText("ajs.datepicker.localisations.day-names.sunday"),I18n.getText("ajs.datepicker.localisations.day-names.monday"),I18n.getText("ajs.datepicker.localisations.day-names.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names.thursday"),I18n.getText("ajs.datepicker.localisations.day-names.friday"),I18n.getText("ajs.datepicker.localisations.day-names.saturday")],dayNamesMin:[I18n.getText("ajs.datepicker.localisations.day-names-min.sunday"),I18n.getText("ajs.datepicker.localisations.day-names-min.monday"),I18n.getText("ajs.datepicker.localisations.day-names-min.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.thursday"),I18n.getText("ajs.datepicker.localisations.day-names-min.friday"),I18n.getText("ajs.datepicker.localisations.day-names-min.saturday")],firstDay:I18n.getText("ajs.datepicker.localisations.first-day"),isRTL:"true"===I18n.getText("ajs.datepicker.localisations.is-RTL"),monthNames:[I18n.getText("ajs.datepicker.localisations.month-names.january"),I18n.getText("ajs.datepicker.localisations.month-names.february"),I18n.getText("ajs.datepicker.localisations.month-names.march"),I18n.getText("ajs.datepicker.localisations.month-names.april"),I18n.getText("ajs.datepicker.localisations.month-names.may"),I18n.getText("ajs.datepicker.localisations.month-names.june"),I18n.getText("ajs.datepicker.localisations.month-names.july"),I18n.getText("ajs.datepicker.localisations.month-names.august"),I18n.getText("ajs.datepicker.localisations.month-names.september"),I18n.getText("ajs.datepicker.localisations.month-names.october"),I18n.getText("ajs.datepicker.localisations.month-names.november"),I18n.getText("ajs.datepicker.localisations.month-names.december")],showMonthAfterYear:"true"===I18n.getText("ajs.datepicker.localisations.show-month-after-year"),yearSuffix:I18n.getText("ajs.datepicker.localisations.year-suffix")};const _o="aui-datepicker",ko=e=>function(t){let i=this.data(_o);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(_o,i)),i};i.fn.datePicker=ko(yo),s("DatePicker",yo),i.fn.calendarWidget=ko(wo),s("CalendarWidget",wo);const Co=yo;r(251),r(993),r(927),r(757),r(940);const xo={NO_VALUE:"aui-restfultable-editable-no-value",NO_ENTRIES:"aui-restfultable-no-entires",RESTFUL_TABLE:"aui-restfultable",ROW:"aui-restfultable-row",READ_ONLY:"aui-restfultable-readonly",ACTIVE:"aui-restfultable-active",ALLOW_HOVER:"aui-restfultable-allowhover",FOCUSED:"aui-restfultable-focused",MOVEABLE:"aui-restfultable-movable",DISABLED:"aui-restfultable-disabled",SUBMIT:"aui-restfultable-submit",CANCEL:"aui-restfultable-cancel",EDIT_ROW:"aui-restfultable-editrow",CREATE:"aui-restfultable-create",DRAG_HANDLE:"aui-restfultable-draghandle",ORDER:"aui-restfultable-order",EDITABLE:"aui-restfultable-editable",ERROR:"error",DELETE:"aui-restfultable-delete",STATUS:"aui-restfultable-status"},Eo=ps().View,To=ps().View,Do=ps().View,Ao={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};r(562);const So={REORDER_SUCCESS:"RestfulTable.reorderSuccess",ROW_ADDED:"RestfulTable.rowAdded",ROW_REMOVED:"RestfulTable.rowRemoved",EDIT_ROW:"RestfulTable.switchedToEditMode",SERVER_ERROR:"RestfulTable.serverError",CREATED:"created",UPDATED:"updated",FOCUS:"focus",BLUR:"blur",SUBMIT:"submit",SAVE:"save",MODAL:"modal",MODELESS:"modeless",CANCEL:"cancel",CONTENT_REFRESHED:"contentRefreshed",RENDER:"render",FINISHED_EDITING:"finishedEditing",VALIDATION_ERROR:"validationError",SUBMIT_STARTED:"submitStarted",SUBMIT_FINISHED:"submitFinished",INITIALIZED:"initialized",ROW_INITIALIZED:"rowInitialized",ROW_EDIT:"editRow"},No='<aui-spinner size="small"></aui-spinner>',Oo="aui-spinner";function Io(e){0===e.find(Oo).length&&e.find(`.${xo.STATUS}`).append(No)}function Mo(e){e.find(`.${xo.STATUS} aui-spinner`).remove()}var Po=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const Lo=ps().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=So,this.classNames=xo,this.dataKeys=Ao,this.columns=e.columns,this.isCreateRow=e.isCreateRow,this.allowReorder=e.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),e.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=e.model,this.model=new this._modelClass),this.fieldFocusSelector=e.fieldFocusSelector,this.on(this._event.CANCEL,(()=>{this.isCreateRow||(this.disabled=!0)})).on(this._event.SAVE,(e=>!this.disabled&&this.submit(e))).on(this._event.FOCUS,(e=>this.focus(e))).on(this._event.BLUR,(()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()})).on(this._event.SUBMIT_STARTED,(()=>this._submitStarted())).on(this._event.SUBMIT_FINISHED,(()=>this._submitFinished()))},defaultColumnRenderer:function(e){return!1!==e.allowEdit?i("<input type='text' />").addClass("text").attr({name:e.name,value:e.value,"aria-label":e.ariaLabel}):e.value?document.createTextNode(e.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(e){27===e.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(e){return this.trigger(this._event.CANCEL),e.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(e){return this.hasFocus()||this.trigger(this._event.FOCUS,e.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(e){var t,i;return this.enable(),t=e?this.$el.find(this.fieldFocusSelector(e)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),t.focus().trigger("select"),this},disable:function(){var e,t;return Po&&(t=this.$el.find(":submit")).length&&(e=i("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(t.attr("class")).val(t.val()).data(this.dataKeys.ENABLED_SUBMIT,t),t.replaceWith(e)),this.$el.addClass(this.classNames.DISABLED).find(":submit").attr("disabled","disabled"),this},enable:function(){var e,t;return Po&&(t=(e=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&e.length&&e.replaceWith(t),this.$el.removeClass(this.classNames.DISABLED).find(":submit").removeAttr("disabled"),this},showLoading:function(){return Io(this.$el),this},hideLoading:function(){return Mo(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var e=this.$el;return e.serializeObject?e.serializeObject():e.serialize()},mapSubmitParams:function(e){return this.model.changedAttributes(e)},submit:function(e){var t,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,e):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(e,t,i){400===i.status&&(n.renderErrors(t.errors),n.trigger(n._event.VALIDATION_ERROR,t.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return i("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var t=this;return this.$("."+this.classNames.ERROR).remove(),e&&i.each(e,(function(e,i){t.$el.find("[name='"+e+"']").closest("td").append(t.renderError(e,i))})),this},render:function(e){var t=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),i.each(this.columns,(function(n,s){var r,a,o=e.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},e.values,t.model];o&&t.$el.attr("data-"+s.id,o),r=t.isCreateRow&&s.createView?new s.createView({model:t.model}).render(l[0]):s.editView?new s.editView({model:t.model}).render(l[0]):t.defaultColumnRenderer.apply(t,l),a=i("<td />"),"object"==typeof r&&r.done?r.done((function(e){a.append(e)})):a.append(r),s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)})),this.$el.append(this.renderOperations(e.update,e.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,e.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=i('<td class="aui-restfultable-operations" />');return e?t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),t.add(i(`<td class="${this.classNames.STATUS}" />`))}}),Ro=document||{},$o=i(Ro);function jo(e,t){$o.trigger(e,t)}function Fo(e,t,n){i(t).trigger(e,n),jo(e,n),t.id&&jo(t.id+"-"+e,n)}var Ho=ps().Model.extend({sync:function(e,t,i){var n=this,s=i.error;return i.error=function(e){n._serverErrorHandler(e,this),s&&s.apply(this,arguments)},ps().sync.apply(ps(),arguments)},save:function(e,t){var n,s=this,r=(t=t||{}).error,a=t.success;t.error=function(e,t){var n=i.parseJSON(t.responseText||t.data);r&&r.call(s,s,n,t)},this.isNew()?ps().Model.prototype.save.call(this,e,t):e&&((n=new(Ho.extend({url:this.url()}))({id:this.id})).save=ps().Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),a&&a.call(s,s,t)},n.save(e,t))},destroy:function(e){e=e||{};var t=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:e.data||{},contentType:"application/json",success(i){t.collection&&t.collection.remove(t),e.success&&e.success.call(t,i)},error(i){t._serverErrorHandler(i,this),e.error&&e.error.call(t,i)}}),this},changedAttributes:function(e){var t={},n=this.toJSON();if(i.each(e,(function(e,s){n[e]?n[e]&&n[e]!==s&&("object"==typeof s&&(0,Ve.isEqual)(s,n[e])||(t[e]=s)):"string"==typeof s?""!==i.trim(s)&&(t[e]=s):i.isArray(s)?0!==s.length&&(t[e]=s):t[e]=s})),!(0,Ve.isEmpty)(t))return this.addExpand(t),t},addExpand:function(e){},_serverErrorHandler:function(e,t){var n;400!==e.status&&(n=i.parseJSON(e.responseText||e.data),Fo(So.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),ps().Model.prototype.fetch.call(this,e)}});const Bo=Ho,Wo=ps().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=So,this.classNames=xo,this.dataKeys=Ao,this.columns=e.columns,this.allowEdit=e.allowEdit,this.allowDelete=e.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=e.index||0,this.deleteConfirmationCallback=e.deleteConfirmationCallback,this.allowReorder=e.allowReorder,this.$el=i(this.el),this.on(this._event.CANCEL,(()=>this.disabled=!0)).on(this._event.FOCUS,(e=>this.focus(e))).on(this._event.BLUR,(()=>this.unfocus())).on(this._event.MODAL,(()=>this.$el.addClass(this.classNames.ACTIVE))).on(this._event.MODELESS,(()=>this.$el.removeClass(this.classNames.ACTIVE)))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(e){if(e.value)return document.createTextNode(e.value.toString())},sync:function(e){var t=this;return this.model.addExpand(e),this.showLoading(),this.model.save(e,{success:function(){t.hideLoading().render(),t.trigger(t._event.UPDATED)},error:function(){t.hideLoading()}}),this},refresh:function(e,t){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),e&&e.apply(this,arguments)},error:function(){i.hideLoading(),t&&t.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return Io(this.$el),this},hideLoading:function(){return Mo(this.$el),this},edit:function(e){var t;return t=i(e.target).is("."+this.classNames.EDITABLE)?i(e.target).attr("data-field-name"):i(e.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,t),this},renderOperations:function(){var e=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(t){t.preventDefault(),e.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let e=this.deleteConfirmationCallback(this.model.toJSON());if(!e||!e.then)throw new Error("deleteConfirmationCallback needs to return a Promise");e.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var e=this,t=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},t)),s=i(`<td class="${this.classNames.STATUS}" />`);return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,(function(n,s){var r,a=i("<td />"),o=t[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},t,e.model];if(o&&e.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:e.model}).render(c[0]):e.defaultColumnRenderer.apply(e,c),!1!==e.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(e.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(e.$el),r&&i.trim(r)||(a.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(e.$el)})),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,t),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var Uo=ps().View.extend({initialize:function(e){var t=this;if(t.options=i.extend(!0,t._getDefaultOptions(e),e),t.id=this.options.id,t._event=So,t.classNames=xo,t.dataKeys=Ao,this.$table=i(e.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=i("<thead/>"),this.$theadRow=i("<tr />").appendTo(this.$thead),this.$tbody=i("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw new Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach((function(e){var n=i.isFunction(e.header)?e.header():e.header;void 0===n&&(p("You have not specified [header] for column ["+e.id+"]. Using id for now..."),n=e.id),t.$theadRow.append("<th>"+n+"</th>")})),t.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(e){t.focusedRow&&t.focusedRow.trigger(t._event.SAVE),e.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(e,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(t.classNames.MOVEABLE);return n.children().each((function(){var e=i(this),t=parseInt(0+e.css("border-left-width"),10),n=parseInt(0+e.css("border-right-width"),10),r=e[0].clientWidth+t+n;s.append(i("<div/>").html(e.html()).attr("class",e.attr("class")).width(r))})),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(e,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(t.classNames.MOVEABLE).children().each((function(e){i(this).width(r.eq(e).width())}));var a='<td colspan="'+t.getColumnCount()+'"> </td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),t.getRowFromElement(n.item[0]).trigger(t._event.MODAL)},stop:function(e,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(t.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(t.classNames.ROW),t.getRowFromElement(n.item[0]).trigger(t._event.MODELESS))},update:function(e,i){var n={row:t.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};t.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(e){return!i(e.target).is("."+t.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return t.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(e){void 0===t.options.addPosition&&"bottom"===t.options.createPosition||"bottom"===t.options.addPosition?t.addRow(e):t.addRow(e,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(t._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=i('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(e){t.getRows().forEach((function(i){i.model===e&&(i.hasFocus()&&t._createRow&&t._createRow.trigger(t._event.FOCUS),t.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var e=this;i.isFunction(this.options.resources.all)?this.options.resources.all((function(t){e.populate(t)})):i.get(this.options.resources.all,(function(t){e.populate(t)}))},move:function(e){var t=this,n=function(e){return e.length?{after:t.getRowFromElement(e).model.url()}:{position:"First"}};if(e.row){var s=t.options.reverseOrder?n(e.nextItem):n(e.prevItem);i.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){e.row.hideLoading()},success:function(e){Fo(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var n=i.parseJSON(e.responseText||e.data);Fo(t._event.SERVER_ERROR,t,[n,e,this])}}),e.row.showLoading()}},_createCollection:function(){var e=this;return new(this.options.Collection.extend({sort:function(t){if(t||(t={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=e.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,t.silent||this.trigger("refresh",this,t),this},remove:function(...t){return this.tableRows=e.getRows(),ps().Collection.prototype.remove.apply(this,t),this.tableRows=void 0,this}}))([],{comparator:function(t){var i;return(this&&void 0!==this.tableRows?this.tableRows:e.getRows()).some((function(e,n){if(e.model.id===t.id)return i=n,!0})),i}})},populate:function(e){this.options.reverseOrder&&e.reverse(),this.hideGlobalLoading(),e&&e.length?(this._models.reset([],{silent:!0}),this.renderRows(e),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),Fo(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=i('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+No+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(e,t){var i,n;if(!e.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(e));return n=new this.options.model(e),i=this._renderRow(n,t),this._models.add(n),this.removeNoEntriesMsg(),Fo(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Fo(this._event.ROW_REMOVED,this,[e,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var e=2;return this.allowReorder&&++e,this.options.columns.length+e},getRowFromElement:function(e){return i(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var e=this,t=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var n=i(this).data(e.dataKeys.ROW_VIEW);n&&t.push(n)})),t},_renderRow:function(e,t){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:e,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(e){Fo(this._event.EDIT_ROW,{},[this,s]),s.edit(this,e)})),i=n.render().$el,-1!==t&&("number"==typeof t&&0!==r.length?i.insertBefore(r[t]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach((function(e){s.isRowBeingEdited(e)||e.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach((function(e){s.isRowBeingEdited(e)||e.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(e){var t=!1;return this.editRows.some((function(i){if(i.el===e.el)return t=!0,!0})),t},_applyFocusCoordinator:function(e){var t=this;return e.hasFocusBound||(e.hasFocusBound=!0,e.on(this._event.FOCUS,(function(){t.focusedRow&&t.focusedRow!==e&&t.focusedRow.trigger(t._event.BLUR),t.focusedRow=e,e instanceof Wo&&t._createRow&&t._createRow.enable()}))),this},_removeEditRow:function(e){var t=i.inArray(e,this.editRows);return this.editRows.splice(t,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach((function(e){e.hasUpdates()||e.trigger(this._event.FINISHED_EDITING)}),this)},edit:function(e,t){var i=this,n=new this.options.views.editRow({el:e.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:e.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=e.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,(function(t,n){i._removeEditRow(this),this.off(),e.render().delegateEvents(),e.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()})).on(i._event.VALIDATION_ERROR,(function(){this.trigger(i._event.FOCUS)})).on(i._event.FINISHED_EDITING,(function(){i._removeEditRow(this),e.render().delegateEvents(),this.off()})).on(i._event.CANCEL,(function(){i._removeEditRow(this),this.off(),e.render().delegateEvents(),i._shiftFocusAfterEdit()})).on(i._event.BLUR,(function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)})),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,t),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(e=[]){var t=this._models.comparator,i=[];this._models.comparator=void 0;var n=e.map((e=>{var t=new this.options.model(e);return i.push(this._renderRow(t,-1).el),t}));return this._models.add(n,{silent:!0}),this._models.comparator=t,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(e){return{model:e.model||Bo,allowEdit:!0,views:{editRow:Lo,row:Wo},Collection:ps().Collection.extend({url:e.resources.self,model:e.model||Bo}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});Uo.ClassNames=xo,Uo.CustomCreateView=Eo,Uo.CustomEditView=To,Uo.CustomReadView=Do,Uo.DataKeys=Ao,Uo.EditRow=Lo,Uo.EntryModel=Bo,Uo.Events=So,Uo.Row=Wo,s("RestfulTable",Uo);const Vo=Uo;function zo(e){return i(e).clone().removeAttr("id")}s("clone",zo);const Yo=zo;var qo=window.DocumentTouch;const Ko="ontouchstart"in window||qo&&document instanceof qo;function Go(e,t,i,n){e.find(`[${n}]`).attr(n,((e,n)=>t===n?i:void 0))}function Jo(e,t){let n=i("<div></div>");n.append(e),n.find("[id]").each(((e,i)=>{const s=t(`${i.id}-`);!function(e,t,i){Go(e,t,i,"aria-controls"),Go(e,t,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Qo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Xo(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(i),!0).forEach((function(t){Zo(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Qo(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Zo(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function el(e){return e.offset().top}function tl(e){this.$el=i(e),this.$el.length&&(this.$body=i("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new rl,function(e){if(!i(".aui-sidebar").length)return;(function(e){e.$el.on("mouseenter mouseleave click focus",e.collapsedTriggersSelector,(function(t){const n=i(t.target);ul(e,n)}))})(e),Ko&&function(e){if(window.matchMedia)return window.matchMedia(e).matches;var t=document.createElement("style");t.type="text/css",t.id="testMedia",t.innerText=`@media ${e} { #testMedia { width: 1px; } }`,document.head.appendChild(t);var i="1px"===window.getComputedStyle(t,null).width;return t.parentNode.removeChild(t),i}("only screen and (max-device-width:1024px)")&&i("body").addClass("aui-page-sidebar-touch");var t=null,n=function(){null===t&&(t=requestAnimationFrame((function(){e.reflow(),t=null})))};i(window).on("scroll resize",n),n(),e.isAnimated()&&e.$el.on("transitionend webkitTransitionEnd",(function(){e.$el.trigger(i.Event(il+(e.isCollapsed()?"collapse-end":"expand-end")))}));e.$el.on("click",".aui-sidebar-toggle",(function(t){t.preventDefault(),e.toggle()})),i(".aui-page-panel").on("click",(function(){!e.isCollapsed()&&e.isViewportNarrow()&&e.collapse()}));var s=function(t){a(t)&&e.toggle()};function r(e){return e.keyCode===q.TAB&&!e.shiftKey&&!e.altKey}function a(e){return!(e.which!==q.LEFT_SQUARE_BRACKET||e.shiftKey||e.ctrlKey||e.metaKey||(t=e.target,"value"in t||t.isContentEditable));var t}function o(e){return e.keyCode===q.TAB&&e.shiftKey}function l(e,t){return e===t.find(":aui-tabbable")[0]}function c(e,t){return e===t.find(":aui-tabbable").last()[0]}function u(e){e.attr("persistent",""),e.find(":aui-tabbable").first().focus(),setTimeout((function(){e.removeAttr("persistent")}),100)}i(document).on("keypress",s),e._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},e.$el.on("touchend",(function(t){e.isCollapsed()&&(e.expand(),t.preventDefault())})),e.$el.tooltip(Xo(Xo({},hl),{},{live:e.collapsedTriggersSelector,suppress:function(){const t=i(this),n=!1===e.isCollapsed();return!0===ll(t)||n}})),e.$el.tooltip(Xo(Xo({},hl),{},{aria:!1,live:e.toggleSelector,title:function(){return e.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}})),e.$el.on("keydown",e.collapsedTriggersSelector,(function(t){if(e.isCollapsed()){var n=t.target,s=ol(n);if(!s)return;var a=i(s);r(t)&&s.open&&(t.preventDefault(),u(a),a.on("keydown",(function(e){(o(e)&&l(e.target,a)||r(e)&&c(e.target,a))&&(n.focus(),i(this).off("keydown"),cl())})))}}))}(this),function(e){i(e.collapsedTriggersSelector).each((function(){var t=i(this);ul(e,t)}))}(this))}var il="_aui-internal-sidebar-";function nl(e){return i.map(e.split(" "),(function(e){return il+e})).join(" ")}function sl(){return document.querySelectorAll(tl.prototype.inlineDialogSelector)}function rl(){this.inlineDialog=null}function al(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function ol(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function ll(e){return 0!==al(e).length}function cl(){var e=sl();Array.prototype.forEach.call(e,(function(e){e.open=!1}))}function ul(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),ll(t))){var n=document.createElement("aui-inline-dialog"),s=Oi("sidebar-submenu");return t.attr("aria-controls",s),t.attr("data-aui-trigger",""),G.init(t),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),e.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(tl.prototype.inlineDialogClass),document.body.appendChild(n),G.init(n),function(e,t,n){n.addEventListener("aui-layer-show",(function(s){if(e.isCollapsed()){if(!function(e){return"AUI-INLINE-DIALOG"!==e.target.tagName}(s)&&!function(e){return!e.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");t.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(e,t){e.addClass("active"),t.innerHTML=dl;var n=e.is("a")?e.text():e.children(".aui-nav-heading").text(),s=i(t).find(".aui-navgroup-inner");function r(e){const t=Yo(e);return Jo(t,Oi),t.hasClass("aui-expander-content")&&(t.find(".aui-expander-cutoff").remove(),t.removeClass("aui-expander-content")),t}s.children(".aui-nav-heading").attr("title",n).children("strong").text(n),r(al(e)).appendTo(s)}(t,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(e){e.removeClass("active")}(t)}))}(e,t,n),n}}tl.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=nl(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},tl.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=nl(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},tl.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},tl.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>el(this.$el)),this},tl.prototype.setPosition=I(tl.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),tl.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},tl.prototype.setCollapsedState=function(e){var t={collapsed:{},expanded:{}};t.collapsed.narrow={narrow:i.noop,wide:function(t){t._expand(e,!0)}},t.collapsed.wide={narrow:i.noop,wide:i.noop},t.expanded.narrow={narrow:i.noop,wide:function(e){e.$body.removeClass("aui-sidebar-collapsed"),e.$el.removeClass("aui-sidebar-fly-out")}},t.expanded.wide={narrow:function(e){e._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(e)?"narrow":"wide";return t[n][s][r](this),this},tl.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(il+"collapse-start",{isResponsive:e});return this.$el.trigger(t),t.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(il+"collapse-end",{isResponsive:e}))),this},tl.prototype.collapse=function(){return this._collapse(!1)},tl.prototype._expand=function(e,t){var n=i.Event(il+"expand-start",{isResponsive:t});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(e);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",s),this.$el.toggleClass("aui-sidebar-fly-out",s),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),i(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(i.Event(il+"expand-end",{isResponsive:t})),this},tl.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},tl.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},tl.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},tl.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},tl.prototype.responsiveReflow=function(e,t){if(e){if(!this.isCollapsed()&&this.isViewportNarrow(t)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else t!==this._previousViewportWidth&&this.setCollapsedState(t)},tl.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=el(this.$el),a=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);o||!a&&l||(this.setHeight(e,t,r),this.setTopPosition(e))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=e,this._previousViewportHeight=t,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},tl.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.collapse.tooltip"))):(this.collapse(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.expand.tooltip"))),this},tl.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",tl.prototype.collapsedTriggersSelector=[tl.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),tl.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",tl.prototype.tooltipClassName="aui-sidebar-section-tooltip",tl.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",tl.prototype.inlineDialogSelector="."+tl.prototype.inlineDialogClass,rl.prototype.submenu=function(e){return fl(),al(e)},rl.prototype.hasSubmenu=function(e){return fl(),ll(e)},rl.prototype.submenuHeadingHeight=function(){return fl(),34},rl.prototype.isShowing=function(){return fl(),tl.prototype.isSubmenuVisible()},rl.prototype.show=function(e,t){fl(),function(e){ol(e).open=!0}(t)},rl.prototype.hide=function(){fl(),cl()},rl.prototype.inlineDialogShowHandler=function(){fl()},rl.prototype.inlineDialogHideHandler=function(){fl()},rl.prototype.moveSubmenuToInlineDialog=function(){fl()},rl.prototype.restoreSubmenu=function(){fl()},tl.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(sl(),(function(e){return e.open}))},tl.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const dl='<div class="aui-inline-dialog-contents"><div class="aui-sidebar-submenu" ><div class="aui-navgroup aui-navgroup-vertical"><div class="aui-navgroup-inner"><div class="aui-nav-heading"><strong></strong></div></div></div></div></div>';var hl={gravity:"w",title:function(){var e=i(this);return e.is("a")||e.is("button")?e.attr("title")||e.find(".aui-nav-item-label").text()||e.data("tooltip"):e.children(".aui-nav").attr("title")||e.children(".aui-nav-heading").text()}};var pl=pe("sidebar",tl);i((function(){pl(".aui-sidebar")}));var fl=N("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});s("sidebar",pl);const gl=pl;r(42),r(529);function ml(e){var t={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(e){e.keyCode===q.ESCAPE&&n.is(":visible")&&c.hide()}};"object"!=typeof e&&(e={width:arguments[0],height:arguments[1],id:arguments[2]},e=i.extend({},e,arguments[3])),e=i.extend({},t,e);var n=i("<div></div>").addClass("aui-popup");e.id&&n.attr("id",e.id);var s=2600;i(".aui-dialog").each((function(){var e=i(this);s=e.css("z-index")>s?e.css("z-index"):s}));var r=function t(i,r){return e.width=i=i||e.width,e.height=r=r||e.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),t}(e.width,e.height);i("body").append(n),n.hide(),u(n);var a=i(".aui-blanket"),o=function(e,t){var n=i(e,t);return!!n.length&&(n.focus(),!0)},l=function(t){if(0===i(".dialog-page-body",t).find(":focus").length){if(e.focusSelector)return o(e.focusSelector,t);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",t))||o(n,i(".dialog-button-panel",t))||o(n,i(".dialog-page-menu",t))}},c={changeSize:function(t,i){(t&&t!=e.width||i&&i!=e.height)&&r(t,i),this.show()},show:function(){var t=function(){i(document).off("keydown",e.keypressListener).on("keydown",e.keypressListener),U(),0!==(a=i(".aui-blanket")).length&&e.closeOnOutsideClick&&a.on("click",(function(){n.is(":visible")&&c.hide()})),n.show(),ml.current=this,l(n),i(document).trigger("showLayer",["popup",this])};t.call(this),this.show=t},hide:function(){i(document).unbind("keydown",e.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&V();var t=document.activeElement;this.element.has(t).length&&t.blur(),i(document).trigger("hideLayer",["popup",this]),ml.current=null,this.enable()},element:n,remove:function(){n.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=i("<div class='dialog-blanket'> </div>").css({height:n.height(),width:n.width()}),n.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return c}var vl=function(){function e(e,t,n,s){e.buttonpanel||e.addButtonPanel(),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<button></button>").html(t).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function t(e,t,n,s,r){e.buttonpanel||e.addButtonPanel(),r||(r="#"),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<a></a>").html(t).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function n(e,t){var i="left"==e?-1:1;return function(e){var n=this.page[t];if(this.id!=(1==i?n.length-1:0)){i*=e||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==t&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(e){return function(){this.page[e].splice(this.id,1);for(var t=0,i=this.page[e].length;t<i;t++)this.page[e][t].id=t;this.item.remove()}}e.prototype.moveUp=e.prototype.moveLeft=n("left","button"),e.prototype.moveDown=e.prototype.moveRight=n("right","button"),e.prototype.remove=s("button"),e.prototype.html=function(e){return this.item.html(e)},e.prototype.onclick=function(e){let t=this;if(void 0===e)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===e.call(this,t.page.dialog,t.page,i)},"function"==typeof e&&this.item.click(this._onclick)};var r=function(e,t,n,s,r){n instanceof i||(n=i(n)),this.dialog=e.dialog,this.page=e,this.id=e.panel.length,this.button=i("<button></button>").html(t).addClass("item-button"),r&&(this.button[0].id=r),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",e.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var a=e.panel.length,o=this;e.menu.append(this.item),e.body.append(this.body),e.panel[a]=this;var l=function(){var t;e.curtab+1&&((t=e.panel[e.curtab]).body.hide(),t.item.removeClass("selected"),"function"==typeof t.onblur&&t.onblur()),e.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof e.ontabchange&&e.ontabchange(o,t)};this.button.click?this.button.click(l):(h("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?e.menu.css("display","none"):e.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(e){return e?(this.body.html(e),this):this.body.html()},r.prototype.setPadding=function(e){return isNaN(+e)||(this.body.css("padding",+e),this.padding=+e,this.page.recalcSize()),this};var a=function(e,t){this.dialog=e,this.id=e.page.length,this.element=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<ul></ul>").addClass("dialog-page-menu").css("height",e.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],t&&this.body.addClass(t),e.popup.element.append(this.element.append(this.menu).append(this.body)),e.page[e.page.length]=this};function o(e,t,n){var s={};+e||(e=(s=Object(e)).width,t=s.height,n=s.id),this.height=t||480,this.width=e||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=ml(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var e=this.header?62:0,t=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-e-t;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(e,t,i,n){return new r(this,e,t,i,n),this.recalcSize(),this},a.prototype.addHeader=function(e,t){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(e||"").addClass("dialog-title"),t&&this.header.addClass(t),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},a.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(e,t){return this.page[this.curpage].addHeader(e,t),this},o.prototype.addButton=function(e,t,i){return this.page[this.curpage].addButton(e,t,i),this},o.prototype.addLink=function(e,t,i,n){return this.page[this.curpage].addLink(e,t,i,n),this},o.prototype.addSubmit=function(e,t){return this.page[this.curpage].addButton(e,t,"button-panel-submit-button"),this},o.prototype.addCancel=function(e,t){return this.page[this.curpage].addLink(e,t,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(e,t,i,n){return this.page[this.curpage].addPanel(e,t,i,n),this},o.prototype.addPage=function(e){return new a(this,e),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(e){return this.page[this.curpage].hide(),this.curpage=e,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(e,t){var i=null==t?this.curpage:e;return null==t&&(t=e),this.page[i].panel[t]},o.prototype.getPage=function(e){return this.page[e]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(e,t){if(null!=t){var i=e.id||e;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===t?e:t)},o.prototype.show=function(){return this.popup.show(),k("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),k("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),k("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(e){var t=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(e+"").replace(r,(function(e,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&t.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&t.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&t.push(d[h][n][r]),"header"==n&&d[h].header&&t.push(d[h].header)}else t=t.concat(d)}));for(var a={length:t.length},o=t.length;o--;)for(var l in a[o]=t[o],t[o])l in a||function(e){a[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var e=0,t=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>e&&(e=Math.min(t,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:e||this.height});this.page[0].menu.height(e),this.height=e+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();vl=M(vl,"Dialog constructor",{alternativeName:"Dialog2"}),ml=M(ml,"Dialog popup constructor",{alternatveName:"Dialog2"}),s("Dialog",vl),s("popup",ml);const bl=!1;var yl=-1!==navigator.platform.indexOf("Mac"),wl=-1!==navigator.userAgent.indexOf("Safari"),_l=/^(backspace|tab|r(ight|eturn)|s(hift|pace|croll)|c(trl|apslock)|alt|pa(use|ge(up|down))|e(sc|nd)|home|left|up|d(el|own)|insert|f\d\d?|numlock|meta)/i;const kl=e=>{const t=e[0];if(t){const e=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",e,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}};function Cl(e){var t=[],n=i.Callbacks();function s(e){!ml.current&&n&&n.fire(e)}function r(e){e.preventDefault()}function a(e){(e&&e.split?i.trim(e).split(" "):[e]).forEach((function(e){!function(e){var n=e instanceof Array?e:function(e){var t=[],i="";for(;e.length;){var n=e.match(/^(ctrl|meta|shift|alt)\+/i),s=e.match(_l);n?(i+=n[0],e=e.substring(n[0].length)):s?(t.push(i+s[0]),e=e.substring(s[0].length),i=""):(t.push(i+e[0]),e=e.substring(1),i="")}return t}(e.toString()),a=function(e){var t=e.length;for(;t--;)if(e[t].length>1&&"space"!==e[t])return!0;return!1}(n)?"keydown":"keypress";t.push(n),i(document).on(a,bl,n,s),i(document).on(a+" keyup",bl,n,r)}(e)}))}function o(e,t,i,n){var s="(",r=")";return n&&n.workaroundJaws&&(s="",r=""),i?t+=" "+s+I18n.getText("aui.keyboard.shortcut.type.x",e.shift()):(t=t.replace(/\)$/,""),t+=" "+I18n.getText("aui.keyboard.shortcut.or.x",e.shift())),e.forEach((function(e){t+=" "+I18n.getText("aui.keyboard.shortcut.then.x",e)})),t+=r}return a(e),Cl.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",r=t.slice(),a=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=n.data("kbShortcutAppendedScreenReader")||"",u=n.attr("aria-label"),d=!l,h=!c,p=d?s:s.substring(0,s.length-l.length),f=h?s:u.substring(0,u.length-c.length);r.length;){var g=r.shift();a.some((function(e){return(0,Ve.isEqual)(g,e)}))||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}yl&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧"),c=c.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",p+l),n.attr("aria-label",f+c),n.data("kbShortcutAppended",l),n.data("kbShortcutAppendedScreenReader",c),n.data("boundKeyCombos",a.concat(t))},removeShortcutsFromTitle:function(e){var t=i(e),n=t.data("kbShortcutAppended");if(n){var s=t.attr("title");t.attr("title",s.replace(n,"")),t.attr("aria-label",s.replace(n,"")),t.removeData("kbShortcutAppended"),t.removeData("kbShortcutAppendedScreenReader"),t.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}Cl.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,r=e.removeShortcutsFromTitle,a=e.keypressHandler,o=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return t.add((function(){const t=i(n);let s=t.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(e){e.keyCode===q.ESCAPE&&s&&s.removeClass(r)})),s.length&&s.removeClass(r),s=e(s,t,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())})),this}}return{moveToNextItem:c((function(e,t,n){var s;return n&&0===e.length?t.eq(0):(s=i.inArray(e.get(0),t))<t.length-1?(s+=1,t.eq(s)):n?t.eq(0):e})),moveToPrevItem:c((function(e,t,n){var s;return n&&0===e.length?t.filter(":last"):(s=i.inArray(e.get(0),t))>0?(s-=1,t.eq(s)):n?t.filter(":last"):e})),click:function(e){return l.push(e),s(e),t.add((function(){const t=i(e);kl(t)})),this},goTo:function(e){return t.add((function(){window.location.href=e})),this},followLink:function(e){return l.push(e),s(e),t.add((function(){var t=i(e)[0];t&&{a:!0,link:!0}[t.nodeName.toLowerCase()]&&(window.location.href=t.href)})),this},execute:function(e){var i=this;return t.add((function(){e.apply(i,arguments)})),this},evaluate:function(e){e.call(this)},moveToAndClick:function(e){return l.push(e),s(e),t.add((function(){const t=i(e);t.length>0&&(kl(t),t.moveTo())})),this},moveToAndFocus:function(e){return l.push(e),s(e),t.add((function(t){var n=i(e);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&t.preventDefault())})),this},or:function(e){return n(e),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var e=0,t=l.length;e<t;e++)r(l[e]);l=[]}}},Cl.fromJSON=function(e,t){var n=[];return e&&i.each(e,(function(e,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(e){f("When using a parameter array, array must be in strict JSON format: "+a)}i.isArray(o)||f("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];i.each(s.keys,(function(){var e=this;t&&yl&&(e=i.map(e,(function(e){return e.replace(/ctrl/i,"meta")})));var s=Cl(e);s[r].apply(s,o),n.push(s)}))})),n},i(document).on("iframeAppended",(function(e,t){i(t).load((function(){i(t).contents().on("keyup keydown keypress",(function(e){wl&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)}))}))})),s("whenIType",Cl);const xl=Cl,{FocusManager:El,InlineDialog2:Tl,LayerManager:Dl,ProgressiveDataSet:Al,clone:Sl,debounce:Nl,debounceImmediate:Ol,dim:Il,escapeHtml:Ml,formValidation:Pl,id:Ll,isClipped:Rl,keyCode:$l,layer:jl,messages:Fl,populateParameters:Hl,params:Bl,responsiveheader:Wl,select:Ul,tablessortable:Vl,tabs:zl,undim:Yl,_addID:ql}=window.AJS,{contextPath:Kl}=window.AJS})(),a})()}));
|
|
102
104
|
//# sourceMappingURL=aui-prototyping.nodeps.js.map
|