@atlassian/aui 9.4.0 → 9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!!
2
2
  * @atlassian/aui - Atlassian User Interface library
3
- * @version v9.4.0
3
+ * @version v9.4.1
4
4
  * @link https://aui.atlassian.com
5
5
  * @license Apache-2.0
6
6
  * @author Atlassian Pty Ltd.
@@ -98,5 +98,5 @@
98
98
  * @author Christian Bach/christian.bach@polyester.se
99
99
  * @contributor Rob Garrison/https://github.com/Mottie/tablesorter
100
100
  */
101
- !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 a(i,n,s){if(!n)return"";var a,r=i.config,o=r.textExtraction||"",l="";return l="basic"===o?e(n).attr(r.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(a=t.getColumnData(i,o,s))?a(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function r(e,n,s,r){for(var o,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=a(e,c=n[s].cells[r],r),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+r+': "'+u+'"')):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,a,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")),a={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=r(e,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),a.parsers[l]=h,a.extractors[l]=p;v+=a.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=a.parsers,g.extractors=a.extractors}function l(s){var r,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&&t.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],r=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=r.normalized.length-1,r.normalized[o][y.columns].$row=r.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!==C[d]?(o=a(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,r.normalized.push(f)}r.colMax=b,y.totalRows+=r.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,a){var r,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=(r=v[d].normalized).length,u=0;u<o;u++)m.push(r[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(r[u][p.columns].$row);t.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),a||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 a,r,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){r=e(this),a=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(r,[i,c]))&&"string"==typeof o&&(c=o),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(r,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(r,a,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(r,a,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),r.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,r.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&r.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,a,r=i.config;r.$headers.each((function(o,l){s=e(l),a=t.getColumnData(i,r.headers,o,!0),n="false"===t.getData(l,a,"sorter")||"false"===t.getData(l,a,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))}))}function f(i){var n,s,a,r=i.config,o=r.sortList,l=o.length,c=t.css.sortNone+" "+r.cssNone,u=[t.css.sortAsc+" "+r.cssAsc,t.css.sortDesc+" "+r.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(r.$extraHeaders).removeClass(u.join(" "));for(r.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=r.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(a=0;a<n.length;a++)n[a].sortDisabled||n.eq(a).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}r.$headers.not(".sorter-false").each((function(){var i=e(this),n=this.order[(this.count+1)%(r.sortReset?3:2)],s=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(e,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 a,r,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&&(r=n,d.$headers.each((function(){this===r||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)}))),r=n.column,h){if(d.sortList=[],null!==d.sortForce)for(a=d.sortForce,o=0;o<a.length;o++)a[o][0]!==r&&d.sortList.push(a[o]);if((l=n.order[n.count])<2&&(d.sortList.push([r,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([r+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(r,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]===r&&(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([r,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([r+o,l])}if(null!==d.sortAppend)for(a=d.sortAppend,o=0;o<a.length;o++)a[o][0]!==r&&d.sortList.push(a[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(e){var i,a,r,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),a=0;a<w;a++)c=m.cache[a].colMax,m.cache[a].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((r=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(r="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],r,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,r=n.$table;r.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,a){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,a)})).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,r.find(n.selectorRemove).remove();var c,u,d,h,p=r.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?a(i,s,h):n.extractors[h].format(a(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(r,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,C=r.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?a(i,l[d].cells[f],f):n.extractors[f].format(a(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(r,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,a,o,u){var d=i.config;n.stopPropagation(),r.trigger("sortStart",this),function(t,i){var n,s,a,r,o,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,(function(t,i){if(r=parseInt(i[0],10),a=l.$headers.filter('[data-column="'+r+'"]: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=a.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":a.count=a.count+1,s=a.order[a.count%(l.sortReset?3:2)];break;default:s=0}o=0===t?s:o,n=[r,parseInt(s,10)||0],l.sortList.push(n),s=e.inArray(n[1],a.order),a.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,a),f(i),d.delayInit&&s(d.cache)&&l(i),r.trigger("sortBegin",this),v(i),c(i,u),r.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 a,r="",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=((a=e.fn.jquery.split("."))[0]=parseInt(a[0],10),a[0]>1||1===a[0]&&parseInt(a[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"))||(r=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=c.addClass(t.css.table+" "+s.tableClass+r).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 a,r=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[r.$headers.index(r.$headers.filter('[data-column="'+n+'"]:last'))];for(a in i)if("string"==typeof a&&(s?r.$headers.eq(n).filter(a):r.$headers.filter('[data-column="'+n+'"]:last').filter(a)).length)return i[a]}},t.computeColumnIndex=function(t){var i,n,s,a,r,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],r=e(o),u=(c=o.parentNode.rowIndex)+"-"+r.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),r.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],a=p;a<p+h;a++)f[a]="x"}return v+1},t.isProcessing=function(i,n,s){var a=(i=e(i))[0].config,r=s||i.find("."+t.css.header);n?(void 0!==s&&a.sortList.length>0&&(r=r.filter((function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),a.sortList)>=0}))),i.add(r).addClass(t.css.processing+" "+a.cssProcessing)):i.add(r).removeClass(t.css.processing+" "+a.cssProcessing)},t.processTbody=function(t,i,n){var s;if(t=e(t)[0],n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},t.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},t.bindEvents=function(t,i,n){var a,r=(t=e(t)[0]).config;!0!==n&&(r.$extraHeaders=r.$extraHeaders?r.$extraHeaders.add(i):i),i.find(r.selectorSort).add(i.filter(r.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(r.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()-a>250)){if("mousedown"===u)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!r.cancelSelection;r.delayInit&&s(r.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=r.$headers[i.index(c)]).sortDisabled||m(t,c,n)}})),r.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 a=e(i),r=i.config,o=a.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+r.cssHeaderRow),c=a.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",r.widgets)>=0&&(a.trigger("applyWidgetId",["uitheme"]),a.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),a.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(r.namespace+" ")),r.$headers.add(c).removeClass([t.css.header,r.cssHeader,r.cssAsc,r.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(r.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(r.namespace+" ")),t.restoreHeaders(i),a.toggleClass(t.css.table+" "+r.tableClass+" tablesorter-"+r.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},t.sortNatural=function(e,i){if(e===i)return 0;var n,s,a,r,o,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(r=parseInt(i.match(d.hex),16)))return-1;if(s>r)return 1}for(n=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),a=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,a.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(a[c])?a[c]||0:parseFloat(a[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:-r||-1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:r||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:r||1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:-r||-1:t.sortNatural(i,e)},t.sortText=function(e,t){return e>t?1:e<t?-1:0},t.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,a=i+t;for(n=0;n<s;n++)a+=e.charCodeAt(n);return t*a}return 0},t.sortNumericAsc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"áàâãäąå",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 a,r,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(a=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,(function(t,i){return e.inArray(t,l.widgets)===i})),e.each(l.widgets||[],(function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)})),u.sort((function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?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&&(r=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+r+" widget"+(1!==r?"s":""),a)))},t.refreshWidgets=function(n,s,a){var r,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(r=0;r<u;r++)c[r]&&c[r].id&&(s||e.inArray(c[r].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[r].id+'"'),c[r].hasOwnProperty("remove")&&o.widgetInit[c[r].id]&&(c[r].remove(n,o,o.widgetOptions),o.widgetInit[c[r].id]=!1));!0!==a&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,a,r="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),a=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?r+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?r+=s[n]:i&&void 0!==i[n]?r+=i[n]:" "!==a&&a.match(" "+n+"-")&&(r=a.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(r)):""},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("."):"",a="",r=s.length;for(n=0;n<r;n++)a+=("00"+s[n]).slice(-3);return e?t.formatFloat(a,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(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 a=i.config,r=a.$headers.filter("[data-column="+s+"]:last"),o=r.length&&r[0].dateFormat||t.getData(r,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,a=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[a]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var a,r,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(a=h.eq(u)).children("tr").length>1&&(o=0,a.children("tr:visible").not(n.selectorRemove).each((function(){r=e(this),d.test(this.className)||o++,l=o%2==0,r.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,a,r=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<r.length;s++)(a=e.tablesorter.processTbody(t,r.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,a,!1)}})}(jQuery)},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,a,r,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,a=function(){return c++},o.on("mousemove",(function(e){u.x=e.pageX,u.y=e.pageY})),i=O(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,r,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"+a()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(r=function(){return i.element.closest("body")},c=!1,function(){return!1===c&&(o=r(),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 a=n.scrollTop();s>0&&a-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,a,r,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,a){var r,l=this.opts.id;(r=function(n,s,c){var u,d,h,p,f,g,m,v,b,y;for(u=0,d=(n=i.sortResults(n,s,a)).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,a,o.opts.escapeMarkup))!==t&&v.html(y),m.append(v),g&&((b=e("<ul></ul>")).addClass("select2-result-sub"),r(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&&(a=i.id,i.id=function(e){return e[a]}),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,a,r={results:[],more:!1},l=e.term;a=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){a(t,n.children)})),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2((function(e,t){a(t,r.results)})),e.callback(r)})),i.id=function(e){return e.id},i.formatResultCssClass=function(e){return e.css}):"query"in i||("ajax"in i?((r=i.element.data("ajax-url"))&&r.length>0&&(i.ajax.url=r),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===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,a,r=this.dropdown,o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=r.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(),_=r.outerWidth(!1),C=b+_<=g;r.hasClass("select2-drop-above")?(i=!0,!w&&y&&(n=!0,i=!1)):(i=!1,!y&&w&&(n=!0,i=!0)),n&&(r.hide(),o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=r.outerHeight(!1),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,C=(b=o.left)+(_=r.outerWidth(!1))<=g,r.show()),this.opts.dropdownAutoWidth?(a=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),(_=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:l.width))>u?u=_:_=u,C=b+_<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(v-=(t=this.body().offset()).top,b-=t.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"),r.addClass("select2-drop-above")):(s.top=v,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=e.extend(s,A(this.opts.dropdownCss)),r.css(s)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var t,i=this.containerId,n="scroll."+i,s="resize."+i,a="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",(function(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 r=this;this.container.parents().add(window).each((function(){e(this).on(s+" "+n+" "+a,(function(e){r.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,a,r,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>(a=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(s-a)),(r=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+r)):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(),a=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind((function(r){n.opened()&&(n.opts.populateResults.call(this,e,r.results,{term:s,page:i,context:a}),n.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).text(n.opts.formatLoadMore(i+1)),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=r.context,this.opts.element.trigger({type:"select2-loaded",items:r}))}))}))},tokenize:function(){},updateResults:function(i){var n,s,a,r=this.search,o=this.results,l=this.opts,c=this,u=r.val(),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())){a=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&T(l.formatSelectionTooBig,"formatSelectionTooBig"))))return r.val().length<l.minimumInputLength?(T(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+l.formatInputTooShort(r.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&r.val().length>l.maximumInputLength?T(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+l.formatInputTooLong(r.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+l.formatSearching()+"</li>"),r.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=t&&null!=s&&r.val(s),this.resultsPage=1,l.query({element:l.element,term:r.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var s;a==this.queryCount&&(this.opened()?(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==r.val()&&(s=this.opts.createSearchChoice.call(c,r.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&&T(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+l.formatNoMatches(r.val())+"</li>"):(o.empty(),c.opts.populateResults.call(this,o,n.results,{term:r.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(){r.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,a,r;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(a=0,r=(n=i.split(";")).length;a<r;a+=1)if(null!==(s=n[a].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=O(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'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].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"+a()),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(),a=null;t.query({matcher:function(e,i,n){var r=g(s,t.id(n));return r&&(a=n),r},callback:e.isFunction(n)?function(){n(a)}: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 a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(S(e.results)>=a)}},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,a=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:a});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:a})}))}},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=O(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),a=[];t.query({matcher:function(i,n,r){var o=e.grep(s,(function(e){return g(e,t.id(r))})).length;return o&&a.push(r),o},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<s.length;i++)for(var r=s[i],o=0;o<a.length;o++){var l=a[o];if(g(r,t.id(l))){e.push(l),a.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"+a()),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)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=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=a.length?a:null:i.which===d.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=s.length?s:a):i.which==d.DELETE?(this.unselect(n.first()),this.search.width(10),o=a.length?a: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==r.offset&&!r.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,a=!i.locked,r=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=a?r:o,c=this.id(i),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),a&&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 a=e.Event("select2-removing");a.val=this.id(i),a.choice=i,this.opts.element.trigger(a),a.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"),a=this.results.find(".select2-result-with-children"),r=this;s.each2((function(e,t){f(r.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))})),a.each2((function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&r.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&T(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+r.opts.formatNoMatches(r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-v(this.search)},resizeSearch:function(){var t,i,n,s,a=v(this.search);t=function(t){if(!r){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(r=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(r)}return r.text(t.val()),r.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-a)<t&&(s=n-a),s<40&&(s=n-a),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e: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,a=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,a.id);a.setVal(i),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(s,a.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw 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,a=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 a.opts.id(e)})),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,a,r,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)),(a=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,(a=e(this).data("select2"))===t)return;if("container"===(r=c[0])?o=a.container:"dropdown"===r?o=a.dropdown:(p[r]&&(r=p[r]),o=a[r].apply(a,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 C(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 a,r,o,l,c,u=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(r=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((r=e.indexOf(c))>=0));o++);if(r<0)break;if(a=e.substring(0,r),e=e.substring(r+c.length),a.length>0&&(a=s.createSearchChoice.call(this,a,i))!==t&&null!==a&&s.id(a)!==t&&null!==s.id(a)){for(d=!1,o=0,l=i.length;o<l;o++)if(g(s.id(a),s.id(i[o]))){d=!0;break}d||n(a)}}return u!==e?e:void 0},escapeMarkup:k,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:D},util:{debounce:y,markMatch:C,escapeMarkup:k,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,a;if(null===t||t.length<1)return[];for(s=0,a=(n=t.split(i)).length;s<a;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,a,r=[];(s=t.attr("class"))&&e((s=""+s).split(" ")).each2((function(){0===this.indexOf("select2-")&&r.push(this)})),(s=i.attr("class"))&&e((s=""+s).split(" ")).each2((function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)})),t.attr("class",r.join(" "))}function C(e,t,i,n){var s=p(e.toUpperCase()).indexOf(p(t.toUpperCase())),a=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+a))),i.push("</span>"),i.push(n(e.substring(s+a,e.length))))}function k(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))}function x(i){var n,s=null,a=i.quietMillis||100,r=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,a=r,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},d=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,a="function"==typeof a?a.call(o,l.term,l.page,l.context):a,s&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(d,i.params.call(o)):e.extend(d,i.params)),e.extend(d,{url:a,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page);l.callback(t)}}),s=c.call(o,d)}),a)}}function E(t){var i,n,s=t,a=function(e){return""+e.text};e.isArray(s)&&(s={results:n=s}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var r=s();return r.text&&(a=r.text,e.isFunction(a)||(i=r.text,a=function(e){return e[i]})),function(t){var i,n=t.term,r={results:[]};""!==n?(i=function(s,r){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2((function(e,t){i(t,o.children)})),(o.children.length||t.matcher(n,a(o),s))&&r.push(o)}else t.matcher(n,a(s),s)&&r.push(s)},e(s().results).each2((function(e,t){i(t,r.results)})),t.callback(r)):t.callback(s())}}function D(i){var n=e.isFunction(i);return function(s){var a=s.term,r={results:[]};e(n?i():i).each((function(){var e=this.text!==t,i=e?this.text:this;(""===a||s.matcher(a,i))&&r.results.push(e?this:{id:this,text:this})})),s.callback(r)}}function T(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 O(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}},115:t=>{"use strict";t.exports=e},564:e=>{"use strict";e.exports=t},511:e=>{"use strict";e.exports=i}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.r(r),a.d(r,{$:()=>Me,CheckboxMultiselectEl:()=>Yn,DatePicker:()=>go,DropdownEl:()=>an,FancyFileInput:()=>Kn,FocusManager:()=>vl,Header:()=>so,I18n:()=>I18n,InlineDialog2:()=>bl,InlineDialogEl:()=>ma,ItemCheckboxEl:()=>tn,ItemLinkEl:()=>en,ItemRadioEl:()=>nn,LabelEl:()=>Xn,LayerManager:()=>yl,MessageEl:()=>fn,NavigationEl:()=>ya,ProgressBarEl:()=>Ia,ProgressiveDataSet:()=>wl,RestfulTable:()=>Ro,SectionEl:()=>sn,SelectEl:()=>Ls,SpinnerEl:()=>Ke,TabContainerEl:()=>tr,TabItemEl:()=>ir,TabPaneEl:()=>nr,ToggleEl:()=>Js,_addID:()=>Fl,banner:()=>Fe,bind:()=>b,clone:()=>_l,contextPath:()=>Hl,debounce:()=>Cl,debounceImmediate:()=>kl,dialog2:()=>nt,dim:()=>xl,error:()=>h,escapeHtml:()=>El,flag:()=>_n,formValidation:()=>Dl,format:()=>f,id:()=>Tl,isClipped:()=>Al,keyCode:()=>Sl,layer:()=>Ol,log:()=>u,messages:()=>Il,navigation:()=>wa,params:()=>Pl,populateParameters:()=>Nl,progressBars:()=>Pa,responsiveheader:()=>Ml,select:()=>Ll,sidebar:()=>ol,tablessortable:()=>Rl,tabs:()=>$l,toInit:()=>Re,trigger:()=>w,unbind:()=>y,undim:()=>jl,version:()=>m,warn:()=>d,whenIType:()=>ml});var e=a(564),t=a.n(e);const i=window.jQuery||window.Zepto||t();function n(e,t){return"object"!=typeof window.AJS&&(window.AJS={}),window.AJS[e]=t}var s=a(953),o=a.n(s);function l(e,t){var n=i(e);return void 0===t&&(t=!0),n.each((function(){this.disabled=!t}))}function c(e){return function(){"undefined"!=typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}o()("checkbox",{type:o().type.CLASSNAME,attached:function(e){t()("input[type=checkbox]",e).each((function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(e){t()(".aui-form-glyph",e).remove()}}),o()("radio",{type:o().type.CLASSNAME,attached:function(e){t()("input[type=radio]",e).each((function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(e){t()(".aui-form-glyph",e).remove()}}),n("enable",l),n("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 u=c("log"),d=c("warn"),h=c("error");function p(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,a=/^(\d+)([#<])(.+)/,r=function(t,r){var o,l="";if(o=t.match(i))l=r.length>++t?r[t]:"";else if(o=t.match(n))l=r.length>++o[1]?r[o[1]]:"";else if(o=t.match(s)){var c=r.length>++o[1]?r[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,f=null,g=0;g<u.length;g++){var m=u[g].match(a);if(null!=m){var v=parseInt(m[1],10);if(c<v){if(f){l=f;break}l=m[3];break}if(c==v&&"#"==m[2]){l=m[3];break}g==u.length-1&&(l=m[3]),f=m[3]}else d=!0}d&&h('The format "'+t+'" from message "'+e+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(r,1));l=p.apply(null,b)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var a=e.charAt(s);if("'"==a&&(t=!t),!t)if("{"===a)0===n&&(i=s),n++;else if("}"===a&&n>0&&0===--n){var r=[];return r.push(e.substring(0,s+1)),r.push(e.substring(0,i)),r.push(e.substring(i+1,s)),r}}return null},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+=r(s[2],i),s=o(e);return n+=e.replace(t,"")};return l.apply(null,arguments)}n("error",h),n("log",u),n("warn",d),n("format",p);const f=p;var g="9.4.0";n("version",g);const m=g,v=i(window);function b(e,t,i){try{return"function"==typeof i?v.on(e,false,t,i):v.on(e,false,t)}catch(e){u("error while binding: ",e.message)}}function y(e,t){try{return v.off(e,t)}catch(e){u("error while unbinding: ",e.message)}}function w(e,t){try{return v.trigger(e,t)}catch(e){u("error while triggering: "+e.message)}}n("bind",b),n("trigger",w),n("unbind",y);const _={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},C=new RegExp(`[${Object.keys(_).join("")}]`,"g");function k(e){return e.replace(C,(e=>_[e]))}n("escapeHtml",k);const x=k;var E=Object.prototype.hasOwnProperty,D=[];function T(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function A(e,t){if("function"==typeof e)return e;var i=!1;return t=t||{},function(n){var s,a=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===D.indexOf(a)){D.push(a),i=!0;var r="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&&(r+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(r+=" "+t.extraInfo),a=""===a?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+a,t.extraObject?T(r+="\n",t.extraObject,a):T(r,a)}}}function S(e,t){var n=e.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:t},e.options);A("'"+e.selector+"' pattern"+n,s)()}function O(e,t,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=A(t||e.name||"this function",i);return function(){return n(),e.apply(this,arguments)}}function I(e,t,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=O(e,t,n);return s.prototype=e.prototype,i.extend(s,e),s}var N=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),N=!0)}catch(e){}function P(e,t,i){if("function"==typeof e[t]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||t;e[t]=O(e[t],n,i)}else!function(e,t,i){if(N){var n=e[t];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=A(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 M(e){return function(t){for(var i={selector:t,options:e||{}},n=document.querySelectorAll(t),s=0;s<n.length;s++)S(i,n[s]);!function(e){if(R.push(e),!$){$=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&&R.forEach(L(n))}}))}));var t={childList:!0,subtree:!0};$.observe(document,t)}}(i)}}function L(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)&&S(t,e)}}const R=[];let $;function j(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}var F;n("deprecate",{fn:O,construct:I,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(M(t))},prop:P,obj:function(e,t,n){for(var s in n=n||{},e)E.call(e,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=t+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,P(e,s,i.extend({},n)))},propertyDeprecationSupported:N,getMessageLogger:A});var H=[];function B(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"),H.push(e))})),F||(F=document.body),!0===e&&V();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||(j(B.$dim),B.cachedOverflow={overflow:F.style.overflow,overflowX:F.style.overflowX,overflowY:F.style.overflowY},F.style.overflowX="hidden",F.style.overflowY="hidden",F.style.overflow="hidden"),B.$dim.removeAttr("hidden"),t&&B.$dim.css({zIndex:t}),B.$dim}function W(){H.forEach((function(e){e.removeAttribute("aria-hidden")})),H=[],B.$dim&&(B.$dim[0].setAttribute("hidden",""),F&&(F.style.overflow=B.cachedOverflow.overflow,F.style.overflowX=B.cachedOverflow.overflowX,F.style.overflowY=B.cachedOverflow.overflowY))}var V=A("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});n("dim",B),n("undim",W);var U={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};n("keyCode",U);const z=U;function Y(e,t){window.define&&(0,window.define)(e,[],(function(){return t}));return t}const q=o().noConflict();const K=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 J(e){return K(e).get("last-trigger")||Z(e)[0]}function G(e,t){var i=t&&t.nodeType&&1===t.nodeType;return K(e).set("last-trigger",!!i&&t)}function Q(e,t){var i=J(e);i&&t(i)}function X(e,t){return Array.prototype.forEach.call(Z(e),t)}function Z(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 a=document.querySelectorAll(i),r=Array.prototype.slice.apply(a).concat(n);return 0===r.length&&!0===s&&d([`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(" ")),r}function ee(e){return document.getElementById(e.getAttribute("aria-controls"))}function te(e){return"true"!==e.getAttribute("aria-disabled")}function ie(e,t){if(te(e)){var i=ee(e);i&&i.message&&i.message(t)}}const ne={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(ie(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==z.ENTER&&i!==z.SPACE||(t.preventDefault(),t.type="click",ne.click(e,t))},mouseenter(e,t){ie(e,t)},mouseleave(e,t){ie(e,t)},focus(e,t){ie(e,t)},blur(e,t){(function(e,t){let n=t.relatedTarget;return n||(n=document.activeElement),i(ee(e)).find(n).length>0})(e,t)||ie(e,t)}};Object.keys(ne).forEach((function(e){const t=ne[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:a,which:r}=e;return{type:t,data:"keydown"===t?r||a:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))}))})),q("data-aui-trigger",{type:q.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return te(this)}}}),Y("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 a=t.parentNode,r=a.name,o=i("img[usemap=#"+r+"]").get();return!(!t.href||!r||"map"!==a.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 se="_aui-focus-restore";function ae(e){return e.is(".aui-dialog2")}function re(){this._focusTrapStack=[],this._handler}function oe(e,t){if(0===e.length)return;if(t.keyCode!==z.TAB)return;const n=t.shiftKey?-1:1,s=t.target,a=e[e.length-1],r=a.find(":aui-tabbable");if(!r.length)return;const o=r.index(s);let l=-1;if(o>-1)l=o;else{let e;if(e=i(s).closest(".aui-layer"),!e.length){e=a.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=J(e.get(0));l=r.index(t)}}}l=l>-1?(l+n)%r.length:0,"IFRAME"!==r.get(l).nodeName&&(r.eq(l).trigger("focus"),t.preventDefault())}let le;function ce(){return le||(le=new re),le}re.defaultFocusSelector=":aui-tabbable",re.prototype.enter=function(e,t){if(function(e,t=document.activeElement){e.data(se,t)}(e,t),"false"!==e.attr("data-aui-focus")){var n=e.attr("data-aui-focus-selector")||re.defaultFocusSelector;(e.is(n)?e:e.find(n)).first().trigger("focus")}ae(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=oe.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},re.prototype.exit=function(e){ae(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(se))}(e);n.length&&(e.removeData(se),n.trigger("focus"))}},ce.global=ce(),n("FocusManager",ce);const ue=ce;function de(e,t){var n="_aui-widget-"+e;return function(e,s){var a,r;i.isPlainObject(e)?r=e:(a=e,r=s);var o,l=a&&i(a);return l&&l.data(n)?o=l.data(n):(l=(o=new t(l,r||{})).$el).data(n,o),o}}let he;!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(he=window.CustomEvent)}catch(e){}he=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},he.prototype=window.Event.prototype}();const pe=he,fe="_aui-internal-layer-",ge="_aui-internal-layer-global-";var me=i(document);function ve(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(a){t===a.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))}))}function be(e,t,n){var s=i.Event(fe+t),a=i.Event(ge+t),r=new pe("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new pe("aui-"+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(a,[e]),e[0].dispatchEvent(r),e[0].dispatchEvent(o),!(s.isDefaultPrevented()||a.isDefaultPrevented()||r.defaultPrevented||o.defaultPrevented)}function ye(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function we(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}ye.prototype={below:function(){return Te.global.item(Te.global.indexOf(this.$el)-1)},above:function(){return Te.global.item(Te.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(fe+e,t),this},off:function(e,t){return this.$el.off(fe+e,t),this},show:function(){return this.isVisible()||Te.global.indexOf(this.$el)>-1?this:be(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Te.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return ve(this.$el.get(0),"opacity",(function(){e.isVisible()||(this.style.display="none")}),!0),Te.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=we(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=we(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!be(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&ue.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(fe+"hide"),this.$el.trigger(ge+"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()&&ue.global.enter(this.$el),this.$el.trigger(fe+"show"),this.$el.trigger(ge+"show",[this.$el])}};var _e=de("layer",ye);function Ce(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function ke(e,t){return Ce(e,(function(e){return e[0]===t[0]}))}function xe(e){return Ce(e,(function(e){return _e(e).isBlanketed()}))}function Ee(e,t){var i=xe(e);t!==i&&(i>-1?B(!1,e[i].css("z-index")-20):W())}function De(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,a=e.length-1;a>=t;a--){s=e[a];var r=_e(s);if(i||!r.isPersistent()){if(!r._hideLayer(n))return[!1,s];e.splice(a,1)}}return[!0,s]}function Te(){this._stack=[]}function Ae(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Te.global.indexOf(t)>-1}_e.on=function(e,t,i){return me.on(ge+e,t,i),this},_e.off=function(e,t,i){return me.off(ge+e,t,i),this},Te.prototype={push:function(e){var t=e instanceof i?e:i(e);if(ke(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=_e(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()&&B(!1,s-20),this._stack.push(t),this},popLayersBeside:function(e){const t=i(e).get(0);if(!function(e){return!!J(e)}(t)){var n=xe(this._stack);return void De(this._stack,++n,!1)}const s=function(e){var t=J(e);if(t)return i(t).closest(".aui-layer").get(0)}(t);if(s){let e=this.indexOf(s);De(this._stack,++e,!1)}else De(this._stack,0,!1)},indexOf:function(e){return ke(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach((function(e){let t=_e(e);t.isBlanketed()||t.isPersistent()||t.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=ke(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var a=_e(t);if(!a.isPersistent()||a.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=ke(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var a=_e(t);if(!a.isPersistent()&&!a.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=ke(this._stack,n);if(-1===s)return null;const a=xe(this._stack),r=_e(n),[o,l]=De(this._stack,s+1,r.isBlanketed(),t);return o&&r._hideLayer(t)?(this._stack.splice(s,1),Ee(this._stack,a),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=_e(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=xe(this._stack);if(t<0)return null;var i=this._stack[t];if(_e(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=ke(this._stack,n);return De(this._stack,s,!0,e),n}return null}return De(this._stack,t,!0),Ee(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Te.global.getTopLayer();if(t){var i,n=xe(this._stack),s=_e(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Te.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=_e(t),!t||s.isPersistent())return;i=ke(this._stack,t),De(this._stack,i,!0,e),Ee(this._stack,n)}else i=ke(this._stack,t),De(this._stack,i,!0,e),Ee(this._stack,n)}}},me.on("keydown",(function(e){e.keyCode===z.ESCAPE&&(Te.global.popUntilTopPersistent(!0),e.preventDefault())})),me.on("click",".aui-blanket",(function(e){Te.global.popUntilTopBlanketed(!0)&&e.preventDefault()})),me.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&&!Ae(n)){const t=i.Event("aui-close-layers-on-outer-click");return me.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Te.global.hideAll()}if(!Ae(n)&&s.length){var a=Te.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);a&&_e(a).hide()}}})),Te.global=new Te,_e.Manager=Te,n("layer",_e);const Se=_e;n("LayerManager",Se.Manager);Se.Manager;const Oe={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},Ie=n("params",new Proxy({},{get:function(e,t){return A("AJS.params",Oe)(),e[t]}}));const Ne=O((function(e){e||(e=Ie),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"});n("populateParameters",Ne);const Pe=Ne;i((function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",m),Pe()})),n("$",i);const Me=i;function Le(e){return i.when(i.ready).then((function(){setTimeout((function(){try{e.call(this,i)}catch(t){h("Failed to run init function: "+t.message,e,t,t.stack)}}),1)})),this}n("toInit",Le);const Re=Le,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)?f.apply(null,[this.keys[e]].concat(t)):e}};n("I18n",I18n);function $e(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 je().find(".aui-banner").get().forEach((function(e){e.hasAttribute("hidden")&&i(e).remove()})),function(e){var t=je();if(!t.length)throw new Error("You must implement the application header");e.prependTo(t),j(e),e[0].removeAttribute("hidden")}(t),t[0]}function je(){return i("#header")}Y("aui/banner",$e),n("banner",$e);const Fe=$e;var He=a(511);const Be={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},We={filled:!1,size:Be.MEDIUM.name},Ve="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.",Ue=A("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Ve}),ze=A("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Ve});function Ye(e){let t=Be.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();Object.keys(Be).map((e=>e.toLowerCase())).indexOf(e)>-1&&(t=e)}return t}function qe(e){const{px:t,radius:i}=(0,He.find)(Be,(t=>t.name===e._data.size))||Be.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 a=t/2;s.setAttribute("cx",a),s.setAttribute("cy",a),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(),a=s.top+s.height/2,r=n.top+t/2;e.querySelector("svg").style.top=a-r+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const Ke=q("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){Ue(),e._data.filled=!0,qe(e)},removed:function(e){e._data.filled=!1,qe(e)}},size(e,t){e._data.size=Ye(t.newValue),qe(e)}},prototype:{get _data(){return this.__data||(this._data=(0,He.defaults)({},We))},set _data(e){return this.__data=e},set filled(e){ze(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=Ye(e);this.setAttribute("size",t)}}});function Je(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function Ge(e){return"INPUT"===e.nodeName}q("aui-button",{type:q.type.CLASSNAME,created:function(e){e._spinner=new Ke,e._spinner.setAttribute("size",Be.SMALL.name)},prototype:{busy:function(){return Ge(this)||Je(this)?(d("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 Ge(this)||!Je(this)?(d("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 Ge(this)?(d("It is not valid to call isBusy() on an input button."),!1):Je(this)}}}),Y("aui/button");const Qe=".aui-close-button",Xe=`<button type="button" class="aui-close-button" aria-label="${I18n.getText("aui.words.close")}">`;var Ze={"aui-focus":"false","aui-blanketed":"true"};function et(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 ${Xe}\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(Ze,(function(e,i){var n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)}))}et.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)};Se(i).on(e,n),this._handlers.set(t,n)}return this},et.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Se(i).off(e,n),this._handlers.delete(t)),this},et.prototype.show=function(){return Se(this.$el).show(),this},et.prototype.hide=function(){return Se(this.$el).hide(),this},et.prototype.remove=function(){return Se(this.$el).remove(),this},et.prototype.isVisible=function(){return Se(this.$el).isVisible()};var tt=de("dialog2",et),it=new Set;tt.on=function(e,t){return it.has(t)||(Se.on(e,".aui-dialog2",t),it.add(t)),this},tt.off=function(e,t){return it.has(t)&&(Se.off(e,".aui-dialog2",t),it.delete(t)),this},i(document).on("click keydown",".aui-dialog2-header .aui-close-button",(function(e){("click"===e.type||e.keyCode===z.ENTER||e.keyCode===z.SPACE)&&(e.preventDefault(),tt(i(e.target).closest(".aui-dialog2")).hide())})),tt.on("show",(function(e,t){t.find(Qe).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()})),tt.on("hide",(function(e,t){var i=Se(t);t.data("aui-remove-on-hide")&&i.remove()})),Y("aui/dialog2",tt),n("dialog2",tt);const nt=tt;var st,at,rt=a(596),ot=a.n(rt),lt=navigator.userAgent.toLowerCase(),ct=(/msie/.test(lt),/windows nt 5.1/.test(lt),/windows nt 6.0/.test(lt),/windows nt 6.1/.test(lt),/mac os x/.test(lt));function ut(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 dt(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function ht(e){var t=dt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pt(e){return e instanceof dt(e).Element||e instanceof Element}function ft(e){return e instanceof dt(e).HTMLElement||e instanceof HTMLElement}function gt(e){return e?(e.nodeName||"").toLowerCase():null}function mt(e){return(pt(e)?e.ownerDocument:e.document).documentElement}function vt(e){return ut(mt(e)).left+ht(e).scrollLeft}function bt(e){return dt(e).getComputedStyle(e)}function yt(e){var t=bt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function wt(e,t,i){void 0===i&&(i=!1);var n,s,a=mt(t),r=ut(e),o=ft(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==gt(t)||yt(a))&&(l=(n=t)!==dt(n)&&ft(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ht(n)),ft(t)?((c=ut(t)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=vt(a))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}function _t(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Ct(e){return"html"===gt(e)?e:e.assignedSlot||e.parentNode||e.host||mt(e)}function kt(e){return["html","body","#document"].indexOf(gt(e))>=0?e.ownerDocument.body:ft(e)&&yt(e)?e:kt(Ct(e))}function xt(e,t){void 0===t&&(t=[]);var i=kt(e),n="body"===gt(i),s=dt(i),a=n?[s].concat(s.visualViewport||[],yt(i)?i:[]):i,r=t.concat(a);return n?r:r.concat(xt(Ct(a)))}function Et(e){return["table","td","th"].indexOf(gt(e))>=0}function Dt(e){if(!ft(e)||"fixed"===bt(e).position)return null;var t=e.offsetParent;if(t){var i=mt(t);if("body"===gt(t)&&"static"===bt(t).position&&"static"!==bt(i).position)return i}return t}function Tt(e){for(var t=dt(e),i=Dt(e);i&&Et(i)&&"static"===bt(i).position;)i=Dt(i);return i&&"body"===gt(i)&&"static"===bt(i).position?t:i||function(e){for(var t=Ct(e);ft(t)&&["html","body"].indexOf(gt(t))<0;){var i=bt(t);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return t;t=t.parentNode}return null}(e)||t}var At="top",St="bottom",Ot="right",It="left",Nt="auto",Pt=[At,St,Ot,It],Mt="start",Lt="end",Rt="viewport",$t="popper",jt=Pt.reduce((function(e,t){return e.concat([t+"-"+Mt,t+"-"+Lt])}),[]),Ft=[].concat(Pt,[Nt]).reduce((function(e,t){return e.concat([t,t+"-"+Mt,t+"-"+Lt])}),[]),Ht=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Bt(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 Wt(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 Vt(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ut(e,t){return t===Rt?Vt(function(e){var t=dt(e),i=mt(e),n=t.visualViewport,s=i.clientWidth,a=i.clientHeight,r=0,o=0;return n&&(s=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,o=n.offsetTop)),{width:s,height:a,x:r+vt(e),y:o}}(e)):ft(t)?function(e){var t=ut(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):Vt(function(e){var t=mt(e),i=ht(e),n=e.ownerDocument.body,s=Math.max(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-i.scrollLeft+vt(e),o=-i.scrollTop;return"rtl"===bt(n||t).direction&&(r+=Math.max(t.clientWidth,n?n.clientWidth:0)-s),{width:s,height:a,x:r,y:o}}(mt(e)))}function zt(e,t,i){var n="clippingParents"===t?function(e){var t=xt(Ct(e)),i=["absolute","fixed"].indexOf(bt(e).position)>=0&&ft(e)?Tt(e):e;return pt(i)?t.filter((function(e){return pt(e)&&Wt(e,i)&&"body"!==gt(e)})):[]}(e):[].concat(t),s=[].concat(n,[i]),a=s[0],r=s.reduce((function(t,i){var n=Ut(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}),Ut(e,a));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Yt(e){return e.split("-")[0]}function qt(e){return e.split("-")[1]}function Kt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jt(e){var t,i=e.reference,n=e.element,s=e.placement,a=s?Yt(s):null,r=s?qt(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(a){case At:t={x:o,y:i.y-n.height};break;case St:t={x:o,y:i.y+i.height};break;case Ot:t={x:i.x+i.width,y:l};break;case It:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=a?Kt(a):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case Mt:t[c]=Math.floor(t[c])-Math.floor(i[u]/2-n[u]/2);break;case Lt:t[c]=Math.floor(t[c])+Math.ceil(i[u]/2-n[u]/2)}}return t}function Gt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Qt(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function Xt(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,a=i.boundary,r=void 0===a?"clippingParents":a,o=i.rootBoundary,l=void 0===o?Rt:o,c=i.elementContext,u=void 0===c?$t:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=Gt("number"!=typeof f?f:Qt(f,Pt)),m=u===$t?"reference":$t,v=e.elements.reference,b=e.rects.popper,y=e.elements[h?m:u],w=zt(pt(y)?y:y.contextElement||mt(e.elements.popper),r,l),_=ut(v),C=Jt({reference:_,element:b,strategy:"absolute",placement:s}),k=Vt(Object.assign(Object.assign({},b),C)),x=u===$t?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=e.modifiersData.offset;if(u===$t&&D){var T=D[s];Object.keys(E).forEach((function(e){var t=[Ot,St].indexOf(e)>=0?1:-1,i=[At,St].indexOf(e)>=0?"y":"x";E[e]+=T[i]*t}))}return E}var Zt={placement:"bottom",modifiers:[],strategy:"absolute"};function ei(){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 ti(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,a=void 0===s?Zt:s;return function(e,t,i){void 0===i&&(i=a);var s,r,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Zt),a),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({},a),o.options),i),o.scrollParents={reference:pt(e)?xt(e):e.contextElement?xt(e.contextElement):[],popper:xt(t)};var s=function(e){var t=Bt(e);return Ht.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 a=s({state:o,name:t,instance:u,options:n}),r=function(){};l.push(a||r)}})),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,i=e.popper;if(ei(t,i)){o.rects={reference:wt(t,Tt(i),"fixed"===o.options.strategy),popper:_t(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],a=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof a&&(o=a({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 r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!ei(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 ii={passive:!0};var ni={top:"auto",right:"auto",bottom:"auto",left:"auto"};function si(e){var t,i=e.popper,n=e.popperRect,s=e.placement,a=e.offsets,r=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}}(a),u=c.x,d=c.y,h=a.hasOwnProperty("x"),p=a.hasOwnProperty("y"),f=It,g=At,m=window;if(l){var v=Tt(i);v===dt(i)&&(v=mt(i)),s===At&&(g=St,d-=v.clientHeight-n.height,d*=o?1:-1),s===It&&(f=Ot,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:r},l&&ni);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 ai={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(e){return e.replace(/left|right|bottom|top/g,(function(e){return ai[e]}))}var oi={start:"end",end:"start"};function li(e){return e.replace(/start|end/g,(function(e){return oi[e]}))}function ci(e,t,i){return Math.max(e,Math.min(t,i))}function ui(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 di(e){return[At,Ot,St,It].some((function(t){return e[t]>=0}))}var hi=ti({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,a=void 0===s||s,r=n.resize,o=void 0===r||r,l=dt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",i.update,ii)})),o&&l.addEventListener("resize",i.update,ii),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ii)})),o&&l.removeEventListener("resize",i.update,ii)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Jt({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,a=i.adaptive,r=void 0===a||a,o={placement:Yt(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),si(Object.assign(Object.assign({},o),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),si(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];ft(s)&&gt(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]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});ft(n)&&gt(n)&&(Object.assign(n.style,a),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,a=void 0===s?[0,0]:s,r=Ft.reduce((function(e,i){return e[i]=function(e,t,i){var n=Yt(e),s=[It,At].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign(Object.assign({},t),{},{placement:e})):i,r=a[0],o=a[1];return r=r||0,o=(o||0)*s,[It,Ot].indexOf(n)>=0?{x:o,y:r}:{x:r,y:o}}(i,t.rects,a),e}),{}),o=r[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]=r}},{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,a=void 0===s||s,r=i.altAxis,o=void 0===r||r,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=Yt(m),b=l||(v===m||!f?[ri(m)]:function(e){if(Yt(e)===Nt)return[];var t=ri(e);return[li(e),t,li(t)]}(m)),y=[m].concat(b).reduce((function(e,i){return e.concat(Yt(i)===Nt?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,a=i.rootBoundary,r=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Ft:l,u=qt(n),d=u?o?jt:jt.filter((function(e){return qt(e)===u})):Pt,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]=Xt(e,{placement:i,boundary:s,rootBoundary:a,padding:r})[Yt(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,C=new Map,k=!0,x=y[0],E=0;E<y.length;E++){var D=y[E],T=Yt(D),A=qt(D)===Mt,S=[At,St].indexOf(T)>=0,O=S?"width":"height",I=Xt(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?A?Ot:It:A?St:At;w[O]>_[O]&&(N=ri(N));var P=ri(N),M=[];if(a&&M.push(I[T]<=0),o&&M.push(I[N]<=0,I[P]<=0),M.every((function(e){return e}))){x=D,k=!1;break}C.set(D,M)}if(k)for(var L=function(e){var t=y.find((function(t){var i=C.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,a=void 0===s||s,r=i.altAxis,o=void 0!==r&&r,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=Xt(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Yt(t.placement),b=qt(t.placement),y=!b,w=Kt(v),_="x"===w?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,x=t.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):g,D={x:0,y:0};if(C){if(a){var T="y"===w?At:It,A="y"===w?St:Ot,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===Mt?k[S]:x[S],L=b===Mt?-x[S]:-k[S],R=t.elements.arrow,$=p&&R?_t(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[T],H=j[A],B=ci(0,k[S],$[S]),W=y?k[S]/2-P-B-F-E:M-B-F-E,V=y?-k[S]/2+P+B+H+E:L+B+H+E,U=t.elements.arrow&&Tt(t.elements.arrow),z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,Y=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,q=C[w]+W-Y-z,K=C[w]+V-Y,J=ci(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?At:It,Q="x"===w?St:Ot,X=C[_],Z=ci(X+m[G],X,X-m[Q]);C[_]=Z,D[_]=Z-X}t.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=i.elements.arrow,a=i.modifiersData.popperOffsets,r=Yt(i.placement),o=Kt(r),l=[It,Ot].indexOf(r)>=0?"height":"width";if(s&&a){var c=i.modifiersData[n+"#persistent"].padding,u=_t(s),d="y"===o?At:It,h="y"===o?St:Ot,p=i.rects.reference[l]+i.rects.reference[o]-a[o]-i.rects.popper[l],f=a[o]-i.rects.reference[o],g=Tt(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,_=ci(b,w,y),C=o;i.modifiersData[n]=((t={})[C]=_,t.centerOffset=_-w,t)}},effect:function(e){var t=e.state,i=e.options,n=e.name,s=i.element,a=void 0===s?"[data-popper-arrow]":s,r=i.padding,o=void 0===r?0:r;null!=a&&("string"!=typeof a||(a=t.elements.popper.querySelector(a)))&&Wt(t.elements.popper,a)&&(t.elements.arrow=a,t.modifiersData[n+"#persistent"]={padding:Gt("number"!=typeof o?o:Qt(o,Pt))})},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,a=t.modifiersData.preventOverflow,r=Xt(t,{elementContext:"reference"}),o=Xt(t,{altBoundary:!0}),l=ui(r,n),c=ui(o,s,a),u=di(l),d=di(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 pi={"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 fi(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function gi(e){return fi(e,"alignment")||"right middle"}function mi(e){let[t,i]=gi(e).split(" ");return{side:t,snap:i}}function vi(e){let t=function(e){let t=fi(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 bi(e,t){const i=mi(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=gi(e);return pi[t]||"right"}(e):(i.snap=vi(t),n="submenu"===i.side?pi[("right"===i.snap?"left":"right")+" top"]:pi[`${i.side} ${i.snap}`]),n}const yi={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function wi(e,t,i={}){const n=mi(e),s=bi(e,t),a=yi[s.split("-")[0]],r=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:a,boundary:r||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:r||(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}}];r&&t.ownerDocument!=e.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(e){const t=r.getBoundingClientRect(),i=window.getComputedStyle(r),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),a=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+=a,e.offsets.popper.left+=o,e.offsets.popper.top+=a,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=hi(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)}wi.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 _i=wi;function Ci(e){let t=new i.Deferred;return e?setTimeout((()=>{e.parentElement||t.resolve()}),12):t.reject(),t.promise()}var ki,xi,Ei=0;function Di(e){if(ki=Ei+++"",xi=e?e+ki:"aui-uid-"+ki,document.getElementById(xi)){if(xi=xi+"-"+(new Date).getTime(),document.getElementById(xi))throw new Error('Timestamped fallback ID "'+xi+'" exists.');return xi}return xi}n("id",Di);const Ti=Di;function Ai(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function Si(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}function Oi(e,t={}){const i=t&&t.type&&(t.type.indexOf("mouse")>-1||t.type.indexOf("hover")>-1);e.isSubmenu&&!i?e.focusItem(0):e.focus()}var Ii="unloaded",Ni="loading",Pi="error";function Mi(e,t){K(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 ${x(e.content)}\n </${n}>`})).join("");return`\n <aui-section ${e.label?`label="${e.label}"`:""}>\n ${t}\n </aui-section>`})).join("\n")}(t),q.init(e),Q(e,(function(t){document.activeElement===t&&Oi(e)}))}function Li(e){K(e).set("loading-state",Pi),K(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 Ri(e){e.src&&K(e).get("loading-state")!==Ni&&(!function(e){K(e).set("loading-state",Ni),K(e).set("hasErrorBeenShown",!1),Q(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?Mi(e,t):Li(e)})).fail((function(){Li(e)})).always((function(){!function(e){Q(e,(function(e){e.setAttribute("aria-busy","false")}))}(e)})))}function $i(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 ji(e){return $i(e,(()=>!0))}function Fi(e){return $i(e,((e,t)=>!Ai(t)))}function Hi(e){ji(e).each(((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Ai(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Bi(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Wi(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 a=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)):a||(e.setAttribute("data-aui-alignment","bottom auto"),e.setAttribute("data-aui-alignment-static",!0)),Bi(e),e._auiAlignment=new _i(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")||(q.init(this),A("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 a=n.find(":focus");a.length&&t.is(".aui-dropdown2-trigger")&&a.blur()}));var Vi=!1;function Ui(){Vi=!0}function zi(e){Se(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),Hi(e),i(e).trigger("aui-dropdown2-show"),Q(e,(function(t){Si(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"),ji(e).removeClass("active aui-dropdown2-active"),Q(e,(function(e){var t;t=!0===Vi,Vi=!1,t?(e.focus(),Si(e,e.hasSubmenu&&e.hasSubmenu())):Si(e,!1)})),delete e.isSubmenu,G(e,null))}))}function Yi(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===z.DOWN?(e.focusNext(),t.preventDefault()):t.keyCode===z.UP?(e.focusPrevious(),t.preventDefault()):t.keyCode===z.LEFT?e.isSubmenu&&(Ui(),e.hide(t),t.preventDefault()):t.keyCode===z.ESCAPE?Ui():t.keyCode===z.TAB&&(Ui(),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,a=t.keyCode,r=a===z.ENTER,o=a===z.SPACE;r&&i(s).is("a[href], button")||"click"!==t.type&&!r&&!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=Se(n);n=Se(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 a=Se(e).above();a&&Se(a).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")),zi(e),Yi(e),i(e).on("click keydown",".aui-dropdown2-checkbox",(function(e){if("click"===e.type||e.keyCode===z.ENTER||e.keyCode===z.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===z.ENTER||e.keyCode===z.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,He.debounce)((function(){i(".aui-dropdown2").each((function(e,t){q.init(t),t.isVisible()&&t.hide()}))}),1e3,!0));var Ki={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")&&G(t,e.currentTarget),Se(t).show(),Q(t,(function(e){Wi(t,e)})),setTimeout((()=>Oi(t,e)),0),this},hide:function(){return Se(this).hide(),this},focusNext:function(){var e,t=Fi(this),i=document.activeElement;t.last()[0]!==i&&(e=t.toArray().indexOf(i),this.focusItem(t.get(e+1)))},focusPrevious:function(){var e,t=Fi(this),i=document.activeElement;t.first()[0]!==i&&(e=t.toArray().indexOf(i),this.focusItem(t.get(e-1)))},focusItem:function(e){const t=Fi(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 Se(this).isVisible()}},Ji={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")}},Gi={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Qi={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new pe("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 pe("change",{bubbles:!0}))}},Xi={created:function(e){Ji.created(e)},removed:function(e){Ji.removed(e)}},Zi=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const en=q("aui-item-link",{template:ot()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Ji,interactive:Gi,hidden:Xi,href:Zi("href"),"item-id":Zi("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")}}}}),[tn,nn]=["checkbox","radio"].map((e=>q(`aui-item-${e}`,{template:ot()(`<span role="${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Zi("id"),disabled:Ji,interactive:Gi,checked:Qi,hidden:Xi}}))),sn=q("aui-section",{template:ot()('\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=Ti();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")}}),an=q("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Se(e),K(e).set("loading-state",Ii),q.init(e)},detached:function(e){Ci(e).then((()=>Bi(e)))},attributes:{src:{}},prototype:Ki,events:{"aui-layer-show":function(e){var t=K(e).get("loading-state")===Ii,i=K(e).get("hasErrorBeenShown");(t||i)&&Ri(e),K(e).get("loading-state")===Pi&&K(e).set("hasErrorBeenShown",!0)}}});q("aui-dropdown2",{type:q.type.CLASSNAME,created:qi,prototype:Ki}),q("data-aui-dropdown2",{type:q.type.ATTRIBUTE,created:qi,prototype:Ki}),q("aui-dropdown2-trigger",{type:q.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 a=document.getElementById(t);if(!a)return void h('Could not find a dropdown with id "'+t+'" in the DOM.');const r=i(e);return r.parent().hasClass("aui-buttons")&&a.classList.add("aui-dropdown2-in-buttons"),r.parents().hasClass("aui-header")&&a.classList.add("aui-dropdown2-in-header"),s?a.show(n):a.toggle(n),a.isSubmenu=e.hasSubmenu(),a}t||(t=e.getAttribute("aria-owns"),t?(e.removeAttribute("aria-owns"),e.setAttribute("aria-controls",t)):h('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===z.ENTER||t.keyCode===z.SPACE,s=t.keyCode===z.RIGHT&&e.hasSubmenu(),a=(t.keyCode===z.UP||t.keyCode===z.DOWN)&&!e.hasSubmenu();i?n(t):(a||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=K(e).get("loading-state")===Ii,i=K(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&Ri(e)}(n),e.hasSubmenu()&&(n.show(i),n.isSubmenu=e.hasSubmenu()),n;h('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")}}}),q("aui-dropdown2-sub-trigger",{type:q.type.CLASSNAME,created:function(e){e.classList.add("aui-dropdown2-trigger"),q.init(e)}}),["checkbox","radio"].map((e=>q(`aui-dropdown2-${e}`,{type:q.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"),ct&&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 rn=i(document),on=function(e){var t={};return t.$trigger=i(e.currentTarget),t.$content=rn.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},ln=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)}},cn={"aui-expander-invoke":function(e){var t=i(e.currentTarget),n=rn.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=on(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"),ln(t),t.triggerIsParent&&t.$shortContent.hide(),t.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(e){var t=on(e);"true"===t.$content.attr("aria-expanded")&&(ln(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)}};rn.on(cn,".aui-expander-trigger");function un(e){pn[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:a},r){const o=s?`<p class="title"><strong>${x(s)}</strong></p>`:"",l=i(`<div class="aui-message">${o}</div>`).append(i.parseHTML(a||"")).addClass(t?"closeable":"").addClass(n?"fadeout":"").addClass(`aui-message-${r}`);e&&(/[#\'\"\.\s]/g.test(e)?d("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&&dn(s),n.fadeout&&hn(s,n.delay,n.duration),s}}function dn(e){i(e||"div.aui-message.closeable").each((function(){var e,t=i(this),n=t.find(Qe),s=n.length>0?n.first():i(Xe);t.addClass("closeable"),t.append(s),(e=t).unbind("click.aui-message").unbind("keydown.aui-message"),e.on("click.aui-message",Qe,(function(e){i(e.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Qe,(function(e){e.which!==z.ENTER&&e.which!==z.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())}))}))}function hn(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,a=!1;function r(){e.stop(!0,!1).delay(t).fadeOut(n,(function(){e.closeMessage()}))}function o(){e.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!a}e.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&r()})).hover((function(){a=!0,o()}),(function(){a=!1,l()&&r()})),r()}))}var pn={setup:function(){dn(),hn()},makeCloseable:dn,makeFadeout:hn,createMessage:un};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]))},un("generic"),un("error"),un("warning"),un("info"),un("confirmation"),un("change"),un("success"),un("hint");const fn=q("aui-message",{created:function(e){var t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",pn[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(){pn.setup()})),P(pn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),P(pn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),P(pn,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),P(pn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),P(pn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),P(pn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),n("messages",pn);var gn="aui-flag-container",mn={body:"",close:"manual",title:"",type:"info"};function vn(e){(e=i.extend({},mn,e)).title=(e.title||"").toString().trim();var t=function({body:e,title:t,close:n,type:s}){const a=t?`<p class="title"><strong>${x(t)}</strong></p>`:"",r=i(`<div class="aui-message">${a}</div>`).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`);return i('<div class="aui-flag" aria-live="polite"></div>').append(r)}(e);return function(e){e[0].close=function(){yn(e)}}(t),"auto"===e.close?(bn(t),function(e){e.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){e[0].close()}),5e3)}(t)):"manual"===e.close&&bn(t),function(){const e=wn();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=wn();e.appendTo(t),j(e),e.removeAttr("hidden").attr("open","")}(t),t.get(0)}function bn(e){var t=i(Xe);return t.on("click",(function(){yn(e)})),t.on("keypress",(function(t){t.which!==z.ENTER&&t.which!==z.SPACE||(yn(e),t.preventDefault())})),e.find(".aui-message").append(t)[0]}function yn(e){var t=e.get(0);return t.removeAttribute("open"),t.dispatchEvent(new pe("aui-flag-close",{bubbles:!0})),t}function wn(){return document.getElementById(gn)}Y("aui/flag",vn),n("flag",vn);const _n=vn;function Cn(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 kn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(i),!0).forEach((function(t){xn(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Cn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function xn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const En="aui-tooltip",Dn={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},Tn={gravity:"n",html:!1,live:!1,suppress:()=>!1};let An;class Sn{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options=kn(kn({},Tn),t),this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),On.delete(this.triggerElement)}moveTitleToTooltip(){const e=this,t=this.$triggerElement;t.attr("title",(function(i,n){return e.originalTitle=n,t.attr("aria-describedby",En),null}))}unbindHandlers(){const e=this.options.live;this.options.$delegationRoot&&e?this.options.$delegationRoot.off(".aui-tooltip",e):this.$triggerElement.off(".aui-tooltip")}getFloatingTip(){const e=this.options;let t="function"==typeof e.title?e.title:"string"==typeof e.title?()=>e.title:()=>this.originalTitle||"";return void 0===An&&(An=i('<div id="aui-tooltip" class="aui-tooltip assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>'),i(document.body).append(An)),e.html?An.find(".aui-tooltip-content").html(t.call(this.triggerElement)):An.find(".aui-tooltip-content").text(t.call(this.triggerElement)),An}show(){const e=this.triggerElement,t=this.getFloatingTip(),n=Dn[this.options.gravity];clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(e)||(this.popperTimeout=setTimeout((()=>{const s=t.get(0);s.classList.remove("assistive"),this.popperInstance=hi(e,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on("scroll.aui-tooltip",(()=>this.hide()))}),300))}hide(){this.getFloatingTip().get(0).classList.add("assistive"),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off("scroll.aui-tooltip")}}const On=new WeakMap,In=(e,t)=>{let i=On.get(e);return void 0===i&&(i=new Sn(e,t),On.set(e,i)),i},Nn=e=>e.map((e=>`${e}.aui-tooltip`)).join(" "),Pn=Nn(["mouseenter","focus"]),Mn=Nn(["click","mouseleave","blur"]);i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return In(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(){In(this,i).show()},s=function(){In(this,i).hide()},a=i.live;return void 0!==a?(i.$delegationRoot=t,t.on(Pn,a,n),t.on(Mn,a,s),t):(t.on(Pn,n),t.on(Mn,s),t)};var Ln=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(),a=i("<ul />").appendTo(s);return i.each(e,(function(e,t){var n=i("<li />").attr({class:t.styleClass||""}).appendTo(a),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()},Rn=function(e,t){var n=e+"-dropdown",s=i("<select />").attr({name:e,multiple:"multiple"}).html(t),a=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),r=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(r).append(a).html()};function $n(e){var t=i(e.target);jn(this,t.attr("data-value"),t.hasClass("aui-dropdown2-checked"))}function jn(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 Fn(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Vn(e).length<1}))}function Hn(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 Bn(e){e.$dropdown.html(Ln(function(e){return Hn(e.getOptions())}(e))),Fn(e)}function Wn(e){var t=Un(e),n=function(e){return 0===Vn(e).length}(e)?function(e){return i(e).data("allLabel")||"All"}(e):t.join(", ");e.$btn.text(n)}function Vn(e){return Hn(e.getSelectedOptions())}function Un(e){return i.map(Vn(e),(function(e){return e.label}))}const zn=q("aui-checkbox-multiselect",{attached:function(e){var t=e.getAttribute("name")||Ti("aui-checkbox-multiselect-");e.innerHTML=Rn(t,e.innerHTML),e.$select=i("select",e).on("change",(function(){Wn(e),Fn(e)})),e.$dropdown=i(".aui-checkbox-multiselect-dropdown",e).on("aui-dropdown2-item-check",$n.bind(e)).on("aui-dropdown2-item-uncheck",$n.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")?"":Un(e).join(", ")}(e)}}),Wn(e),Bn(e)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){jn(this,e,!0)},unselectOption:function(e){jn(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),Wn(this),Bn(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),Wn(this),Bn(this)}}});Y("aui/checkbox-multiselect",zn);const Yn=zn;var qn=a(726);const Kn=a.n(qn)();const Jn=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?h(i,e):h(i),!1)}return{attributeExists:t,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},Gn="-input";function Qn(e){return e.querySelector("label")}const Xn=q("aui-label",{template:ot()("<label><content></content></label>"),created:function(e){e._label=Qn(e)},attached:function(e){Jn(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?Qn(e).setAttribute("for",`${t.newValue}-input`):Qn(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?Qn(e).setAttribute("form",t.newValue):Qn(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()}}});a(37);var Zn=i.fn.select2,es="aui-select2-container",ts="aui-select2-drop aui-dropdown2",is="aui-has-avatar";i.fn.auiSelect2=function(e){var t;if(i.isPlainObject(e)){var n=i.extend({},e),s=n.hasAvatar?" "+is:"";n.containerCssClass=es+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=ts+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),(t=Array.prototype.slice.call(arguments,1)).unshift(n)}else t=arguments.length?arguments:[{containerCssClass:es,dropdownCssClass:ts}];return Zn.apply(this,t)},i.fn.spin=O((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),q.init(this),t.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=O((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 ns=q("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||x(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=x(this.textContent),e}}});var ss=a(115),as=a.n(ss),rs=as().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,He.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,He.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,He.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return as().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,He.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,He.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))}});n("ProgressiveDataSet",rs);const os=rs,ls=as().Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}});function cs(){this._suggestions=[],this._activeIndex=-1}cs.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 us=cs;function ds(e,t){return e+"-"+t}function hs(e,t){this.el=e,this.anchor=t}function ps(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}hs.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(),a=e.get("img-src"),r=a?`<img src="${encodeURI(a)}"/>`:"",o=e.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";n+=`<li role="option" class="aui-select-suggestion" id="${ds(i,s)}">${r}${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){ps(this.el),i(this.el).find("#"+ds(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()),Se(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new _i(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!0,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){var e;ps(this.el),Se(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 fs=hs,gs=ot()('\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 ms(e){e._select.selectedIndex=-1,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function vs(e){return e._suggestionModel.getNumberOfResults()}function bs(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function ys(e){e._suggestionsView.hide(),e._input.setAttribute("aria-expanded","false")}function ws(e){var t=vs(e)?0:-1;e._suggestionModel.highlight(t),ys(e)}function _s(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function Cs(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 ks(e,t){if(t){var i,n=document.createElement("option"),s=e._select,a=t.get("value")||t.get("label"),r=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",a),n.textContent=r,e._input.value=r,s.innerHTML="",s.options.add(n),s.dispatchEvent(new pe("change",{bubbles:!0}))}}function xs(e){ks(e,e._suggestionModel.highlighted()),Cs(e),ws(e)}function Es(e){return new ls(e.serialize())}function Ds(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(Es(n))}return t}function Ts(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function As(e,t){return i.map(t,(function(e){return e.id})).indexOf(e)}function Ss(e){e._progressiveDataSet=new os(Ds(e),{model:ls,matcher:bs,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),K(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),K(e).set("should-flag-new-suggestions",!0))})),e._progressiveDataSet.on("respond",(function(t){if(t.query&&!e._input.value)return;if(K(e).get("should-cancel-response"))return void(e._progressiveDataSet.activeQueryCount||K(e).set("should-cancel-response",!1));t.query||(t.results=Ds(e));var i=-1!==As(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 ns;t.setAttribute("value",e._input.value);var i=Es(t);return i.set("new-value",!0),i}(e)),!K(e).get("should-include-selected")){var s=As(e.value,t.results);s>=0&&t.results.splice(s,1)}const a=function(e,t){const i=e._suggestionModel.getNumberOfResults();return e._suggestionModel.set(),e._suggestionModel.set(t.results),i!==e._suggestionModel.getNumberOfResults()}(e,t),r=e._suggestionModel.highlighted()||t.results[0];e._autoHighlight&&(e._suggestionModel.setHighlighted(r),setTimeout((function(){e._input.setAttribute("aria-activedescendant",Ts(e))}),50)),e._input.setAttribute("aria-expanded","true"),!e._isSync&&a&&e._suggestionsView.getActive()&&K(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),e._suggestionsView.show()}))}function Os(e){var t=e.value?"":e._input.value,i=""===e._input.value;K(e).set("should-include-selected",i),_s(e,!0,t)}function Is(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&K(e).set("should-cancel-response",!0)}function Ns(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function Ps(e){Is(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==Ns(e);if(i||n)if(t)ms(e);else{var s=Ns(e);void 0===s?ms(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(-1)}(e),ys(e)}const Ms=q("aui-select",{template:gs,created:function(e){e._listId=Ti(),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 fs(e._dropdown,e._input),e._suggestionModel=new us,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",Ts(e))}},attached:function(e){q.init(e),Ss(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){vs(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(!vs(e))return!1;e._suggestionModel.highlight(i(n.target).index()),xs(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&&ks(e,Es(t))}(e),ws(e),Cs(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),Ci(e).then((()=>{ys(e),e._suggestionsView.destroy()}))},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+Gn)},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){Ps(e)},"mousedown button":function(e){document.activeElement!==e._input||e._dropdown.hasAttribute("hidden")||K(e).set("prevent-open-on-button-click",!0)},"click input":function(e){Os(e)},"click button":function(e){var t=K(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):(K(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?(K(e).set("should-include-selected",!0),_s(e,!0)):K(e).get("button-clicked-prevent-dropdown-hide")?K(e).set("button-clicked-prevent-dropdown-hide",!1):ys(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===z.ESCAPE)return Is(e),void ys(e);e._suggestionsView.isVisible()&&vs(e)?t.keyCode===z.ENTER?(Is(e),xs(e),t.preventDefault()):t.keyCode===z.TAB?(!function(e){e._suggestionsView.isVisible()&&xs(e)}(e),n=!0):t.keyCode===z.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===z.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==z.UP&&t.keyCode!==z.DOWN||(Os(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout((function(){e._input.value===i||n||e.dispatchEvent(new pe("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 ls({value:e,label:e})),ks(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Ps(this),this},focus:function(){return this._input.focus(),Os(this),this}}});Y("aui/select",Ms),n("select",Ms);const Ls=Ms;function Rs(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const $s={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:Rs,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 js(e){return e._input||(e._input=e.querySelector("input"))}function Fs(e){return e._spinner||(e._spinner=new Ke)}function Hs(e,t){js(t).removeAttribute(e)}function Bs(e,t,i){js(t).setAttribute(e,i.newValue)}function Ws(e){return{removed:Hs.bind(this,e),fallback:Bs.bind(this,e)}}const Vs={removed:function(e){Hs.call(this,"form",e),e._formId=null},fallback:function(e,t){Bs.call(this,"form",e,t),e._formId=t.newValue}};var Us={removed:Hs.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}-input`;js(e).setAttribute("id",i)}},zs={removed:function(e){Hs.call(this,"value",e),js(e).value="on"},fallback:function(e,t){Bs.call(this,"value",e,t)}},Ys={removed:function(e){js(e).checked=!1},fallback:function(e){js(e).checked=!0}},qs={removed:function(e){js(e).removeAttribute("aria-label")},fallback:function(e,t){js(e).setAttribute("aria-label",t.newValue)}};function Ks(e){js(e).addEventListener("keydown",(function(t){e.busy&&t.keyCode===z.SPACE&&t.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&js(e).addEventListener("click",(function(t){e.busy&&t.preventDefault()})),function(){if(void 0===at)try{document.querySelector(":focus-within"),at=!0}catch(e){at=!1}return at}()||(e._input.addEventListener("focus",(()=>e.classList.add("active"))),e._input.addEventListener("blur",(()=>e.classList.remove("active"))))}const Js=q("aui-toggle",{template:ot()('<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){js(e),Fs(e).setAttribute("size",Be.SMALL.name),i(js(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Ks(e),e.hasAttribute("checked")&&js(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){Jn(e).attributeExists("label")},events:{click:function(e,t){var i=js(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked,function(e){e._canFireEventsNow&&e.dispatchEvent(new pe("change",{bubbles:!0}))}(e)),Rs(e,"checked",i.checked)}},attributes:{id:Us,checked:Ys,disabled:Ws("disabled"),form:Vs,name:Ws("name"),value:zs,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(e,t){js(e).setAttribute("tooltip-on",t.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(e,t){js(e).setAttribute("tooltip-off",t.newValue||I18n.getText("aui.toggle.off"))}},label:qs},prototype:{focus:function(){return js(this).focus(),this},get checked(){return js(this).checked},set checked(e){js(this).checked!==e&&(js(this).checked=e,Rs(this,"checked",e))},get disabled(){return js(this).disabled},set disabled(e){return Rs(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return Vs.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return js(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return js(this).value},set value(e){let t=null===e?"":e;return this.setAttribute("value",t),t},get busy(){return"true"===js(this).getAttribute("aria-busy")},set busy(e){const t=js(this),n=Fs(this);var s,a;return Rs(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)),a=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(e){e.disabled=a})),e}}});function Gs(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 Qs(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(i),!0).forEach((function(t){Xs(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Gs(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Xs(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Zs(e,t){Q(e,(function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)})),G(e,t)}function ea(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=Qs(Qs({},n),{onCreate:()=>{ha(e)&&ue().enter(i(e),i(t))},onEvents:{enabled:()=>{ha(e)&&ue().enter(i(e))},disabled:()=>{ha(e)&&ue().exit(i(e))}}}),e._auiAlignment=new _i(e,t,n)}}function ta(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function ia(e,t){var i=t.currentTarget;i&&(Zs(e,i),ea(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function na(e=0){return function(t){t.open&&!Se(t).isPersistent()&&(clearTimeout(t._closingTimeout),t._closingTimeout=setTimeout((function(){(function(e){return K(e).get("mouse-inside")||e.contains(document.activeElement)})(t)||(t.open=!1),t._closingTimeout=null}),e))}}const sa={click(e,t){e.open&&!Se(e).isPersistent()?e.open=!1:(Zs(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:ia,mouseleave:na(1e3),focus:ia,blur:na(0)};function aa(e){var t=e.currentTarget;K(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function ra(e){var t=e.currentTarget;K(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function oa(e){var t=e.currentTarget;"hover"===t.respondsTo&&na(1e3)(t)}function la(e){K(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",aa),e.removeEventListener("mouseleave",ra),e.removeEventListener("blur",oa),"hover"===e.respondsTo&&(K(e).set("mouse-inside",!1),e.addEventListener("mouseenter",aa),e.addEventListener("mouseleave",ra),e.addEventListener("blur",oa))}function ca(e,t){return`${e}.nested-layer-${t}`}function ua(e){return Se(e).show(),!0===Se(e).isVisible()}function da(e){return Se(e).hide(),!1===Se(e).isVisible()}function ha(e){return"hover"!==e.respondsTo}function pa(e){e.__initialised||(Se(e),i(e).on({[`${fe}show`]:function(){const e=this;!function(e){let t=i(e);const n=e.id,s=e=>t.find(J(e.target)).length<1;i(document).on(ca("aui-layer-show",n),(e=>{s(e)||t.attr("persistent","")})).on(ca("aui-layer-hide",n),(e=>{s(e)||t.removeAttr("persistent")})).on(ca("select2-opening",n),(()=>{t.attr("persistent","")})).on(ca("select2-close",n),(()=>{setTimeout((()=>{t.removeAttr("persistent")}),150)}))}(e),Q(e,(function(t){ea(e,t),t.setAttribute("aria-expanded","true")}))},[`${fe}hide`]:function(){const e=this;!function(e){const t=e.id;i(document).off(ca("aui-layer-hide",t)).off(ca("aui-layer-show",t)).off(ca("select2-opening",t)).off(ca("select2-close",t))}(e.id),e.ownerDocument.body.contains(e)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(e):ta(e),Q(e,(function(e){e.setAttribute("aria-expanded","false")})),G(e,null)}}),e.__initialised=!0)}const fa={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},ga=q("aui-inline-dialog",{prototype:{get open(){return Se(this).isVisible()},set open(e){this.__propUpdate=!0,e?ua(this):da(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){$s.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=fa.attribute;return $s.computeEnumValue(fa,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;$s.setEnumAttribute(this,fa,e),t!==this.respondsTo&&la(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&&sa[i.type](t,i),this}},attributes:{open:function(e,t){if(pa(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){ua(e)||Rs(e,"open",!1)}if("removed"===t.type){da(e)||Rs(e,"open",!0)}}},"responds-to":function(e,t){$s.computeEnumValue(fa,t.oldValue)!==$s.computeEnumValue(fa,t.newValue)&&la(e)}},created:pa,attached:function(e){Jn(e).attributeExists("id"),e.setAttribute("tabindex",0),e.setAttribute("role","dialog"),Q(e,(function(t){t.setAttribute("aria-expanded",e.open)})),X(e,(function(e){e.setAttribute("aria-haspopup","true")})),la(e)},detached:function(e){Ci(e).then((()=>{ta(e),X(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)}});Y("aui/inline-dialog2",ga),n("InlineDialog2",ga);const ma=ga;function va(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(e,t){return new va(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(){ba(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){ba(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}va.prototype.isNested=function(){return 1===this.$treeParent.length},va.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},va.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},va.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},va.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const ba=de("navigation",va),ya=q("aui-nav",{type:q.type.CLASSNAME,attached:function(e){new va(e)},detached:function(e){i(e).removeData()}});n("navigation",ba);const wa=ba;function _a(e,t,{currentProgress:n,value:s}){const a=i(e),r=i(t);"number"==typeof s&&s<=1&&s>=0&&(r.trigger("aui-progress-indicator-before-update",[n,s]),a.one("transitionend webkitTransitionEnd",(function(){r.trigger("aui-progress-indicator-after-update",[n,s])})),function(e,t,i){j(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(a,r,s))}function Ca(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),j(t),n.css("width","")}const ka={indeterminate:!1,max:1,val:0};function xa(e){return(0,He.isNumber)(e)&&(0,He.isFinite)(e)&&!(0,He.isNaN)(e)}function Ea(e,t=1){const i=parseFloat(e);return xa(i)?i:Number(t)}function Da(e,t=1){return Number(parseFloat(e).toFixed(t))}function Ta(e){const{val:t,max:i}=e,n=function(e){return e>0?e:ka.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),a=Da(s/n,6);return{max:n,val:s,valAsFraction:a,valAsPercent:Da(100*a,2)}}function Aa(e){const{val:t,valAsFraction:i,max:n}=Ta(e._data),s=e.querySelector(".aui-progress-indicator"),a=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),Ca(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),_a(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:a,value:i}))}function Sa(e,t){e._data.val=Ea(t.newValue,t.oldValue||ka.val),Aa(e)}function Oa(e,t){e._data.max=Ea(t.newValue,t.oldValue||ka.max),Aa(e)}const Ia=q("aui-progressbar",{template(e){e._data.max=Ea(e.getAttribute("max"),ka.max),e._data.val=Ea(e.getAttribute("value"),ka.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=Ta(e._data),a=e._data.indeterminate?"":`data-value="${n}"`;e.innerHTML=`<div class="aui-progress-indicator"\n ${a}\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){Aa(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:ka.val,fallback:function(e,t){if(e._updating)return!1;Sa(e,t)}},max:{value:ka.max,fallback:function(e,t){if(e._updating)return!1;Oa(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,He.defaults)({},ka))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,Aa(this)},get value(){const{val:e}=Ta(this._data);return e},set value(e){if(!xa(e))return!1;const t={newValue:Da(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,Sa(this,t)},get max(){const{max:e}=Ta(this._data);return e},set max(e){if(!xa(e))return!1;const t={newValue:Da(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,Oa(this,t)}}}),Na={update:O((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"),a=n.attr("data-value"),r=!a,o=parseFloat(a)||0,l=a&&o===t;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return r&&s.css("width",0),_a(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:O(Ca,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};n("progressBars",Na);const Pa=Na;a(473);const Ma={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function La(e,t){let n=Object.assign({},Ma,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 Ra={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="..........",a="000000";let r=(i+s).slice(0,s.length);return r+=(a+n).slice(-a.length),r},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(){La(i(this))}))},setTableSortable:function(e,t){return La(e,t)}};i(Ra.setup),n("tablessortable",Ra);function $a(e,t=""){var n=i(e),s=t||!1;n.each((function(){var e=i(this);e.attr("id")||e.attr("id",Ti(s))}))}n("_addID",$a);const ja=$a;function Fa(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}n("isClipped",Fa);const Ha=Fa;var Ba=window.skateTemplateHtml;function Wa(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Va(e){let t=Wa(e);return t?document.getElementById(t):null}var Ua={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 a=0,r=0;s(a,n,t)&&r<e.length;r++){a+=i(e[r]).outerWidth(!0)}return e.slice(0,r-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),a=i("#"+s),r=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),o=r.length-1,l=e.length-1;l>=o;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,a,n)}return i(r)},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 a=0;s(t)&&a<e.length;a++){var r=i(e[a]),o=parseInt(r.attr("data-aui-tab-width"),10);o<t&&this.moveTabOutOfDropdown(r,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 za(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=Va(t);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var a=t.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),r=i(document.getElementById(a));if(r.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),r.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 h("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",e)}}function Ya(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function qa(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return"_internal-aui-tabs-"+(t||"")+(i&&"true"!==i?"-"+i:"")}function Ka(e){er.change(i(e.target).closest("a")),e&&e.preventDefault()}function Ja(e){e.forEach((function(e,t){!function(e,t){var n=i(e),s=n.find(".tabs-menu").first(),a=s.find("li:not(.aui-tabs-responsive-trigger-item)"),r=s.find(".aui-tabs-responsive-trigger").parent(),o=r.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Ua.totalTabsWidth(a,c)>n.outerWidth();if(!u&&d&&(r=Ua.createResponsiveDropdownTrigger(s,t),c=Ua.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=Ua.moveVisibleTabs(a.toArray(),n,r),p=Ua.totalVisibleTabWidth(h),f=n.outerWidth()-p-r.outerWidth(!0);if(f>0){var g=c.find("li");Ua.moveInvisibleTabs(g.toArray(),f,r)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Ka),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Ua.moveTabOutOfDropdown(i(this),r)})),Ua.removeResponsiveDropdown(c,r))}(e,t)}))}function Ga(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function Qa(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=Va(t),Wa(e)||h('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(ja(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")):d("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",Ka),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(Za)}(e)}}function Xa(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each((function(){Qa(this)})),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(Ya(n)&&window.localStorage)if(n.attr("id")){var a=window.localStorage.getItem(qa(n));if(a){var r=s.querySelector(`a[href$="${a}"]`);r&&za(r)}}else d("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function Za(e){e.setAttribute("role","tabpanel")}var er={setup:function(){!function(){const e=(0,He.debounce)(Ja,200);e(Ga()),i(window).on("resize.aui-tabs",(()=>e(Ga())))}(),Xa(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var e=i(this);e.attr("title")||Ha(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");za(n),Ya(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=Wa(e);i&&window.localStorage.setItem(qa(t),"#"+i)}else d("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(er.setup);const tr=q("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),q.init(e),Qa(e)},template:Ba('<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&&er.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),ir=q("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:Ba('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),nr=q("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),a=new ir,r=i(a);n.addClass("tabs-pane"),a.firstChild.setAttribute("href","#"+e.id),Ba.wrap(a).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&r.addClass("active-tab"),n.siblings("ul").append(a)},template:Ba("<content></content>")});n("tabs",er);const sr="_aui-form-notification-initialised",ar="data-aui-notification-wait",rr="data-aui-notification-info",or="data-aui-notification-error",lr=[or,"data-aui-notification-success",ar,rr];function cr(e){ur(e)||(!function(e){e.addClass(sr),dr(e)}(e),fr(e))}function ur(e){return e.hasClass(sr)}function dr(e,t){t=t||hr(e),pr(e)===rr&&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 hr(e){var t=pr(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 pr(e){var t;return lr.some((function(i){if(e.is("["+i+"]"))return t=i,!0})),t}function fr(e){const t=i(e);if(!ur(t))return;const n=pr(t);vr(t,n===ar);const s=hr(t);s&&n===or?gr(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(or)||t.parent().find(".error").remove()}function gr(e,t){let i=mr(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 mr(e,t){return e.parent().find(`.${t}`)}function vr(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 br=A("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});q("data-aui-notification-field",{attached:function(e){br(),cr(i(e))},attributes:function(){const e={};return lr.forEach((function(t){e[t]=fr})),e}(),type:q.type.ATTRIBUTE}),Y("aui/form-notification");var yr=["displayfield","watchfield","when","novalidate","state"],wr=[];var _r={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,yr);return n&&(t=e),n})),t}(e);if(s)return d('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 a={validatorFunction:t,validatorTrigger:n};return wr.push(a),a},validators:function(){return wr}};Y("aui/form-validation/validator-register",_r);const Cr=_r;function kr(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=Sr("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=Sr("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=Sr("maxlength",e.args);e.invalidate(t)}else e.validate()}function xr(e){return"password"===e.getAttribute("type")}function Er(e,t){var i=e.match(t);return!!i&&e===i[0]}function Dr(e){var t=Sr("pattern",e.args);Er(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function Tr(e){var t=Sr("required",e.args);e.el.value?e.validate():e.invalidate(t)}function Ar(e){var t=Sr("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(Sr("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(Sr("max",e.args)):e.validate()}}function Sr(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:Or[e];var s=i;i||(s=[t(e)]);var a,r=t(e+"-msg");return a=r?[r].concat(s):[n].concat(s),AJS.format.apply(null,a)}Cr.register(["maxlength","minlength"],kr),Cr.register("[maxlength],[minlength]",kr),Cr.register(["matchingfield"],(function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=Sr("matchingfield",e.args,[t,n]);(xr(e.el)||xr(i))&&(s=Sr("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()})),Cr.register(["doesnotcontain"],(function(e){var t=Sr("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)})),Cr.register(["pattern"],Dr),Cr.register("[pattern]",Dr),Cr.register(["required"],Tr),Cr.register("[required]",Tr),Cr.register(["min","max"],Ar),Cr.register("[min],[max]",Ar),Cr.register(["dateformat"],(function(e){var t=e.args("dateformat"),i=Sr("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(""),a="";s.forEach((function(e){var t=n.hasOwnProperty(e);a+=t?n[e]:e}));var r=new RegExp(a+"$","i");Er(e.el.value,r)?e.validate():e.invalidate(i)})),Cr.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"),a=Sr("minchecked",e.args),r=Sr("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(r):e.invalidate(a)}));var Or={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")};Y("aui/form-validation/basic-validators");const Ir="data-aui-notification-",Nr="invalid",Pr="valid",Mr="validating",Lr="unvalidated",Rr="_aui-form-validation-initialised",$r="_aui-internal-field-state-changed";function jr(e){(function(e){return e.hasClass(Rr)})(e)||(!function(e){e.addClass(Rr),dr(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=Hr(e,"when"),i=Hr(e,"watchfield");(i?e.add("#"+i):e).on(t,(function(){Fr(e)}))}(e)}(e),Vr(e,Lr))}function Fr(e){if(!Hr(e,"novalidate"))return function(e){!function(e){Ur(Yr(e),"none")}(e);var t=function(e){var t=[];return Br().forEach((function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)})),t}(e);Vr(e,Mr);var n=function(e,t){var n=[];return t.forEach((function(t){var s=Br()[t].validatorFunction,a=new i.Deferred;s(function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){Vr(e,Nr,i),t.reject()},args:Wr(e),el:e[0],$el:e};return P(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,a)),n.push(a)})),n}(e,t),s=i.when.apply(i,n);return s.done((function(){Vr(e,Pr)})),s}(e);Vr(e,Pr)}function Hr(e,t){var i=e.attr("data-aui-validation-"+t);return i||(i={when:"change"}[t]),i}function Br(){return Cr.validators()}function Wr(e){return function(t){return e.attr("data-aui-validation-"+t)||e.attr(t)}}function Vr(e,t,n){if(e.attr("data-aui-validation-state",t),t!==Lr){e.trigger(i.Event($r));var s=Yr(e),a={validating:"wait",invalid:"error",valid:"success"},r=a[t];t===Mr?function(e){setTimeout((function(){qr(e)===Mr&&(Ur(e,"wait"),vr(e,!0))}),500)}(e):Ur(s,r,n)}}function Ur(e,t,i){const n=function(e){return e.is("[data-aui-notification-wait]")}(e);!function(e){zr(e,"wait"),vr(e,!1),zr(e,"success")}(e);var s,a;if(!("success"===t&&!n))if("none"===t)zr(e,"error");else{const n=e.attr(Ir+t)||"[]",r=i?(s=i,a=n,JSON.parse(a).concat([s])):[];e.attr(Ir+t,JSON.stringify(r)),"error"===t&&gr(e,r)}}function zr(e,t){e.removeAttr(Ir+t),"error"===t&&mr(e,t).remove()}function Yr(e){var t=Hr(e,"displayfield");return void 0===t?e:i("#"+t)}function qr(e){return e.attr("data-aui-validation-state")}function Kr(e,t){t.preventDefault(),e.one($r,(function(){e.trigger("submit")}))}function Jr(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 r=e.find("."+Rr),t=i.map(r,(function(e){return qr(i(e))})),n=-1!==t.indexOf(Nr),s=-1!==t.indexOf(Lr),a=-1!==t.indexOf(Mr),n?Nr:s?Lr:a?Mr:Pr;var t,n,s,a;var r}(n);if(s===Lr)Kr(n,e),function(e){Jr(e,Lr).each((function(e,t){Gr.validate(i(t))}))}(n);else if(s===Mr)Kr(n,e);else if(s===Nr)e.preventDefault(),function(e){Jr(e,Nr).first().focus()}(n);else if(s===Pr){var a=i.Event("aui-valid-submit");n.trigger(a),a.isDefaultPrevented()&&e.preventDefault()}}));const Gr={register:Cr.register,validate:function(e){Fr(e=i(e))}};q("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),jr(i(e)),q.init(e)},type:q.type.ATTRIBUTE}),Y("aui/form-validation",Gr),n("formValidation",Gr);var Qr=O((function(e,t){var i,n;return function(){var s=arguments,a=this,r=function(){n=e.apply(a,s),a=s=null};return clearTimeout(i),i=setTimeout(r,t),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const Xr=Qr;n("debounce",Qr),n("debounceImmediate",O((function(e,t){var i,n=null;return function(){var s=this,a=arguments,r=function(){n=s=a=null};return null===n&&(i=e.apply(s,a)),clearTimeout(n),n=setTimeout(r,t),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const Zr=i(window);function eo(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)})}eo.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,Zr.on("resize",this._resizeHandler=Xr((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(){Zr.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}`,q.init(t);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,q.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,a=n;a<=s;a++){var r=this.menuItems[a].$element,o=r.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),r.append(l)}t.find("aui-item-link:first").remove(),r.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=ot().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,a=n;a>=s;a--){var r=this.menuItems[a].$element,o=r.children("a");q.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")}q.init(l),ot().wrap(l).textContent=o.text(),r.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new pe("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:r[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const to=function(e){let t=e._header;return t instanceof eo||(t=new eo(e),t.init(),e._header=t),t};function io(){i(".aui-header").each((function(){to(this)}))}i(io);const no={};no.setup=O(io,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),n("responsiveheader",no);const so=q("aui-header",{type:q.type.CLASSNAME,created:function(e){to(e)}});var ao=a(207),ro=a.n(ao);const oo=({dateFormat:e,$field:t,onSelect:i,hide:n,onChangeMonthYear:s})=>({dateFormat:e,defaultDate:t.val(),maxDate:t.attr("max"),minDate:t.attr("min"),nextText:">",onSelect:function(e){t.val(e),t.trigger("change"),n(),i&&i.call(this,e)},onChangeMonthYear:s,prevText:"<"}),lo=(e,t)=>{let n,s,a,r=!1;const o=i("body"),l=t=>{let n=i(t.target),a=n.closest(s).length||n.is(e),o=n.closest(".ui-datepicker-header").length;if(!a&&!o||t.keyCode===z.ESCAPE)return h(),void(r=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{r||(o.on("focus blur click mousedown","*",l),r=!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 ma;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}),a=e.closest("aui-inline-dialog").get(0),a&&(a._datePickerPopup=n,i(a).on("aui-hide",(e=>{r&&e.preventDefault(),o.off("focus blur","*",l),a&&a._datePickerPopup&&delete a._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)}}},co=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let a;const{getPopupContents:r,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:d,getCalendarNode:h,destroyPolyfill:p,createPolyfill:f}=lo(t,s),g=e=>{i(e.currentTarget).val()&&a.datepicker("setDate",t.val())},m=t.attr("placeholder"),v=t.prop("type");let b;{const i=e=>t=>{if(void 0!==a)return e(t)},n=i((()=>{a.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=>{a.datepicker("setDate",e)})),e.getDate=i((()=>a.datepicker("getDate"))),e.setMin=i((e=>a.datepicker("option","minDate",e))),e.setMax=i((e=>a.datepicker("option","maxDate",e)))}n.languageCode in uo.prototype.localisations||(n.languageCode="");const y=uo.prototype.localisations;if(t.attr("aria-controls",s),void 0===a){void 0!==t.attr("step")&&u("WARNING: The date picker polyfill currently does not support the step attribute!");const s=oo({dateFormat:n.dateFormat,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:d}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),a=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const a=i(n());let r;return a.datepicker(e),s&&(r=i("<div/>").addClass("aui-datepicker-hint"),r.append("<span/>").text(s),t.append(r)),a})({config:o,popupContents:r({$field:t}),getCalendarNode:h,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.attr("data-aui-dp-uuid",s)};function uo(e,t){let n={};const s=Ti("date-picker"),a=i(e),r={getUUID:()=>s,getField:()=>a,getOptions:()=>n,destroy:()=>{"function"==typeof r.destroyPolyfill&&r.destroyPolyfill()},reset:()=>{r.destroy();const e=!uo.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&co(r)},reconfigure:e=>{n=i.extend(void 0,uo.prototype.defaultOptions,e),r.reset()}};return r.reconfigure(t),r}function ho(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}uo.prototype.browserSupportsDateField=function(){if(void 0===st){var e=document.createElement("input");e.setAttribute("type","date"),st="date"===e.type}return st}(),uo.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:ro().W3C},uo.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 po="aui-datepicker",fo=e=>function(t){let i=this.data(po);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(po,i)),i};i.fn.datePicker=fo(uo),n("DatePicker",uo),i.fn.calendarWidget=fo(ho),n("CalendarWidget",ho);const go=uo;a(251),a(993),a(927),a(757),a(940);const mo={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"},vo=as().View,bo=as().View,yo=as().View,wo={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};a(562);const _o={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"},Co='<aui-spinner size="small"></aui-spinner>',ko="aui-spinner";function xo(e){0===e.find(ko).length&&e.find(`.${mo.STATUS}`).append(Co)}function Eo(e){e.find(`.${mo.STATUS} aui-spinner`).remove()}var Do=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const To=as().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=_o,this.classNames=mo,this.dataKeys=wo,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 Do&&(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 Do&&(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 xo(this.$el),this},hideLoading:function(){return Eo(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 a,r,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),a=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),r=i("<td />"),"object"==typeof a&&a.done?a.done((function(e){r.append(e)})):r.append(a),s.styleClass&&r.addClass(s.styleClass),r.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}" />`))}}),Ao=document||{},So=i(Ao);function Oo(e,t){So.trigger(e,t)}function Io(e,t,n){i(t).trigger(e,n),Oo(e,n),t.id&&Oo(t.id+"-"+e,n)}var No=as().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)},as().sync.apply(as(),arguments)},save:function(e,t){var n,s=this,a=(t=t||{}).error,r=t.success;t.error=function(e,t){var n=i.parseJSON(t.responseText||t.data);a&&a.call(s,s,n,t)},this.isNew()?as().Model.prototype.save.call(this,e,t):e&&((n=new(No.extend({url:this.url()}))({id:this.id})).save=as().Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),r&&r.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,He.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,He.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),Io(_o.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),as().Model.prototype.fetch.call(this,e)}});const Po=No,Mo=as().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=_o,this.classNames=mo,this.dataKeys=wo,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 xo(this.$el),this},hideLoading:function(){return Eo(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 a,r=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),a=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(a).attr("data-field-name",l);r=i("<td />").append(u).appendTo(e.$el),a&&i.trim(a)||(r.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else r.append(a);s.styleClass&&r.addClass(s.styleClass),r.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 Lo=as().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=_o,t.classNames=mo,t.dataKeys=wo,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&&(d("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),a=e[0].clientWidth+t+n;s.append(i("<div/>").html(e.html()).attr("class",e.attr("class")).width(a))})),(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,a=n.placeholder.find("td");n.item.addClass(t.classNames.MOVEABLE).children().each((function(e){i(this).width(a.eq(e).width())}));var r='<td colspan="'+t.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(r).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){Io(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var n=i.parseJSON(e.responseText||e.data);Io(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(),as().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]),Io(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">'+Co+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(),Io(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Io(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,a=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){Io(this._event.EDIT_ROW,{},[this,s]),s.edit(this,e)})),i=n.render().$el,-1!==t&&("number"==typeof t&&0!==a.length?i.insertBefore(a[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 Mo&&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||Po,allowEdit:!0,views:{editRow:To,row:Mo},Collection:as().Collection.extend({url:e.resources.self,model:e.model||Po}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});Lo.ClassNames=mo,Lo.CustomCreateView=vo,Lo.CustomEditView=bo,Lo.CustomReadView=yo,Lo.DataKeys=wo,Lo.EditRow=To,Lo.EntryModel=Po,Lo.Events=_o,Lo.Row=Mo,n("RestfulTable",Lo);const Ro=Lo;function $o(e){return i(e).clone().removeAttr("id")}n("clone",$o);const jo=$o;var Fo=window.DocumentTouch;const Ho="ontouchstart"in window||Fo&&document instanceof Fo;function Bo(e,t,i,n){e.find(`[${n}]`).attr(n,((e,n)=>t===n?i:void 0))}function Wo(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){Bo(e,t,i,"aria-controls"),Bo(e,t,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Vo(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 Uo(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(i),!0).forEach((function(t){zo(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Vo(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 Yo(e){return e.offset().top}function qo(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 Qo,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);il(e,n)}))})(e),Ho&&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(Ko+(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){r(t)&&e.toggle()};function a(e){return e.keyCode===z.TAB&&!e.shiftKey&&!e.altKey}function r(e){return!(e.which!==z.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===z.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(Uo(Uo({},sl),{},{live:e.collapsedTriggersSelector,suppress:function(){const t=i(this),n=!1===e.isCollapsed();return!0===el(t)||n}})),e.$el.tooltip(Uo(Uo({},sl),{},{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=Zo(n);if(!s)return;var r=i(s);a(t)&&s.open&&(t.preventDefault(),u(r),r.on("keydown",(function(e){(o(e)&&l(e.target,r)||a(e)&&c(e.target,r))&&(n.focus(),i(this).off("keydown"),tl())})))}}))}(this),function(e){i(e.collapsedTriggersSelector).each((function(){var t=i(this);il(e,t)}))}(this))}var Ko="_aui-internal-sidebar-";function Jo(e){return i.map(e.split(" "),(function(e){return Ko+e})).join(" ")}function Go(){return document.querySelectorAll(qo.prototype.inlineDialogSelector)}function Qo(){this.inlineDialog=null}function Xo(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function Zo(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function el(e){return 0!==Xo(e).length}function tl(){var e=Go();Array.prototype.forEach.call(e,(function(e){e.open=!1}))}function il(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),el(t))){var n=document.createElement("aui-inline-dialog"),s=Ti("sidebar-submenu");return t.attr("aria-controls",s),t.attr("data-aui-trigger",""),q.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(qo.prototype.inlineDialogClass),document.body.appendChild(n),q.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 a=i.Event("aui-sidebar-submenu-before-show");t.trigger(a,n),a.isDefaultPrevented()?s.preventDefault():function(e,t){e.addClass("active"),t.innerHTML=nl;var n=e.is("a")?e.text():e.children(".aui-nav-heading").text(),s=i(t).find(".aui-navgroup-inner");function a(e){const t=jo(e);return Wo(t,Ti),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),a(Xo(e)).appendTo(s)}(t,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(e){e.removeClass("active")}(t)}))}(e,t,n),n}}qo.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=Jo(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},qo.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=Jo(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},qo.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},qo.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>Yo(this.$el)),this},qo.prototype.setPosition=O(qo.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),qo.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},qo.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",a=this.isViewportNarrow(e)?"narrow":"wide";return t[n][s][a](this),this},qo.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(Ko+"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(Ko+"collapse-end",{isResponsive:e}))),this},qo.prototype.collapse=function(){return this._collapse(!1)},qo.prototype._expand=function(e,t){var n=i.Event(Ko+"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(Ko+"expand-end",{isResponsive:t})),this},qo.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},qo.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},qo.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},qo.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},qo.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)},qo.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var a=Yo(this.$el),r=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||a!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);o||!r&&l||(this.setHeight(e,t,a),this.setTopPosition(e))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(r,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=a,this._previousScrollLeft=s,this},qo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this},qo.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",qo.prototype.collapsedTriggersSelector=[qo.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),qo.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",qo.prototype.tooltipClassName="aui-sidebar-section-tooltip",qo.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",qo.prototype.inlineDialogSelector="."+qo.prototype.inlineDialogClass,Qo.prototype.submenu=function(e){return rl(),Xo(e)},Qo.prototype.hasSubmenu=function(e){return rl(),el(e)},Qo.prototype.submenuHeadingHeight=function(){return rl(),34},Qo.prototype.isShowing=function(){return rl(),qo.prototype.isSubmenuVisible()},Qo.prototype.show=function(e,t){rl(),function(e){Zo(e).open=!0}(t)},Qo.prototype.hide=function(){rl(),tl()},Qo.prototype.inlineDialogShowHandler=function(){rl()},Qo.prototype.inlineDialogHideHandler=function(){rl()},Qo.prototype.moveSubmenuToInlineDialog=function(){rl()},Qo.prototype.restoreSubmenu=function(){rl()},qo.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(Go(),(function(e){return e.open}))},qo.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const nl='<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 sl={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 al=de("sidebar",qo);i((function(){al(".aui-sidebar")}));var rl=A("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});n("sidebar",al);const ol=al;a(42),a(529);function ll(e){var t={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(e){e.keyCode===z.ESCAPE&&n.is(":visible")&&u.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 a=function t(i,a){return e.width=i=i||e.width,e.height=a=a||e.height,n.css({marginTop:-Math.round(a/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:a,"z-index":parseInt(s,10)+2}),t}(e.width,e.height);i("body").append(n),n.hide(),l(n);var r=i(".aui-blanket"),o=function(e,t){var n=i(e,t);return!!n.length&&(n.focus(),!0)},c=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))}},u={changeSize:function(t,i){(t&&t!=e.width||i&&i!=e.height)&&a(t,i),this.show()},show:function(){var t=function(){i(document).off("keydown",e.keypressListener).on("keydown",e.keypressListener),B(),0!==(r=i(".aui-blanket")).length&&e.closeOnOutsideClick&&r.on("click",(function(){n.is(":visible")&&u.hide()})),n.show(),ll.current=this,c(n),i(document).trigger("showLayer",["popup",this])};t.call(this),this.show=t},hide:function(){i(document).unbind("keydown",e.keypressListener),r.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&W();var t=document.activeElement;this.element.has(t).length&&t.blur(),i(document).trigger("hideLayer",["popup",this]),ll.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 cl=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,a){e.buttonpanel||e.addButtonPanel(),a||(a="#"),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",a).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,a=n.length;s<a;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 a=function(e,t,n,s,a){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"),a&&(this.button[0].id=a),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 r=e.panel.length,o=this;e.menu.append(this.item),e.body.append(this.body),e.panel[r]=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):(u("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==r?e.menu.css("display","none"):e.menu.show()};a.prototype.select=function(){this.button.click()},a.prototype.moveUp=a.prototype.moveLeft=n("left","panel"),a.prototype.moveDown=a.prototype.moveRight=n("right","panel"),a.prototype.remove=s("panel"),a.prototype.html=function(e){return e?(this.body.html(e),this):this.body.html()},a.prototype.setPadding=function(e){return isNaN(+e)||(this.body.css("padding",+e),this.padding=+e,this.page.recalcSize()),this};var r=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=ll(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new r(this)}return r.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)}},r.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},r.prototype.addPanel=function(e,t,i,n){return new a(this,e,t,i,n),this.recalcSize(),this},r.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},r.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},r.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},r.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},r.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},r.prototype.hide=function(){this.element.hide()},r.prototype.show=function(){this.element.show()},r.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 r(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(),w("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),w("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),w("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+")",a=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(e+"").replace(a,(function(e,n,s,a,r,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[a]?(d.push(i.page[a]),n=(n=o)&&n.toLowerCase(),s=l,a=c,r=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),r=r&&(r+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||r)for(var h=d.length;h--;){if(r||"panel"==n&&(s||!s&&null==a))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==r||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==a)&&t.push(d[h].panel[p]);if(r||"button"==n&&(s||!s&&null==a))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==r||d[h].button[p].item.html()==s||"button"==n&&!s&&null==a)&&t.push(d[h].button[p]);d[h][n]&&d[h][n][a]&&t.push(d[h][n][a]),"header"==n&&d[h].header&&t.push(d[h].header)}else t=t.concat(d)}));for(var r={length:t.length},o=t.length;o--;)for(var l in r[o]=t[o],t[o])l in r||function(e){r[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return r},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}();cl=I(cl,"Dialog constructor",{alternativeName:"Dialog2"}),ll=I(ll,"Dialog popup constructor",{alternatveName:"Dialog2"}),n("Dialog",cl),n("popup",ll);const ul=!1;var dl=-1!==navigator.platform.indexOf("Mac"),hl=-1!==navigator.userAgent.indexOf("Safari"),pl=/^(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 fl=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 gl(e){var t=[],n=i.Callbacks();function s(e){!ll.current&&n&&n.fire(e)}function a(e){e.preventDefault()}function r(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(pl);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()),r=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(r,ul,n,s),i(document).on(r+" keyup",ul,n,a)}(e)}))}function o(e,t,i){return i?t+=" ("+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+=")"}return r(e),gl.makeShortcut({executor:n,bindKeys:r,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",a=t.slice(),r=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=!l,u=c?s:s.substring(0,s.length-l.length);a.length;){var d=a.shift();r.some((function(e){return(0,He.isEqual)(d,e)}))||(l=o(d.slice(),l,c),c=!1)}dl&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",u+l),n.data("kbShortcutAppended",l),n.data("boundKeyCombos",r.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.removeData("kbShortcutAppended"),t.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:a})}gl.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,a=e.removeShortcutsFromTitle,r=e.keypressHandler,o=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var a=(s=s||{}).focusedClass||"focused",r=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return t.add((function(){const t=i(n);let s=t.filter("."+a);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(e){e.keyCode===z.ESCAPE&&s&&s.removeClass(a)})),s.length&&s.removeClass(a),s=e(s,t,r),s&&s.length>0&&(s.addClass(a),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);fl(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&&(fl(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",r).unbind("keydown keypress keyup",o);for(var e=0,t=l.length;e<t;e++)a(l[e]);l=[]}}},gl.fromJSON=function(e,t){var n=[];return e&&i.each(e,(function(e,s){const a=s.op,r=s.param;let o;if("execute"===a||"evaluate"===a)o=[new Function(r)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(r)){try{o=JSON.parse(r)}catch(e){h("When using a parameter array, array must be in strict JSON format: "+r)}i.isArray(o)||h("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+r)}else o=[r];i.each(s.keys,(function(){var e=this;t&&dl&&(e=i.map(e,(function(e){return e.replace(/ctrl/i,"meta")})));var s=gl(e);s[a].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){hl&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)}))}))})),n("whenIType",gl);const ml=gl,{FocusManager:vl,InlineDialog2:bl,LayerManager:yl,ProgressiveDataSet:wl,clone:_l,debounce:Cl,debounceImmediate:kl,dim:xl,escapeHtml:El,formValidation:Dl,id:Tl,isClipped:Al,keyCode:Sl,layer:Ol,messages:Il,populateParameters:Nl,params:Pl,responsiveheader:Ml,select:Ll,tablessortable:Rl,tabs:$l,undim:jl,_addID:Fl}=window.AJS,{contextPath:Hl}=window.AJS})(),r})()}));
101
+ !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 a(i,n,s){if(!n)return"";var a,r=i.config,o=r.textExtraction||"",l="";return l="basic"===o?e(n).attr(r.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(a=t.getColumnData(i,o,s))?a(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function r(e,n,s,r){for(var o,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=a(e,c=n[s].cells[r],r),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+r+': "'+u+'"')):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,a,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")),a={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=r(e,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),a.parsers[l]=h,a.extractors[l]=p;v+=a.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=a.parsers,g.extractors=a.extractors}function l(s){var r,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&&t.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],r=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=r.normalized.length-1,r.normalized[o][y.columns].$row=r.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!==C[d]?(o=a(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,r.normalized.push(f)}r.colMax=b,y.totalRows+=r.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,a){var r,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=(r=v[d].normalized).length,u=0;u<o;u++)m.push(r[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(r[u][p.columns].$row);t.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),a||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 a,r,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){r=e(this),a=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(r,[i,c]))&&"string"==typeof o&&(c=o),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(r,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(r,a,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(r,a,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),r.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,r.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&r.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,a,r=i.config;r.$headers.each((function(o,l){s=e(l),a=t.getColumnData(i,r.headers,o,!0),n="false"===t.getData(l,a,"sorter")||"false"===t.getData(l,a,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))}))}function f(i){var n,s,a,r=i.config,o=r.sortList,l=o.length,c=t.css.sortNone+" "+r.cssNone,u=[t.css.sortAsc+" "+r.cssAsc,t.css.sortDesc+" "+r.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(r.$extraHeaders).removeClass(u.join(" "));for(r.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=r.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(a=0;a<n.length;a++)n[a].sortDisabled||n.eq(a).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}r.$headers.not(".sorter-false").each((function(){var i=e(this),n=this.order[(this.count+1)%(r.sortReset?3:2)],s=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(e,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 a,r,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&&(r=n,d.$headers.each((function(){this===r||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)}))),r=n.column,h){if(d.sortList=[],null!==d.sortForce)for(a=d.sortForce,o=0;o<a.length;o++)a[o][0]!==r&&d.sortList.push(a[o]);if((l=n.order[n.count])<2&&(d.sortList.push([r,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([r+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(r,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]===r&&(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([r,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([r+o,l])}if(null!==d.sortAppend)for(a=d.sortAppend,o=0;o<a.length;o++)a[o][0]!==r&&d.sortList.push(a[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(e){var i,a,r,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),a=0;a<w;a++)c=m.cache[a].colMax,m.cache[a].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((r=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(r="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],r,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,r=n.$table;r.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,a){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,a)})).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,r.find(n.selectorRemove).remove();var c,u,d,h,p=r.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?a(i,s,h):n.extractors[h].format(a(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(r,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,C=r.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?a(i,l[d].cells[f],f):n.extractors[f].format(a(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(r,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,a,o,u){var d=i.config;n.stopPropagation(),r.trigger("sortStart",this),function(t,i){var n,s,a,r,o,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,(function(t,i){if(r=parseInt(i[0],10),a=l.$headers.filter('[data-column="'+r+'"]: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=a.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":a.count=a.count+1,s=a.order[a.count%(l.sortReset?3:2)];break;default:s=0}o=0===t?s:o,n=[r,parseInt(s,10)||0],l.sortList.push(n),s=e.inArray(n[1],a.order),a.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,a),f(i),d.delayInit&&s(d.cache)&&l(i),r.trigger("sortBegin",this),v(i),c(i,u),r.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 a,r="",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=((a=e.fn.jquery.split("."))[0]=parseInt(a[0],10),a[0]>1||1===a[0]&&parseInt(a[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"))||(r=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=c.addClass(t.css.table+" "+s.tableClass+r).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 a,r=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[r.$headers.index(r.$headers.filter('[data-column="'+n+'"]:last'))];for(a in i)if("string"==typeof a&&(s?r.$headers.eq(n).filter(a):r.$headers.filter('[data-column="'+n+'"]:last').filter(a)).length)return i[a]}},t.computeColumnIndex=function(t){var i,n,s,a,r,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],r=e(o),u=(c=o.parentNode.rowIndex)+"-"+r.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),r.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],a=p;a<p+h;a++)f[a]="x"}return v+1},t.isProcessing=function(i,n,s){var a=(i=e(i))[0].config,r=s||i.find("."+t.css.header);n?(void 0!==s&&a.sortList.length>0&&(r=r.filter((function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),a.sortList)>=0}))),i.add(r).addClass(t.css.processing+" "+a.cssProcessing)):i.add(r).removeClass(t.css.processing+" "+a.cssProcessing)},t.processTbody=function(t,i,n){var s;if(t=e(t)[0],n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},t.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},t.bindEvents=function(t,i,n){var a,r=(t=e(t)[0]).config;!0!==n&&(r.$extraHeaders=r.$extraHeaders?r.$extraHeaders.add(i):i),i.find(r.selectorSort).add(i.filter(r.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(r.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()-a>250)){if("mousedown"===u)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!r.cancelSelection;r.delayInit&&s(r.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=r.$headers[i.index(c)]).sortDisabled||m(t,c,n)}})),r.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 a=e(i),r=i.config,o=a.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+r.cssHeaderRow),c=a.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",r.widgets)>=0&&(a.trigger("applyWidgetId",["uitheme"]),a.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),a.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(r.namespace+" ")),r.$headers.add(c).removeClass([t.css.header,r.cssHeader,r.cssAsc,r.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(r.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(r.namespace+" ")),t.restoreHeaders(i),a.toggleClass(t.css.table+" "+r.tableClass+" tablesorter-"+r.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},t.sortNatural=function(e,i){if(e===i)return 0;var n,s,a,r,o,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(r=parseInt(i.match(d.hex),16)))return-1;if(s>r)return 1}for(n=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),a=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,a.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(a[c])?a[c]||0:parseFloat(a[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:-r||-1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:r||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:r||1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:-r||-1:t.sortNatural(i,e)},t.sortText=function(e,t){return e>t?1:e<t?-1:0},t.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,a=i+t;for(n=0;n<s;n++)a+=e.charCodeAt(n);return t*a}return 0},t.sortNumericAsc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"áàâãäąå",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 a,r,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(a=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,(function(t,i){return e.inArray(t,l.widgets)===i})),e.each(l.widgets||[],(function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)})),u.sort((function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?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&&(r=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+r+" widget"+(1!==r?"s":""),a)))},t.refreshWidgets=function(n,s,a){var r,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(r=0;r<u;r++)c[r]&&c[r].id&&(s||e.inArray(c[r].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[r].id+'"'),c[r].hasOwnProperty("remove")&&o.widgetInit[c[r].id]&&(c[r].remove(n,o,o.widgetOptions),o.widgetInit[c[r].id]=!1));!0!==a&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,a,r="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),a=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?r+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?r+=s[n]:i&&void 0!==i[n]?r+=i[n]:" "!==a&&a.match(" "+n+"-")&&(r=a.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(r)):""},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("."):"",a="",r=s.length;for(n=0;n<r;n++)a+=("00"+s[n]).slice(-3);return e?t.formatFloat(a,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(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 a=i.config,r=a.$headers.filter("[data-column="+s+"]:last"),o=r.length&&r[0].dateFormat||t.getData(r,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,a=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[a]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var a,r,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(a=h.eq(u)).children("tr").length>1&&(o=0,a.children("tr:visible").not(n.selectorRemove).each((function(){r=e(this),d.test(this.className)||o++,l=o%2==0,r.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,a,r=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<r.length;s++)(a=e.tablesorter.processTbody(t,r.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,a,!1)}})}(jQuery)},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,a,r,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,a=function(){return c++},o.on("mousemove",(function(e){u.x=e.pageX,u.y=e.pageY})),i=O(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,r,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"+a()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(r=function(){return i.element.closest("body")},c=!1,function(){return!1===c&&(o=r(),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 a=n.scrollTop();s>0&&a-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,a,r,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,a){var r,l=this.opts.id;(r=function(n,s,c){var u,d,h,p,f,g,m,v,b,y;for(u=0,d=(n=i.sortResults(n,s,a)).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,a,o.opts.escapeMarkup))!==t&&v.html(y),m.append(v),g&&((b=e("<ul></ul>")).addClass("select2-result-sub"),r(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&&(a=i.id,i.id=function(e){return e[a]}),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,a,r={results:[],more:!1},l=e.term;a=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){a(t,n.children)})),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2((function(e,t){a(t,r.results)})),e.callback(r)})),i.id=function(e){return e.id},i.formatResultCssClass=function(e){return e.css}):"query"in i||("ajax"in i?((r=i.element.data("ajax-url"))&&r.length>0&&(i.ajax.url=r),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===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,a,r=this.dropdown,o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=r.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(),_=r.outerWidth(!1),C=b+_<=g;r.hasClass("select2-drop-above")?(i=!0,!w&&y&&(n=!0,i=!1)):(i=!1,!y&&w&&(n=!0,i=!0)),n&&(r.hide(),o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=r.outerHeight(!1),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,C=(b=o.left)+(_=r.outerWidth(!1))<=g,r.show()),this.opts.dropdownAutoWidth?(a=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),(_=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:l.width))>u?u=_:_=u,C=b+_<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(v-=(t=this.body().offset()).top,b-=t.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"),r.addClass("select2-drop-above")):(s.top=v,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=e.extend(s,A(this.opts.dropdownCss)),r.css(s)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var t,i=this.containerId,n="scroll."+i,s="resize."+i,a="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",(function(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 r=this;this.container.parents().add(window).each((function(){e(this).on(s+" "+n+" "+a,(function(e){r.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,a,r,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>(a=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(s-a)),(r=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+r)):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(),a=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind((function(r){n.opened()&&(n.opts.populateResults.call(this,e,r.results,{term:s,page:i,context:a}),n.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).text(n.opts.formatLoadMore(i+1)),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=r.context,this.opts.element.trigger({type:"select2-loaded",items:r}))}))}))},tokenize:function(){},updateResults:function(i){var n,s,a,r=this.search,o=this.results,l=this.opts,c=this,u=r.val(),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())){a=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&T(l.formatSelectionTooBig,"formatSelectionTooBig"))))return r.val().length<l.minimumInputLength?(T(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+l.formatInputTooShort(r.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&r.val().length>l.maximumInputLength?T(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+l.formatInputTooLong(r.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+l.formatSearching()+"</li>"),r.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=t&&null!=s&&r.val(s),this.resultsPage=1,l.query({element:l.element,term:r.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var s;a==this.queryCount&&(this.opened()?(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==r.val()&&(s=this.opts.createSearchChoice.call(c,r.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&&T(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+l.formatNoMatches(r.val())+"</li>"):(o.empty(),c.opts.populateResults.call(this,o,n.results,{term:r.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(){r.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,a,r;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(a=0,r=(n=i.split(";")).length;a<r;a+=1)if(null!==(s=n[a].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=O(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'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].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"+a()),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(),a=null;t.query({matcher:function(e,i,n){var r=g(s,t.id(n));return r&&(a=n),r},callback:e.isFunction(n)?function(){n(a)}: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 a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(S(e.results)>=a)}},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,a=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:a});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:a})}))}},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=O(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),a=[];t.query({matcher:function(i,n,r){var o=e.grep(s,(function(e){return g(e,t.id(r))})).length;return o&&a.push(r),o},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<s.length;i++)for(var r=s[i],o=0;o<a.length;o++){var l=a[o];if(g(r,t.id(l))){e.push(l),a.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"+a()),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)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=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=a.length?a:null:i.which===d.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=s.length?s:a):i.which==d.DELETE?(this.unselect(n.first()),this.search.width(10),o=a.length?a: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==r.offset&&!r.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,a=!i.locked,r=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=a?r:o,c=this.id(i),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),a&&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 a=e.Event("select2-removing");a.val=this.id(i),a.choice=i,this.opts.element.trigger(a),a.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"),a=this.results.find(".select2-result-with-children"),r=this;s.each2((function(e,t){f(r.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))})),a.each2((function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&r.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&T(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+r.opts.formatNoMatches(r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-v(this.search)},resizeSearch:function(){var t,i,n,s,a=v(this.search);t=function(t){if(!r){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(r=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(r)}return r.text(t.val()),r.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-a)<t&&(s=n-a),s<40&&(s=n-a),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e: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,a=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,a.id);a.setVal(i),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(s,a.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw 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,a=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 a.opts.id(e)})),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,a,r,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)),(a=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,(a=e(this).data("select2"))===t)return;if("container"===(r=c[0])?o=a.container:"dropdown"===r?o=a.dropdown:(p[r]&&(r=p[r]),o=a[r].apply(a,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 C(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 a,r,o,l,c,u=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(r=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((r=e.indexOf(c))>=0));o++);if(r<0)break;if(a=e.substring(0,r),e=e.substring(r+c.length),a.length>0&&(a=s.createSearchChoice.call(this,a,i))!==t&&null!==a&&s.id(a)!==t&&null!==s.id(a)){for(d=!1,o=0,l=i.length;o<l;o++)if(g(s.id(a),s.id(i[o]))){d=!0;break}d||n(a)}}return u!==e?e:void 0},escapeMarkup:k,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:D},util:{debounce:y,markMatch:C,escapeMarkup:k,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,a;if(null===t||t.length<1)return[];for(s=0,a=(n=t.split(i)).length;s<a;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,a,r=[];(s=t.attr("class"))&&e((s=""+s).split(" ")).each2((function(){0===this.indexOf("select2-")&&r.push(this)})),(s=i.attr("class"))&&e((s=""+s).split(" ")).each2((function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)})),t.attr("class",r.join(" "))}function C(e,t,i,n){var s=p(e.toUpperCase()).indexOf(p(t.toUpperCase())),a=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+a))),i.push("</span>"),i.push(n(e.substring(s+a,e.length))))}function k(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))}function x(i){var n,s=null,a=i.quietMillis||100,r=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,a=r,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},d=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,a="function"==typeof a?a.call(o,l.term,l.page,l.context):a,s&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(d,i.params.call(o)):e.extend(d,i.params)),e.extend(d,{url:a,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page);l.callback(t)}}),s=c.call(o,d)}),a)}}function E(t){var i,n,s=t,a=function(e){return""+e.text};e.isArray(s)&&(s={results:n=s}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var r=s();return r.text&&(a=r.text,e.isFunction(a)||(i=r.text,a=function(e){return e[i]})),function(t){var i,n=t.term,r={results:[]};""!==n?(i=function(s,r){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2((function(e,t){i(t,o.children)})),(o.children.length||t.matcher(n,a(o),s))&&r.push(o)}else t.matcher(n,a(s),s)&&r.push(s)},e(s().results).each2((function(e,t){i(t,r.results)})),t.callback(r)):t.callback(s())}}function D(i){var n=e.isFunction(i);return function(s){var a=s.term,r={results:[]};e(n?i():i).each((function(){var e=this.text!==t,i=e?this.text:this;(""===a||s.matcher(a,i))&&r.results.push(e?this:{id:this,text:this})})),s.callback(r)}}function T(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 O(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}},115:t=>{"use strict";t.exports=e},564:e=>{"use strict";e.exports=t},511:e=>{"use strict";e.exports=i}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.r(r),a.d(r,{$:()=>Me,CalendarWidget:()=>ho,CheckboxMultiselectEl:()=>Yn,DatePicker:()=>go,DropdownEl:()=>an,FancyFileInput:()=>Kn,FocusManager:()=>vl,Header:()=>so,I18n:()=>I18n,InlineDialog2:()=>bl,InlineDialogEl:()=>ma,ItemCheckboxEl:()=>tn,ItemLinkEl:()=>en,ItemRadioEl:()=>nn,LabelEl:()=>Xn,LayerManager:()=>yl,MessageEl:()=>fn,NavigationEl:()=>ya,ProgressBarEl:()=>Ia,ProgressiveDataSet:()=>wl,RestfulTable:()=>Ro,SectionEl:()=>sn,SelectEl:()=>Ls,SpinnerEl:()=>Ke,TabContainerEl:()=>tr,TabItemEl:()=>ir,TabPaneEl:()=>nr,ToggleEl:()=>Js,_addID:()=>Fl,banner:()=>Fe,bind:()=>b,clone:()=>_l,contextPath:()=>Hl,debounce:()=>Cl,debounceImmediate:()=>kl,dialog2:()=>nt,dim:()=>xl,error:()=>h,escapeHtml:()=>El,flag:()=>_n,formValidation:()=>Dl,format:()=>f,id:()=>Tl,isClipped:()=>Al,keyCode:()=>Sl,layer:()=>Ol,log:()=>u,messages:()=>Il,navigation:()=>wa,params:()=>Pl,populateParameters:()=>Nl,progressBars:()=>Pa,responsiveheader:()=>Ml,select:()=>Ll,sidebar:()=>ol,tablessortable:()=>Rl,tabs:()=>$l,toInit:()=>Re,trigger:()=>w,unbind:()=>y,undim:()=>jl,version:()=>m,warn:()=>d,whenIType:()=>ml});var e=a(564),t=a.n(e);const i=window.jQuery||window.Zepto||t();function n(e,t){return"object"!=typeof window.AJS&&(window.AJS={}),window.AJS[e]=t}var s=a(953),o=a.n(s);function l(e,t){var n=i(e);return void 0===t&&(t=!0),n.each((function(){this.disabled=!t}))}function c(e){return function(){"undefined"!=typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}o()("checkbox",{type:o().type.CLASSNAME,attached:function(e){t()("input[type=checkbox]",e).each((function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(e){t()(".aui-form-glyph",e).remove()}}),o()("radio",{type:o().type.CLASSNAME,attached:function(e){t()("input[type=radio]",e).each((function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(e){t()(".aui-form-glyph",e).remove()}}),n("enable",l),n("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 u=c("log"),d=c("warn"),h=c("error");function p(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,a=/^(\d+)([#<])(.+)/,r=function(t,r){var o,l="";if(o=t.match(i))l=r.length>++t?r[t]:"";else if(o=t.match(n))l=r.length>++o[1]?r[o[1]]:"";else if(o=t.match(s)){var c=r.length>++o[1]?r[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,f=null,g=0;g<u.length;g++){var m=u[g].match(a);if(null!=m){var v=parseInt(m[1],10);if(c<v){if(f){l=f;break}l=m[3];break}if(c==v&&"#"==m[2]){l=m[3];break}g==u.length-1&&(l=m[3]),f=m[3]}else d=!0}d&&h('The format "'+t+'" from message "'+e+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(r,1));l=p.apply(null,b)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var a=e.charAt(s);if("'"==a&&(t=!t),!t)if("{"===a)0===n&&(i=s),n++;else if("}"===a&&n>0&&0===--n){var r=[];return r.push(e.substring(0,s+1)),r.push(e.substring(0,i)),r.push(e.substring(i+1,s)),r}}return null},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+=r(s[2],i),s=o(e);return n+=e.replace(t,"")};return l.apply(null,arguments)}n("error",h),n("log",u),n("warn",d),n("format",p);const f=p;var g="9.4.1";n("version",g);const m=g,v=i(window);function b(e,t,i){try{return"function"==typeof i?v.on(e,false,t,i):v.on(e,false,t)}catch(e){u("error while binding: ",e.message)}}function y(e,t){try{return v.off(e,t)}catch(e){u("error while unbinding: ",e.message)}}function w(e,t){try{return v.trigger(e,t)}catch(e){u("error while triggering: "+e.message)}}n("bind",b),n("trigger",w),n("unbind",y);const _={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},C=new RegExp(`[${Object.keys(_).join("")}]`,"g");function k(e){return e.replace(C,(e=>_[e]))}n("escapeHtml",k);const x=k;var E=Object.prototype.hasOwnProperty,D=[];function T(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function A(e,t){if("function"==typeof e)return e;var i=!1;return t=t||{},function(n){var s,a=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===D.indexOf(a)){D.push(a),i=!0;var r="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&&(r+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(r+=" "+t.extraInfo),a=""===a?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+a,t.extraObject?T(r+="\n",t.extraObject,a):T(r,a)}}}function S(e,t){var n=e.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:t},e.options);A("'"+e.selector+"' pattern"+n,s)()}function O(e,t,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=A(t||e.name||"this function",i);return function(){return n(),e.apply(this,arguments)}}function I(e,t,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=O(e,t,n);return s.prototype=e.prototype,i.extend(s,e),s}var N=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),N=!0)}catch(e){}function P(e,t,i){if("function"==typeof e[t]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||t;e[t]=O(e[t],n,i)}else!function(e,t,i){if(N){var n=e[t];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=A(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 M(e){return function(t){for(var i={selector:t,options:e||{}},n=document.querySelectorAll(t),s=0;s<n.length;s++)S(i,n[s]);!function(e){if(R.push(e),!$){$=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&&R.forEach(L(n))}}))}));var t={childList:!0,subtree:!0};$.observe(document,t)}}(i)}}function L(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)&&S(t,e)}}const R=[];let $;function j(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}var F;n("deprecate",{fn:O,construct:I,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(M(t))},prop:P,obj:function(e,t,n){for(var s in n=n||{},e)E.call(e,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=t+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,P(e,s,i.extend({},n)))},propertyDeprecationSupported:N,getMessageLogger:A});var H=[];function B(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"),H.push(e))})),F||(F=document.body),!0===e&&V();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||(j(B.$dim),B.cachedOverflow={overflow:F.style.overflow,overflowX:F.style.overflowX,overflowY:F.style.overflowY},F.style.overflowX="hidden",F.style.overflowY="hidden",F.style.overflow="hidden"),B.$dim.removeAttr("hidden"),t&&B.$dim.css({zIndex:t}),B.$dim}function W(){H.forEach((function(e){e.removeAttribute("aria-hidden")})),H=[],B.$dim&&(B.$dim[0].setAttribute("hidden",""),F&&(F.style.overflow=B.cachedOverflow.overflow,F.style.overflowX=B.cachedOverflow.overflowX,F.style.overflowY=B.cachedOverflow.overflowY))}var V=A("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});n("dim",B),n("undim",W);var U={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};n("keyCode",U);const z=U;function Y(e,t){window.define&&(0,window.define)(e,[],(function(){return t}));return t}const q=o().noConflict();const K=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 J(e){return K(e).get("last-trigger")||Z(e)[0]}function G(e,t){var i=t&&t.nodeType&&1===t.nodeType;return K(e).set("last-trigger",!!i&&t)}function Q(e,t){var i=J(e);i&&t(i)}function X(e,t){return Array.prototype.forEach.call(Z(e),t)}function Z(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 a=document.querySelectorAll(i),r=Array.prototype.slice.apply(a).concat(n);return 0===r.length&&!0===s&&d([`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(" ")),r}function ee(e){return document.getElementById(e.getAttribute("aria-controls"))}function te(e){return"true"!==e.getAttribute("aria-disabled")}function ie(e,t){if(te(e)){var i=ee(e);i&&i.message&&i.message(t)}}const ne={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(ie(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==z.ENTER&&i!==z.SPACE||(t.preventDefault(),t.type="click",ne.click(e,t))},mouseenter(e,t){ie(e,t)},mouseleave(e,t){ie(e,t)},focus(e,t){ie(e,t)},blur(e,t){(function(e,t){let n=t.relatedTarget;return n||(n=document.activeElement),i(ee(e)).find(n).length>0})(e,t)||ie(e,t)}};Object.keys(ne).forEach((function(e){const t=ne[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:a,which:r}=e;return{type:t,data:"keydown"===t?r||a:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))}))})),q("data-aui-trigger",{type:q.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return te(this)}}}),Y("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 a=t.parentNode,r=a.name,o=i("img[usemap=#"+r+"]").get();return!(!t.href||!r||"map"!==a.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 se="_aui-focus-restore";function ae(e){return e.is(".aui-dialog2")}function re(){this._focusTrapStack=[],this._handler}function oe(e,t){if(0===e.length)return;if(t.keyCode!==z.TAB)return;const n=t.shiftKey?-1:1,s=t.target,a=e[e.length-1],r=a.find(":aui-tabbable");if(!r.length)return;const o=r.index(s);let l=-1;if(o>-1)l=o;else{let e;if(e=i(s).closest(".aui-layer"),!e.length){e=a.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=J(e.get(0));l=r.index(t)}}}l=l>-1?(l+n)%r.length:0,"IFRAME"!==r.get(l).nodeName&&(r.eq(l).trigger("focus"),t.preventDefault())}let le;function ce(){return le||(le=new re),le}re.defaultFocusSelector=":aui-tabbable",re.prototype.enter=function(e,t){if(function(e,t=document.activeElement){e.data(se,t)}(e,t),"false"!==e.attr("data-aui-focus")){var n=e.attr("data-aui-focus-selector")||re.defaultFocusSelector;(e.is(n)?e:e.find(n)).first().trigger("focus")}ae(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=oe.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},re.prototype.exit=function(e){ae(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(se))}(e);n.length&&(e.removeData(se),n.trigger("focus"))}},ce.global=ce(),n("FocusManager",ce);const ue=ce;function de(e,t){var n="_aui-widget-"+e;return function(e,s){var a,r;i.isPlainObject(e)?r=e:(a=e,r=s);var o,l=a&&i(a);return l&&l.data(n)?o=l.data(n):(l=(o=new t(l,r||{})).$el).data(n,o),o}}let he;!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(he=window.CustomEvent)}catch(e){}he=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},he.prototype=window.Event.prototype}();const pe=he,fe="_aui-internal-layer-",ge="_aui-internal-layer-global-";var me=i(document);function ve(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(a){t===a.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))}))}function be(e,t,n){var s=i.Event(fe+t),a=i.Event(ge+t),r=new pe("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new pe("aui-"+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(a,[e]),e[0].dispatchEvent(r),e[0].dispatchEvent(o),!(s.isDefaultPrevented()||a.isDefaultPrevented()||r.defaultPrevented||o.defaultPrevented)}function ye(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function we(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}ye.prototype={below:function(){return Te.global.item(Te.global.indexOf(this.$el)-1)},above:function(){return Te.global.item(Te.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(fe+e,t),this},off:function(e,t){return this.$el.off(fe+e,t),this},show:function(){return this.isVisible()||Te.global.indexOf(this.$el)>-1?this:be(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Te.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return ve(this.$el.get(0),"opacity",(function(){e.isVisible()||(this.style.display="none")}),!0),Te.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=we(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=we(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!be(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&ue.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(fe+"hide"),this.$el.trigger(ge+"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()&&ue.global.enter(this.$el),this.$el.trigger(fe+"show"),this.$el.trigger(ge+"show",[this.$el])}};var _e=de("layer",ye);function Ce(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function ke(e,t){return Ce(e,(function(e){return e[0]===t[0]}))}function xe(e){return Ce(e,(function(e){return _e(e).isBlanketed()}))}function Ee(e,t){var i=xe(e);t!==i&&(i>-1?B(!1,e[i].css("z-index")-20):W())}function De(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,a=e.length-1;a>=t;a--){s=e[a];var r=_e(s);if(i||!r.isPersistent()){if(!r._hideLayer(n))return[!1,s];e.splice(a,1)}}return[!0,s]}function Te(){this._stack=[]}function Ae(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Te.global.indexOf(t)>-1}_e.on=function(e,t,i){return me.on(ge+e,t,i),this},_e.off=function(e,t,i){return me.off(ge+e,t,i),this},Te.prototype={push:function(e){var t=e instanceof i?e:i(e);if(ke(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=_e(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()&&B(!1,s-20),this._stack.push(t),this},popLayersBeside:function(e){const t=i(e).get(0);if(!function(e){return!!J(e)}(t)){var n=xe(this._stack);return void De(this._stack,++n,!1)}const s=function(e){var t=J(e);if(t)return i(t).closest(".aui-layer").get(0)}(t);if(s){let e=this.indexOf(s);De(this._stack,++e,!1)}else De(this._stack,0,!1)},indexOf:function(e){return ke(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach((function(e){let t=_e(e);t.isBlanketed()||t.isPersistent()||t.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=ke(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var a=_e(t);if(!a.isPersistent()||a.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=ke(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var a=_e(t);if(!a.isPersistent()&&!a.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=ke(this._stack,n);if(-1===s)return null;const a=xe(this._stack),r=_e(n),[o,l]=De(this._stack,s+1,r.isBlanketed(),t);return o&&r._hideLayer(t)?(this._stack.splice(s,1),Ee(this._stack,a),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=_e(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=xe(this._stack);if(t<0)return null;var i=this._stack[t];if(_e(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=ke(this._stack,n);return De(this._stack,s,!0,e),n}return null}return De(this._stack,t,!0),Ee(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Te.global.getTopLayer();if(t){var i,n=xe(this._stack),s=_e(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Te.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=_e(t),!t||s.isPersistent())return;i=ke(this._stack,t),De(this._stack,i,!0,e),Ee(this._stack,n)}else i=ke(this._stack,t),De(this._stack,i,!0,e),Ee(this._stack,n)}}},me.on("keydown",(function(e){e.keyCode===z.ESCAPE&&(Te.global.popUntilTopPersistent(!0),e.preventDefault())})),me.on("click",".aui-blanket",(function(e){Te.global.popUntilTopBlanketed(!0)&&e.preventDefault()})),me.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&&!Ae(n)){const t=i.Event("aui-close-layers-on-outer-click");return me.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Te.global.hideAll()}if(!Ae(n)&&s.length){var a=Te.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);a&&_e(a).hide()}}})),Te.global=new Te,_e.Manager=Te,n("layer",_e);const Se=_e;n("LayerManager",Se.Manager);Se.Manager;const Oe={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},Ie=n("params",new Proxy({},{get:function(e,t){return A("AJS.params",Oe)(),e[t]}}));const Ne=O((function(e){e||(e=Ie),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"});n("populateParameters",Ne);const Pe=Ne;i((function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",m),Pe()})),n("$",i);const Me=i;function Le(e){return i.when(i.ready).then((function(){setTimeout((function(){try{e.call(this,i)}catch(t){h("Failed to run init function: "+t.message,e,t,t.stack)}}),1)})),this}n("toInit",Le);const Re=Le,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)?f.apply(null,[this.keys[e]].concat(t)):e}};n("I18n",I18n);function $e(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 je().find(".aui-banner").get().forEach((function(e){e.hasAttribute("hidden")&&i(e).remove()})),function(e){var t=je();if(!t.length)throw new Error("You must implement the application header");e.prependTo(t),j(e),e[0].removeAttribute("hidden")}(t),t[0]}function je(){return i("#header")}Y("aui/banner",$e),n("banner",$e);const Fe=$e;var He=a(511);const Be={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},We={filled:!1,size:Be.MEDIUM.name},Ve="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.",Ue=A("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Ve}),ze=A("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Ve});function Ye(e){let t=Be.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();Object.keys(Be).map((e=>e.toLowerCase())).indexOf(e)>-1&&(t=e)}return t}function qe(e){const{px:t,radius:i}=(0,He.find)(Be,(t=>t.name===e._data.size))||Be.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 a=t/2;s.setAttribute("cx",a),s.setAttribute("cy",a),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(),a=s.top+s.height/2,r=n.top+t/2;e.querySelector("svg").style.top=a-r+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const Ke=q("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){Ue(),e._data.filled=!0,qe(e)},removed:function(e){e._data.filled=!1,qe(e)}},size(e,t){e._data.size=Ye(t.newValue),qe(e)}},prototype:{get _data(){return this.__data||(this._data=(0,He.defaults)({},We))},set _data(e){return this.__data=e},set filled(e){ze(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=Ye(e);this.setAttribute("size",t)}}});function Je(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function Ge(e){return"INPUT"===e.nodeName}q("aui-button",{type:q.type.CLASSNAME,created:function(e){e._spinner=new Ke,e._spinner.setAttribute("size",Be.SMALL.name)},prototype:{busy:function(){return Ge(this)||Je(this)?(d("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 Ge(this)||!Je(this)?(d("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 Ge(this)?(d("It is not valid to call isBusy() on an input button."),!1):Je(this)}}}),Y("aui/button");const Qe=".aui-close-button",Xe=`<button type="button" class="aui-close-button" aria-label="${I18n.getText("aui.words.close")}">`;var Ze={"aui-focus":"false","aui-blanketed":"true"};function et(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 ${Xe}\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(Ze,(function(e,i){var n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)}))}et.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)};Se(i).on(e,n),this._handlers.set(t,n)}return this},et.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Se(i).off(e,n),this._handlers.delete(t)),this},et.prototype.show=function(){return Se(this.$el).show(),this},et.prototype.hide=function(){return Se(this.$el).hide(),this},et.prototype.remove=function(){return Se(this.$el).remove(),this},et.prototype.isVisible=function(){return Se(this.$el).isVisible()};var tt=de("dialog2",et),it=new Set;tt.on=function(e,t){return it.has(t)||(Se.on(e,".aui-dialog2",t),it.add(t)),this},tt.off=function(e,t){return it.has(t)&&(Se.off(e,".aui-dialog2",t),it.delete(t)),this},i(document).on("click keydown",".aui-dialog2-header .aui-close-button",(function(e){("click"===e.type||e.keyCode===z.ENTER||e.keyCode===z.SPACE)&&(e.preventDefault(),tt(i(e.target).closest(".aui-dialog2")).hide())})),tt.on("show",(function(e,t){t.find(Qe).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()})),tt.on("hide",(function(e,t){var i=Se(t);t.data("aui-remove-on-hide")&&i.remove()})),Y("aui/dialog2",tt),n("dialog2",tt);const nt=tt;var st,at,rt=a(596),ot=a.n(rt),lt=navigator.userAgent.toLowerCase(),ct=(/msie/.test(lt),/windows nt 5.1/.test(lt),/windows nt 6.0/.test(lt),/windows nt 6.1/.test(lt),/mac os x/.test(lt));function ut(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 dt(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function ht(e){var t=dt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pt(e){return e instanceof dt(e).Element||e instanceof Element}function ft(e){return e instanceof dt(e).HTMLElement||e instanceof HTMLElement}function gt(e){return e?(e.nodeName||"").toLowerCase():null}function mt(e){return(pt(e)?e.ownerDocument:e.document).documentElement}function vt(e){return ut(mt(e)).left+ht(e).scrollLeft}function bt(e){return dt(e).getComputedStyle(e)}function yt(e){var t=bt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function wt(e,t,i){void 0===i&&(i=!1);var n,s,a=mt(t),r=ut(e),o=ft(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==gt(t)||yt(a))&&(l=(n=t)!==dt(n)&&ft(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ht(n)),ft(t)?((c=ut(t)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=vt(a))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}function _t(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Ct(e){return"html"===gt(e)?e:e.assignedSlot||e.parentNode||e.host||mt(e)}function kt(e){return["html","body","#document"].indexOf(gt(e))>=0?e.ownerDocument.body:ft(e)&&yt(e)?e:kt(Ct(e))}function xt(e,t){void 0===t&&(t=[]);var i=kt(e),n="body"===gt(i),s=dt(i),a=n?[s].concat(s.visualViewport||[],yt(i)?i:[]):i,r=t.concat(a);return n?r:r.concat(xt(Ct(a)))}function Et(e){return["table","td","th"].indexOf(gt(e))>=0}function Dt(e){if(!ft(e)||"fixed"===bt(e).position)return null;var t=e.offsetParent;if(t){var i=mt(t);if("body"===gt(t)&&"static"===bt(t).position&&"static"!==bt(i).position)return i}return t}function Tt(e){for(var t=dt(e),i=Dt(e);i&&Et(i)&&"static"===bt(i).position;)i=Dt(i);return i&&"body"===gt(i)&&"static"===bt(i).position?t:i||function(e){for(var t=Ct(e);ft(t)&&["html","body"].indexOf(gt(t))<0;){var i=bt(t);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return t;t=t.parentNode}return null}(e)||t}var At="top",St="bottom",Ot="right",It="left",Nt="auto",Pt=[At,St,Ot,It],Mt="start",Lt="end",Rt="viewport",$t="popper",jt=Pt.reduce((function(e,t){return e.concat([t+"-"+Mt,t+"-"+Lt])}),[]),Ft=[].concat(Pt,[Nt]).reduce((function(e,t){return e.concat([t,t+"-"+Mt,t+"-"+Lt])}),[]),Ht=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Bt(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 Wt(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 Vt(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ut(e,t){return t===Rt?Vt(function(e){var t=dt(e),i=mt(e),n=t.visualViewport,s=i.clientWidth,a=i.clientHeight,r=0,o=0;return n&&(s=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,o=n.offsetTop)),{width:s,height:a,x:r+vt(e),y:o}}(e)):ft(t)?function(e){var t=ut(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):Vt(function(e){var t=mt(e),i=ht(e),n=e.ownerDocument.body,s=Math.max(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-i.scrollLeft+vt(e),o=-i.scrollTop;return"rtl"===bt(n||t).direction&&(r+=Math.max(t.clientWidth,n?n.clientWidth:0)-s),{width:s,height:a,x:r,y:o}}(mt(e)))}function zt(e,t,i){var n="clippingParents"===t?function(e){var t=xt(Ct(e)),i=["absolute","fixed"].indexOf(bt(e).position)>=0&&ft(e)?Tt(e):e;return pt(i)?t.filter((function(e){return pt(e)&&Wt(e,i)&&"body"!==gt(e)})):[]}(e):[].concat(t),s=[].concat(n,[i]),a=s[0],r=s.reduce((function(t,i){var n=Ut(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}),Ut(e,a));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Yt(e){return e.split("-")[0]}function qt(e){return e.split("-")[1]}function Kt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jt(e){var t,i=e.reference,n=e.element,s=e.placement,a=s?Yt(s):null,r=s?qt(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(a){case At:t={x:o,y:i.y-n.height};break;case St:t={x:o,y:i.y+i.height};break;case Ot:t={x:i.x+i.width,y:l};break;case It:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=a?Kt(a):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case Mt:t[c]=Math.floor(t[c])-Math.floor(i[u]/2-n[u]/2);break;case Lt:t[c]=Math.floor(t[c])+Math.ceil(i[u]/2-n[u]/2)}}return t}function Gt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Qt(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function Xt(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,a=i.boundary,r=void 0===a?"clippingParents":a,o=i.rootBoundary,l=void 0===o?Rt:o,c=i.elementContext,u=void 0===c?$t:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=Gt("number"!=typeof f?f:Qt(f,Pt)),m=u===$t?"reference":$t,v=e.elements.reference,b=e.rects.popper,y=e.elements[h?m:u],w=zt(pt(y)?y:y.contextElement||mt(e.elements.popper),r,l),_=ut(v),C=Jt({reference:_,element:b,strategy:"absolute",placement:s}),k=Vt(Object.assign(Object.assign({},b),C)),x=u===$t?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=e.modifiersData.offset;if(u===$t&&D){var T=D[s];Object.keys(E).forEach((function(e){var t=[Ot,St].indexOf(e)>=0?1:-1,i=[At,St].indexOf(e)>=0?"y":"x";E[e]+=T[i]*t}))}return E}var Zt={placement:"bottom",modifiers:[],strategy:"absolute"};function ei(){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 ti(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,a=void 0===s?Zt:s;return function(e,t,i){void 0===i&&(i=a);var s,r,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Zt),a),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({},a),o.options),i),o.scrollParents={reference:pt(e)?xt(e):e.contextElement?xt(e.contextElement):[],popper:xt(t)};var s=function(e){var t=Bt(e);return Ht.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 a=s({state:o,name:t,instance:u,options:n}),r=function(){};l.push(a||r)}})),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,i=e.popper;if(ei(t,i)){o.rects={reference:wt(t,Tt(i),"fixed"===o.options.strategy),popper:_t(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],a=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof a&&(o=a({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 r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!ei(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 ii={passive:!0};var ni={top:"auto",right:"auto",bottom:"auto",left:"auto"};function si(e){var t,i=e.popper,n=e.popperRect,s=e.placement,a=e.offsets,r=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}}(a),u=c.x,d=c.y,h=a.hasOwnProperty("x"),p=a.hasOwnProperty("y"),f=It,g=At,m=window;if(l){var v=Tt(i);v===dt(i)&&(v=mt(i)),s===At&&(g=St,d-=v.clientHeight-n.height,d*=o?1:-1),s===It&&(f=Ot,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:r},l&&ni);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 ai={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(e){return e.replace(/left|right|bottom|top/g,(function(e){return ai[e]}))}var oi={start:"end",end:"start"};function li(e){return e.replace(/start|end/g,(function(e){return oi[e]}))}function ci(e,t,i){return Math.max(e,Math.min(t,i))}function ui(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 di(e){return[At,Ot,St,It].some((function(t){return e[t]>=0}))}var hi=ti({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,a=void 0===s||s,r=n.resize,o=void 0===r||r,l=dt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",i.update,ii)})),o&&l.addEventListener("resize",i.update,ii),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ii)})),o&&l.removeEventListener("resize",i.update,ii)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Jt({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,a=i.adaptive,r=void 0===a||a,o={placement:Yt(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),si(Object.assign(Object.assign({},o),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),si(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];ft(s)&&gt(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]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});ft(n)&&gt(n)&&(Object.assign(n.style,a),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,a=void 0===s?[0,0]:s,r=Ft.reduce((function(e,i){return e[i]=function(e,t,i){var n=Yt(e),s=[It,At].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign(Object.assign({},t),{},{placement:e})):i,r=a[0],o=a[1];return r=r||0,o=(o||0)*s,[It,Ot].indexOf(n)>=0?{x:o,y:r}:{x:r,y:o}}(i,t.rects,a),e}),{}),o=r[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]=r}},{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,a=void 0===s||s,r=i.altAxis,o=void 0===r||r,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=Yt(m),b=l||(v===m||!f?[ri(m)]:function(e){if(Yt(e)===Nt)return[];var t=ri(e);return[li(e),t,li(t)]}(m)),y=[m].concat(b).reduce((function(e,i){return e.concat(Yt(i)===Nt?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,a=i.rootBoundary,r=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Ft:l,u=qt(n),d=u?o?jt:jt.filter((function(e){return qt(e)===u})):Pt,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]=Xt(e,{placement:i,boundary:s,rootBoundary:a,padding:r})[Yt(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,C=new Map,k=!0,x=y[0],E=0;E<y.length;E++){var D=y[E],T=Yt(D),A=qt(D)===Mt,S=[At,St].indexOf(T)>=0,O=S?"width":"height",I=Xt(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?A?Ot:It:A?St:At;w[O]>_[O]&&(N=ri(N));var P=ri(N),M=[];if(a&&M.push(I[T]<=0),o&&M.push(I[N]<=0,I[P]<=0),M.every((function(e){return e}))){x=D,k=!1;break}C.set(D,M)}if(k)for(var L=function(e){var t=y.find((function(t){var i=C.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,a=void 0===s||s,r=i.altAxis,o=void 0!==r&&r,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=Xt(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Yt(t.placement),b=qt(t.placement),y=!b,w=Kt(v),_="x"===w?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,x=t.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):g,D={x:0,y:0};if(C){if(a){var T="y"===w?At:It,A="y"===w?St:Ot,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===Mt?k[S]:x[S],L=b===Mt?-x[S]:-k[S],R=t.elements.arrow,$=p&&R?_t(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[T],H=j[A],B=ci(0,k[S],$[S]),W=y?k[S]/2-P-B-F-E:M-B-F-E,V=y?-k[S]/2+P+B+H+E:L+B+H+E,U=t.elements.arrow&&Tt(t.elements.arrow),z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,Y=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,q=C[w]+W-Y-z,K=C[w]+V-Y,J=ci(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?At:It,Q="x"===w?St:Ot,X=C[_],Z=ci(X+m[G],X,X-m[Q]);C[_]=Z,D[_]=Z-X}t.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=i.elements.arrow,a=i.modifiersData.popperOffsets,r=Yt(i.placement),o=Kt(r),l=[It,Ot].indexOf(r)>=0?"height":"width";if(s&&a){var c=i.modifiersData[n+"#persistent"].padding,u=_t(s),d="y"===o?At:It,h="y"===o?St:Ot,p=i.rects.reference[l]+i.rects.reference[o]-a[o]-i.rects.popper[l],f=a[o]-i.rects.reference[o],g=Tt(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,_=ci(b,w,y),C=o;i.modifiersData[n]=((t={})[C]=_,t.centerOffset=_-w,t)}},effect:function(e){var t=e.state,i=e.options,n=e.name,s=i.element,a=void 0===s?"[data-popper-arrow]":s,r=i.padding,o=void 0===r?0:r;null!=a&&("string"!=typeof a||(a=t.elements.popper.querySelector(a)))&&Wt(t.elements.popper,a)&&(t.elements.arrow=a,t.modifiersData[n+"#persistent"]={padding:Gt("number"!=typeof o?o:Qt(o,Pt))})},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,a=t.modifiersData.preventOverflow,r=Xt(t,{elementContext:"reference"}),o=Xt(t,{altBoundary:!0}),l=ui(r,n),c=ui(o,s,a),u=di(l),d=di(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 pi={"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 fi(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function gi(e){return fi(e,"alignment")||"right middle"}function mi(e){let[t,i]=gi(e).split(" ");return{side:t,snap:i}}function vi(e){let t=function(e){let t=fi(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 bi(e,t){const i=mi(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=gi(e);return pi[t]||"right"}(e):(i.snap=vi(t),n="submenu"===i.side?pi[("right"===i.snap?"left":"right")+" top"]:pi[`${i.side} ${i.snap}`]),n}const yi={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function wi(e,t,i={}){const n=mi(e),s=bi(e,t),a=yi[s.split("-")[0]],r=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:a,boundary:r||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:r||(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}}];r&&t.ownerDocument!=e.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(e){const t=r.getBoundingClientRect(),i=window.getComputedStyle(r),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),a=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+=a,e.offsets.popper.left+=o,e.offsets.popper.top+=a,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=hi(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)}wi.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 _i=wi;function Ci(e){let t=new i.Deferred;return e?setTimeout((()=>{e.parentElement||t.resolve()}),12):t.reject(),t.promise()}var ki,xi,Ei=0;function Di(e){if(ki=Ei+++"",xi=e?e+ki:"aui-uid-"+ki,document.getElementById(xi)){if(xi=xi+"-"+(new Date).getTime(),document.getElementById(xi))throw new Error('Timestamped fallback ID "'+xi+'" exists.');return xi}return xi}n("id",Di);const Ti=Di;function Ai(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function Si(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}function Oi(e,t={}){const i=t&&t.type&&(t.type.indexOf("mouse")>-1||t.type.indexOf("hover")>-1);e.isSubmenu&&!i?e.focusItem(0):e.focus()}var Ii="unloaded",Ni="loading",Pi="error";function Mi(e,t){K(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 ${x(e.content)}\n </${n}>`})).join("");return`\n <aui-section ${e.label?`label="${e.label}"`:""}>\n ${t}\n </aui-section>`})).join("\n")}(t),q.init(e),Q(e,(function(t){document.activeElement===t&&Oi(e)}))}function Li(e){K(e).set("loading-state",Pi),K(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 Ri(e){e.src&&K(e).get("loading-state")!==Ni&&(!function(e){K(e).set("loading-state",Ni),K(e).set("hasErrorBeenShown",!1),Q(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?Mi(e,t):Li(e)})).fail((function(){Li(e)})).always((function(){!function(e){Q(e,(function(e){e.setAttribute("aria-busy","false")}))}(e)})))}function $i(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 ji(e){return $i(e,(()=>!0))}function Fi(e){return $i(e,((e,t)=>!Ai(t)))}function Hi(e){ji(e).each(((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Ai(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Bi(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Wi(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 a=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)):a||(e.setAttribute("data-aui-alignment","bottom auto"),e.setAttribute("data-aui-alignment-static",!0)),Bi(e),e._auiAlignment=new _i(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")||(q.init(this),A("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 a=n.find(":focus");a.length&&t.is(".aui-dropdown2-trigger")&&a.blur()}));var Vi=!1;function Ui(){Vi=!0}function zi(e){Se(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),Hi(e),i(e).trigger("aui-dropdown2-show"),Q(e,(function(t){Si(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"),ji(e).removeClass("active aui-dropdown2-active"),Q(e,(function(e){var t;t=!0===Vi,Vi=!1,t?(e.focus(),Si(e,e.hasSubmenu&&e.hasSubmenu())):Si(e,!1)})),delete e.isSubmenu,G(e,null))}))}function Yi(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===z.DOWN?(e.focusNext(),t.preventDefault()):t.keyCode===z.UP?(e.focusPrevious(),t.preventDefault()):t.keyCode===z.LEFT?e.isSubmenu&&(Ui(),e.hide(t),t.preventDefault()):t.keyCode===z.ESCAPE?Ui():t.keyCode===z.TAB&&(Ui(),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,a=t.keyCode,r=a===z.ENTER,o=a===z.SPACE;r&&i(s).is("a[href], button")||"click"!==t.type&&!r&&!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=Se(n);n=Se(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 a=Se(e).above();a&&Se(a).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")),zi(e),Yi(e),i(e).on("click keydown",".aui-dropdown2-checkbox",(function(e){if("click"===e.type||e.keyCode===z.ENTER||e.keyCode===z.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===z.ENTER||e.keyCode===z.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,He.debounce)((function(){i(".aui-dropdown2").each((function(e,t){q.init(t),t.isVisible()&&t.hide()}))}),1e3,!0));var Ki={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")&&G(t,e.currentTarget),Se(t).show(),Q(t,(function(e){Wi(t,e)})),setTimeout((()=>Oi(t,e)),0),this},hide:function(){return Se(this).hide(),this},focusNext:function(){var e,t=Fi(this),i=document.activeElement;t.last()[0]!==i&&(e=t.toArray().indexOf(i),this.focusItem(t.get(e+1)))},focusPrevious:function(){var e,t=Fi(this),i=document.activeElement;t.first()[0]!==i&&(e=t.toArray().indexOf(i),this.focusItem(t.get(e-1)))},focusItem:function(e){const t=Fi(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 Se(this).isVisible()}},Ji={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")}},Gi={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Qi={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new pe("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 pe("change",{bubbles:!0}))}},Xi={created:function(e){Ji.created(e)},removed:function(e){Ji.removed(e)}},Zi=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const en=q("aui-item-link",{template:ot()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Ji,interactive:Gi,hidden:Xi,href:Zi("href"),"item-id":Zi("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")}}}}),[tn,nn]=["checkbox","radio"].map((e=>q(`aui-item-${e}`,{template:ot()(`<span role="${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Zi("id"),disabled:Ji,interactive:Gi,checked:Qi,hidden:Xi}}))),sn=q("aui-section",{template:ot()('\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=Ti();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")}}),an=q("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Se(e),K(e).set("loading-state",Ii),q.init(e)},detached:function(e){Ci(e).then((()=>Bi(e)))},attributes:{src:{}},prototype:Ki,events:{"aui-layer-show":function(e){var t=K(e).get("loading-state")===Ii,i=K(e).get("hasErrorBeenShown");(t||i)&&Ri(e),K(e).get("loading-state")===Pi&&K(e).set("hasErrorBeenShown",!0)}}});q("aui-dropdown2",{type:q.type.CLASSNAME,created:qi,prototype:Ki}),q("data-aui-dropdown2",{type:q.type.ATTRIBUTE,created:qi,prototype:Ki}),q("aui-dropdown2-trigger",{type:q.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 a=document.getElementById(t);if(!a)return void h('Could not find a dropdown with id "'+t+'" in the DOM.');const r=i(e);return r.parent().hasClass("aui-buttons")&&a.classList.add("aui-dropdown2-in-buttons"),r.parents().hasClass("aui-header")&&a.classList.add("aui-dropdown2-in-header"),s?a.show(n):a.toggle(n),a.isSubmenu=e.hasSubmenu(),a}t||(t=e.getAttribute("aria-owns"),t?(e.removeAttribute("aria-owns"),e.setAttribute("aria-controls",t)):h('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===z.ENTER||t.keyCode===z.SPACE,s=t.keyCode===z.RIGHT&&e.hasSubmenu(),a=(t.keyCode===z.UP||t.keyCode===z.DOWN)&&!e.hasSubmenu();i?n(t):(a||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=K(e).get("loading-state")===Ii,i=K(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&Ri(e)}(n),e.hasSubmenu()&&(n.show(i),n.isSubmenu=e.hasSubmenu()),n;h('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")}}}),q("aui-dropdown2-sub-trigger",{type:q.type.CLASSNAME,created:function(e){e.classList.add("aui-dropdown2-trigger"),q.init(e)}}),["checkbox","radio"].map((e=>q(`aui-dropdown2-${e}`,{type:q.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"),ct&&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 rn=i(document),on=function(e){var t={};return t.$trigger=i(e.currentTarget),t.$content=rn.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},ln=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)}},cn={"aui-expander-invoke":function(e){var t=i(e.currentTarget),n=rn.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=on(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"),ln(t),t.triggerIsParent&&t.$shortContent.hide(),t.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(e){var t=on(e);"true"===t.$content.attr("aria-expanded")&&(ln(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)}};rn.on(cn,".aui-expander-trigger");function un(e){pn[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:a},r){const o=s?`<p class="title"><strong>${x(s)}</strong></p>`:"",l=i(`<div class="aui-message">${o}</div>`).append(i.parseHTML(a||"")).addClass(t?"closeable":"").addClass(n?"fadeout":"").addClass(`aui-message-${r}`);e&&(/[#\'\"\.\s]/g.test(e)?d("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&&dn(s),n.fadeout&&hn(s,n.delay,n.duration),s}}function dn(e){i(e||"div.aui-message.closeable").each((function(){var e,t=i(this),n=t.find(Qe),s=n.length>0?n.first():i(Xe);t.addClass("closeable"),t.append(s),(e=t).unbind("click.aui-message").unbind("keydown.aui-message"),e.on("click.aui-message",Qe,(function(e){i(e.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Qe,(function(e){e.which!==z.ENTER&&e.which!==z.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())}))}))}function hn(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,a=!1;function r(){e.stop(!0,!1).delay(t).fadeOut(n,(function(){e.closeMessage()}))}function o(){e.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!a}e.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&r()})).hover((function(){a=!0,o()}),(function(){a=!1,l()&&r()})),r()}))}var pn={setup:function(){dn(),hn()},makeCloseable:dn,makeFadeout:hn,createMessage:un};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]))},un("generic"),un("error"),un("warning"),un("info"),un("confirmation"),un("change"),un("success"),un("hint");const fn=q("aui-message",{created:function(e){var t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",pn[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(){pn.setup()})),P(pn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),P(pn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),P(pn,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),P(pn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),P(pn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),P(pn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),n("messages",pn);var gn="aui-flag-container",mn={body:"",close:"manual",title:"",type:"info"};function vn(e){(e=i.extend({},mn,e)).title=(e.title||"").toString().trim();var t=function({body:e,title:t,close:n,type:s}){const a=t?`<p class="title"><strong>${x(t)}</strong></p>`:"",r=i(`<div class="aui-message">${a}</div>`).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`);return i('<div class="aui-flag" aria-live="polite"></div>').append(r)}(e);return function(e){e[0].close=function(){yn(e)}}(t),"auto"===e.close?(bn(t),function(e){e.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){e[0].close()}),5e3)}(t)):"manual"===e.close&&bn(t),function(){const e=wn();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=wn();e.appendTo(t),j(e),e.removeAttr("hidden").attr("open","")}(t),t.get(0)}function bn(e){var t=i(Xe);return t.on("click",(function(){yn(e)})),t.on("keypress",(function(t){t.which!==z.ENTER&&t.which!==z.SPACE||(yn(e),t.preventDefault())})),e.find(".aui-message").append(t)[0]}function yn(e){var t=e.get(0);return t.removeAttribute("open"),t.dispatchEvent(new pe("aui-flag-close",{bubbles:!0})),t}function wn(){return document.getElementById(gn)}Y("aui/flag",vn),n("flag",vn);const _n=vn;function Cn(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 kn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(i),!0).forEach((function(t){xn(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Cn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function xn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const En="aui-tooltip",Dn={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},Tn={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1};let An;class Sn{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options=kn(kn({},Tn),t),this.enabled=this.options.enabled,this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),On.delete(this.triggerElement)}moveTitleToTooltip(){const e=this,t=this.$triggerElement;t.attr("title",(function(i,n){return e.originalTitle=n,t.attr("aria-describedby",En),null}))}unbindHandlers(){const e=this.options.live;this.options.$delegationRoot&&e?this.options.$delegationRoot.off(".aui-tooltip",e):this.$triggerElement.off(".aui-tooltip")}getFloatingTip(){const e=this.options;let t="function"==typeof e.title?e.title:"string"==typeof e.title?()=>e.title:()=>this.originalTitle||"";return void 0===An&&(An=i('<div id="aui-tooltip" class="aui-tooltip assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>'),i(document.body).append(An)),e.html?An.find(".aui-tooltip-content").html(t.call(this.triggerElement)):An.find(".aui-tooltip-content").text(t.call(this.triggerElement)),An}show(){if(!1===this.enabled)return;this.hide();const e=this.triggerElement,t=Dn[this.options.gravity];clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(e)||(this.popperTimeout=setTimeout((()=>{const n=this.getFloatingTip().get(0);n.classList.remove("assistive"),this.popperInstance=hi(e,n,{placement:t,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on("scroll.aui-tooltip",(()=>this.hide()))}),300))}hide(){this.getFloatingTip().get(0).classList.add("assistive"),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off("scroll.aui-tooltip")}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const On=new WeakMap,In=(e,t)=>{let i=On.get(e);return void 0===i&&(i=new Sn(e,t),"object"==typeof e&&On.set(e,i)),i},Nn=e=>e.map((e=>`${e}.aui-tooltip`)).join(" "),Pn=Nn(["mouseenter","focus"]),Mn=Nn(["click","mouseleave","blur"]);i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return In(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(){In(this,i).show()},s=function(){In(this,i).hide()},a=i.live;return void 0!==a?(i.$delegationRoot=t,t.on(Pn,a,n),t.on(Mn,a,s),t):(t.on(Pn,n),t.on(Mn,s),t)};var Ln=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(),a=i("<ul />").appendTo(s);return i.each(e,(function(e,t){var n=i("<li />").attr({class:t.styleClass||""}).appendTo(a),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()},Rn=function(e,t){var n=e+"-dropdown",s=i("<select />").attr({name:e,multiple:"multiple"}).html(t),a=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),r=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(r).append(a).html()};function $n(e){var t=i(e.target);jn(this,t.attr("data-value"),t.hasClass("aui-dropdown2-checked"))}function jn(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 Fn(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Vn(e).length<1}))}function Hn(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 Bn(e){e.$dropdown.html(Ln(function(e){return Hn(e.getOptions())}(e))),Fn(e)}function Wn(e){var t=Un(e),n=function(e){return 0===Vn(e).length}(e)?function(e){return i(e).data("allLabel")||"All"}(e):t.join(", ");e.$btn.text(n)}function Vn(e){return Hn(e.getSelectedOptions())}function Un(e){return i.map(Vn(e),(function(e){return e.label}))}const zn=q("aui-checkbox-multiselect",{attached:function(e){var t=e.getAttribute("name")||Ti("aui-checkbox-multiselect-");e.innerHTML=Rn(t,e.innerHTML),e.$select=i("select",e).on("change",(function(){Wn(e),Fn(e)})),e.$dropdown=i(".aui-checkbox-multiselect-dropdown",e).on("aui-dropdown2-item-check",$n.bind(e)).on("aui-dropdown2-item-uncheck",$n.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")?"":Un(e).join(", ")}(e)}}),Wn(e),Bn(e)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){jn(this,e,!0)},unselectOption:function(e){jn(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),Wn(this),Bn(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),Wn(this),Bn(this)}}});Y("aui/checkbox-multiselect",zn);const Yn=zn;var qn=a(726);const Kn=a.n(qn)();const Jn=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?h(i,e):h(i),!1)}return{attributeExists:t,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},Gn="-input";function Qn(e){return e.querySelector("label")}const Xn=q("aui-label",{template:ot()("<label><content></content></label>"),created:function(e){e._label=Qn(e)},attached:function(e){Jn(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?Qn(e).setAttribute("for",`${t.newValue}-input`):Qn(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?Qn(e).setAttribute("form",t.newValue):Qn(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()}}});a(37);var Zn=i.fn.select2,es="aui-select2-container",ts="aui-select2-drop aui-dropdown2",is="aui-has-avatar";i.fn.auiSelect2=function(e){var t;if(i.isPlainObject(e)){var n=i.extend({},e),s=n.hasAvatar?" "+is:"";n.containerCssClass=es+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=ts+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),(t=Array.prototype.slice.call(arguments,1)).unshift(n)}else t=arguments.length?arguments:[{containerCssClass:es,dropdownCssClass:ts}];return Zn.apply(this,t)},i.fn.spin=O((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),q.init(this),t.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=O((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 ns=q("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||x(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=x(this.textContent),e}}});var ss=a(115),as=a.n(ss),rs=as().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,He.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,He.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,He.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return as().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,He.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,He.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))}});n("ProgressiveDataSet",rs);const os=rs,ls=as().Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}});function cs(){this._suggestions=[],this._activeIndex=-1}cs.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 us=cs;function ds(e,t){return e+"-"+t}function hs(e,t){this.el=e,this.anchor=t}function ps(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}hs.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(),a=e.get("img-src"),r=a?`<img src="${encodeURI(a)}"/>`:"",o=e.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";n+=`<li role="option" class="aui-select-suggestion" id="${ds(i,s)}">${r}${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){ps(this.el),i(this.el).find("#"+ds(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()),Se(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new _i(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!0,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){var e;ps(this.el),Se(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 fs=hs,gs=ot()('\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 ms(e){e._select.selectedIndex=-1,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function vs(e){return e._suggestionModel.getNumberOfResults()}function bs(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function ys(e){e._suggestionsView.hide(),e._input.setAttribute("aria-expanded","false")}function ws(e){var t=vs(e)?0:-1;e._suggestionModel.highlight(t),ys(e)}function _s(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function Cs(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 ks(e,t){if(t){var i,n=document.createElement("option"),s=e._select,a=t.get("value")||t.get("label"),r=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",a),n.textContent=r,e._input.value=r,s.innerHTML="",s.options.add(n),s.dispatchEvent(new pe("change",{bubbles:!0}))}}function xs(e){ks(e,e._suggestionModel.highlighted()),Cs(e),ws(e)}function Es(e){return new ls(e.serialize())}function Ds(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(Es(n))}return t}function Ts(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function As(e,t){return i.map(t,(function(e){return e.id})).indexOf(e)}function Ss(e){e._progressiveDataSet=new os(Ds(e),{model:ls,matcher:bs,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),K(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),K(e).set("should-flag-new-suggestions",!0))})),e._progressiveDataSet.on("respond",(function(t){if(t.query&&!e._input.value)return;if(K(e).get("should-cancel-response"))return void(e._progressiveDataSet.activeQueryCount||K(e).set("should-cancel-response",!1));t.query||(t.results=Ds(e));var i=-1!==As(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 ns;t.setAttribute("value",e._input.value);var i=Es(t);return i.set("new-value",!0),i}(e)),!K(e).get("should-include-selected")){var s=As(e.value,t.results);s>=0&&t.results.splice(s,1)}const a=function(e,t){const i=e._suggestionModel.getNumberOfResults();return e._suggestionModel.set(),e._suggestionModel.set(t.results),i!==e._suggestionModel.getNumberOfResults()}(e,t),r=e._suggestionModel.highlighted()||t.results[0];e._autoHighlight&&(e._suggestionModel.setHighlighted(r),setTimeout((function(){e._input.setAttribute("aria-activedescendant",Ts(e))}),50)),e._input.setAttribute("aria-expanded","true"),!e._isSync&&a&&e._suggestionsView.getActive()&&K(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),e._suggestionsView.show()}))}function Os(e){var t=e.value?"":e._input.value,i=""===e._input.value;K(e).set("should-include-selected",i),_s(e,!0,t)}function Is(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&K(e).set("should-cancel-response",!0)}function Ns(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function Ps(e){Is(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==Ns(e);if(i||n)if(t)ms(e);else{var s=Ns(e);void 0===s?ms(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(-1)}(e),ys(e)}const Ms=q("aui-select",{template:gs,created:function(e){e._listId=Ti(),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 fs(e._dropdown,e._input),e._suggestionModel=new us,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",Ts(e))}},attached:function(e){q.init(e),Ss(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){vs(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(!vs(e))return!1;e._suggestionModel.highlight(i(n.target).index()),xs(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&&ks(e,Es(t))}(e),ws(e),Cs(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),Ci(e).then((()=>{ys(e),e._suggestionsView.destroy()}))},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+Gn)},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){Ps(e)},"mousedown button":function(e){document.activeElement!==e._input||e._dropdown.hasAttribute("hidden")||K(e).set("prevent-open-on-button-click",!0)},"click input":function(e){Os(e)},"click button":function(e){var t=K(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):(K(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?(K(e).set("should-include-selected",!0),_s(e,!0)):K(e).get("button-clicked-prevent-dropdown-hide")?K(e).set("button-clicked-prevent-dropdown-hide",!1):ys(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===z.ESCAPE)return Is(e),void ys(e);e._suggestionsView.isVisible()&&vs(e)?t.keyCode===z.ENTER?(Is(e),xs(e),t.preventDefault()):t.keyCode===z.TAB?(!function(e){e._suggestionsView.isVisible()&&xs(e)}(e),n=!0):t.keyCode===z.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===z.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==z.UP&&t.keyCode!==z.DOWN||(Os(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout((function(){e._input.value===i||n||e.dispatchEvent(new pe("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 ls({value:e,label:e})),ks(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Ps(this),this},focus:function(){return this._input.focus(),Os(this),this}}});Y("aui/select",Ms),n("select",Ms);const Ls=Ms;function Rs(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const $s={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:Rs,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 js(e){return e._input||(e._input=e.querySelector("input"))}function Fs(e){return e._spinner||(e._spinner=new Ke)}function Hs(e,t){js(t).removeAttribute(e)}function Bs(e,t,i){js(t).setAttribute(e,i.newValue)}function Ws(e){return{removed:Hs.bind(this,e),fallback:Bs.bind(this,e)}}const Vs={removed:function(e){Hs.call(this,"form",e),e._formId=null},fallback:function(e,t){Bs.call(this,"form",e,t),e._formId=t.newValue}};var Us={removed:Hs.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}-input`;js(e).setAttribute("id",i)}},zs={removed:function(e){Hs.call(this,"value",e),js(e).value="on"},fallback:function(e,t){Bs.call(this,"value",e,t)}},Ys={removed:function(e){js(e).checked=!1},fallback:function(e){js(e).checked=!0}},qs={removed:function(e){js(e).removeAttribute("aria-label")},fallback:function(e,t){js(e).setAttribute("aria-label",t.newValue)}};function Ks(e){js(e).addEventListener("keydown",(function(t){e.busy&&t.keyCode===z.SPACE&&t.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&js(e).addEventListener("click",(function(t){e.busy&&t.preventDefault()})),function(){if(void 0===at)try{document.querySelector(":focus-within"),at=!0}catch(e){at=!1}return at}()||(e._input.addEventListener("focus",(()=>e.classList.add("active"))),e._input.addEventListener("blur",(()=>e.classList.remove("active"))))}const Js=q("aui-toggle",{template:ot()('<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){js(e),Fs(e).setAttribute("size",Be.SMALL.name),i(js(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Ks(e),e.hasAttribute("checked")&&js(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){Jn(e).attributeExists("label")},events:{click:function(e,t){var i=js(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked,function(e){e._canFireEventsNow&&e.dispatchEvent(new pe("change",{bubbles:!0}))}(e)),Rs(e,"checked",i.checked)}},attributes:{id:Us,checked:Ys,disabled:Ws("disabled"),form:Vs,name:Ws("name"),value:zs,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(e,t){js(e).setAttribute("tooltip-on",t.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(e,t){js(e).setAttribute("tooltip-off",t.newValue||I18n.getText("aui.toggle.off"))}},label:qs},prototype:{focus:function(){return js(this).focus(),this},get checked(){return js(this).checked},set checked(e){js(this).checked!==e&&(js(this).checked=e,Rs(this,"checked",e))},get disabled(){return js(this).disabled},set disabled(e){return Rs(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return Vs.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return js(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return js(this).value},set value(e){let t=null===e?"":e;return this.setAttribute("value",t),t},get busy(){return"true"===js(this).getAttribute("aria-busy")},set busy(e){const t=js(this),n=Fs(this);var s,a;return Rs(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)),a=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(e){e.disabled=a})),e}}});function Gs(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 Qs(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(i),!0).forEach((function(t){Xs(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Gs(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Xs(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Zs(e,t){Q(e,(function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)})),G(e,t)}function ea(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=Qs(Qs({},n),{onCreate:()=>{ha(e)&&ue().enter(i(e),i(t))},onEvents:{enabled:()=>{ha(e)&&ue().enter(i(e))},disabled:()=>{ha(e)&&ue().exit(i(e))}}}),e._auiAlignment=new _i(e,t,n)}}function ta(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function ia(e,t){var i=t.currentTarget;i&&(Zs(e,i),ea(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function na(e=0){return function(t){t.open&&!Se(t).isPersistent()&&(clearTimeout(t._closingTimeout),t._closingTimeout=setTimeout((function(){(function(e){return K(e).get("mouse-inside")||e.contains(document.activeElement)})(t)||(t.open=!1),t._closingTimeout=null}),e))}}const sa={click(e,t){e.open&&!Se(e).isPersistent()?e.open=!1:(Zs(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:ia,mouseleave:na(1e3),focus:ia,blur:na(0)};function aa(e){var t=e.currentTarget;K(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function ra(e){var t=e.currentTarget;K(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function oa(e){var t=e.currentTarget;"hover"===t.respondsTo&&na(1e3)(t)}function la(e){K(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",aa),e.removeEventListener("mouseleave",ra),e.removeEventListener("blur",oa),"hover"===e.respondsTo&&(K(e).set("mouse-inside",!1),e.addEventListener("mouseenter",aa),e.addEventListener("mouseleave",ra),e.addEventListener("blur",oa))}function ca(e,t){return`${e}.nested-layer-${t}`}function ua(e){return Se(e).show(),!0===Se(e).isVisible()}function da(e){return Se(e).hide(),!1===Se(e).isVisible()}function ha(e){return"hover"!==e.respondsTo}function pa(e){e.__initialised||(Se(e),i(e).on({[`${fe}show`]:function(){const e=this;!function(e){let t=i(e);const n=e.id,s=e=>t.find(J(e.target)).length<1;i(document).on(ca("aui-layer-show",n),(e=>{s(e)||t.attr("persistent","")})).on(ca("aui-layer-hide",n),(e=>{s(e)||t.removeAttr("persistent")})).on(ca("select2-opening",n),(()=>{t.attr("persistent","")})).on(ca("select2-close",n),(()=>{setTimeout((()=>{t.removeAttr("persistent")}),150)}))}(e),Q(e,(function(t){ea(e,t),t.setAttribute("aria-expanded","true")}))},[`${fe}hide`]:function(){const e=this;!function(e){const t=e.id;i(document).off(ca("aui-layer-hide",t)).off(ca("aui-layer-show",t)).off(ca("select2-opening",t)).off(ca("select2-close",t))}(e.id),e.ownerDocument.body.contains(e)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(e):ta(e),Q(e,(function(e){e.setAttribute("aria-expanded","false")})),G(e,null)}}),e.__initialised=!0)}const fa={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},ga=q("aui-inline-dialog",{prototype:{get open(){return Se(this).isVisible()},set open(e){this.__propUpdate=!0,e?ua(this):da(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){$s.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=fa.attribute;return $s.computeEnumValue(fa,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;$s.setEnumAttribute(this,fa,e),t!==this.respondsTo&&la(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&&sa[i.type](t,i),this}},attributes:{open:function(e,t){if(pa(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){ua(e)||Rs(e,"open",!1)}if("removed"===t.type){da(e)||Rs(e,"open",!0)}}},"responds-to":function(e,t){$s.computeEnumValue(fa,t.oldValue)!==$s.computeEnumValue(fa,t.newValue)&&la(e)}},created:pa,attached:function(e){Jn(e).attributeExists("id"),e.setAttribute("tabindex",0),e.setAttribute("role","dialog"),Q(e,(function(t){t.setAttribute("aria-expanded",e.open)})),X(e,(function(e){e.setAttribute("aria-haspopup","true")})),la(e)},detached:function(e){Ci(e).then((()=>{ta(e),X(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)}});Y("aui/inline-dialog2",ga),n("InlineDialog2",ga);const ma=ga;function va(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(e,t){return new va(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(){ba(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){ba(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}va.prototype.isNested=function(){return 1===this.$treeParent.length},va.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},va.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},va.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},va.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const ba=de("navigation",va),ya=q("aui-nav",{type:q.type.CLASSNAME,attached:function(e){new va(e)},detached:function(e){i(e).removeData()}});n("navigation",ba);const wa=ba;function _a(e,t,{currentProgress:n,value:s}){const a=i(e),r=i(t);"number"==typeof s&&s<=1&&s>=0&&(r.trigger("aui-progress-indicator-before-update",[n,s]),a.one("transitionend webkitTransitionEnd",(function(){r.trigger("aui-progress-indicator-after-update",[n,s])})),function(e,t,i){j(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(a,r,s))}function Ca(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),j(t),n.css("width","")}const ka={indeterminate:!1,max:1,val:0};function xa(e){return(0,He.isNumber)(e)&&(0,He.isFinite)(e)&&!(0,He.isNaN)(e)}function Ea(e,t=1){const i=parseFloat(e);return xa(i)?i:Number(t)}function Da(e,t=1){return Number(parseFloat(e).toFixed(t))}function Ta(e){const{val:t,max:i}=e,n=function(e){return e>0?e:ka.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),a=Da(s/n,6);return{max:n,val:s,valAsFraction:a,valAsPercent:Da(100*a,2)}}function Aa(e){const{val:t,valAsFraction:i,max:n}=Ta(e._data),s=e.querySelector(".aui-progress-indicator"),a=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),Ca(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),_a(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:a,value:i}))}function Sa(e,t){e._data.val=Ea(t.newValue,t.oldValue||ka.val),Aa(e)}function Oa(e,t){e._data.max=Ea(t.newValue,t.oldValue||ka.max),Aa(e)}const Ia=q("aui-progressbar",{template(e){e._data.max=Ea(e.getAttribute("max"),ka.max),e._data.val=Ea(e.getAttribute("value"),ka.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=Ta(e._data),a=e._data.indeterminate?"":`data-value="${n}"`;e.innerHTML=`<div class="aui-progress-indicator"\n ${a}\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){Aa(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:ka.val,fallback:function(e,t){if(e._updating)return!1;Sa(e,t)}},max:{value:ka.max,fallback:function(e,t){if(e._updating)return!1;Oa(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,He.defaults)({},ka))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,Aa(this)},get value(){const{val:e}=Ta(this._data);return e},set value(e){if(!xa(e))return!1;const t={newValue:Da(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,Sa(this,t)},get max(){const{max:e}=Ta(this._data);return e},set max(e){if(!xa(e))return!1;const t={newValue:Da(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,Oa(this,t)}}}),Na={update:O((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"),a=n.attr("data-value"),r=!a,o=parseFloat(a)||0,l=a&&o===t;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return r&&s.css("width",0),_a(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:O(Ca,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};n("progressBars",Na);const Pa=Na;a(473);const Ma={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function La(e,t){let n=Object.assign({},Ma,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 Ra={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="..........",a="000000";let r=(i+s).slice(0,s.length);return r+=(a+n).slice(-a.length),r},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(){La(i(this))}))},setTableSortable:function(e,t){return La(e,t)}};i(Ra.setup),n("tablessortable",Ra);function $a(e,t=""){var n=i(e),s=t||!1;n.each((function(){var e=i(this);e.attr("id")||e.attr("id",Ti(s))}))}n("_addID",$a);const ja=$a;function Fa(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}n("isClipped",Fa);const Ha=Fa;var Ba=window.skateTemplateHtml;function Wa(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Va(e){let t=Wa(e);return t?document.getElementById(t):null}var Ua={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 a=0,r=0;s(a,n,t)&&r<e.length;r++){a+=i(e[r]).outerWidth(!0)}return e.slice(0,r-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),a=i("#"+s),r=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),o=r.length-1,l=e.length-1;l>=o;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,a,n)}return i(r)},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 a=0;s(t)&&a<e.length;a++){var r=i(e[a]),o=parseInt(r.attr("data-aui-tab-width"),10);o<t&&this.moveTabOutOfDropdown(r,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 za(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=Va(t);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var a=t.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),r=i(document.getElementById(a));if(r.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),r.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 h("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",e)}}function Ya(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function qa(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return"_internal-aui-tabs-"+(t||"")+(i&&"true"!==i?"-"+i:"")}function Ka(e){er.change(i(e.target).closest("a")),e&&e.preventDefault()}function Ja(e){e.forEach((function(e,t){!function(e,t){var n=i(e),s=n.find(".tabs-menu").first(),a=s.find("li:not(.aui-tabs-responsive-trigger-item)"),r=s.find(".aui-tabs-responsive-trigger").parent(),o=r.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Ua.totalTabsWidth(a,c)>n.outerWidth();if(!u&&d&&(r=Ua.createResponsiveDropdownTrigger(s,t),c=Ua.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=Ua.moveVisibleTabs(a.toArray(),n,r),p=Ua.totalVisibleTabWidth(h),f=n.outerWidth()-p-r.outerWidth(!0);if(f>0){var g=c.find("li");Ua.moveInvisibleTabs(g.toArray(),f,r)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Ka),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Ua.moveTabOutOfDropdown(i(this),r)})),Ua.removeResponsiveDropdown(c,r))}(e,t)}))}function Ga(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function Qa(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=Va(t),Wa(e)||h('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(ja(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")):d("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",Ka),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(Za)}(e)}}function Xa(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each((function(){Qa(this)})),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(Ya(n)&&window.localStorage)if(n.attr("id")){var a=window.localStorage.getItem(qa(n));if(a){var r=s.querySelector(`a[href$="${a}"]`);r&&za(r)}}else d("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function Za(e){e.setAttribute("role","tabpanel")}var er={setup:function(){!function(){const e=(0,He.debounce)(Ja,200);e(Ga()),i(window).on("resize.aui-tabs",(()=>e(Ga())))}(),Xa(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var e=i(this);e.attr("title")||Ha(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");za(n),Ya(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=Wa(e);i&&window.localStorage.setItem(qa(t),"#"+i)}else d("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(er.setup);const tr=q("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),q.init(e),Qa(e)},template:Ba('<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&&er.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),ir=q("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:Ba('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),nr=q("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),a=new ir,r=i(a);n.addClass("tabs-pane"),a.firstChild.setAttribute("href","#"+e.id),Ba.wrap(a).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&r.addClass("active-tab"),n.siblings("ul").append(a)},template:Ba("<content></content>")});n("tabs",er);const sr="_aui-form-notification-initialised",ar="data-aui-notification-wait",rr="data-aui-notification-info",or="data-aui-notification-error",lr=[or,"data-aui-notification-success",ar,rr];function cr(e){ur(e)||(!function(e){e.addClass(sr),dr(e)}(e),fr(e))}function ur(e){return e.hasClass(sr)}function dr(e,t){t=t||hr(e),pr(e)===rr&&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 hr(e){var t=pr(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 pr(e){var t;return lr.some((function(i){if(e.is("["+i+"]"))return t=i,!0})),t}function fr(e){const t=i(e);if(!ur(t))return;const n=pr(t);vr(t,n===ar);const s=hr(t);s&&n===or?gr(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(or)||t.parent().find(".error").remove()}function gr(e,t){let i=mr(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 mr(e,t){return e.parent().find(`.${t}`)}function vr(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 br=A("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});q("data-aui-notification-field",{attached:function(e){br(),cr(i(e))},attributes:function(){const e={};return lr.forEach((function(t){e[t]=fr})),e}(),type:q.type.ATTRIBUTE}),Y("aui/form-notification");var yr=["displayfield","watchfield","when","novalidate","state"],wr=[];var _r={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,yr);return n&&(t=e),n})),t}(e);if(s)return d('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 a={validatorFunction:t,validatorTrigger:n};return wr.push(a),a},validators:function(){return wr}};Y("aui/form-validation/validator-register",_r);const Cr=_r;function kr(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=Sr("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=Sr("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=Sr("maxlength",e.args);e.invalidate(t)}else e.validate()}function xr(e){return"password"===e.getAttribute("type")}function Er(e,t){var i=e.match(t);return!!i&&e===i[0]}function Dr(e){var t=Sr("pattern",e.args);Er(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function Tr(e){var t=Sr("required",e.args);e.el.value?e.validate():e.invalidate(t)}function Ar(e){var t=Sr("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(Sr("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(Sr("max",e.args)):e.validate()}}function Sr(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:Or[e];var s=i;i||(s=[t(e)]);var a,r=t(e+"-msg");return a=r?[r].concat(s):[n].concat(s),AJS.format.apply(null,a)}Cr.register(["maxlength","minlength"],kr),Cr.register("[maxlength],[minlength]",kr),Cr.register(["matchingfield"],(function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=Sr("matchingfield",e.args,[t,n]);(xr(e.el)||xr(i))&&(s=Sr("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()})),Cr.register(["doesnotcontain"],(function(e){var t=Sr("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)})),Cr.register(["pattern"],Dr),Cr.register("[pattern]",Dr),Cr.register(["required"],Tr),Cr.register("[required]",Tr),Cr.register(["min","max"],Ar),Cr.register("[min],[max]",Ar),Cr.register(["dateformat"],(function(e){var t=e.args("dateformat"),i=Sr("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(""),a="";s.forEach((function(e){var t=n.hasOwnProperty(e);a+=t?n[e]:e}));var r=new RegExp(a+"$","i");Er(e.el.value,r)?e.validate():e.invalidate(i)})),Cr.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"),a=Sr("minchecked",e.args),r=Sr("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(r):e.invalidate(a)}));var Or={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")};Y("aui/form-validation/basic-validators");const Ir="data-aui-notification-",Nr="invalid",Pr="valid",Mr="validating",Lr="unvalidated",Rr="_aui-form-validation-initialised",$r="_aui-internal-field-state-changed";function jr(e){(function(e){return e.hasClass(Rr)})(e)||(!function(e){e.addClass(Rr),dr(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=Hr(e,"when"),i=Hr(e,"watchfield");(i?e.add("#"+i):e).on(t,(function(){Fr(e)}))}(e)}(e),Vr(e,Lr))}function Fr(e){if(!Hr(e,"novalidate"))return function(e){!function(e){Ur(Yr(e),"none")}(e);var t=function(e){var t=[];return Br().forEach((function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)})),t}(e);Vr(e,Mr);var n=function(e,t){var n=[];return t.forEach((function(t){var s=Br()[t].validatorFunction,a=new i.Deferred;s(function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){Vr(e,Nr,i),t.reject()},args:Wr(e),el:e[0],$el:e};return P(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,a)),n.push(a)})),n}(e,t),s=i.when.apply(i,n);return s.done((function(){Vr(e,Pr)})),s}(e);Vr(e,Pr)}function Hr(e,t){var i=e.attr("data-aui-validation-"+t);return i||(i={when:"change"}[t]),i}function Br(){return Cr.validators()}function Wr(e){return function(t){return e.attr("data-aui-validation-"+t)||e.attr(t)}}function Vr(e,t,n){if(e.attr("data-aui-validation-state",t),t!==Lr){e.trigger(i.Event($r));var s=Yr(e),a={validating:"wait",invalid:"error",valid:"success"},r=a[t];t===Mr?function(e){setTimeout((function(){qr(e)===Mr&&(Ur(e,"wait"),vr(e,!0))}),500)}(e):Ur(s,r,n)}}function Ur(e,t,i){const n=function(e){return e.is("[data-aui-notification-wait]")}(e);!function(e){zr(e,"wait"),vr(e,!1),zr(e,"success")}(e);var s,a;if(!("success"===t&&!n))if("none"===t)zr(e,"error");else{const n=e.attr(Ir+t)||"[]",r=i?(s=i,a=n,JSON.parse(a).concat([s])):[];e.attr(Ir+t,JSON.stringify(r)),"error"===t&&gr(e,r)}}function zr(e,t){e.removeAttr(Ir+t),"error"===t&&mr(e,t).remove()}function Yr(e){var t=Hr(e,"displayfield");return void 0===t?e:i("#"+t)}function qr(e){return e.attr("data-aui-validation-state")}function Kr(e,t){t.preventDefault(),e.one($r,(function(){e.trigger("submit")}))}function Jr(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 r=e.find("."+Rr),t=i.map(r,(function(e){return qr(i(e))})),n=-1!==t.indexOf(Nr),s=-1!==t.indexOf(Lr),a=-1!==t.indexOf(Mr),n?Nr:s?Lr:a?Mr:Pr;var t,n,s,a;var r}(n);if(s===Lr)Kr(n,e),function(e){Jr(e,Lr).each((function(e,t){Gr.validate(i(t))}))}(n);else if(s===Mr)Kr(n,e);else if(s===Nr)e.preventDefault(),function(e){Jr(e,Nr).first().focus()}(n);else if(s===Pr){var a=i.Event("aui-valid-submit");n.trigger(a),a.isDefaultPrevented()&&e.preventDefault()}}));const Gr={register:Cr.register,validate:function(e){Fr(e=i(e))}};q("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),jr(i(e)),q.init(e)},type:q.type.ATTRIBUTE}),Y("aui/form-validation",Gr),n("formValidation",Gr);var Qr=O((function(e,t){var i,n;return function(){var s=arguments,a=this,r=function(){n=e.apply(a,s),a=s=null};return clearTimeout(i),i=setTimeout(r,t),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const Xr=Qr;n("debounce",Qr),n("debounceImmediate",O((function(e,t){var i,n=null;return function(){var s=this,a=arguments,r=function(){n=s=a=null};return null===n&&(i=e.apply(s,a)),clearTimeout(n),n=setTimeout(r,t),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const Zr=i(window);function eo(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)})}eo.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,Zr.on("resize",this._resizeHandler=Xr((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(){Zr.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}`,q.init(t);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,q.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,a=n;a<=s;a++){var r=this.menuItems[a].$element,o=r.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),r.append(l)}t.find("aui-item-link:first").remove(),r.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=ot().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,a=n;a>=s;a--){var r=this.menuItems[a].$element,o=r.children("a");q.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")}q.init(l),ot().wrap(l).textContent=o.text(),r.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new pe("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:r[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const to=function(e){let t=e._header;return t instanceof eo||(t=new eo(e),t.init(),e._header=t),t};function io(){i(".aui-header").each((function(){to(this)}))}i(io);const no={};no.setup=O(io,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),n("responsiveheader",no);const so=q("aui-header",{type:q.type.CLASSNAME,created:function(e){to(e)}});var ao=a(207),ro=a.n(ao);const oo=({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:a,onChangeMonthYear:r})=>({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"),a(),s&&s.call(this,e)},onChangeMonthYear:r,prevText:"<"}),lo=(e,t)=>{let n,s,a,r=!1;const o=i("body"),l=t=>{let n=i(t.target),a=n.closest(s).length||n.is(e),o=n.closest(".ui-datepicker-header").length;if(!a&&!o||t.keyCode===z.ESCAPE)return h(),void(r=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{r||(o.on("focus blur click mousedown","*",l),r=!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 ma;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}),a=e.closest("aui-inline-dialog").get(0),a&&(a._datePickerPopup=n,i(a).on("aui-hide",(e=>{r&&e.preventDefault(),o.off("focus blur","*",l),a&&a._datePickerPopup&&delete a._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)}}},co=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let a;const{getPopupContents:r,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:d,getCalendarNode:h,destroyPolyfill:p,createPolyfill:f}=lo(t,s),g=e=>{i(e.currentTarget).val()&&a.datepicker("setDate",t.val())},m=t.attr("placeholder"),v=t.prop("type");let b;{const i=e=>t=>{if(void 0!==a)return e(t)},n=i((()=>{a.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=>{a.datepicker("setDate",e)})),e.getDate=i((()=>a.datepicker("getDate"))),e.setMin=i((e=>a.datepicker("option","minDate",e))),e.setMax=i((e=>a.datepicker("option","maxDate",e)))}n.languageCode in uo.prototype.localisations||(n.languageCode="");const y=uo.prototype.localisations;if(t.attr("aria-controls",s),void 0===a){void 0!==t.attr("step")&&u("WARNING: The date picker polyfill currently does not support the step attribute!");const s=oo({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:d}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),a=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const a=i(n());let r;return a.datepicker(e),s&&(r=i("<div/>").addClass("aui-datepicker-hint"),r.append("<span/>").text(s),t.append(r)),a})({config:o,popupContents:r({$field:t}),getCalendarNode:h,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 uo(e,t){let n={};const s=Ti("date-picker"),a=i(e),r={getUUID:()=>s,getField:()=>a,getOptions:()=>n,destroy:()=>{"function"==typeof r.destroyPolyfill&&r.destroyPolyfill()},reset:()=>{r.destroy();const e=!uo.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&co(r)},reconfigure:e=>{n=i.extend(void 0,uo.prototype.defaultOptions,e),r.reset()}};return r.reconfigure(t),r}function ho(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}uo.prototype.browserSupportsDateField=function(){if(void 0===st){var e=document.createElement("input");e.setAttribute("type","date"),st="date"===e.type}return st}(),uo.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:ro().W3C},uo.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 po="aui-datepicker",fo=e=>function(t){let i=this.data(po);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(po,i)),i};i.fn.datePicker=fo(uo),n("DatePicker",uo),i.fn.calendarWidget=fo(ho),n("CalendarWidget",ho);const go=uo;a(251),a(993),a(927),a(757),a(940);const mo={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"},vo=as().View,bo=as().View,yo=as().View,wo={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};a(562);const _o={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"},Co='<aui-spinner size="small"></aui-spinner>',ko="aui-spinner";function xo(e){0===e.find(ko).length&&e.find(`.${mo.STATUS}`).append(Co)}function Eo(e){e.find(`.${mo.STATUS} aui-spinner`).remove()}var Do=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const To=as().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=_o,this.classNames=mo,this.dataKeys=wo,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 Do&&(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 Do&&(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 xo(this.$el),this},hideLoading:function(){return Eo(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 a,r,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),a=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),r=i("<td />"),"object"==typeof a&&a.done?a.done((function(e){r.append(e)})):r.append(a),s.styleClass&&r.addClass(s.styleClass),r.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}" />`))}}),Ao=document||{},So=i(Ao);function Oo(e,t){So.trigger(e,t)}function Io(e,t,n){i(t).trigger(e,n),Oo(e,n),t.id&&Oo(t.id+"-"+e,n)}var No=as().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)},as().sync.apply(as(),arguments)},save:function(e,t){var n,s=this,a=(t=t||{}).error,r=t.success;t.error=function(e,t){var n=i.parseJSON(t.responseText||t.data);a&&a.call(s,s,n,t)},this.isNew()?as().Model.prototype.save.call(this,e,t):e&&((n=new(No.extend({url:this.url()}))({id:this.id})).save=as().Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),r&&r.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,He.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,He.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),Io(_o.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),as().Model.prototype.fetch.call(this,e)}});const Po=No,Mo=as().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=_o,this.classNames=mo,this.dataKeys=wo,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 xo(this.$el),this},hideLoading:function(){return Eo(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 a,r=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),a=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(a).attr("data-field-name",l);r=i("<td />").append(u).appendTo(e.$el),a&&i.trim(a)||(r.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else r.append(a);s.styleClass&&r.addClass(s.styleClass),r.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 Lo=as().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=_o,t.classNames=mo,t.dataKeys=wo,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&&(d("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),a=e[0].clientWidth+t+n;s.append(i("<div/>").html(e.html()).attr("class",e.attr("class")).width(a))})),(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,a=n.placeholder.find("td");n.item.addClass(t.classNames.MOVEABLE).children().each((function(e){i(this).width(a.eq(e).width())}));var r='<td colspan="'+t.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(r).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){Io(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var n=i.parseJSON(e.responseText||e.data);Io(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(),as().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]),Io(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">'+Co+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(),Io(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Io(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,a=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){Io(this._event.EDIT_ROW,{},[this,s]),s.edit(this,e)})),i=n.render().$el,-1!==t&&("number"==typeof t&&0!==a.length?i.insertBefore(a[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 Mo&&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||Po,allowEdit:!0,views:{editRow:To,row:Mo},Collection:as().Collection.extend({url:e.resources.self,model:e.model||Po}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});Lo.ClassNames=mo,Lo.CustomCreateView=vo,Lo.CustomEditView=bo,Lo.CustomReadView=yo,Lo.DataKeys=wo,Lo.EditRow=To,Lo.EntryModel=Po,Lo.Events=_o,Lo.Row=Mo,n("RestfulTable",Lo);const Ro=Lo;function $o(e){return i(e).clone().removeAttr("id")}n("clone",$o);const jo=$o;var Fo=window.DocumentTouch;const Ho="ontouchstart"in window||Fo&&document instanceof Fo;function Bo(e,t,i,n){e.find(`[${n}]`).attr(n,((e,n)=>t===n?i:void 0))}function Wo(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){Bo(e,t,i,"aria-controls"),Bo(e,t,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Vo(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 Uo(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(i),!0).forEach((function(t){zo(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Vo(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 Yo(e){return e.offset().top}function qo(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 Qo,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);il(e,n)}))})(e),Ho&&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(Ko+(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){r(t)&&e.toggle()};function a(e){return e.keyCode===z.TAB&&!e.shiftKey&&!e.altKey}function r(e){return!(e.which!==z.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===z.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(Uo(Uo({},sl),{},{live:e.collapsedTriggersSelector,suppress:function(){const t=i(this),n=!1===e.isCollapsed();return!0===el(t)||n}})),e.$el.tooltip(Uo(Uo({},sl),{},{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=Zo(n);if(!s)return;var r=i(s);a(t)&&s.open&&(t.preventDefault(),u(r),r.on("keydown",(function(e){(o(e)&&l(e.target,r)||a(e)&&c(e.target,r))&&(n.focus(),i(this).off("keydown"),tl())})))}}))}(this),function(e){i(e.collapsedTriggersSelector).each((function(){var t=i(this);il(e,t)}))}(this))}var Ko="_aui-internal-sidebar-";function Jo(e){return i.map(e.split(" "),(function(e){return Ko+e})).join(" ")}function Go(){return document.querySelectorAll(qo.prototype.inlineDialogSelector)}function Qo(){this.inlineDialog=null}function Xo(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function Zo(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function el(e){return 0!==Xo(e).length}function tl(){var e=Go();Array.prototype.forEach.call(e,(function(e){e.open=!1}))}function il(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),el(t))){var n=document.createElement("aui-inline-dialog"),s=Ti("sidebar-submenu");return t.attr("aria-controls",s),t.attr("data-aui-trigger",""),q.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(qo.prototype.inlineDialogClass),document.body.appendChild(n),q.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 a=i.Event("aui-sidebar-submenu-before-show");t.trigger(a,n),a.isDefaultPrevented()?s.preventDefault():function(e,t){e.addClass("active"),t.innerHTML=nl;var n=e.is("a")?e.text():e.children(".aui-nav-heading").text(),s=i(t).find(".aui-navgroup-inner");function a(e){const t=jo(e);return Wo(t,Ti),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),a(Xo(e)).appendTo(s)}(t,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(e){e.removeClass("active")}(t)}))}(e,t,n),n}}qo.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=Jo(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},qo.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=Jo(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},qo.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},qo.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>Yo(this.$el)),this},qo.prototype.setPosition=O(qo.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),qo.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},qo.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",a=this.isViewportNarrow(e)?"narrow":"wide";return t[n][s][a](this),this},qo.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(Ko+"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(Ko+"collapse-end",{isResponsive:e}))),this},qo.prototype.collapse=function(){return this._collapse(!1)},qo.prototype._expand=function(e,t){var n=i.Event(Ko+"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(Ko+"expand-end",{isResponsive:t})),this},qo.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},qo.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},qo.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},qo.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},qo.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)},qo.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var a=Yo(this.$el),r=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||a!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);o||!r&&l||(this.setHeight(e,t,a),this.setTopPosition(e))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(r,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=a,this._previousScrollLeft=s,this},qo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this},qo.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",qo.prototype.collapsedTriggersSelector=[qo.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),qo.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",qo.prototype.tooltipClassName="aui-sidebar-section-tooltip",qo.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",qo.prototype.inlineDialogSelector="."+qo.prototype.inlineDialogClass,Qo.prototype.submenu=function(e){return rl(),Xo(e)},Qo.prototype.hasSubmenu=function(e){return rl(),el(e)},Qo.prototype.submenuHeadingHeight=function(){return rl(),34},Qo.prototype.isShowing=function(){return rl(),qo.prototype.isSubmenuVisible()},Qo.prototype.show=function(e,t){rl(),function(e){Zo(e).open=!0}(t)},Qo.prototype.hide=function(){rl(),tl()},Qo.prototype.inlineDialogShowHandler=function(){rl()},Qo.prototype.inlineDialogHideHandler=function(){rl()},Qo.prototype.moveSubmenuToInlineDialog=function(){rl()},Qo.prototype.restoreSubmenu=function(){rl()},qo.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(Go(),(function(e){return e.open}))},qo.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const nl='<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 sl={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 al=de("sidebar",qo);i((function(){al(".aui-sidebar")}));var rl=A("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});n("sidebar",al);const ol=al;a(42),a(529);function ll(e){var t={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(e){e.keyCode===z.ESCAPE&&n.is(":visible")&&u.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 a=function t(i,a){return e.width=i=i||e.width,e.height=a=a||e.height,n.css({marginTop:-Math.round(a/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:a,"z-index":parseInt(s,10)+2}),t}(e.width,e.height);i("body").append(n),n.hide(),l(n);var r=i(".aui-blanket"),o=function(e,t){var n=i(e,t);return!!n.length&&(n.focus(),!0)},c=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))}},u={changeSize:function(t,i){(t&&t!=e.width||i&&i!=e.height)&&a(t,i),this.show()},show:function(){var t=function(){i(document).off("keydown",e.keypressListener).on("keydown",e.keypressListener),B(),0!==(r=i(".aui-blanket")).length&&e.closeOnOutsideClick&&r.on("click",(function(){n.is(":visible")&&u.hide()})),n.show(),ll.current=this,c(n),i(document).trigger("showLayer",["popup",this])};t.call(this),this.show=t},hide:function(){i(document).unbind("keydown",e.keypressListener),r.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&W();var t=document.activeElement;this.element.has(t).length&&t.blur(),i(document).trigger("hideLayer",["popup",this]),ll.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 cl=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,a){e.buttonpanel||e.addButtonPanel(),a||(a="#"),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",a).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,a=n.length;s<a;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 a=function(e,t,n,s,a){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"),a&&(this.button[0].id=a),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 r=e.panel.length,o=this;e.menu.append(this.item),e.body.append(this.body),e.panel[r]=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):(u("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==r?e.menu.css("display","none"):e.menu.show()};a.prototype.select=function(){this.button.click()},a.prototype.moveUp=a.prototype.moveLeft=n("left","panel"),a.prototype.moveDown=a.prototype.moveRight=n("right","panel"),a.prototype.remove=s("panel"),a.prototype.html=function(e){return e?(this.body.html(e),this):this.body.html()},a.prototype.setPadding=function(e){return isNaN(+e)||(this.body.css("padding",+e),this.padding=+e,this.page.recalcSize()),this};var r=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=ll(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new r(this)}return r.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)}},r.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},r.prototype.addPanel=function(e,t,i,n){return new a(this,e,t,i,n),this.recalcSize(),this},r.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},r.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},r.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},r.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},r.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},r.prototype.hide=function(){this.element.hide()},r.prototype.show=function(){this.element.show()},r.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 r(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(),w("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),w("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),w("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+")",a=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(e+"").replace(a,(function(e,n,s,a,r,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[a]?(d.push(i.page[a]),n=(n=o)&&n.toLowerCase(),s=l,a=c,r=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),r=r&&(r+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||r)for(var h=d.length;h--;){if(r||"panel"==n&&(s||!s&&null==a))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==r||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==a)&&t.push(d[h].panel[p]);if(r||"button"==n&&(s||!s&&null==a))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==r||d[h].button[p].item.html()==s||"button"==n&&!s&&null==a)&&t.push(d[h].button[p]);d[h][n]&&d[h][n][a]&&t.push(d[h][n][a]),"header"==n&&d[h].header&&t.push(d[h].header)}else t=t.concat(d)}));for(var r={length:t.length},o=t.length;o--;)for(var l in r[o]=t[o],t[o])l in r||function(e){r[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return r},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}();cl=I(cl,"Dialog constructor",{alternativeName:"Dialog2"}),ll=I(ll,"Dialog popup constructor",{alternatveName:"Dialog2"}),n("Dialog",cl),n("popup",ll);const ul=!1;var dl=-1!==navigator.platform.indexOf("Mac"),hl=-1!==navigator.userAgent.indexOf("Safari"),pl=/^(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 fl=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 gl(e){var t=[],n=i.Callbacks();function s(e){!ll.current&&n&&n.fire(e)}function a(e){e.preventDefault()}function r(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(pl);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()),r=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(r,ul,n,s),i(document).on(r+" keyup",ul,n,a)}(e)}))}function o(e,t,i){return i?t+=" ("+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+=")"}return r(e),gl.makeShortcut({executor:n,bindKeys:r,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",a=t.slice(),r=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=!l,u=c?s:s.substring(0,s.length-l.length);a.length;){var d=a.shift();r.some((function(e){return(0,He.isEqual)(d,e)}))||(l=o(d.slice(),l,c),c=!1)}dl&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",u+l),n.data("kbShortcutAppended",l),n.data("boundKeyCombos",r.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.removeData("kbShortcutAppended"),t.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:a})}gl.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,a=e.removeShortcutsFromTitle,r=e.keypressHandler,o=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var a=(s=s||{}).focusedClass||"focused",r=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return t.add((function(){const t=i(n);let s=t.filter("."+a);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(e){e.keyCode===z.ESCAPE&&s&&s.removeClass(a)})),s.length&&s.removeClass(a),s=e(s,t,r),s&&s.length>0&&(s.addClass(a),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);fl(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&&(fl(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",r).unbind("keydown keypress keyup",o);for(var e=0,t=l.length;e<t;e++)a(l[e]);l=[]}}},gl.fromJSON=function(e,t){var n=[];return e&&i.each(e,(function(e,s){const a=s.op,r=s.param;let o;if("execute"===a||"evaluate"===a)o=[new Function(r)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(r)){try{o=JSON.parse(r)}catch(e){h("When using a parameter array, array must be in strict JSON format: "+r)}i.isArray(o)||h("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+r)}else o=[r];i.each(s.keys,(function(){var e=this;t&&dl&&(e=i.map(e,(function(e){return e.replace(/ctrl/i,"meta")})));var s=gl(e);s[a].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){hl&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)}))}))})),n("whenIType",gl);const ml=gl,{FocusManager:vl,InlineDialog2:bl,LayerManager:yl,ProgressiveDataSet:wl,clone:_l,debounce:Cl,debounceImmediate:kl,dim:xl,escapeHtml:El,formValidation:Dl,id:Tl,isClipped:Al,keyCode:Sl,layer:Ol,messages:Il,populateParameters:Nl,params:Pl,responsiveheader:Ml,select:Ll,tablessortable:Rl,tabs:$l,undim:jl,_addID:Fl}=window.AJS,{contextPath:Hl}=window.AJS})(),r})()}));
102
102
  //# sourceMappingURL=aui-prototyping.nodeps.js.map