@atlassian/aui 9.7.1 → 9.7.2

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.7.1
3
+ * @version v9.7.2
4
4
  * @link https://aui.atlassian.com
5
5
  * @license Apache-2.0
6
6
  * @author Atlassian Pty Ltd.
@@ -100,5 +100,5 @@ e.exports=function(){"use strict";function e(t){return e="function"==typeof Symb
100
100
  * @author Christian Bach/christian.bach@polyester.se
101
101
  * @contributor Rob Garrison/https://github.com/Mottie/tablesorter
102
102
  */
103
- !function(e){"use strict";e.extend({tablesorter:new function(){var t=this;function i(){var e=arguments[0],t=arguments.length>1?Array.prototype.slice.call(arguments):e;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function n(e,t){i(e+" ("+((new Date).getTime()-t.getTime())+"ms)")}function s(e){for(var t in e)return!1;return!0}function r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?e(n).attr(a.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=t.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function a(e,n,s,a){for(var o,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(e,c=n[s].cells[a],a),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=t.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,e,c))return o;return t.getParserById("text")}function o(e){var s,r,o,l,c,u,d,h,p,f,g=e.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=t.getColumnData(e,g.headers,l),p=t.getParserById(t.getData(c,u,"extractor")),h=t.getParserById(t.getData(c,u,"sorter")),d="false"===t.getData(c,u,"parser"),g.empties[l]=t.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top"),g.strings[l]=t.getData(c,u,"string")||g.stringTo||"max",d&&(h=t.getParserById("no-parser")),p||(p=!1),h||(h=a(e,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,x=y.parsers;if(y.cache={},y.totalRows=0,!x)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&t.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=e(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(t.css.cssHasChild),v.child[o]=e.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==x[d]?(o=r(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,s,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(x[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=e(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=t.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);t.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||t.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(e){return/^d/i.test(e)||1===e}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=t.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===t.css.icon?t.css.icon:f.cssIcon+" "+t.css.icon)+'"></i>':"",f.$headers=e(s).find(f.selectorHeaders).each((function(i){a=e(this),r=t.getColumnData(s,f.headers,i,!0),f.headerContent[i]=e(this).html(),c=f.headerTemplate.replace(/\{content\}/g,e(this).html()).replace(/\{icon\}/g,l),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col",role:"columnheader"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),o(e),l(e),y(n.$table,t,i)}function p(i){var n,s,r,a=i.config;a.$headers.each((function(o,l){s=e(l),r=t.getColumnData(i,a.headers,o,!0),n="false"===t.getData(l,r,"sorter")||"false"===t.getData(l,r,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))}))}function f(i){var n,s,r,a=i.config,o=a.sortList,l=o.length,c=t.css.sortNone+" "+a.cssNone,u=[t.css.sortAsc+" "+a.cssAsc,t.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each((function(){var i=e(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],s=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(e,t){return e&&e[t]&&e[t].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout((function(){m(i,n,s)}),50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=t.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(t.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(e){var i,r,a,o,l,c,u,d,h,p,f=0,m=e.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=e.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort((function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],e):t["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,e)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,e):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,e):t["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,e,m)),d)return d}return n[m.columns].order-s[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(t,i){t[0].isUpdating&&t.trigger("updateComplete"),e.isFunction(i)&&i(t[0])}function y(e,i,n){var s=e[0].config.sortList;!1!==i&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){b(e,n)},!0]):(b(e,n),t.applyWidget(e[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(t,s){t.stopPropagation(),n.sortList=[],f(i),v(i),c(i),e.isFunction(s)&&s(i)})).bind("updateAll"+n.namespace,(function(e,s,r){e.stopPropagation(),i.isUpdating=!0,t.refreshWidgets(i,!0,!0),t.restoreHeaders(i),d(i),t.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(e,t,n){e.stopPropagation(),i.isUpdating=!0,p(i),h(i,t,n)})).bind("updateCell"+n.namespace,(function(t,s,o,l){t.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=e(s),g=p.index(e.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=e.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?r(i,s,h):n.extractors[h].format(r(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(t,l,c,u){if(t.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=e(l).attr("role","row")).filter("tr").length,x=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[x].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?r(i,l[d].cells[f],f):n.extractors[f].format(r(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[x].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[x].colMax[f]||0));w.push(b),n.cache[x].normalized.push(w)}y(a,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,r,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(t,i){var n,s,r,a,o,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,(function(t,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===t?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=e.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),t.applyWidget(i),e.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(t,n,s){t.stopPropagation(),c(i,s),e.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(t,s){n.parsers&&n.parsers.length||o(i),l(i),e.isFunction(s)&&s(i)})).bind("applyWidgetId"+n.namespace,(function(e,s){e.stopPropagation(),t.getWidgetById(s).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(e,n){e.stopPropagation(),t.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(e,n,s){e.stopPropagation(),t.refreshWidgets(i,n,s)})).bind("destroy"+n.namespace,(function(e,n,s){e.stopPropagation(),t.destroy(i,n,s)})).bind("resetToLoadState"+n.namespace,(function(){t.refreshWidgets(i,!0,!0),n=e.extend(!0,t.defaults,n.originalSettings),i.hasInitialized=!1,t.setup(i,n)}))}t.version="2.17.7",t.parsers=[],t.widgets=[],t.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},t.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},t.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},t.log=i,t.benchmark=n,t.construct=function(i){return this.each((function(){var n=this,s=e.extend(!0,{},t.defaults,i);s.originalSettings=i,!n.hasInitialized&&t.buildTable&&"TABLE"!==this.tagName?t.buildTable(n,s):t.setup(n,s)}))},t.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var r,a="",c=e(n),u=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,e.data(n,"tablesorter",s),s.debug&&e.data(n,"startoveralltimer",new Date),s.supportsDataObject=((r=e.fn.jquery.split("."))[0]=parseInt(r[0],10),r[0]>1||1===r[0]&&parseInt(r[1],10)>=4),s.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(c.attr("class"))||(a=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=c.addClass(t.css.table+" "+s.tableClass+a).attr("role","grid"),s.$headers=c.find(s.selectorHeaders),s.namespace?s.namespace="."+s.namespace.replace(/\W/g,""):s.namespace=".tablesorter"+Math.random().toString(16).slice(2),s.$table.children().children("tr").attr("role","row"),s.$tbodies=c.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(t){if(t.config.widthFixed&&0===e(t).find("colgroup").length){var i=e("<colgroup>"),n=e(t).width();e(t.tBodies[0]).find("tr:first").children(":visible").each((function(){i.append(e("<col>").css("width",parseInt(e(this).width()/n*1e3,10)/10+"%"))})),e(t).prepend(i)}}(n),o(n),s.totalRows=0,s.delayInit||l(n),t.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==c.data().sortlist?s.sortList=c.data().sortlist:u&&c.metadata()&&c.metadata().sortlist&&(s.sortList=c.metadata().sortlist),t.applyWidget(n,!0),s.sortList.length>0?c.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&t.applyWidget(n,!1)),s.showProcessing&&c.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,(function(e){clearTimeout(s.processTimer),t.isProcessing(n),"sortBegin"===e.type&&(s.processTimer=setTimeout((function(){t.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&t.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),c.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},t.getColumnData=function(t,i,n,s){if(null!=i){var r,a=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},t.computeColumnIndex=function(t){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<t.length;i++)for(l=t[i].cells,n=0;n<l.length;n++){for(o=l[n],a=e(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},t.isProcessing=function(i,n,s){var r=(i=e(i))[0].config,a=s||i.find("."+t.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),r.sortList)>=0}))),i.add(a).addClass(t.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(t.css.processing+" "+r.cssProcessing)},t.processTbody=function(t,i,n){var s;if(t=e(t)[0],n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},t.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},t.bindEvents=function(t,i,n){var r,a=(t=e(t)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(t),c=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(t,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},t.restoreHeaders=function(i){var n=e(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){e(this).find("."+t.css.headerIn).length&&e(this).html(n.headerContent[i])}))},t.destroy=function(i,n,s){if((i=e(i)[0]).hasInitialized){t.refreshWidgets(i,!0,!0);var r=e(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([t.css.header,a.cssHeader,a.cssAsc,a.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),t.restoreHeaders(i),r.toggleClass(t.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},t.sortNatural=function(e,i){if(e===i)return 0;var n,s,r,a,o,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,r){if(e===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,r){if(e===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:t.sortNatural(i,e)},t.sortText=function(e,t){return e>t?1:e<t?-1:0},t.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,r=i+t;for(n=0;n<s;n++)r+=e.charCodeAt(n);return t*r}return 0},t.sortNumericAsc=function(e,i,n,s,r,a){if(e===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,r,a){if(e===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},t.replaceAccents=function(e){var i,n="[",s=t.characterEquivalents;if(!t.characterRegex){for(i in t.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],t.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));t.characterRegex=new RegExp(n+"]")}if(t.characterRegex.test(e))for(i in s)"string"==typeof i&&(e=e.replace(t.characterRegexArray[i],i));return e},t.isValueInArray=function(e,t){var i,n=t.length;for(i=0;i<n;i++)if(t[i][0]===e)return i;return-1},t.addParser=function(e){var i,n=t.parsers.length,s=!0;for(i=0;i<n;i++)t.parsers[i].id.toLowerCase()===e.id.toLowerCase()&&(s=!1);s&&t.parsers.push(e)},t.getParserById=function(e){if("false"==e)return!1;var i,n=t.parsers.length;for(i=0;i<n;i++)if(t.parsers[i].id.toLowerCase()===e.toString().toLowerCase())return t.parsers[i];return!1},t.addWidget=function(e){t.widgets.push(e)},t.hasWidget=function(t,i){return(t=e(t)).length&&t[0].config&&t[0].config.widgetInit[i]||!1},t.getWidgetById=function(e){var i,n,s=t.widgets.length;for(i=0;i<s;i++)if((n=t.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===e.toLowerCase())return n},t.applyWidget=function(i,s){var r,a,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,(function(t,i){return e.inArray(t,l.widgets)===i})),e.each(l.widgets||[],(function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)})),u.sort((function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1})),e.each(u,(function(t,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=e.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))}))),setTimeout((function(){i.isApplyingWidgets=!1}),0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},t.refreshWidgets=function(n,s,r){var a,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||e.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,r,a="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(a)):""},t.formatFloat=function(t,i){return"string"!=typeof t||""===t?t:(t=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(t),isNaN(n)?e.trim(t):n);var n},t.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var t=e.tablesorter;e.fn.extend({tablesorter:t.construct}),t.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),t.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=e.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?t.replaceAccents(i):i),i},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,i){var n,s=e?e.split("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return e?t.formatFloat(r,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(t){return t?e.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},type:"text"}),t.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,i){return e?t.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",i):e},type:"numeric"}),t.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,i){return e?t.formatFloat(e.replace(/%/g,""),i):e},type:"numeric"}),t.addParser({id:"usLongDate",is:function(e){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,i,n,s){if(e){var r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||t.getData(a,t.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[r]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(r=h.eq(u)).children("tr").length>1&&(o=0,r.children("tr:visible").not(n.selectorRemove).each((function(){a=e(this),d.test(this.className)||o++,l=o%2==0,a.removeClass(s.zebra[l?1:0]).addClass(s.zebra[l?0:1])})));n.debug&&t.benchmark("Applying Zebra widget",c)},remove:function(t,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=e.tablesorter.processTbody(t,a.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,r,!1)}})}(jQuery)},37:()=>{var e;void 0===(e=jQuery).fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}}),function(e,t){"use strict";if(window.Select2===t){var i,n,s,r,a,o,l,c,u={x:0,y:0},d={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},h="<div class='select2-measure-scrollbar'></div>",p={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};o=e(document),c=1,r=function(){return c++},i=O(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,a=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e(document.body),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(M(i.containerCss,this.opts.element)),this.container.addClass(M(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",x),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(M(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",x),this.results=n=this.container.find(a),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",x),this.results.on("mousemove",(function(i){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",a,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",a,this.bind((function(e){this._touchEvent=!0,this.highlightUnderEvent(e)}))),this.dropdown.on("touchmove",a,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",a,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind((function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())}))),function(e,t){var i=_(e,(function(e){t.trigger("scroll-debounced",e)}));t.on("scroll",(function(e){m(e.target,t.get())>=0&&i(e)}))}(80,this.results),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",(function(e){e.stopPropagation()})),e(this.dropdown).on("change",".select2-input",(function(e){e.stopPropagation()})),e.fn.mousewheel&&n.mousewheel((function(e,t,i,s){var r=n.scrollTop();s>0&&r-s<=0?(n.scrollTop(0),x(e)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),x(e))})),w(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",a,this.bind((function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))}))),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",(function(e){e.stopPropagation()})),this.lastSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var o=i.element.prop("disabled");o===t&&(o=!1),this.enable(!o);var c=i.element.prop("readonly");c===t&&(c=!1),this.readonly(c),l=l||function(){var t=e(h);t.appendTo(document.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.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each((function(){n._sync&&this.detachEvent("onpropertychange",n._sync)})),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==t&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),I.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:v(e.attr("locked"),"locked")||v(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,s,a,o,l=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),i.debug=i.debug||e.fn.select2.defaults.debug,i.debug&&console&&console.warn&&(null!=i.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=i.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=i.ajax&&null!=i.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=i.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=i.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=i.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=i.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=i.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=i.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),i.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=i.element.data("tags")){var c=i.element.data("tags");e.isArray(c)||(c=[]),i.element.data("select2Tags",c)}if(null!=i.sorter&&(i.sortResults=i.sorter),null!=i.selectOnClose&&(i.selectOnBlur=i.selectOnClose),null!=i.ajax&&e.isFunction(i.ajax.processResults)&&(i.ajax.results=i.ajax.processResults),null!=i.language){var u=i.language;e.isFunction(u.noMatches)&&(i.formatNoMatches=u.noMatches),e.isFunction(u.searching)&&(i.formatSearching=u.searching),e.isFunction(u.inputTooShort)&&(i.formatInputTooShort=u.inputTooShort),e.isFunction(u.inputTooLong)&&(i.formatInputTooLong=u.inputTooLong),e.isFunction(u.loadingMore)&&(i.formatLoading=u.loadingMore),e.isFunction(u.maximumSelected)&&(i.formatSelectionTooBig=u.maximumSelected)}if("function"!=typeof(i=e.extend({},{populateResults:function(n,s,a){var o,c=this.opts.id,u=this.liveRegion;o=function(n,s,d){var h,p,f,g,m,v,b,y,w,_,x=[];for(h=0,p=(n=i.sortResults(n,s,a)).length;h<p;h+=1)g=!(m=!0===(f=n[h]).disabled)&&c(f)!==t,v=f.children&&f.children.length>0,(b=e("<li></li>")).addClass("select2-results-dept-"+d),b.addClass("select2-result"),b.addClass(g?"select2-result-selectable":"select2-result-unselectable"),m&&b.addClass("select2-disabled"),v&&b.addClass("select2-result-with-children"),b.addClass(l.opts.formatResultCssClass(f)),b.attr("role","presentation"),(y=e(document.createElement("div"))).addClass("select2-result-label"),y.attr("id","select2-result-label-"+r()),y.attr("role","option"),(_=i.formatResult(f,y,a,l.opts.escapeMarkup))!==t&&(y.html(_),b.append(y)),v&&((w=e("<ul></ul>")).addClass("select2-result-sub"),o(f.children,w,d+1),b.append(w)),b.data("select2-data",f),x.push(b[0]);s.append(x),u.text(i.formatMatches(n.length))},o(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,r,a={results:[],more:!1},o=e.term;r=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2((function(e,t){r(t,n.children)})),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2((function(e,t){r(t,a.results)})),e.callback(a)})),i.id=function(e){return e.id}):"query"in i||("ajax"in i?((o=i.element.data("ajax-url"))&&o.length>0&&(i.ajax.url=o),i.query=D.call(i.element,i.ajax)):"data"in i?i.query=E(i.data):"tags"in i&&(i.query=A(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(b(t.val(),i.separator,i.transformVal)).each((function(){var t={id:this,text:this},n=i.tags;e.isFunction(n)&&(n=n()),e(n).each((function(){if(v(this.id,t.id))return t=this,!1})),s.push(t)})),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind((function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),this._sync=this.bind((function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=n.prop("readonly");i===t&&(i=!1),this.readonly(i),this.container&&(C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(M(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(M(this.opts.dropdownCssClass,this.opts.element)))})),n.length&&n[0].attachEvent&&n.each((function(){this.attachEvent("onpropertychange",s._sync)})),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i((function(t){e.each(t,s._sync)})),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,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){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,r,a=this.dropdown,o=this.container,c=o.offset(),u=o.outerHeight(!1),d=o.outerWidth(!1),h=a.outerHeight(!1),p=e(window),f=p.width(),g=p.height(),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,w=b+h<=v,_=c.top-h>=p.scrollTop(),x=a.outerWidth(!1);a.hasClass("select2-drop-above")?(i=!0,!_&&w&&(n=!0,i=!1)):(i=!1,!w&&_&&(n=!0,i=!0)),n&&(a.hide(),c=this.container.offset(),u=this.container.outerHeight(!1),d=this.container.outerWidth(!1),h=a.outerHeight(!1),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,x=a.outerWidth(!1),a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(r=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(x=a.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:l.width))>d?d=x:x=d,h=a.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(b-=(t=this.body.offset()).top,y-=t.left),!(y+x<=m)&&c.left+m+o.outerWidth(!1)>x&&(y=c.left+this.container.outerWidth(!1)-x),s={left:y,width:d},i?(this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above"),h=a.outerHeight(!1),s.top=c.top-h,s.bottom="auto"):(s.top=b,s.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),s=e.extend(s,M(this.opts.dropdownCss,this.opts.element)),a.css(s)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),o.on("mousemove.select2Event",(function(e){u.x=e.pageX,u.y=e.pageY})),!0)},opening:function(){var t,i=this.containerEventName,n="scroll."+i,s="resize."+i,r="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",(function(i){f(t);var n,s=e("#select2-drop");s.length>0&&((n=s.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())}))),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){e(this).on(s+" "+n+" "+r,(function(e){a.opened()&&a.positionDropdown()}))}))},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each((function(){e(this).off(i).off(n).off(s)})),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),o.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return e!==t&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return M(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,n,s,r,a,o,l,c=this.results;(i=this.highlight())<0||(0!=i?(t=this.findHighlightableChoices().find(".select2-result-label"),s=(l=((n=e(t[i])).offset()||{}).top||0)+n.outerHeight(!0),i===t.length-1&&(o=c.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(r=c.offset().top+c.outerHeight(!1))&&c.scrollTop(c.scrollTop()+(s-r)),(a=l-c.offset().top)<0&&"none"!=n.css("display")&&c.scrollTop(c.scrollTop()+a)):c.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=e(i[n+=t]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,n,s=this.findHighlightableChoices();if(0===arguments.length)return m(s.filter(".select2-highlighted")[0],s.get());t>=s.length&&(t=s.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(s[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),r=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:r,matcher:this.opts.matcher,callback:this.bind((function(a){n.opened()&&(n.opts.populateResults.call(this,e,a.results,{term:s,page:i,context:r}),n.postprocessResults(a,!1,!1),!0===a.more?(t.detach().appendTo(e).html(n.opts.escapeMarkup(M(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var n,s,r,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),d=e.data(this.container,"select2-last-term");if((!0===i||!d||!v(u,d))&&(e.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&S(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(S(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+M(l.formatInputTooShort,l.element,a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?S(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+M(l.formatInputTooLong,l.element,a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+M(l.formatSearching,l.element)+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=t&&null!=s&&a.val(s),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var s;if(r==this.queryCount)if(this.opened())if(n.hasError!==t&&S(l.formatAjaxError,"formatAjaxError"))f("<li class='select2-ajax-error'>"+M(l.formatAjaxError,l.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");else{if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&(s=this.opts.createSearchChoice.call(c,a.val(),n.results))!==t&&null!==s&&c.id(s)!==t&&null!==c.id(s)&&0===e(n.results).filter((function(){return v(c.id(this),c.id(s))})).length&&this.opts.createSearchChoicePosition(n.results,s),0===n.results.length&&S(l.formatNoMatches,"formatNoMatches"))return f("<li class='select2-no-results'>"+M(l.formatNoMatches,l.element,a.val())+"</li>"),void(this.showSearch&&this.showSearch(a.val()));o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&S(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+l.escapeMarkup(M(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n})}else this.search.removeClass("select2-active")}))})));f("<li class='select2-selection-limit'>"+M(l.formatSelectionTooBig,l.element,h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(o.text()):c.liveRegion.text(c.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function 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(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))}),0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{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 i=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){var t=function(){var t,i,n,s,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("string"==typeof(t=this.opts.element.attr("style")))for(s=0,r=(i=t.split(";")).length;s<r;s+=1)if(null!==(n=i[s].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&n.length>=1)return n[1];return"resolve"===this.opts.width?(t=this.opts.element.css("width")).indexOf("%")>0?t: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!==t&&this.container.css("width",t)}}),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'>&#160;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((i=t.createTextRange()).collapse(!1),i.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,s=this.dropdown,a=r();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind((function(){this.focus()}))),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which!==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 x(e);case d.ENTER:return this.selectHighlighted(),void x(e);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(e),void x(e)}else x(e)}))),this.search.on("blur",this.bind((function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind((function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()&&e.which!==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 x(e)}return e.which==d.DELETE||e.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void x(e)):void 0}x(e)}}))),w(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 touchstart","abbr",this.bind((function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())}))),t.on("mousedown touchstart",this.bind((function(i){f(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),x(i)}))),s.on("mousedown touchstart",this.bind((function(){this.opts.shouldFocusInput(this)&&this.search.focus()}))),t.on("focus",this.bind((function(e){x(e)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())}))}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter((function(){return this.selected&&!this.disabled}));t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),r=null;t.query({matcher:function(e,i,n){var a=v(s,t.id(n));return a&&(r=n),a},callback:e.isFunction(n)?function(){n(r)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,i){var n=0,s=this;if(this.findHighlightableChoices().each2((function(e,t){if(v(s.id(t.data("select2-data")),s.opts.element.val()))return n=e,!1})),!1!==i&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(N(e.results)>=r)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),v(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),i!==t&&s.append(i),(n=this.opts.formatSelectionCssClass(e,s))!==t&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,r=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter((function(){return this.selected})).each2((function(e,t){return n=s.optionToData(t),!1})),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:r});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,(function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),i&&s.triggerChange({added:e,removed:r})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==t&&(i=null),i;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),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'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].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&&!this.disabled})).each2((function(e,t){n.push(i.optionToData(t))})),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=b(i.val(),t.separator,t.transformVal),r=[];t.query({matcher:function(i,n,a){var o=e.grep(s,(function(e){return v(e,t.id(a))})).length;return o&&r.push(a),o},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<s.length;i++)for(var a=s[i],o=0;o<r.length;o++){var l=r[o];if(v(a,t.id(l))){e.push(l),r.splice(o,1);break}}n(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",(function(t){n.search[0].focus(),n.selectChoice(e(this))})),this.search.attr("id","s2id_autogen"+r()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind((function(){this.focus()}))),this.search.on("input paste",this.bind((function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),a=function(t){var i=0,n=0;if("selectionStart"in(t=e(t)[0]))i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var o=n;return i.which==d.LEFT&&s.length?o=s:i.which==d.RIGHT?o=r.length?r:null:i.which===d.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),o=s.length?s:r):i.which==d.DELETE?this.unselect(n.first())&&(this.search.width(10),o=r.length?r:null):i.which==d.ENTER&&(o=null),this.selectChoice(o),x(i),void(o&&o.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void x(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 x(i);case d.ENTER:return this.selectHighlighted(),void x(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void x(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||x(i),i.which===d.ENTER&&x(i)}}}))),this.search.on("keyup",this.bind((function(e){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))}))),this.container.on("click",i,this.bind((function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))}))),this.container.on("focus",i,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,(function(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.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var i={},n=[],s=this;e(t).each((function(){s.id(this)in i||(i[s.id(this)]=0,n.push(this))})),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var i=this.getVal(),n=this;e(t).each((function(){i.push(n.createChoice(this))})),this.setVal(i)},createChoice:function(i){var n,s,r=!i.locked,a=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=r?a:o,c=this.id(i);return(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith(e("<div></div>").html(n)),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=t&&l.addClass(s),r&&l.find(".select2-search-choice-close").on("mousedown",x).on("click dblclick",this.bind((function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),x(t),this.close(),this.focusSearch())}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),l.data("select2-data",i),l.insertBefore(this.searchContainer),c},unselect:function(t){var i,n,s=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var r=e.Event("select2-removing");if(r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented())return!1;for(;(n=m(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),s=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;s.each2((function(e,t){m(a.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))})),r.each2((function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&S(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+M(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-y(this.search)},resizeSearch:function(){var t,i,n,s,r=y(this.search);t=function(t){if(!a){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(a=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e(document.body).append(a)}return a.text(t.val()),a.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-r)<t&&(s=n-r),s<40&&(s=n-r),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:b(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(t){if(this.select)this.select.val(t);else{var i=[],n={};e(t).each((function(){this in n||(i.push(this),n[this]=0)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator))}},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var i=0;i<t.length;i++)for(var n=0;n<e.length;n++)if(v(this.opts.id(t[i]),this.opts.id(e[n]))){t.splice(i,1),i--,e.splice(n,1);break}return{added:t,removed:e}},val:function(i,n){var s,r=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(t){var i=e.map(t,r.id);r.setVal(i),r.updateSelection(t),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(s,r.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){t.push(i.opts.id(e(this).data("select2-data")))})),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,r=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map((function(){return e(this).data("select2-data")})).get();s=this.data(),t||(t=[]),n=e.map(t,(function(e){return r.opts.id(e)})),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,n,s,r,a,o=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each((function(){if(0===o.length||"object"==typeof o[0])(i=0===o.length?{}:e.extend({},o[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?a=i.element.prop("multiple"):(a=i.multiple||!1,"tags"in i&&(i.multiple=a=!0)),(n=a?new window.Select2.class.multi:new window.Select2.class.single).init(i);else{if("string"!=typeof o[0])throw"Invalid arguments to select2 plugin: "+o;if(m(o[0],l)<0)throw"Unknown method: "+o[0];if(r=t,(n=e(this).data("select2"))===t)return;if("container"===(s=o[0])?r=n.container:"dropdown"===s?r=n.dropdown:(d[s]&&(s=d[s]),r=n[s].apply(n,o.slice(1))),m(o[0],c)>=0||m(o[0],u)>=0&&1==o.length)return!1}})),r===t?this:r},e.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return k(this.text(e),i.term,s,n),s.join("")},transformVal:function(t){return e.trim(t)},formatSelection:function(e,i,n){return e?n(this.text(e)):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?e.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(e,t){return g(""+t).toUpperCase().indexOf(g(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,s){var r,a,o,l,c,u=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(a=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((a=e.indexOf(c))>=0));o++);if(a<0)break;if(r=e.substring(0,a),e=e.substring(a+c.length),r.length>0&&(r=s.createSearchChoice.call(this,r,i))!==t&&null!==r&&s.id(r)!==t&&null!==s.id(r)){for(d=!1,o=0,l=i.length;o<l;o++)if(v(s.id(r),s.id(i[o]))){d=!0;break}d||n(r)}}return u!==e?e:void 0},escapeMarkup:T,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:D,local:E,tags:A},util:{debounce:_,markMatch:k,escapeMarkup:T,stripDiacritics:g},class:{abstract:i,single:n,multi:s}}}function f(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function g(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return p[e]||e}))}function m(e,t){for(var i=0,n=t.length;i<n;i+=1)if(v(e,t[i]))return i;return-1}function v(e,i){return e===i||e!==t&&i!==t&&(null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+""))}function b(e,t,i){var n,s,r;if(null===e||e.length<1)return[];for(s=0,r=(n=e.split(t)).length;s<r;s+=1)n[s]=i(n[s]);return n}function y(e){return e.outerWidth(!1)-e.width()}function w(i){var n="keyup-change-value";i.on("keydown",(function(){e.data(i,n)===t&&e.data(i,n,i.val())})),i.on("keyup",(function(){var s=e.data(i,n);s!==t&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))}))}function _(e,i,n){var s;return n=n||t,function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout((function(){i.apply(n,t)}),e)}}function x(e){e.preventDefault(),e.stopPropagation()}function C(t,i,n){var s,r,a=[];(s=e.trim(t.attr("class")))&&e((s=""+s).split(/\s+/)).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(s=e.trim(i.attr("class")))&&e((s=""+s).split(/\s+/)).each2((function(){0!==this.indexOf("select2-")&&(r=n(this))&&a.push(r)})),t.attr("class",a.join(" "))}function k(e,t,i,n){var s=g(e.toUpperCase()).indexOf(g(t.toUpperCase())),r=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+r))),i.push("</span>"),i.push(n(e.substring(s+r,e.length))))}function T(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))}function D(i){var n,s=null,r=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,r=a,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},d=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,s&&"function"==typeof s.abort&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(d,i.params.call(o)):e.extend(d,i.params)),e.extend(d,{url:r,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page,l);l.callback(t)},error:function(e,t,i){var n={hasError:!0,jqXHR:e,textStatus:t,errorThrown:i};l.callback(n)}}),s=c.call(o,d)}),r)}}function E(t){var i,n,s=t,r=function(e){return""+e.text};e.isArray(s)&&(s={results:n=s}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var a=s();return a.text&&(r=a.text,e.isFunction(r)||(i=a.text,r=function(e){return e[i]})),function(t){var i,n=t.term,a={results:[]};""!==n?(i=function(s,a){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2((function(e,t){i(t,o.children)})),(o.children.length||t.matcher(n,r(o),s))&&a.push(o)}else t.matcher(n,r(s),s)&&a.push(s)},e(s().results).each2((function(e,t){i(t,a.results)})),t.callback(a)):t.callback(s())}}function A(i){var n=e.isFunction(i);return function(s){var r=s.term,a={results:[]},o=n?i(s):i;e.isArray(o)&&(e(o).each((function(){var e=this.text!==t,i=e?this.text:this;(""===r||s.matcher(r,i))&&a.results.push(e?this:{id:this,text:this})})),s.callback(a))}}function S(t,i){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(i+" must be a string, function, or falsy value")}function M(t,i){if(e.isFunction(t)){var n=Array.prototype.slice.call(arguments,2);return t.apply(i,n)}return t}function N(t){var i=0;return e.each(t,(function(e,t){t.children?i+=N(t.children):i++})),i}function I(){var t=this;e.each(arguments,(function(e,i){t[i].remove(),t[i]=null}))}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}},775:t=>{"use strict";t.exports=e},472:e=>{"use strict";e.exports=t},302:e=>{"use strict";e.exports=i}},s={};function r(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.r(a),r.d(a,{$:()=>He,AvatarBadged:()=>Ke,AvatarEl:()=>nt,AvatarGroupEl:()=>ht,CalendarWidget:()=>Bl,CheckboxMultiselectEl:()=>sr,DatePicker:()=>Vl,DropdownEl:()=>os,FancyFileInput:()=>ar,FocusManager:()=>Kc,Header:()=>Pl,I18n:()=>I18n,InlineDialog2:()=>Qc,InlineDialogEl:()=>La,ItemCheckboxEl:()=>ss,ItemLinkEl:()=>ns,ItemRadioEl:()=>rs,LabelEl:()=>dr,LayerManager:()=>Gc,MessageEl:()=>ws,NavigationEl:()=>$a,ProgressBarEl:()=>Ja,ProgressiveDataSet:()=>Zc,RestfulTable:()=>hc,SectionEl:()=>as,SelectEl:()=>Xr,SpinnerEl:()=>Tt,TabContainerEl:()=>To,TabItemEl:()=>Do,TabPaneEl:()=>Eo,ToggleEl:()=>fa,_addID:()=>mu,banner:()=>mt,bind:()=>C,clone:()=>Jc,contextPath:()=>vu,debounce:()=>Xc,debounceImmediate:()=>eu,dialog2:()=>Pt,dim:()=>tu,error:()=>m,escapeHtml:()=>iu,flag:()=>As,formValidation:()=>nu,format:()=>b,id:()=>su,isClipped:()=>ru,keyCode:()=>au,layer:()=>ou,log:()=>f,messages:()=>lu,navigation:()=>ja,params:()=>uu,populateParameters:()=>cu,progressBars:()=>eo,responsiveheader:()=>du,select:()=>hu,sidebar:()=>$c,tablessortable:()=>pu,tabs:()=>fu,toInit:()=>Ue,trigger:()=>T,unbind:()=>k,undim:()=>gu,version:()=>w,warn:()=>g,whenIType:()=>qc});var e=r(472),t=r.n(e);const i=window.jQuery||window.Zepto||t(),n="AJS",s="I18n";function o(){"object"!=typeof window[n]&&(window[n]={})}function l(e,t){return o(),window[n][e]=t}var c=r(953),u=r.n(c);function d(e){let i;return{type:u().type.CLASSNAME,attached:function(n){!function(e,t){let i=!1;if(t((()=>{i=!0})),i)return;const n=new MutationObserver((e=>{(function(e){for(const t of e)if("childList"===t.type)return!0;return!1})(e)&&t((()=>n.disconnect()))}));n.observe(e,{childList:!0})}(n,(s=>{i=s;const r=t()(`input[type=${e}]`,n);r.each((function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)}));r.length>0&&i()}))},detached:function(e){t()(".aui-form-glyph",e).remove(),i&&i()}}}function h(e,t){var n=i(e);return void 0===t&&(t=!0),n.each((function(){this.disabled=!t}))}function p(e){return function(){"undefined"!=typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}u()("checkbox",d("checkbox")),u()("radio",d("radio")),l("enable",h),l("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 f=p("log"),g=p("warn"),m=p("error");function v(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(t,a){var o,l="";if(o=t.match(i))l=a.length>++t?a[t]:"";else if(o=t.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=t.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,p=0;p<u.length;p++){var f=u[p].match(r);if(null!=f){var g=parseInt(f[1],10);if(c<g){if(h){l=h;break}l=f[3];break}if(c==g&&"#"==f[2]){l=f[3];break}p==u.length-1&&(l=f[3]),h=f[3]}else d=!0}d&&m('The format "'+t+'" from message "'+e+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=v.apply(null,b)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var r=e.charAt(s);if("'"==r&&(t=!t),!t)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(e.substring(0,s+1)),a.push(e.substring(0,i)),a.push(e.substring(i+1,s)),a}}return null};return function(e){var i=arguments,n="";if(!e)return n;for(var s=o(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=a(s[2],i),s=o(e);return n+=e.replace(t,"")}.apply(null,arguments)}l("error",m),l("log",f),l("warn",g),l("format",v);const b=v;var y="9.7.1";l("version",y);const w=y,_=!1,x=i(window);function C(e,t,i){try{return"function"==typeof i?x.on(e,_,t,i):x.on(e,_,t)}catch(e){f("error while binding: ",e.message)}}function k(e,t){try{return x.off(e,t)}catch(e){f("error while unbinding: ",e.message)}}function T(e,t){try{return x.trigger(e,t)}catch(e){f("error while triggering: "+e.message)}}l("bind",C),l("trigger",T),l("unbind",k);const D={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},E=new RegExp(`[${Object.keys(D).join("")}]`,"g");function A(e){return e.replace(E,(e=>D[e]))}l("escapeHtml",A);const S=A;var M=Object.prototype.hasOwnProperty,N=[];function I(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function O(e,t){if("function"==typeof e)return e;var i=!1;return t=t||{},function(n){var s,r=function(e){var t=new Error,i=t.stack||t.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[e+2]:n}(n||1)||"";if(!i||-1===N.indexOf(r)){N.push(r),i=!0;var a="DEPRECATED "+(t.deprecationType+" "||0)+"- "+(s=e,((s+="")?s.charAt(0).toUpperCase()+s.substring(1):"")+" has been deprecated")+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion||"a future release")+".";t.alternativeName&&(a+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(a+=" "+t.extraInfo),r=""===r?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+r,t.extraObject?I(a+="\n",t.extraObject,r):I(a,r)}}}function L(e,t){var n=e.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:t},e.options);O("'"+e.selector+"' pattern"+n,s)()}function P(e,t,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=O(t||e.name||"this function",i);return function(){return n(),e.apply(this,arguments)}}function R(e,t,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=P(e,t,n);return s.prototype=e.prototype,i.extend(s,e),s}var $=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),$=!0)}catch(e){}function j(e,t,i){if("function"==typeof e[t]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||t;e[t]=P(e[t],n,i)}else!function(e,t,i){if($){var n=e[t];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=O(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 F(e){return function(t){for(var i={selector:t,options:e||{}},n=document.querySelectorAll(t),s=0;s<n.length;s++)L(i,n[s]);!function(e){if(H.push(e),!B){B=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&&H.forEach(z(n))}}))}));var t={childList:!0,subtree:!0};B.observe(document,t)}}(i)}}function z(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)&&L(t,e)}}const H=[];let B;function U(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}var W;function V(e,t){W||(W=document.body),!0===e&&q();const n=!!V.$dim&&!V.$dim[0].hasAttribute("hidden");return V.$dim&&(V.$dim.remove(),V.$dim=null),V.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),V.$dim.appendTo(document.body),n||(U(V.$dim),V.cachedOverflow={overflow:W.style.overflow,overflowX:W.style.overflowX,overflowY:W.style.overflowY},W.style.overflowX="hidden",W.style.overflowY="hidden",W.style.overflow="hidden"),V.$dim.removeAttr("hidden"),t&&V.$dim.css({zIndex:t}),V.$dim}function Y(){V.$dim&&(V.$dim[0].setAttribute("hidden",""),W&&(W.style.overflow=V.cachedOverflow.overflow,W.style.overflowX=V.cachedOverflow.overflowX,W.style.overflowY=V.cachedOverflow.overflowY))}l("deprecate",{fn:P,construct:R,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(F(t))},prop:j,obj:function(e,t,n){for(var s in n=n||{},e)M.call(e,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=t+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,j(e,s,i.extend({},n)))},propertyDeprecationSupported:$,getMessageLogger:O});const q=O("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});l("dim",V),l("undim",Y);var K={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};l("keyCode",K);const Q=K;function G(e,t){window.define&&(0,window.define)(e,[],(function(){return t}));return t}const Z=u().noConflict();const J=function(e){return{set:function(t,i){void 0===e._state&&(e._state={}),e._state[t]=i},get:function(t){if(e._state)return e._state[t]}}};function X(e){return J(e).get("last-trigger")||ne(e)[0]}function ee(e,t){var i=t&&t.nodeType&&1===t.nodeType;return J(e).set("last-trigger",!!i&&t)}function te(e,t){var i=X(e);i&&t(i)}function ie(e,t){return Array.prototype.forEach.call(ne(e),t)}function ne(e){const t=window.frames,i=`[aria-controls="${e.id}"]`;let n=[],s=!1;for(let e=0;e<t.length;e++)try{let s=t[e].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(e){s=!0}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&g([`No triggers found for element (${e.id}) in iframes from the same origin.`,"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function se(e){return document.getElementById(e.getAttribute("aria-controls"))}function re(e){return"true"!==e.getAttribute("aria-disabled")}function ae(e,t){if(re(e)){var i=se(e);i&&i.message&&i.message(t)}}const oe={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(ae(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==Q.ENTER&&i!==Q.SPACE||(t.preventDefault(),t.type="click",oe.click(e,t))},mouseenter(e,t){ae(e,t)},mouseleave(e,t){ae(e,t)},focus(e,t){ae(e,t)},blur(e,t){(function(e,t){let n=t.relatedTarget;return n||(n=document.activeElement),i(se(e)).find(n).length>0})(e,t)||ae(e,t)}};Object.keys(oe).forEach((function(e){const t=oe[e];i(document).on(`${e}.aui-trigger`,"[data-aui-trigger]",(function(i){t(i.currentTarget,function(e,t){const{target:i,currentTarget:n,relatedTarget:s}=e,{keyCode:r,which:a}=e;return{type:t,data:"keydown"===t?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))}))})),Z("data-aui-trigger",{type:Z.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return re(this)}}}),G("aui/trigger"),function(){function e(e){return"visible"===i.css(e,"visibility")&&i(e).is(":visible")}function t(t,n){var s=t.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=t.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!t.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&e(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=t.href||n;return(l?!t.disabled:c?u:n)&&e(t)}i.extend(i.expr.pseudos,{"aui-focusable":e=>t(e,!isNaN(i.attr(e,"tabindex"))),"aui-tabbable":function(e){var n=i.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&t(e,!s)}})}();var le="_aui-focus-restore";function ce(e){return e.is(".aui-dialog2")||e.is('[aui-focus-trap="true"]')}function ue(){this._focusTrapStack=[],this._handler}function de(e,t){if(0===e.length)return;if(t.keyCode!==Q.TAB)return;const n=t.shiftKey?-1:1,s=t.target,r=e[e.length-1],a=r.find(":aui-tabbable");if(!a.length&&ce(r)&&(r.trigger("focus"),t.preventDefault()),!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let e;if(e=i(s).closest(".aui-layer"),!e.length){e=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(s)}if(e.length){const t=e.find(":aui-tabbable"),i=t.index(s)+n;if(!(i<0||i>=t.length))return;{const t=X(e.get(0));l=a.index(t)}}}l=l>-1?(l+n)%a.length:0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),t.preventDefault())}let he;function pe(){return he||(he=new ue),he}ue.defaultFocusSelector=":aui-tabbable",ue.prototype.enter=function(e,t){if(function(e,t=document.activeElement){e.data(le,t)}(e,t),"false"!==e.attr("data-aui-focus")){var n=e.attr("data-aui-focus-selector")||ue.defaultFocusSelector;(e.is(n)?e:e.find(n)).first().trigger("focus")}ce(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=de.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ue.prototype.exit=function(e){ce(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(le))}(e);n.length&&(e.removeData(le),n.trigger("focus"))}},pe.global=pe(),l("FocusManager",pe);const fe=pe;function ge(e,t){var n="_aui-widget-"+e;return function(e,s){var r,a;i.isPlainObject(e)?a=e:(r=e,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new t(l,a||{})).$el).data(n,o),o}}let me;!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(me=window.CustomEvent)}catch(e){}me=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},me.prototype=window.Event.prototype}();const ve=me,be="_aui-internal-layer-",ye="_aui-internal-layer-global-",we="aui-layer-",_e="aui-",xe=3e3;var Ce=i(document);function ke(e,t,i,n){!function(e,t){var i=window.getComputedStyle(e).transitionProperty;return!!i&&i.indexOf(t)>-1}(e,t)?i.call(e):e.addEventListener("transitionend",(function s(r){t===r.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))}))}function Te(e,t,n){var s=i.Event(be+t),r=i.Event(ye+t),a=new ve(we+n,{bubbles:!0,cancelable:!0}),o=new ve(_e+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(r,[e]),e[0].dispatchEvent(a),e[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function De(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function Ee(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}De.prototype={below:function(){return Le.global.item(Le.global.indexOf(this.$el)-1)},above:function(){return Le.global.item(Le.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(be+e,t),this},off:function(e,t){return this.$el.off(be+e,t),this},show:function(){return this.isVisible()||Le.global.indexOf(this.$el)>-1?this:Te(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Le.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return ke(this.$el.get(0),"opacity",(function(){e.isVisible()||(this.style.display="none")}),!0),Le.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=Ee(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=Ee(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!Te(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&fe.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(be+"hide"),this.$el.trigger(ye+"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()&&fe.global.enter(this.$el),this.$el.trigger(be+"show"),this.$el.trigger(ye+"show",[this.$el])}};var Ae=ge("layer",De);function Se(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function Me(e,t){return Se(e,(function(e){return e[0]===t[0]}))}function Ne(e){return Se(e,(function(e){return Ae(e).isBlanketed()}))}function Ie(e,t){var i=Ne(e);t!==i&&(i>-1?V(!1,e[i].css("z-index")-20):Y())}function Oe(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,r=e.length-1;r>=t;r--){s=e[r];var a=Ae(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];e.splice(r,1)}}return[!0,s]}function Le(){this._stack=[]}function Pe(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Le.global.indexOf(t)>-1}Ae.on=function(e,t,i){return Ce.on(ye+e,t,i),this},Ae.off=function(e,t,i){return Ce.off(ye+e,t,i),this},Le.prototype={push:function(e){var t=e instanceof i?e:i(e);if(Me(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=Ae(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(xe,t)}(this._stack);return n._showLayer(s),n.isBlanketed()&&V(!1,s-20),this._stack.push(t),this},popLayersBeside:function(e){const t=i(e).get(0);if(!function(e){return!!X(e)}(t)){var n=Ne(this._stack);return void Oe(this._stack,++n,!1)}const s=function(e){var t=X(e);if(t)return i(t).closest(".aui-layer").get(0)}(t);if(s){let e=this.indexOf(s);Oe(this._stack,++e,!1)}else Oe(this._stack,0,!1)},indexOf:function(e){return Me(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach((function(e){let t=Ae(e);t.isBlanketed()||t.isPersistent()||t.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Me(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var r=Ae(t);if(!r.isPersistent()||r.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Me(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var r=Ae(t);if(!r.isPersistent()&&!r.isBlanketed())return t;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},popUntil:function(e,t=!1){var n=e instanceof i?e:i(e),s=Me(this._stack,n);if(-1===s)return null;const r=Ne(this._stack),a=Ae(n),[o,l]=Oe(this._stack,s+1,a.isBlanketed(),t);return o&&a._hideLayer(t)?(this._stack.splice(s,1),Ie(this._stack,r),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=Ae(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=Ne(this._stack);if(t<0)return null;var i=this._stack[t];if(Ae(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=Me(this._stack,n);return Oe(this._stack,s,!0,e),n}return null}return Oe(this._stack,t,!0),Ie(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Le.global.getTopLayer();if(t){var i,n=Ne(this._stack),s=Ae(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Le.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=Ae(t),!t||s.isPersistent())return;i=Me(this._stack,t),Oe(this._stack,i,!0,e),Ie(this._stack,n)}else i=Me(this._stack,t),Oe(this._stack,i,!0,e),Ie(this._stack,n)}}},Ce.on("keydown",(function(e){e.keyCode===Q.ESCAPE&&(Le.global.popUntilTopPersistent(!0),e.preventDefault())})),Ce.on("click",".aui-blanket",(function(e){Le.global.popUntilTopBlanketed(!0)&&e.preventDefault()})),Ce.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&&!Pe(n)){const t=i.Event("aui-close-layers-on-outer-click");return Ce.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Le.global.hideAll()}if(!Pe(n)&&s.length){var r=Le.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&Ae(r).hide()}}})),Le.global=new Le,Ae.Manager=Le,l("layer",Ae);const Re=Ae;l("LayerManager",Re.Manager);Re.Manager;const $e={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},je=l("params",new Proxy({},{get:function(e,t){return O("AJS.params",$e)(),e[t]}}));const Fe=P((function(e){e||(e=je),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"});l("populateParameters",Fe);const ze=Fe;i((function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",w),ze()})),l("$",i);const He=i;function Be(e){return i.when(i.ready).then((function(){setTimeout((function(){try{e.call(this,i)}catch(t){m("Failed to run init function: "+t.message,e,t,t.stack)}}),1)})),this}l("toInit",Be);const Ue=Be,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.number.suggestions":"Found {0,choice,0#0 options|1#1 option|1<{0,number} options}.","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","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)?b.apply(null,[this.keys[e]].concat(t)):e}};for(const e in I18n)We=e,Ve=I18n[e],o(),"object"!=typeof window[n][s]&&(window[n][s]={}),void 0===window[n][s][We]&&(window[n][s][We]=Ve);var We,Ve;const Ye="bottom-end",qe=(e,t,i)=>{const n=["top-start","top-end","bottom-start","bottom-end"].includes(t)?t:Ye;null!==i&&e.classList.remove(`aui-avatar-badged-${i}`),e.classList.add(`aui-avatar-badged-${n}`)},Ke=Z("aui-avatar-badged",{attached(e){const t=e.getAttribute("placement");t.length&&qe(e,t)},attributes:{placement:{value:Ye,fallback:function(e,{newValue:t,oldValue:i}){qe(e,t,i)}}},created:function(e){e.className="aui-avatar-badged"}});var Qe=r(596),Ge=r.n(Qe);const Ze=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Je=(e,t)=>e.querySelector(t),Xe=(e,t,i)=>{const n=Je(e,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},et=e=>{if(e.hasAttribute("src"))it(e,e.getAttribute("src"));else{const t=(e=>"project"===e.getAttribute("type")?"project":"user")(e),i=Ze.get(t);it(e,i)}},tt=(e,t,i)=>Je(e,"img").setAttribute(t,i),it=(e,t)=>tt(e,"src",t),nt=Z("aui-avatar",{template:Ge()("\n <span class='aui-avatar'>\n <span class='aui-avatar-inner'>\n <img />\n </span>\n <content></content>\n </span>\n "),attributes:{size(e,{newValue:t,oldValue:i}){Xe(e,t,i)},type(e,{newValue:t,oldValue:i}){Xe(e,t,i),et(e)},src(e,{newValue:t}){it(e,t)},alt(e,{newValue:t}){((e,t)=>{tt(e,"alt",t)})(e,t)},title(e,{newValue:t}){((e,t)=>{tt(e,"title",t)})(e,t)}},created:function(e){e.className="aui-avatar",et(e)}}),st="medium",rt={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128};let at=!1;const ot=e=>Object.keys(rt).includes(e)?e:st,lt=(e,t,i)=>{e.classList.remove(`aui-avatar-group-${i}`),e.classList.add(`aui-avatar-group-${t}`)},ct=(e,t,i)=>(rt[e]-rt[e]/t)*i+"px",ut=e=>{e.parentNode.querySelector(".aui-avatar-group-dropdown").classList.toggle("aui-avatar-group-dropdown-show"),(e=>{const t=e.parentNode.querySelectorAll("aui-avatar"),i=e.parentNode.querySelector(".aui-avatar-group-dropdown"),n=[...t].slice(4);at?(at=!1,n.forEach((()=>{const e=document.querySelector(".aui-avatar-group-dropdown-item");e&&e.remove()}))):(at=!0,n.forEach((e=>{const t=e.getAttribute("src"),n=e.getAttribute("alt"),s=e.getAttribute("title"),r=document.createElement("span");r.setAttribute("class","aui-avatar-group-dropdown-item"),r.innerHTML=t?`<aui-avatar id="avatar-item" src=${t} alt=${n} title=${s}></aui-avatar>`:"<aui-avatar></aui-avatar>",i.appendChild(r)})))})(e)},dt=(e,t)=>{const i=e.querySelectorAll("aui-avatar");let n=i.length-4;if(i.forEach(((e,i)=>{e.classList.toggle("aui-avatar-group-item-hidden",i>=4),((e,t,i)=>{e.setAttribute("size",t),e.classList.add("aui-avatar-group-item"),e.style.left=ct(t,4,i),e.style.zIndex=""+(5-i)})(e,t,i)})),n>0)((e,t,i,n)=>{const s=e.querySelector(".aui-avatar-group-badged");s&&s.remove();const r=e.querySelector(".aui-avatar-group-dropdown");r&&r.remove();const a=i.length-n,o=document.createElement("button");o.classList.add("aui-avatar-group-badged","aui-avatar-inner"),o.style.left=ct(t,4.5,a),o.innerText=`+${n}`,e.appendChild(o),o.addEventListener("click",(()=>ut(o)));const l=document.createElement("div");l.classList.add("aui-avatar-group-dropdown"),l.style.left=ct(t,4.5,a),e.appendChild(l)})(e,t,i,n);else{const t=e.querySelector(".aui-avatar-group-badged");t&&t.remove()}},ht=Z("aui-avatar-group",{attributes:{size:{value:st,fallback(e,{newValue:t,oldValue:i}){let n=ot(t);Z.init(e),lt(e,n,i),dt(e,n)}}},created(e){const t=e.getAttribute("size"),i=ot(t);e.className="aui-avatar-group",lt(e,i)}});new MutationObserver((function(e){e.forEach((function(e){const t=e.target;((e,t)=>e.removedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.removedNodes[0].classList.contains("aui-avatar-group-item"))(e,t)&&dt(t,t.getAttribute("size")),((e,t)=>e.addedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.addedNodes[0].classList.contains("aui-avatar"))(e,t)&&setTimeout((()=>{dt(t,t.getAttribute("size"))}),0)}))})).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});var pt="header";function ft(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 gt().find(".aui-banner").get().forEach((function(e){e.hasAttribute("hidden")&&i(e).remove()})),function(e){var t=gt();if(!t.length)throw new Error("You must implement the application header");e.prependTo(t),U(e),e[0].removeAttribute("hidden")}(t),t[0]}function gt(){return i("#"+pt)}G("aui/banner",ft),l("banner",ft);const mt=ft;var vt=r(302);const bt={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},yt={filled:!1,size:bt.MEDIUM.name},wt="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.",_t=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:wt}),xt=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:wt});function Ct(e){let t=bt.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();const i=Object.keys(bt).map((e=>e.toLowerCase()));i.indexOf(e)>-1&&(t=e)}return t}function kt(e){const{px:t,radius:i}=(0,vt.find)(bt,(t=>t.name===e._data.size))||bt.MEDIUM;!function(e,t,i){const n=e.querySelector("svg"),s=e.querySelector("circle");n.setAttribute("size",t),n.setAttribute("height",t),n.setAttribute("width",t),n.setAttribute("viewBox",`0 0 ${t} ${t}`);const r=t/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(e,t,i),e._data.filled?function(e,t){const i=e.parentNode;if(i&&1===i.nodeType){const n=e.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+t/2;e.querySelector("svg").style.top=r-a+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const Tt=Z("aui-spinner",{template(e){e.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',kt(e)},attached(e){kt(e)},attributes:{filled:{created:function(e){_t(),e._data.filled=!0,kt(e)},removed:function(e){e._data.filled=!1,kt(e)}},size(e,t){e._data.size=Ct(t.newValue),kt(e)}},prototype:{get _data(){return this.__data||(this._data=(0,vt.defaults)({},yt))},set _data(e){return this.__data=e},set filled(e){xt(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=Ct(e);this.setAttribute("size",t)}}});function Dt(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function Et(e){return"INPUT"===e.nodeName}Z("aui-button",{type:Z.type.CLASSNAME,created:function(e){e._spinner=new Tt,e._spinner.setAttribute("size",bt.SMALL.name)},prototype:{busy:function(){return Et(this)||Dt(this)?(g("It is not valid to call busy() on an input button."),this):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy",""),this)},idle:function(){return Et(this)||!Dt(this)?(g("It is not valid to call idle() on an input button."),this):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy"),this)},isBusy:function(){return Et(this)?(g("It is not valid to call isBusy() on an input button."),!1):Dt(this)}}}),G("aui/button");const At="aui-close-button",St=`.${At}`,Mt=`<button type="button" class="${At}" aria-label="${I18n.getText("aui.words.close")}">`,Nt={"aui-focus":"false","aui-blanketed":"true"};function It(e){var t;this._handlers=new WeakMap,this.$el=i(e||`\n <section role="dialog" aria-modal="true" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n ${Mt}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),t=this.$el,i.each(Nt,(function(e,i){const n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)}))}It.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)};Re(i).on(e,n),this._handlers.set(t,n)}return this},It.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Re(i).off(e,n),this._handlers.delete(t)),this},It.prototype.show=function(){return Re(this.$el).show(),this},It.prototype.hide=function(){return Re(this.$el).hide(),this},It.prototype.remove=function(){return Re(this.$el).remove(),this},It.prototype.isVisible=function(){return Re(this.$el).isVisible()};var Ot=ge("dialog2",It),Lt=new Set;Ot.on=function(e,t){return Lt.has(t)||(Re.on(e,".aui-dialog2",t),Lt.add(t)),this},Ot.off=function(e,t){return Lt.has(t)&&(Re.off(e,".aui-dialog2",t),Lt.delete(t)),this},i(document).on("click keydown",`.aui-dialog2-header ${St}`,(function(e){("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE)&&(e.preventDefault(),Ot(i(e.target).closest(".aui-dialog2")).hide())})),Ot.on("show",(function(e,t){!function(e){const t=e.querySelector(St);t&&(O(`Dialog2 [${St}] element is deprecated.`,{removeInVersion:"10.0.0",sinceVersion:"9.6.0",extraInfo:"Replace it with another actionable element inside your Dialog which will trigger closing of the modal.",deprecationType:"MARKUP"})(),t.setAttribute("tabindex","0"));e.setAttribute("tabindex","-1");const i=e.hasAttribute("data-aui-focus-selector");i&&O("Dialog2 [data-aui-focus-selector] attribute is deprecated.",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"9.6.0",extraInfo:"Replace [data-aui-focus-selector] attribute with HTML [autofocus] attribute",deprecationType:"ATTRIBUTE"})();const n=e.querySelector("[autofocus]");if(n)return document.activeElement.blur(),void setTimeout((()=>n.focus()),0);if(i){const t=e.querySelector(i);if(t)return t.blur(),void setTimeout((()=>t.focus()),0)}const s=[...e.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden")));if(s.length){let e=s.shift();return e.classList.contains(At)&&(e=s.shift()),void(e&&(e.blur(),setTimeout((()=>e.focus()),0)))}e.focus()}(t[0])})),Ot.on("hide",(function(e,t){const i=Re(t);t.data("aui-remove-on-hide")&&i.remove()})),G("aui/dialog2",Ot),l("dialog2",Ot);const Pt=Ot;var Rt,$t,jt=navigator.userAgent.toLowerCase(),Ft=(/msie/.test(jt),/windows nt 5.1/.test(jt),/windows nt 6.0/.test(jt),/windows nt 6.1/.test(jt),/mac os x/.test(jt));function zt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ht(e){return e instanceof zt(e).Element||e instanceof Element}function Bt(e){return e instanceof zt(e).HTMLElement||e instanceof HTMLElement}function Ut(e){return"undefined"!=typeof ShadowRoot&&(e instanceof zt(e).ShadowRoot||e instanceof ShadowRoot)}var Wt=Math.max,Vt=Math.min,Yt=Math.round;function qt(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Kt(){return!/^((?!chrome|android).)*safari/i.test(qt())}function Qt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&Bt(e)&&(s=e.offsetWidth>0&&Yt(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Yt(n.height)/e.offsetHeight||1);var a=(Ht(e)?zt(e):window).visualViewport,o=!Kt()&&i,l=(n.left+(o&&a?a.offsetLeft:0))/s,c=(n.top+(o&&a?a.offsetTop:0))/r,u=n.width/s,d=n.height/r;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Gt(e){var t=zt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Zt(e){return e?(e.nodeName||"").toLowerCase():null}function Jt(e){return((Ht(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xt(e){return Qt(Jt(e)).left+Gt(e).scrollLeft}function ei(e){return zt(e).getComputedStyle(e)}function ti(e){var t=ei(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ii(e,t,i){void 0===i&&(i=!1);var n,s,r=Bt(t),a=Bt(t)&&function(e){var t=e.getBoundingClientRect(),i=Yt(t.width)/e.offsetWidth||1,n=Yt(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),o=Jt(t),l=Qt(e,a,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!i)&&(("body"!==Zt(t)||ti(o))&&(c=(n=t)!==zt(n)&&Bt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Gt(n)),Bt(t)?((u=Qt(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Xt(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function ni(e){var t=Qt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function si(e){return"html"===Zt(e)?e:e.assignedSlot||e.parentNode||(Ut(e)?e.host:null)||Jt(e)}function ri(e){return["html","body","#document"].indexOf(Zt(e))>=0?e.ownerDocument.body:Bt(e)&&ti(e)?e:ri(si(e))}function ai(e,t){var i;void 0===t&&(t=[]);var n=ri(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=zt(n),a=s?[r].concat(r.visualViewport||[],ti(n)?n:[]):n,o=t.concat(a);return s?o:o.concat(ai(si(a)))}function oi(e){return["table","td","th"].indexOf(Zt(e))>=0}function li(e){return Bt(e)&&"fixed"!==ei(e).position?e.offsetParent:null}function ci(e){for(var t=zt(e),i=li(e);i&&oi(i)&&"static"===ei(i).position;)i=li(i);return i&&("html"===Zt(i)||"body"===Zt(i)&&"static"===ei(i).position)?t:i||function(e){var t=/firefox/i.test(qt());if(/Trident/i.test(qt())&&Bt(e)&&"fixed"===ei(e).position)return null;var i=si(e);for(Ut(i)&&(i=i.host);Bt(i)&&["html","body"].indexOf(Zt(i))<0;){var n=ei(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var ui="top",di="bottom",hi="right",pi="left",fi="auto",gi=[ui,di,hi,pi],mi="start",vi="end",bi="clippingParents",yi="viewport",wi="popper",_i="reference",xi=gi.reduce((function(e,t){return e.concat([t+"-"+mi,t+"-"+vi])}),[]),Ci=[].concat(gi,[fi]).reduce((function(e,t){return e.concat([t,t+"-"+mi,t+"-"+vi])}),[]),ki=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ti(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 Di(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ut(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ei(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ai(e,t,i){return t===yi?Ei(function(e,t){var i=zt(e),n=Jt(e),s=i.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=Kt();(c||!c&&"fixed"===t)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+Xt(e),y:l}}(e,i)):Ht(t)?function(e,t){var i=Qt(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Ei(function(e){var t,i=Jt(e),n=Gt(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=Wt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Wt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+Xt(e),l=-n.scrollTop;return"rtl"===ei(s||i).direction&&(o+=Wt(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}(Jt(e)))}function Si(e,t,i,n){var s="clippingParents"===t?function(e){var t=ai(si(e)),i=["absolute","fixed"].indexOf(ei(e).position)>=0&&Bt(e)?ci(e):e;return Ht(i)?t.filter((function(e){return Ht(e)&&Di(e,i)&&"body"!==Zt(e)})):[]}(e):[].concat(t),r=[].concat(s,[i]),a=r[0],o=r.reduce((function(t,i){var s=Ai(e,i,n);return t.top=Wt(s.top,t.top),t.right=Vt(s.right,t.right),t.bottom=Vt(s.bottom,t.bottom),t.left=Wt(s.left,t.left),t}),Ai(e,a,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Mi(e){return e.split("-")[0]}function Ni(e){return e.split("-")[1]}function Ii(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oi(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Mi(s):null,a=s?Ni(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case ui:t={x:o,y:i.y-n.height};break;case di:t={x:o,y:i.y+i.height};break;case hi:t={x:i.x+i.width,y:l};break;case pi:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?Ii(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case mi:t[c]=t[c]-(i[u]/2-n[u]/2);break;case vi:t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function Li(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Pi(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function Ri(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.strategy,a=void 0===r?e.strategy:r,o=i.boundary,l=void 0===o?bi:o,c=i.rootBoundary,u=void 0===c?yi:c,d=i.elementContext,h=void 0===d?wi:d,p=i.altBoundary,f=void 0!==p&&p,g=i.padding,m=void 0===g?0:g,v=Li("number"!=typeof m?m:Pi(m,gi)),b=h===wi?_i:wi,y=e.rects.popper,w=e.elements[f?b:h],_=Si(Ht(w)?w:w.contextElement||Jt(e.elements.popper),l,u,a),x=Qt(e.elements.reference),C=Oi({reference:x,element:y,strategy:"absolute",placement:s}),k=Ei(Object.assign({},y,C)),T=h===wi?k:x,D={top:_.top-T.top+v.top,bottom:T.bottom-_.bottom+v.bottom,left:_.left-T.left+v.left,right:T.right-_.right+v.right},E=e.modifiersData.offset;if(h===wi&&E){var A=E[s];Object.keys(D).forEach((function(e){var t=[hi,di].indexOf(e)>=0?1:-1,i=[ui,di].indexOf(e)>=0?"y":"x";D[e]+=A[i]*t}))}return D}var $i={placement:"bottom",modifiers:[],strategy:"absolute"};function ji(){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 Fi(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,r=void 0===s?$i:s;return function(e,t,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},$i,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){var s="function"==typeof i?i(o.options):i;d(),o.options=Object.assign({},r,o.options,s),o.scrollParents={reference:Ht(e)?ai(e):e.contextElement?ai(e.contextElement):[],popper:ai(t)};var a=function(e){var t=Ti(e);return ki.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({},i,t,{options:Object.assign({},i.options,t.options),data: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=a.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var r=s({state:o,name:t,instance:u,options:n}),a=function(){};l.push(r||a)}})),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,i=e.popper;if(ji(t,i)){o.rects={reference:ii(t,ci(i),"fixed"===o.options.strategy),popper:ni(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(o)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(s())}))}))),a}),destroy:function(){d(),c=!0}};if(!ji(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 zi={passive:!0};const Hi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=zt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,zi)})),o&&l.addEventListener("resize",i.update,zi),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,zi)})),o&&l.removeEventListener("resize",i.update,zi)}},data:{}};const Bi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Oi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Ui={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wi(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,p=void 0===h?0:h,f=a.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=pi,w=ui,_=window;if(c){var x=ci(i),C="clientHeight",k="clientWidth";if(x===zt(i)&&"static"!==ei(x=Jt(i)).position&&"absolute"===o&&(C="scrollHeight",k="scrollWidth"),s===ui||(s===pi||s===hi)&&r===vi)w=di,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===pi||(s===ui||s===di)&&r===vi)y=hi,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-n.width,p*=l?1:-1}var T,D=Object.assign({position:o},c&&Ui),E=!0===u?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:Yt(t*n)/n||0,y:Yt(i*n)/n||0}}({x:p,y:g}):{x:p,y:g};return p=E.x,g=E.y,l?Object.assign({},D,((T={})[w]=b?"0":"",T[y]=v?"0":"",T.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",T)):Object.assign({},D,((t={})[w]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const Vi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o=i.roundOffsets,l=void 0===o||o,c={placement:Mi(t.placement),variation:Ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Wi(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wi(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const Yi={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];Bt(s)&&Zt(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.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});Bt(n)&&Zt(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const qi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,r=void 0===s?[0,0]:s,a=Ci.reduce((function(e,i){return e[i]=function(e,t,i){var n=Mi(e),s=[pi,ui].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[pi,hi].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,t.rects,r),e}),{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Ki={left:"right",right:"left",bottom:"top",top:"bottom"};function Qi(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ki[e]}))}var Gi={start:"end",end:"start"};function Zi(e){return e.replace(/start|end/g,(function(e){return Gi[e]}))}const Ji={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=t.options.placement,v=Mi(m),b=l||(v===m||!f?[Qi(m)]:function(e){if(Mi(e)===fi)return[];var t=Qi(e);return[Zi(e),t,Zi(t)]}(m)),y=[m].concat(b).reduce((function(e,i){return e.concat(Mi(i)===fi?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Ci:l,u=Ni(n),d=u?o?xi:xi.filter((function(e){return Ni(e)===u})):gi,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]=Ri(e,{placement:i,boundary:s,rootBoundary:r,padding:a})[Mi(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,x=new Map,C=!0,k=y[0],T=0;T<y.length;T++){var D=y[T],E=Mi(D),A=Ni(D)===mi,S=[ui,di].indexOf(E)>=0,M=S?"width":"height",N=Ri(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),I=S?A?hi:pi:A?di:ui;w[M]>_[M]&&(I=Qi(I));var O=Qi(I),L=[];if(r&&L.push(N[E]<=0),o&&L.push(N[I]<=0,N[O]<=0),L.every((function(e){return e}))){k=D,C=!1;break}x.set(D,L)}if(C)for(var P=function(e){var t=y.find((function(t){var i=x.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},R=f?3:1;R>0;R--){if("break"===P(R))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Xi(e,t,i){return Wt(e,Vt(t,i))}const en={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Ri(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Mi(t.placement),b=Ni(t.placement),y=!b,w=Ii(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,D="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(r){var S,M="y"===w?ui:pi,N="y"===w?di:hi,I="y"===w?"height":"width",O=x[w],L=O+m[M],P=O-m[N],R=p?-k[I]/2:0,$=b===mi?C[I]:k[I],j=b===mi?-k[I]:-C[I],F=t.elements.arrow,z=p&&F?ni(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[M],U=H[N],W=Xi(0,C[I],z[I]),V=y?C[I]/2-R-W-B-D.mainAxis:$-W-B-D.mainAxis,Y=y?-C[I]/2+R+W+U+D.mainAxis:j+W+U+D.mainAxis,q=t.elements.arrow&&ci(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(S=null==E?void 0:E[w])?S:0,G=O+Y-Q,Z=Xi(p?Vt(L,O+V-Q-K):L,O,p?Wt(P,G):P);x[w]=Z,A[w]=Z-O}if(o){var J,X="x"===w?ui:pi,ee="x"===w?di:hi,te=x[_],ie="y"===_?"height":"width",ne=te+m[X],se=te-m[ee],re=-1!==[ui,pi].indexOf(v),ae=null!=(J=null==E?void 0:E[_])?J:0,oe=re?ne:te-C[ie]-k[ie]-ae+D.altAxis,le=re?te+C[ie]+k[ie]-ae-D.altAxis:se,ce=p&&re?function(e,t,i){var n=Xi(e,t,i);return n>i?i:n}(oe,te,le):Xi(p?oe:ne,te,p?le:se);x[_]=ce,A[_]=ce-te}t.modifiersData[n]=A}},requiresIfExists:["offset"]};var tn=function(e,t){return Li("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Pi(e,gi))};const nn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,o=Mi(i.placement),l=Ii(o),c=[pi,hi].indexOf(o)>=0?"height":"width";if(r&&a){var u=tn(s.padding,i),d=ni(r),h="y"===l?ui:pi,p="y"===l?di:hi,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],g=a[l]-i.rects.reference[l],m=ci(r),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=f/2-g/2,y=u[h],w=v-d[c]-u[p],_=v/2-d[c]/2+b,x=Xi(y,_,w),C=l;i.modifiersData[n]=((t={})[C]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Di(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sn(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 rn(e){return[ui,hi,di,pi].some((function(t){return e[t]>=0}))}const an={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=Ri(t,{elementContext:"reference"}),o=Ri(t,{altBoundary:!0}),l=sn(a,n),c=sn(o,s,r),u=rn(l),d=rn(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var on=Fi({defaultModifiers:[Hi,Bi,Vi,Yi,qi,Ji,en,nn,an]});const ln="alignment",cn="right middle",un="alignment-container",dn="aui-alignment-side-",hn="aui-alignment-snap-",pn="aui-alignment-use-gpu",fn={"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 gn(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function mn(e){return gn(e,ln)||cn}function vn(e){let[t,i]=mn(e).split(" ");return{side:t,snap:i}}function bn(e){let t=function(e){let t=gn(e,un)||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 yn(e,t){const i=vn(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=mn(e);return fn[t]||"right"}(e):(i.snap=bn(t),n="submenu"===i.side?fn[("right"===i.snap?"left":"right")+" top"]:fn[`${i.side} ${i.snap}`]),n}const wn={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function _n(e,t,i={}){const n=vn(e),s=yn(e,t),r=wn[s.split("-")[0]],a=t.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a||(i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document")}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains(pn)}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return i.enabled&&i.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={fn:i.onEvents}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),e}}];a&&t.ownerDocument!=e.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(e){const t=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),r=s([t.top,i.paddingTop,i.borderTop]),o=s([t.left,i.paddingLeft,i.borderLeft]);return e.offsets.reference.left+=o,e.offsets.reference.top+=r,e.offsets.popper.left+=o,e.offsets.popper.top+=r,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=on(t,e,l),function(e,t,i){const n=dn+t,s=hn+i;e.classList.contains(n)||e.classList.add(n),e.classList.contains(s)||e.classList.add(s)}(e,n.side,n.snap)}_n.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 xn=_n,Cn=12;function kn(e){let t=new i.Deferred;return e?setTimeout((()=>{e.parentElement||t.resolve()}),Cn):t.reject(),t.promise()}var Tn,Dn,En=0;function An(e){if(Tn=En+++"",Dn=e?e+Tn:"aui-uid-"+Tn,document.getElementById(Dn)){if(Dn=Dn+"-"+(new Date).getTime(),document.getElementById(Dn))throw new Error('Timestamped fallback ID "'+Dn+'" exists.');return Dn}return Dn}l("id",An);const Sn=An;function Mn(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function Nn(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}var In="unloaded",On="loading",Ln="error",Pn="success";function Rn(e,t){J(e).set("loading-state",Pn),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 ${S(e.content)}\n </${n}>`})).join("");return`\n <aui-section ${e.label?`label="${e.label}"`:""}>\n ${t}\n </aui-section>`})).join("\n")}(t),Z.init(e)}function $n(e){J(e).set("loading-state",Ln),J(e).set("hasErrorBeenShown",e.isVisible()),e.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function jn(e){e.src&&J(e).get("loading-state")!==On&&(!function(e){J(e).set("loading-state",On),J(e).set("hasErrorBeenShown",!1),te(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?Rn(e,t):$n(e)})).fail((function(){$n(e)})).always((function(){!function(e){te(e,(function(e){e.setAttribute("aria-busy","false")}))}(e)})))}function Fn(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 zn(e){return Fn(e,(()=>!0))}function Hn(e){return Fn(e,((e,t)=>!Mn(t)))}function Bn(e){zn(e).each(((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Mn(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Un(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Wn(e,t){var n=t&&t.hasSubmenu&&t.hasSubmenu(),s="submenu auto"===e.getAttribute("data-aui-alignment");!n&&s&&function(e){var t=i(e),n=t.data("previous-data-aui-alignment");n?e.setAttribute("data-aui-alignment",n):e.removeAttribute("data-aui-alignment");t.removeData("previous-data-aui-alignment"),t.data("had-data-aui-alignment-static")||e.removeAttribute("data-aui-alignment-static");t.removeData("had-data-aui-alignment-static")}(e);var r=e.hasAttribute("data-aui-alignment");n&&!s?(!function(e){var t=i(e);e.hasAttribute("data-aui-alignment")&&t.data("previous-data-aui-alignment",e.getAttribute("data-aui-alignment"));t.data("had-data-aui-alignment-static",e.hasAttribute("data-aui-alignment-static"))}(e),e.setAttribute("data-aui-alignment","submenu auto"),e.setAttribute("data-aui-alignment-static",!0)):r||(e.setAttribute("data-aui-alignment","bottom auto"),e.setAttribute("data-aui-alignment-static",!0)),Un(e),e._auiAlignment=new xn(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")||(Z.init(this),O("Dropdown2 lazy initialisation",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(e){const t=i(e.currentTarget);if(t.is(".aui-dropdown2-active"))return;if(t.closest(".aui-dropdown2").length)return;const n=t.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&t.is(".aui-dropdown2-trigger")&&(s.blur(),t.trigger("aui-button-invoke"),e.preventDefault());const r=n.find(":focus");r.length&&t.is(".aui-dropdown2-trigger")&&r.blur()}));var Vn=!1;function Yn(){Vn=!0}function qn(e){Re(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),Bn(e),i(e).trigger("aui-dropdown2-show"),te(e,(function(t){Nn(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"),zn(e).removeClass("active aui-dropdown2-active"),te(e,(function(e){var t;Nn(e,!1),t=!0===Vn,Vn=!1,t&&e.focus()})),delete e.isSubmenu)}))}function Kn(e){var t=i(e);function n(t){return i(t).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===e}t.on("keydown",(function(t){n(t.target)&&(t.keyCode===Q.DOWN?(e.focusNext(),t.preventDefault()):t.keyCode===Q.UP?(e.focusPrevious(),t.preventDefault()):t.keyCode===Q.LEFT?e.isSubmenu&&(Yn(),e.hide(t),t.preventDefault()):t.keyCode===Q.ESCAPE?Yn():t.keyCode===Q.TAB&&(Yn(),e.hideAll(!1)))}));t.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(t){if(!n(t.target))return;const i=t.keyCode,s=i===Q.ENTER,r=i===Q.SPACE;("click"===t.type||s||r)&&function(t){const i=t.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void t.preventDefault();t.currentTarget.hasSubmenu&&t.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive")||e.hideAll(!0)}(t)})),t.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(t){if(!n(t.target))return;t.currentTarget.focus();let s=i(Re(e).above()).get(0);for(;s&&s.isDropdown&&s!==e;){const e=s.getAttribute("id"),n=t.target.getAttribute("aria-controls"),r=Re(s).above();n!==e&&Re(s).hide(),s=i(r).get(0)}}))}function Qn(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")),qn(e),Kn(e),i(e).on("click keydown",".aui-dropdown2-checkbox",(function(e){if("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),t.isEnabled()&&(t.isChecked()?t.uncheck():t.check())}})),i(e).on("click keydown",".aui-dropdown2-radio",(function(e){if("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(t).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),t.check())}}))}i(window).on("resize",(0,vt.debounce)((function(){i(".aui-dropdown2").each((function(e,t){Z.init(t),t.isVisible()&&t.hide()}))}),1e3,!0));var Gn={toggle:function(e){this.isVisible()?this.hide(e):this.show(e)},show:function(e){const t=this;return te(t,(e=>{Nn(e,!1)})),e&&e.currentTarget&&e.currentTarget.classList.contains("aui-dropdown2-trigger")&&ee(t,e.currentTarget),Re(t).show(),te(t,(function(e){Nn(e,!0),Wn(t,e)})),setTimeout((()=>function(e,t={}){if(t&&t.type&&-1===t.type.indexOf("mouse")){const i=t.type.indexOf("key")>-1;if(e.isSubmenu)e.focusItem(0);else if(i)if(t.keyCode===Q.UP){const t=Hn(e);t&&t.length&&e.focusItem(t.length-1)}else e.focusItem(0);else e.focus()}}(t,e)),0),this},hide:function(){return Re(this).hide(),this},hideAll:function(e=!0){let t=Re(this).below(),i=Re(this);for(;t&&t.get(0).isDropdown;)i=Re(t),t=i.below(),i.hide();return i&&e&&te(i.el,(e=>{e.focus(),ee(i.el,null)})),Re(this).hide(),this},focusNext:function(){var e,t=Hn(this),i=document.activeElement;t.last()[0]!==i?(e=t.toArray().indexOf(i),this.focusItem(t.get(e+1))):this.focusItem(0)},focusPrevious:function(){var e,t=Hn(this),i=document.activeElement;t.first()[0]!==i?(e=t.toArray().indexOf(i),this.focusItem(t.get(e-1))):this.focusItem(t.length-1)},focusItem:function(e){const t=Hn(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 Re(this).isVisible()},isDropdown:!0},Zn={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")}},Jn={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Xn={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new ve("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 ve("change",{bubbles:!0}))}},es={created:function(e){Zn.created(e)},removed:function(e){Zn.removed(e)}},ts=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const is=function(e=""){return e.split(" ").map((e=>e.trim())).filter((e=>e))},ns=Z("aui-item-link",{template:Ge()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Zn,interactive:Jn,hidden:es,href:ts("href"),"item-id":ts("id"),for:{created:function(e){var t=e.children[0];t.setAttribute("aria-controls",e.getAttribute("for")),i(t).addClass("aui-dropdown2-sub-trigger")},updated:function(e){e.children[0].setAttribute("aria-controls",e.getAttribute("for"))},removed:function(e){var t=e.children[0];t.removeAttribute("aria-controls"),i(t).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(e,t){const i=e.children[0];t.oldValue&&i.classList.remove(...is(t.oldValue)),t.newValue&&i.classList.add(...is(t.newValue))}}}),[ss,rs]=["checkbox","radio"].map((e=>Z(`aui-item-${e}`,{template:Ge()(`<span role="menuitem${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":ts("id"),disabled:Zn,interactive:Jn,checked:Xn,hidden:es}}))),as=Z("aui-section",{template:Ge()('\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=Sn();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")}}),os=Z("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Re(e),J(e).set("loading-state",In),Z.init(e)},detached:function(e){kn(e).then((()=>Un(e)))},attributes:{src:{}},prototype:Gn,events:{"aui-layer-show":function(e){var t=J(e).get("loading-state")===In,i=J(e).get("hasErrorBeenShown");(t||i)&&jn(e),J(e).get("loading-state")===Ln&&J(e).set("hasErrorBeenShown",!0)}}});Z("aui-dropdown2",{type:Z.type.CLASSNAME,created:Qn,prototype:Gn}),Z("data-aui-dropdown2",{type:Z.type.ATTRIBUTE,created:Qn,prototype:Gn}),Z("aui-dropdown2-trigger",{type:Z.type.CLASSNAME,created:function(e){let t=e.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==e)return;if(n.preventDefault(),!e.isEnabled())return;const r=document.getElementById(t);if(!r)return void m('Could not find a dropdown with id "'+t+'" in the DOM.');const a=i(e);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=e.hasSubmenu(),r}t||(t=e.getAttribute("aria-owns"),t?(e.removeAttribute("aria-owns"),e.setAttribute("aria-controls",t)):m('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),e.setAttribute("aria-haspopup",!0),e.setAttribute("aria-expanded",!1),"A"===e.nodeName&&!e.href&&e.setAttribute("href",`#${t}`),i(e).on("aui-button-invoke",n).on("click",n).on("keydown",(function(t){if(t.currentTarget!==e)return;const i=t.keyCode===Q.ENTER||t.keyCode===Q.SPACE,s=t.keyCode===Q.RIGHT&&e.hasSubmenu(),r=(t.keyCode===Q.UP||t.keyCode===Q.DOWN)&&!e.hasSubmenu();i?n(t):(r||s)&&n(t,document.activeElement===e)})).on("mouseenter",(function(i){if(i.currentTarget!==e)return;if(i.preventDefault(),!e.isEnabled())return;const n=document.getElementById(t);if(n)return function(e){var t=J(e).get("loading-state")===In,i=J(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&jn(e)}(n),e.hasSubmenu()&&(n.show(i),n.isSubmenu=e.hasSubmenu()),n;m('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")}}}),Z("aui-dropdown2-sub-trigger",{type:Z.type.CLASSNAME,created:function(e){e.classList.add("aui-dropdown2-trigger"),Z.init(e)}}),["checkbox","radio"].map((e=>Z(`aui-dropdown2-${e}`,{type:Z.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"),Ft&&t.setAttribute("role",`menuitem${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 ls=i(document),cs=function(e){var t={};return t.$trigger=i(e.currentTarget),t.$content=ls.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},us=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)}},ds={"aui-expander-invoke":function(e){var t=i(e.currentTarget),n=ls.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=cs(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"),us(t),t.triggerIsParent&&t.$shortContent.hide(),t.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(e){var t=cs(e);"true"===t.$content.attr("aria-expanded")&&(us(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)}};ls.on(ds,".aui-expander-trigger");var hs=500,ps=5e3,fs=100;function gs(e){ys[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,removeOnHide:n,fadeout:s,title:r,body:a},o){const l=r?`<p class="title"><strong>${S(r)}</strong></p>`:"",c=i(`<div class="aui-message">${l}</div>`).append(i.parseHTML(a||"")).addClass(n?"aui-remove-on-hide":"").addClass(t?"closeable":"").addClass(s?"fadeout":"").addClass(`aui-message-${o}`);e&&(/[#\'\"\.\s]/g.test(e)?g("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):c.attr("id",e));return c}(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.removeOnHide&&ms(s,n.delay,n.duration),n.closeable&&vs(s),n.fadeout&&bs(s,n.delay,n.duration),s}}function ms(e,t,n){i(e||".aui-message.aui-remove-on-hide").each((function(){bs(i(this),t,n)}))}function vs(e){i(e||"div.aui-message.closeable").each((function(){var e,t=i(this),n=t.find(St),s=n.length>0?n.first():i(Mt);t.addClass("closeable"),t.append(s),(e=t).unbind("click.aui-message").unbind("keydown.aui-message"),e.on("click.aui-message",St,(function(e){i(e.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",St,(function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())}))}))}function bs(e,t,n){t=void 0!==t?t:ps,n=void 0!==n?n:hs,i(e||"div.aui-message.fadeout").each((function(){var e=i(this),s=!1,r=!1;function a(){e.stop(!0,!1).delay(t).fadeOut(n,(function(){e.closeMessage()}))}function o(){e.stop(!0,!1).fadeTo(fs,1)}function l(){return!s&&!r}e.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}var ys={setup:function(){ms(),vs(),bs()},makeRemoveOnHide:ms,makeCloseable:vs,makeFadeout:bs,createMessage:gs};i.fn.closeMessage=function(){var e=i(this);e.hasClass("aui-message")&&(e.hasClass("closeable")||e.hasClass("aui-remove-on-hide"))&&(e.stop(!0),e.trigger("messageClose",[this]),e.remove(),i(document).trigger("aui-message-close",[this]))},gs("generic"),gs("error"),gs("warning"),gs("info"),gs("confirmation"),gs("change"),gs("success"),gs("hint");const ws=Z("aui-message",{created:function(e){var t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",ys[i](e,{body:t,removeOnHide:e.getAttribute("removeOnHide"),closeable:e.getAttribute("closeable"),delay:e.getAttribute("delay"),duration:e.getAttribute("duration"),fadeout:e.getAttribute("fadeout"),title:e.getAttribute("title")})}});i((function(){ys.setup()})),j(ys,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),j(ys,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(ys,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),j(ys,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(ys,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(ys,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),l("messages",ys);var _s=5e3,xs="aui-flag-container",Cs={body:"",close:"manual",title:"",type:"info"};function ks(e){(e=i.extend({},Cs,e)).title=(e.title||"").toString().trim();var t=function({body:e,title:t,close:n,type:s}){const r=t?`<p class="title"><strong>${S(t)}</strong></p>`:"",a=i(`<div class="aui-message">${r}</div>`).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`);return i('<div class="aui-flag" aria-live="polite"></div>').append(a)}(e);return function(e){var t=e[0];t.close=function(){Ds(e)}}(t),"auto"===e.close?(Ts(t),function(e){e.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){e[0].close()}),_s)}(t)):"manual"===e.close&&Ts(t),function(){const e=Es();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="'+xs+'"></div>')}(),function(e){const t=Es();e.appendTo(t),U(e),e.removeAttr("hidden").attr("open","")}(t),t.get(0)}function Ts(e){var t=i(Mt);return t.on("click",(function(){Ds(e)})),t.on("keypress",(function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(Ds(e),t.preventDefault())})),e.find(".aui-message").append(t)[0]}function Ds(e){var t=e.get(0);return t.removeAttribute("open"),t.dispatchEvent(new ve("aui-flag-close",{bubbles:!0})),t}function Es(){return document.getElementById(xs)}G("aui/flag",ks),l("flag",ks);const As=ks;var Ss=r(951),Ms=r.n(Ss);function Ns(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 Is(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(i),!0).forEach((function(t){Os(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ns(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Os(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const Ls="aui-tooltip",Ps={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},Rs="aui-tooltip",$s={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let js;const Fs=(e=!1)=>{const t=js&&js.get(0);t&&t.classList.toggle("assistive",e)};class zs{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options=Is(Is({},$s),t),this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer()}destroy(){this.unbindHandlers(),this.hide(),Hs.delete(this.triggerElement)}moveTitleToTooltip(){const e=this,t=this.$triggerElement;t.attr("title",(function(i,n){return e.originalTitle=n,e.options.aria&&t.attr("aria-describedby",Ls),null}))}unbindHandlers(){const e=this.options.live;this.options.$delegationRoot&&e?this.options.$delegationRoot.off(`.${Rs}`,e):this.$triggerElement.off(`.${Rs}`)}initContainer(){(void 0===js||js.get(0)&&!js.get(0).isConnected)&&(js=i(`<div id="${Ls}" class="aui-tooltip assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(js))}buildTip(e){const t=this.options,i=js.find(".aui-tooltip-content");return t.html?(t.sanitize&&(e=Ms().sanitize(e)),i.html(e)):i.text(e),t.maxWidth&&i.css("max-width",t.maxWidth+"px"),js}getTipTitle(){const e=this.options;let t=("function"==typeof e.title?e.title:"string"==typeof e.title?()=>e.title:()=>this.originalTitle||"").call(this.triggerElement);return t&&t.trim().length?t:void 0}show(){const e=this.getTipTitle();if(!1===this.enabled||!e)return;js&&e!==js.text()&&this.hide();const t=this.triggerElement,n=Ps[this.options.gravity];if("function"==typeof this.options.suppress&&!0===this.options.suppress.call(t))return;const s=this.buildTip(e).get(0);this.showTooltip(),this.popperInstance=on(t,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on(`scroll.${Rs}`,(()=>this.hide()))}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${Rs}`)}showTooltip(){Fs(!1)}hideTooltip(){Fs(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Hs=new WeakMap,Bs=(e,t)=>{let i=Hs.get(e);return void 0===i&&(i=new zs(e,t),"object"==typeof e&&Hs.set(e,i)),i},Us=e=>e.map((e=>`${e}.${Rs}`)).join(" "),Ws=Us(["mouseenter","focus"]),Vs=Us(["click","mouseleave","blur"]);let Ys,qs;i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return Bs(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(){clearTimeout(qs),clearTimeout(Ys)},s=function(){n();const e=Bs(this,i);Ys=setTimeout((()=>{n(),e.show(),js&&(js.off(`mouseenter.${Rs}`),js.off(`mouseleave.${Rs}`),js.on(`mouseenter.${Rs}`,(()=>{n()})),js.on(`mouseleave.${Rs}`,(()=>{n(),r()})))}),300)},r=function(){n();const e=Bs(this,i);qs=setTimeout((()=>{e.hide()}),300)},a=function(e){"Escape"===e.code&&r()},o=i.live;return void 0!==o?(i.$delegationRoot=t,t.on(Ws,o,s),t.on(Vs,o,r),t.on("keyup",o,a),t):(t.on(Ws,s),t.on(Vs,r),t.on("keyup",a),t)};var Ks={dropdown:function(e){function t(){return i('<div class="aui-dropdown2-section">')}var n=t();i("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(n);var s=t(),r=i("<ul />").appendTo(s);return i.each(e,(function(e,t){var n=i("<li />").attr({class:t.styleClass||""}).appendTo(r),s=i("<a />").text(t.label).attr("data-value",t.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(n);t.icon&&i("<span />").addClass("aui-icon").css("backgroundImage","url("+t.icon+')")').appendTo(s),t.selected&&s.addClass("aui-dropdown2-checked")})),i("<div />").append(n).append(s).html()},furniture:function(e,t){var n=e+"-dropdown",s=i("<select />").attr({name:e,multiple:"multiple"}).html(t),r=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=i("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":n,"aria-haspopup":!0});return i("<div />").append(s).append(a).append(r).html()}};function Qs(e){var t=i(e.target);Gs(this,t.attr("data-value"),t.hasClass("aui-dropdown2-checked"))}function Gs(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 Zs(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return tr(e).length<1}))}function Js(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 Xs(e){e.$dropdown.html(Ks.dropdown(function(e){return Js(e.getOptions())}(e))),Zs(e)}function er(e){var t=ir(e),n=function(e){return 0===tr(e).length}(e)?function(e){return i(e).data("allLabel")||"All"}(e):t.join(", ");e.$btn.text(n)}function tr(e){return Js(e.getSelectedOptions())}function ir(e){return i.map(tr(e),(function(e){return e.label}))}const nr=Z("aui-checkbox-multiselect",{attached:function(e){var t=e.getAttribute("name")||Sn("aui-checkbox-multiselect-");e.innerHTML=Ks.furniture(t,e.innerHTML),e.$select=i("select",e).on("change",(function(){er(e),Zs(e)})),e.$dropdown=i(".aui-checkbox-multiselect-dropdown",e).on("aui-dropdown2-item-check",Qs.bind(e)).on("aui-dropdown2-item-uncheck",Qs.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")?"":ir(e).join(", ")}(e)}}),er(e),Xs(e)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){Gs(this,e,!0)},unselectOption:function(e){Gs(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),er(this),Xs(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),er(this),Xs(this)}}});G("aui/checkbox-multiselect",nr);const sr=nr;var rr=r(726);const ar=r.n(rr)();const or=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?m(i,e):m(i),!1)}return{attributeExists:t,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},lr="-input";function cr(e){return e.querySelector("label")}const ur=Z("aui-label",{template:Ge()("<label><content></content></label>"),created:function(e){e._label=cr(e)},attached:function(e){or(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?cr(e).setAttribute("for",`${t.newValue}${lr}`):cr(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?cr(e).setAttribute("form",t.newValue):cr(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()}}}),dr=ur;r(37);const hr=i.fn.select2,pr="aui-select2-container",fr="aui-select2-drop aui-dropdown2",gr="aui-has-avatar";i.fn.auiSelect2=function(e){let t;if(i.isPlainObject(e)){const n=i.extend({},e),s=n.hasAvatar?" "+gr:"";n.containerCssClass=pr+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=fr+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),t=Array.prototype.slice.call(arguments,1),t.unshift(n)}else t=arguments.length?arguments:[{containerCssClass:pr,dropdownCssClass:fr}];const n=hr.apply(this,t),s=t[0].searchLabel;return this.on("select2-open",(function(){const e=i(this);if(t[0].multiple||e.attr("multiple"))return;const n=e.select2("dropdown");s&&n.find(".select2-search label").text(s),n.find(".select2-search .select2-input").attr("aria-activedescendant","")})),this.on("select2-focus",(function(){const e=i(this),n=e.parent().find(".select2-container");if(t[0].multiple||e.attr("multiple"))return void(s&&n.find(".select2-search-field label").text(s));const r=n.find("label");if(r.attr("id"))return;const a=n.find(".select2-focusser"),o=a.attr("id")+"-label",l=a.attr("aria-labelledby");r.attr("id",o),a.attr("aria-labelledby",o+" "+l)})),n},i.fn.spin=P((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),Z.init(this),t.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=P((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 mr=Z("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||S(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=S(this.textContent),e}}});var vr=r(775),br=r.n(vr),yr=br().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,vt.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,vt.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,vt.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return br().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,vt.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,vt.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))}});l("ProgressiveDataSet",yr);const wr=yr,_r=br().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});function xr(){this._suggestions=[],this._activeIndex=-1}xr.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(){const e=this._activeIndex,t=0===e?this._suggestions.length-1:e-1;return this.highlight(t),this},highlightNext:function(){const e=this._activeIndex,t=e===this._suggestions.length-1?0:e+1;return this.highlight(t),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};const Cr=xr;function kr(e,t){return e+"-"+t}function Tr(e,t){this.el=e,this.anchor=t}function Dr(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}Tr.prototype={render:function(e,t,i,n){this.currListId=i;let s="";if(e.length){for(let r=0;r<e.length;r++){const a=e[r],o=r+t,l=a.getLabel(),c=a.get("img-src"),u=c?`<img src="${encodeURI(c)}"/>`:"",d=a.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";s+=`<li role="option" class="aui-select-suggestion" aria-selected="${n===o}" id="${kr(i,o)}">${u}${l}${d}</li>`}t?this.el.querySelector("ul").innerHTML+=s:this.el.querySelector("ul").innerHTML=s}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){Dr(this.el),i(this.el).find("#"+kr(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()),Re(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new xn(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){var e;Dr(this.el),Re(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 Er=Tr,Ar=Ge()('\n <input type="text" class="text" role="combobox" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" tabindex="-1" type="button"></button>\n <div class="aui-popover" data-aui-alignment="bottom left" hidden>\n <ul role="listbox" class="aui-optionlist"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n'),Sr=-1,Mr=-1,Nr=20,Ir=50;function Or(e){e._select.selectedIndex=Sr,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function Lr(e){return e._suggestionModel.getNumberOfResults()}function Pr(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function Rr(e){e._input.setAttribute("aria-expanded","false"),e._button.setAttribute("aria-expanded","false"),e._input.removeAttribute("aria-activedescendant"),qr(e,"")}function $r(e){e._suggestionsView.hide(),Rr(e)}function jr(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function Fr(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 zr(e,t){if(t){var i,n=document.createElement("option"),s=e._select,r=t.get("value")||t.get("label"),a=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,e._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new ve("change",{bubbles:!0}))}}function Hr(e){zr(e,e._suggestionModel.highlighted()),Fr(e),$r(e)}function Br(e){return new _r(e.serialize())}function Ur(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(Br(n))}return t}function Wr(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function Vr(e,t){return i.map(t,(function(e){return e.id})).indexOf(e)}function Yr(e){e._progressiveDataSet=new wr(Ur(e),{model:_r,matcher:Pr,queryEndpoint:e._queryEndpoint,maxResults:Nr}),e._isSync=!e._queryEndpoint,e._progressiveDataSet.on("activity",(function(){e._progressiveDataSet.activeQueryCount&&!e._isSync?(!function(e){e._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true"))}(e),J(e).set("should-flag-new-suggestions",!1)):(!function(e){e._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false")}(e),J(e).set("should-flag-new-suggestions",!0))})),e._progressiveDataSet.on("respond",(function(t){if(t.query&&!e._input.value)return;if(J(e).get("should-cancel-response"))return void(e._progressiveDataSet.activeQueryCount||J(e).set("should-cancel-response",!1));t.query||(t.results=Ur(e));var i=-1!==Vr(e._input.value,t.results),n=!e._input.value;!e.hasAttribute("can-create-values")||i||n||t.results.push(function(e){var t=new mr;t.setAttribute("value",e._input.value);var i=Br(t);return i.set("new-value",!0),i}(e));let s=Vr(e.value,t.results);s=-1===s?0:s;const r=function(e,t){const i=e._suggestionModel.getNumberOfResults();return e._suggestionModel.set(),e._suggestionModel.set(t.results),i!==e._suggestionModel.getNumberOfResults()}(e,t),a=t.results[s];e._autoHighlight&&(e._suggestionModel.setHighlighted(a),setTimeout((function(){const t=Wr(e);null!=t?e._input.setAttribute("aria-activedescendant",t):e._input.removeAttribute("aria-activedescendant")}),Ir)),e._input.setAttribute("aria-expanded","true"),e._button.setAttribute("aria-expanded","true"),!e._isSync&&r&&e._suggestionsView.getActive()&&J(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),e._suggestionsView.show()}))}function qr(e,t){clearTimeout(e.assistiveStatusTimerId),e.assistiveStatusTimerId=setTimeout((()=>{const i=e._assistiveStatus.innerText;t!==i&&(e._assistiveStatus.innerText=t)}),Ir)}function Kr(e){jr(e,!0,e.value?"":e._input.value)}function Qr(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&J(e).set("should-cancel-response",!0)}function Gr(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function Zr(e){Qr(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==Gr(e);if(i||n)if(t)Or(e);else{var s=Gr(e);void 0===s?Or(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(Mr)}(e),$r(e)}const Jr=Z("aui-select",{template:Ar,created:function(e){e._listId=Sn(),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._assistiveStatus=e.querySelector(".aui-select-status.assistive"),e._suggestionsView=new Er(e._dropdown,e._input),e._suggestionModel=new Cr,e._suggestionModel.onChange=function(t){const i=[];e._suggestionModel._suggestions.forEach((function(e){t.some((t=>e.id===t.id))||i.push(e)}));const n=Ur(e),s=Vr(e.value,n),r=t.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;e._suggestionsView.render(i,t.length,e._listId,s),qr(e,r)},e._suggestionModel.onHighlightChange=function(){const t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t);const i=Wr(e);null!=i?e._input.setAttribute("aria-activedescendant",i):e._input.removeAttribute("aria-activedescendant")}},attached:function(e){Z.init(e),Yr(e),function(e){e._dropdown.id=e._listId,e.querySelector("button").setAttribute("aria-controls",e._listId)}(e),e._input.setAttribute("aria-controls",e._listId),function(e){i(e._dropdown).on("mouseover","li",(function(t){Lr(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(!Lr(e))return!1;e._suggestionModel.highlight(i(n.target).index()),Hr(e),i(e).closest(".aui-layer").length>0&&(t=!0)}))}(e),function(e){var t=e._datalist.querySelector("aui-option[selected]");t&&zr(e,Br(t))}(e),function(e){var t=Lr(e)?0:Mr;e._suggestionModel.highlight(t),$r(e)}(e),Fr(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),kn(e).then((()=>{$r(e),e._suggestionsView.destroy()}))},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+lr)},name(e,t){e.querySelector("select").setAttribute("name",t.newValue),e.querySelector("select").setAttribute("aria-label",`${t.newValue} list`),e.querySelector("button").setAttribute("aria-label",`${t.newValue} list`),e.querySelector('ul[role="listbox"]').setAttribute("aria-label",`${t.newValue} list`)},placeholder(e,t){e.querySelector("input").setAttribute("placeholder",t.newValue)},src(e,t){e._queryEndpoint=t.newValue}},events:{"blur input":function(e){Zr(e)},"mousedown button":function(e){document.activeElement!==e._input||e._dropdown.hasAttribute("hidden")||J(e).set("prevent-open-on-button-click",!0)},"click input":function(e){Kr(e)},"click button":function(e){var t=J(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):(J(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?jr(e,!0):J(e).get("button-clicked-prevent-dropdown-hide")?J(e).set("button-clicked-prevent-dropdown-hide",!1):$r(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===Q.ESCAPE)return Qr(e),void Rr(e);e._suggestionsView.isVisible()&&Lr(e)?t.keyCode===Q.ENTER?(Qr(e),Hr(e),t.preventDefault()):t.keyCode===Q.TAB?(Hr(e),n=!0):t.keyCode===Q.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===Q.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==Q.UP&&t.keyCode!==Q.DOWN||(Kr(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout((function(){e._input.value===i||n||e.dispatchEvent(new ve("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 _r({value:e,label:e})),zr(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Zr(this),this},focus:function(){return this._input.focus(),Kr(this),this}}});G("aui/select",Jr),l("select",Jr);const Xr=Jr;function ea(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const ta={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:ea,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 ia(e){return e._input||(e._input=e.querySelector("input"))}function na(e){return e._spinner||(e._spinner=new Tt)}function sa(e,t){ia(t).removeAttribute(e)}function ra(e,t,i){ia(t).setAttribute(e,i.newValue)}function aa(e){return{removed:sa.bind(this,e),fallback:ra.bind(this,e)}}const oa={removed:function(e){sa.call(this,"form",e),e._formId=null},fallback:function(e,t){ra.call(this,"form",e,t),e._formId=t.newValue}},la={removed:sa.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}${lr}`;ia(e).setAttribute("id",i)}},ca={removed:function(e){sa.call(this,"value",e),ia(e).value="on"},fallback:function(e,t){ra.call(this,"value",e,t)}},ua={removed:function(e){ia(e).checked=!1},fallback:function(e){ia(e).checked=!0}},da={removed:function(e){ia(e).removeAttribute("aria-label")},fallback:function(e,t){ia(e).setAttribute("aria-label",t.newValue)}};function ha(e){ia(e).addEventListener("keydown",(function(t){e.busy&&t.keyCode===Q.SPACE&&t.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&ia(e).addEventListener("click",(function(t){e.busy&&t.preventDefault()})),function(){if(void 0===$t)try{document.querySelector(":focus-within"),$t=!0}catch(e){$t=!1}return $t}()||(e._input.addEventListener("focus",(()=>e.classList.add("active"))),e._input.addEventListener("blur",(()=>e.classList.remove("active"))))}const pa=Z("aui-toggle",{template:Ge()('<input type="checkbox" role="switch" 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){ia(e),na(e).setAttribute("size",bt.SMALL.name),i(ia(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),ha(e),e.hasAttribute("checked")&&ia(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){or(e).attributeExists("label")},events:{click:function(e,t){const i=ia(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked,function(e){e._canFireEventsNow&&e.dispatchEvent(new ve("change",{bubbles:!0}))}(e)),ea(e,"checked",i.checked)}},attributes:{id:la,checked:ua,disabled:aa("disabled"),form:oa,name:aa("name"),value:ca,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(e,t){ia(e).setAttribute("tooltip-on",t.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(e,t){ia(e).setAttribute("tooltip-off",t.newValue||I18n.getText("aui.toggle.off"))}},label:da},prototype:{focus:function(){return ia(this).focus(),this},get checked(){return ia(this).checked},set checked(e){ia(this).checked!==e&&(ia(this).checked=e,ea(this,"checked",e))},get disabled(){return ia(this).disabled},set disabled(e){return ea(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return oa.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return ia(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return ia(this).value},set value(e){let t=null===e?"":e;return this.setAttribute("value",t),t},get busy(){return"true"===ia(this).getAttribute("aria-busy")},set busy(e){const t=ia(this),n=na(this);var s,r;return ea(this,"busy",e),e?(t.setAttribute("aria-busy","true"),t.indeterminate=!0,this.checked?(t.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(t.classList.remove("indeterminate-checked"),t.indeterminate=!1,t.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(e){e.disabled=r})),e}}}),fa=pa,ga=1e3;function ma(e,t){Ma(e)&&te(e,(function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)})),ee(e,t)}function va(e,t){if(e._auiAlignment)e._auiAlignment.changeTarget(t),e._auiAlignment.enable();else{let i={overflowContainer:"viewport"===e.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};e._auiAlignment=new xn(e,t,i)}}function ba(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function ya(e,t){var i=t.currentTarget;i&&(ma(e,i),va(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function wa(e=0){return function(t){t.open&&!Re(t).isPersistent()&&(clearTimeout(t._closingTimeout),t._closingTimeout=setTimeout((function(){(function(e){return J(e).get("mouse-inside")||e.contains(document.activeElement)})(t)||(t.open=!1),t._closingTimeout=null}),e))}}const _a={click(e,t){e.open&&!Re(e).isPersistent()?e.open=!1:(ma(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:ya,mouseleave:wa(ga),focus:ya,blur:wa(0)};function xa(e){var t=e.currentTarget;J(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function Ca(e){var t=e.currentTarget;J(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function ka(e){var t=e.currentTarget;"hover"===t.respondsTo&&wa(ga)(t)}function Ta(e){J(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",xa),e.removeEventListener("mouseleave",Ca),e.removeEventListener("blur",ka),"hover"===e.respondsTo&&(J(e).set("mouse-inside",!1),e.addEventListener("mouseenter",xa),e.addEventListener("mouseleave",Ca),e.addEventListener("blur",ka))}function Da(e,t){return`${e}.nested-layer-${t}`}function Ea(e){return Re(e).show(),!0===Re(e).isVisible()}function Aa(e){return Re(e).hide(),!1===Re(e).isVisible()}function Sa(e){return"hover"!==e.respondsTo}function Ma(e){return"dialog"!==e.getAttribute("role")}function Na(e){e.__initialised||(Re(e),i(e).on({[`${be}show`]:function(e){const t=this;e.target===t&&(!function(e){let t=i(e);const n=e.id,s=e=>t.find(X(e.target)).length<1;i(document).on(Da("aui-layer-show",n),(e=>{s(e)||t.attr("persistent","")})).on(Da("aui-layer-hide",n),(e=>{s(e)||t.removeAttr("persistent")})).on(Da("select2-opening",n),(()=>{t.attr("persistent","")})).on(Da("select2-close",n),(()=>{setTimeout((()=>{t.removeAttr("persistent")}),150)}))}(t),te(t,(function(e){Sa(t)&&fe().enter(i(t),i(e)),va(t,e),Ma(t)&&e.setAttribute("aria-expanded","true")})))},[`${be}hide`]:function(e){const t=this;var n;e.target===t&&(n=t.id,i(document).off(Da("aui-layer-hide",n)).off(Da("aui-layer-show",n)).off(Da("select2-opening",n)).off(Da("select2-close",n)),t.ownerDocument.body.contains(t)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(t):ba(t),te(t,(function(e){Sa(t)&&fe().exit(i(t)),Ma(t)&&e.setAttribute("aria-expanded","false")})),ee(t,null))}}),e.__initialised=!0)}const Ia={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},Oa=Z("aui-inline-dialog",{prototype:{get open(){return Re(this).isVisible()},set open(e){this.__propUpdate=!0,e?Ea(this):Aa(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){ta.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=Ia.attribute;return ta.computeEnumValue(Ia,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;ta.setEnumAttribute(this,Ia,e),t!==this.respondsTo&&Ta(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&&_a[i.type](t,i),this}},attributes:{open:function(e,t){if(Na(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){Ea(e)||ea(e,"open",!1)}if("removed"===t.type){Aa(e)||ea(e,"open",!0)}}},"responds-to":function(e,t){ta.computeEnumValue(Ia,t.oldValue)!==ta.computeEnumValue(Ia,t.newValue)&&Ta(e)}},created:Na,attached:function(e){or(e).attributeExists("id"),e.setAttribute("tabindex",0),Ma(e)&&(e.setAttribute("role","group"),te(e,(function(t){t.setAttribute("aria-expanded",e.open)})),ie(e,(function(e){e.setAttribute("aria-haspopup","true")}))),Ta(e)},detached:function(e){kn(e).then((()=>{ba(e),Ma(e)&&ie(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)}});G("aui/inline-dialog2",Oa),l("InlineDialog2",Oa);const La=Oa;function Pa(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(e,t){return new Pa(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(){Ra(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){Ra(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}Pa.prototype.isNested=function(){return 1===this.$treeParent.length},Pa.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Pa.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},Pa.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},Pa.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const Ra=ge("navigation",Pa),$a=Z("aui-nav",{type:Z.type.CLASSNAME,attached:function(e){new Pa(e)},detached:function(e){i(e).removeData()}});l("navigation",Ra);const ja=Ra,Fa="aui-progress-indicator-after-update",za="aui-progress-indicator-before-update",Ha="transitionend webkitTransitionEnd";function Ba(e,t,{currentProgress:n,value:s}){const r=i(e),a=i(t);"number"==typeof s&&s<=1&&s>=0&&(a.trigger(za,[n,s]),r.one(Ha,(function(){a.trigger(Fa,[n,s])})),function(e,t,i){U(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(r,a,s))}function Ua(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),U(t),n.css("width","")}const Wa={indeterminate:!1,max:1,val:0};function Va(e){return(0,vt.isNumber)(e)&&(0,vt.isFinite)(e)&&!(0,vt.isNaN)(e)}function Ya(e,t=1){const i=parseFloat(e);return Va(i)?i:Number(t)}function qa(e,t=1){return Number(parseFloat(e).toFixed(t))}function Ka(e){const{val:t,max:i}=e,n=function(e){return e>0?e:Wa.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),r=qa(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:qa(100*r,2)}}function Qa(e){const{val:t,valAsFraction:i,max:n}=Ka(e._data),s=e.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),Ua(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),Ba(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function Ga(e,t){e._data.val=Ya(t.newValue,t.oldValue||Wa.val),Qa(e)}function Za(e,t){e._data.max=Ya(t.newValue,t.oldValue||Wa.max),Qa(e)}const Ja=Z("aui-progressbar",{template(e){e._data.max=Ya(e.getAttribute("max"),Wa.max),e._data.val=Ya(e.getAttribute("value"),Wa.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=Ka(e._data),r=e._data.indeterminate?"":`data-value="${n}"`;e.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${t}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(e){Qa(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:Wa.val,fallback:function(e,t){if(e._updating)return!1;Ga(e,t)}},max:{value:Wa.max,fallback:function(e,t){if(e._updating)return!1;Za(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,vt.defaults)({},Wa))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,Qa(this)},get value(){const{val:e}=Ka(this._data);return e},set value(e){if(!Va(e))return!1;const t={newValue:qa(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,Ga(this,t)},get max(){const{max:e}=Ka(this._data);return e},set max(e){if(!Va(e))return!1;const t={newValue:qa(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,Za(this,t)}}}),Xa={update:P((function(e,t){if("string"==typeof e){let t=document.getElementById(e);t&&(e=t)}var n=i(e).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===t;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),Ba(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:P(Ua,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",Xa);const eo=Xa;r(473);const to={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function io(e,t){let n=Object.assign({},to,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 no={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){const t=e.split("-"),i=t[0],n=t[1],s="..........",r="000000";let a=(i+s).slice(0,s.length);return a+=(r+n).slice(-r.length),a},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(e,t,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(e,t,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each((function(){io(i(this))}))},setTableSortable:function(e,t){return io(e,t)}};i(no.setup),l("tablessortable",no);function so(e,t=""){var n=i(e),s=t||!1;n.each((function(){var e=i(this);e.attr("id")||e.attr("id",Sn(s))}))}l("_addID",so);const ro=so;function ao(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}l("isClipped",ao);const oo=ao;var lo=window.skateTemplateHtml,co="_internal-aui-tabs-",uo='.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])';function ho(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function po(e){let t=ho(e);return t?document.getElementById(t):null}var fo={totalTabsWidth:function(e,t){var i=this.totalVisibleTabWidth(e),n=0;return t.find("li").each((function(e,t){n+=parseInt(t.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(e){var t=0;return e.each((function(e,n){t+=i(n).outerWidth()})),t},removeResponsiveDropdown:function(e,t){e.remove(),t.remove()},createResponsiveDropdownTrigger:function(e,t){var i=`<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-${t}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${t}"\n href="#aui-tabs-responsive-dropdown-${t}">...</a>\n </li>`;return e.append(i),e.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(e,t){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+t+'"><ul></ul></div>';return e.append(i),e.find("#aui-tabs-responsive-dropdown-"+t)},findNewVisibleTabs:function(e,t,n){function s(e,t,i){return e+t<=i}for(var r=0,a=0;s(r,n,t)&&a<e.length;a++){r+=i(e[a]).outerWidth(!0)}return e.slice(0,a-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=e.length-1;l>=o;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(a)},moveTabToResponsiveDropdown:function(e,t,i){var n=e.find("a");e.attr("data-aui-tab-width",e.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),e.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),t.find("ul").prepend(e)},moveInvisibleTabs:function(e,t,n){function s(e){return e>0}for(var r=0;s(t)&&r<e.length;r++){var a=i(e[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<t&&this.moveTabOutOfDropdown(a,n),t-=o}},moveTabOutOfDropdown:function(e,t){e.find("a").hasClass("aui-dropdown2-checked")&&(e.addClass("active-tab"),t.removeClass("active-tab")),e.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),t.before(e)}};function go(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=po(t);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=t.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),t.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),t.hasClass("aui-tabs-responsive-item")){var o=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}t.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),t.closest(".tabs-menu").find("a").attr("aria-selected","false"),t.attr("aria-selected","true"),t.trigger("tabSelect",{tab:t,pane:s})}else m("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",e)}}function mo(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function vo(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return co+(t||"")+(i&&"true"!==i?"-"+i:"")}function bo(e){ko.change(i(e.target).closest("a")),e&&e.preventDefault()}function yo(e){e.forEach((function(e,t){!function(e,t){var n=i(e),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=fo.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=fo.createResponsiveDropdownTrigger(s,t),c=fo.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=fo.moveVisibleTabs(r.toArray(),n,a),p=fo.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");fo.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",bo),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){fo.moveTabOutOfDropdown(i(this),a)})),fo.removeResponsiveDropdown(c,a))}(e,t)}))}function wo(){return i(uo).toArray()}function _o(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=po(t),ho(e)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(ro(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")):g("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",bo),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(Co)}(e)}}function xo(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each((function(){_o(this)})),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(mo(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(vo(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&go(a)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function Co(e){e.setAttribute("role","tabpanel")}var ko={setup:function(){!function(){const e=(0,vt.debounce)(yo,200);e(wo()),i(window).on("resize.aui-tabs",(()=>e(wo())))}(),xo(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var e=i(this);e.attr("title")||oo(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");go(n),mo(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=ho(e);i&&window.localStorage.setItem(vo(t),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(ko.setup);const To=Z("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),Z.init(e),_o(e)},template:lo('<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&&ko.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),Do=Z("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:lo('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),Eo=Z("aui-tabs-pane",{attached:function(e){var t=i(function(e){return i(e).closest("aui-tabs").get(0)}(e)),n=i(e),s=t.find("aui-tabs-pane").index(n),r=new Do,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+e.id),lo.wrap(r).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&a.addClass("active-tab"),n.siblings("ul").append(r)},template:lo("<content></content>")});l("tabs",ko);const Ao="_aui-form-notification-initialised",So="aria-describedby",Mo="description",No="errors",Io="data-aui-notification-",Oo=Io+"wait",Lo=Io+"info",Po=Io+"error",Ro=[Po,Io+"success",Oo,Lo];function $o(e){jo(e)||(!function(e){e.addClass(Ao),Fo(e)}(e),Bo(e))}function jo(e){return e.hasClass(Ao)}function Fo(e,t){if(t=t||zo(e),Ho(e)===Lo){e.parent().find(".description").length||e.after(function(e,t){const i=e.attr("id")||e.attr("name");if(t.length>1){let e=t.map((e=>`<li>${e}</li>`)).join("");return`<div class="description" id="${i}-${Mo}"><ul>${e}</ul></div>`}return`<div class="description" id="${i}-${Mo}">${t}</div>`}(e,t))}Uo(e)}function zo(e){var t=Ho(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 Ho(e){let t;return Ro.some((function(i){if(e.is("["+i+"]"))return t=i,!0})),t}function Bo(e){const t=i(e);if(!jo(t))return;const n=Ho(t);Yo(t,n===Oo);const s=zo(t);s&&n===Po?Wo(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(Po)||t.parent().find(".error").remove()}function Uo(e){const t=[],i=e.attr("id")||e.attr("name"),n=Ho(e);zo(e)&&n===Po&&t.push(`${i}-${No}`),Vo(e,"description").length&&t.push(`${i}-${Mo}`),e.attr(So,t.length?t.join(" "):null)}function Wo(e,t){let i=Vo(e,"error");i.length>0&&i.remove(),e.after(function(e,t){const i=e.attr("id")||e.attr("name"),n=t.map((e=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification"></span>${e}</li>`)).join("");return`<div class="error" id="${i}-${No}"><ul>${n}</ul></div>`}(e,t)),Uo(e)}function Vo(e,t){return e.parent().find(`.${t}`)}function Yo(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 qo=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});Z("data-aui-notification-field",{attached:function(e){qo(),$o(i(e))},attributes:function(){const e={};return Ro.forEach((function(t){e[t]=Bo})),e}(),type:Z.type.ATTRIBUTE}),G("aui/form-notification");var Ko=["displayfield","watchfield","when","novalidate","state"],Qo=[];var Go={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,Ko);return n&&(t=e),n})),t}(e);if(s)return g('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+e.join("],[data-aui-validation-")+"]"}var r={validatorFunction:t,validatorTrigger:n};return Qo.push(r),r},validators:function(){return Qo}};G("aui/form-validation/validator-register",Go);const Zo=Go;function Jo(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=sl("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=sl("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=sl("maxlength",e.args);e.invalidate(t)}else e.validate()}function Xo(e){return"password"===e.getAttribute("type")}function el(e,t){var i=e.match(t);return!!i&&e===i[0]}function tl(e){var t=sl("pattern",e.args);el(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function il(e){var t=sl("required",e.args);e.el.value?e.validate():e.invalidate(t)}function nl(e){var t=sl("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(sl("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(sl("max",e.args)):e.validate()}}function sl(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:rl[e];var s=i;i||(s=[t(e)]);var r,a=t(e+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}Zo.register(["maxlength","minlength"],Jo),Zo.register("[maxlength],[minlength]",Jo),Zo.register(["matchingfield"],(function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=sl("matchingfield",e.args,[t,n]);(Xo(e.el)||Xo(i))&&(s=sl("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()})),Zo.register(["doesnotcontain"],(function(e){var t=sl("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)})),Zo.register(["pattern"],tl),Zo.register("[pattern]",tl),Zo.register(["required"],il),Zo.register("[required]",il),Zo.register(["min","max"],nl),Zo.register("[min],[max]",nl),Zo.register(["dateformat"],(function(e){var t=e.args("dateformat"),i=sl("dateformat",e.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=t.split(""),r="";s.forEach((function(e){var t=n.hasOwnProperty(e);r+=t?n[e]:e}));var a=new RegExp(r+"$","i");el(e.el.value,a)?e.validate():e.invalidate(i)})),Zo.register(["minchecked","maxchecked"],(function(e){var t=i(e.el).find(":checked").length,n=!e.args("minchecked")||t>=e.args("minchecked"),s=!e.args("maxchecked")||t<=e.args("maxchecked"),r=sl("minchecked",e.args),a=sl("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(a):e.invalidate(r)}));var rl={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")};G("aui/form-validation/basic-validators");const al="aui-validation-",ol="data-aui-notification-",ll="aui-validation-state",cl="invalid",ul="valid",dl="validating",hl="unvalidated",pl="_aui-form-validation-initialised",fl="_aui-internal-field-state-changed";function gl(e){(function(e){return e.hasClass(pl)})(e)||(!function(e){e.addClass(pl),Fo(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=vl(e,"when"),i=vl(e,"watchfield"),n=i?e.add("#"+i):e;n.on(t,(function(){ml(e)}))}(e)}(e),wl(e,hl))}function ml(e){if(!vl(e,"novalidate"))return function(e){!function(e){_l(Cl(e),"none")}(e);var t=function(e){var t=[];return bl().forEach((function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)})),t}(e);wl(e,dl);var n=function(e,t){var n=[];return t.forEach((function(t){var s=bl()[t].validatorFunction,r=new i.Deferred,a=function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){wl(e,cl,i),t.reject()},args:yl(e),el:e[0],$el:e};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,r);s(a),n.push(r)})),n}(e,t),s=i.when.apply(i,n);return s.done((function(){wl(e,ul)})),s}(e);wl(e,ul)}function vl(e,t){var i=e.attr("data-"+al+t);return i||(i={when:"change"}[t]),i}function bl(){return Zo.validators()}function yl(e){return function(t){return e.attr("data-"+al+t)||e.attr(t)}}function wl(e,t,n){if(e.attr("data-"+ll,t),t!==hl){e.trigger(i.Event(fl));var s=Cl(e),r={};r[dl]="wait",r[cl]="error",r[ul]="success";var a=r[t];t===dl?function(e){setTimeout((function(){kl(e)===dl&&(_l(e,"wait"),Yo(e,!0))}),500)}(e):_l(s,a,n)}}function _l(e,t,i){const n=function(e){return e.is("["+ol+"wait]")}(e);!function(e){xl(e,"wait"),Yo(e,!1),xl(e,"success")}(e);var s,r;if(!("success"===t&&!n))if("none"===t)xl(e,"error");else{const n=e.attr(ol+t)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];e.attr(ol+t,JSON.stringify(a)),"error"===t&&Wo(e,a)}}function xl(e,t){e.removeAttr(ol+t),"error"===t&&(Vo(e,t).remove(),Uo(e))}function Cl(e){var t=vl(e,"displayfield");return void 0===t?e:i("#"+t)}function kl(e){return e.attr("data-"+ll)}function Tl(e,t){t.preventDefault(),e.one(fl,(function(){e.trigger("submit")}))}function Dl(e,t){var i="[data-"+ll+"="+t+"]";return e.find(i)}i(document).on("submit",(function(e){var t=e.target,n=i(t),s=function(e){var t=e.find("."+pl);return o=t,n=i.map(o,(function(e){return kl(i(e))})),s=-1!==n.indexOf(cl),r=-1!==n.indexOf(hl),a=-1!==n.indexOf(dl),s?cl:r?hl:a?dl:ul;var n,s,r,a;var o}(n);if(s===hl)Tl(n,e),function(e){var t=Dl(e,hl);t.each((function(e,t){El.validate(i(t))}))}(n);else if(s===dl)Tl(n,e);else if(s===cl)e.preventDefault(),function(e){var t=Dl(e,cl).first();t.focus()}(n);else if(s===ul){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&e.preventDefault()}}));const El={register:Zo.register,validate:function(e){ml(e=i(e))}};Z("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),gl(i(e)),Z.init(e)},type:Z.type.ATTRIBUTE}),G("aui/form-validation",El),l("formValidation",El);var Al=P((function(e,t){var i,n;return function(){var s=arguments,r=this;return clearTimeout(i),i=setTimeout((function(){n=e.apply(r,s),r=s=null}),t),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const Sl=Al;l("debounce",Al),l("debounceImmediate",P((function(e,t){var i,n=null;return function(){var s=this,r=arguments;return null===n&&(i=e.apply(s,r)),clearTimeout(n),n=setTimeout((function(){n=s=r=null}),t),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const Ml=i(window);function Nl(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)})}Nl.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,Ml.on("resize",this._resizeHandler=Sl((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(){Ml.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}`,Z.init(t);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,Z.init(n),t.appendChild(n);var s=function(e){var t=document.createElement("a");return t.setAttribute("class","aui-dropdown2-trigger"),t.setAttribute("href","#"),t.id=e.id+"-trigger",t.setAttribute("aria-controls",e.id),t.innerHTML=I18n.getText("aui.words.more"),t}(t);return e.appendChild(s),e.appendChild(t),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(e):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(e),this.moreMenuWidth=i(e).outerWidth(!0),i(e)},moveOutOfResponsiveDropdown:function(e){if(!(e<=0)){for(var t=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+e,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}t.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=Ge().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,r=n;r>=s;r--){var a=this.menuItems[r].$element,o=a.children("a");Z.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const e=Array.from(o.get(0).classList).filter((e=>!e.startsWith("aui-")));l.setAttribute("extra-classes",e.join(" "))}Z.init(l),Ge().wrap(l).textContent=o.text(),a.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new ve("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const Il=function(e){let t=e._header;return t instanceof Nl||(t=new Nl(e),t.init(),e._header=t),t};function Ol(){i(".aui-header").each((function(){Il(this)}))}i(Ol);const Ll={};Ll.setup=P(Ol,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),l("responsiveheader",Ll);const Pl=Z("aui-header-end",{type:Z.type.ELEMENT,created:function(e){const t=e.parentElement;t&&t.classList.contains("aui-header")?Il(t):console.log("Could not async. initialise aui-header")}});var Rl=r(207),$l=r.n(Rl);const jl=({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:t||n.attr("max"),minDate:e||n.attr("min"),nextText:">",onSelect:function(e){n.val(e),n.trigger("change"),r(),s&&s.call(this,e)},onChangeMonthYear:a,prevText:"<"}),Fl=(e,t)=>{let n,s,r,a=!1;const o=i("body"),l=t=>{let n=i(t.target),r=n.closest(s).length||n.is(e),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||t.keyCode===Q.ESCAPE)return h(),void(a=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:e})=>(n=(({horizontalAlignment:e,datePickerUUID:t})=>{const n=new La;n.id=t;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${e}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(e=>e.offset().left<window.innerWidth/2?"left":"right")(e),datePickerUUID:t}),r=e.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",(e=>{a&&e.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),e.off("focus click",u),e.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),e.on("focusout keydown",c)}}},zl=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=Fl(t,s),g=e=>{i(e.currentTarget).val()&&r.datepicker("setDate",t.val())},m=t.attr("placeholder"),v=t.prop("type");let b;{const i=e=>t=>{if(void 0!==r)return e(t)},n=i((()=>{r.datepicker("destroy")}));e.show=l,e.hide=c,e.destroyPolyfill=()=>{h(),t.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&t.attr("placeholder",m),v&&t.prop("type",v),t.removeAttr("data-aui-dp-uuid"),n(),delete e.destroyPolyfill,delete e.show,delete e.hide},e.setDate=i((e=>{r.datepicker("setDate",e)})),e.getDate=i((()=>r.datepicker("getDate"))),e.setMin=i((e=>r.datepicker("option","minDate",e))),e.setMax=i((e=>r.datepicker("option","maxDate",e)))}n.languageCode in Hl.prototype.localisations||(n.languageCode="");const y=Hl.prototype.localisations;if(t.attr("aria-controls",s),void 0===r){void 0!==t.attr("step")&&f("WARNING: The date picker polyfill currently does not support the step attribute!");const s=jl({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(e),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),t.append(a)),r})({config:o,popupContents:a({$field:t}),getCalendarNode:d,hint:n.hint}),p(),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 Hl(e,t){let n={};const s=Sn("date-picker"),r=i(e),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const e=!Hl.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&zl(a)},reconfigure:e=>{n=i.extend(void 0,Hl.prototype.defaultOptions,e),a.reset()}};return a.reconfigure(t),a}function Bl(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}Hl.prototype.browserSupportsDateField=function(){if(void 0===Rt){var e=document.createElement("input");e.setAttribute("type","date"),Rt="date"===e.type}return Rt}(),Hl.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:$l().W3C},Hl.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 Ul="aui-datepicker",Wl=e=>function(t){let i=this.data(Ul);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(Ul,i)),i};i.fn.datePicker=Wl(Hl),l("DatePicker",Hl),i.fn.calendarWidget=Wl(Bl),l("CalendarWidget",Bl);const Vl=Hl;r(251),r(993),r(927),r(757),r(940);const Yl={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"},ql=br().View,Kl=br().View,Ql=br().View,Gl={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};r(562);const Zl={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"},Jl='<aui-spinner size="small"></aui-spinner>',Xl="aui-spinner";function ec(e){0===e.find(Xl).length&&e.find(`.${Yl.STATUS}`).append(Jl)}function tc(e){e.find(`.${Yl.STATUS} ${Xl}`).remove()}var ic=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const nc=br().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=Zl,this.classNames=Yl,this.dataKeys=Gl,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 ic&&(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 ic&&(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 ec(this.$el),this},hideLoading:function(){return tc(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var e=this.$el;return e.serializeObject?e.serializeObject():e.serialize()},mapSubmitParams:function(e){return this.model.changedAttributes(e)},submit:function(e){var t,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,e):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(e,t,i){400===i.status&&(n.renderErrors(t.errors),n.trigger(n._event.VALIDATION_ERROR,t.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return i("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var t=this;return this.$("."+this.classNames.ERROR).remove(),e&&i.each(e,(function(e,i){t.$el.find("[name='"+e+"']").closest("td").append(t.renderError(e,i))})),this},render:function(e){var t=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),i.each(this.columns,(function(n,s){var r,a,o=e.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},e.values,t.model];o&&t.$el.attr("data-"+s.id,o),r=t.isCreateRow&&s.createView?new s.createView({model:t.model}).render(l[0]):s.editView?new s.editView({model:t.model}).render(l[0]):t.defaultColumnRenderer.apply(t,l),a=i("<td />"),"object"==typeof r&&r.done?r.done((function(e){a.append(e)})):a.append(r),s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)})),this.$el.append(this.renderOperations(e.update,e.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,e.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=i('<td class="aui-restfultable-operations" />');return e?t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),t.add(i(`<td class="${this.classNames.STATUS}" />`))}}),sc=document||{},rc=i(sc);function ac(e,t){rc.trigger(e,t)}function oc(e,t,n){i(t).trigger(e,n),ac(e,n),t.id&&ac(t.id+"-"+e,n)}var lc=br().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)},br().sync.apply(br(),arguments)},save:function(e,t){var n,s=this,r=(t=t||{}).error,a=t.success;t.error=function(e,t){var n=i.parseJSON(t.responseText||t.data);r&&r.call(s,s,n,t)},this.isNew()?br().Model.prototype.save.call(this,e,t):e&&((n=new(lc.extend({url:this.url()}))({id:this.id})).save=br().Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),a&&a.call(s,s,t)},n.save(e,t))},destroy:function(e){e=e||{};var t=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:e.data||{},contentType:"application/json",success(i){t.collection&&t.collection.remove(t),e.success&&e.success.call(t,i)},error(i){t._serverErrorHandler(i,this),e.error&&e.error.call(t,i)}}),this},changedAttributes:function(e){var t={},n=this.toJSON();if(i.each(e,(function(e,s){n[e]?n[e]&&n[e]!==s&&("object"==typeof s&&(0,vt.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,vt.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),oc(Zl.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),br().Model.prototype.fetch.call(this,e)}});const cc=lc,uc=br().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=Zl,this.classNames=Yl,this.dataKeys=Gl,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 ec(this.$el),this},hideLoading:function(){return tc(this.$el),this},edit:function(e){var t;return t=i(e.target).is("."+this.classNames.EDITABLE)?i(e.target).attr("data-field-name"):i(e.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,t),this},renderOperations:function(){var e=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(t){t.preventDefault(),e.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let e=this.deleteConfirmationCallback(this.model.toJSON());if(!e||!e.then)throw new Error("deleteConfirmationCallback needs to return a Promise");e.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var e=this,t=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},t)),s=i(`<td class="${this.classNames.STATUS}" />`);return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,(function(n,s){var r,a=i("<td />"),o=t[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},t,e.model];if(o&&e.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:e.model}).render(c[0]):e.defaultColumnRenderer.apply(e,c),!1!==e.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(e.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(e.$el),r&&i.trim(r)||(a.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(e.$el)})),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,t),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var dc=br().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=Zl,t.classNames=Yl,t.dataKeys=Gl,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&&(g("You have not specified [header] for column ["+e.id+"]. Using id for now..."),n=e.id),t.$theadRow.append("<th>"+n+"</th>")})),t.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(e){t.focusedRow&&t.focusedRow.trigger(t._event.SAVE),e.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(e,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(t.classNames.MOVEABLE);return n.children().each((function(){var e=i(this),t=parseInt(0+e.css("border-left-width"),10),n=parseInt(0+e.css("border-right-width"),10),r=e[0].clientWidth+t+n;s.append(i("<div/>").html(e.html()).attr("class",e.attr("class")).width(r))})),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(e,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(t.classNames.MOVEABLE).children().each((function(e){i(this).width(r.eq(e).width())}));var a='<td colspan="'+t.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),t.getRowFromElement(n.item[0]).trigger(t._event.MODAL)},stop:function(e,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(t.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(t.classNames.ROW),t.getRowFromElement(n.item[0]).trigger(t._event.MODELESS))},update:function(e,i){var n={row:t.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};t.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(e){return!i(e.target).is("."+t.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return t.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(e){void 0===t.options.addPosition&&"bottom"===t.options.createPosition||"bottom"===t.options.addPosition?t.addRow(e):t.addRow(e,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(t._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=i('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(e){t.getRows().forEach((function(i){i.model===e&&(i.hasFocus()&&t._createRow&&t._createRow.trigger(t._event.FOCUS),t.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var e=this;i.isFunction(this.options.resources.all)?this.options.resources.all((function(t){e.populate(t)})):i.get(this.options.resources.all,(function(t){e.populate(t)}))},move:function(e){var t=this,n=function(e){return e.length?{after:t.getRowFromElement(e).model.url()}:{position:"First"}};if(e.row){var s=t.options.reverseOrder?n(e.nextItem):n(e.prevItem);i.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){e.row.hideLoading()},success:function(e){oc(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var n=i.parseJSON(e.responseText||e.data);oc(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(),br().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]),oc(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">'+Jl+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(),oc(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),oc(this._event.ROW_REMOVED,this,[e,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var e=2;return this.allowReorder&&++e,this.options.columns.length+e},getRowFromElement:function(e){return i(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var e=this,t=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var n=i(this).data(e.dataKeys.ROW_VIEW);n&&t.push(n)})),t},_renderRow:function(e,t){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:e,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(e){oc(this._event.EDIT_ROW,{},[this,s]),s.edit(this,e)})),i=n.render().$el,-1!==t&&("number"==typeof t&&0!==r.length?i.insertBefore(r[t]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach((function(e){s.isRowBeingEdited(e)||e.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach((function(e){s.isRowBeingEdited(e)||e.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(e){var t=!1;return this.editRows.some((function(i){if(i.el===e.el)return t=!0,!0})),t},_applyFocusCoordinator:function(e){var t=this;return e.hasFocusBound||(e.hasFocusBound=!0,e.on(this._event.FOCUS,(function(){t.focusedRow&&t.focusedRow!==e&&t.focusedRow.trigger(t._event.BLUR),t.focusedRow=e,e instanceof uc&&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||cc,allowEdit:!0,views:{editRow:nc,row:uc},Collection:br().Collection.extend({url:e.resources.self,model:e.model||cc}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});dc.ClassNames=Yl,dc.CustomCreateView=ql,dc.CustomEditView=Kl,dc.CustomReadView=Ql,dc.DataKeys=Gl,dc.EditRow=nc,dc.EntryModel=cc,dc.Events=Zl,dc.Row=uc,l("RestfulTable",dc);const hc=dc;function pc(e){return i(e).clone().removeAttr("id")}l("clone",pc);const fc=pc;var gc=window.DocumentTouch;const mc="ontouchstart"in window||gc&&document instanceof gc;function vc(e,t,i,n){e.find(`[${n}]`).attr(n,((e,n)=>t===n?i:void 0))}function bc(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){vc(e,t,i,"aria-controls"),vc(e,t,i,"aria-owns")}(n,i.id,s),i.id=s}))}function yc(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 wc(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(i),!0).forEach((function(t){_c(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):yc(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function _c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function xc(e){return e.offset().top}function Cc(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 Ec,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);Ic(e,n)}))})(e),mc&&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(kc+(e.isCollapsed()?"collapse-end":"expand-end")))}));e.$el.on("click",".aui-sidebar-toggle",(function(t){t.preventDefault(),e.toggle()})),i(".aui-page-panel").on("click",(function(){!e.isCollapsed()&&e.isViewportNarrow()&&e.collapse()}));var s=function(t){a(t)&&e.toggle()};function r(e){return e.keyCode===Q.TAB&&!e.shiftKey&&!e.altKey}function a(e){return!(e.which!==Q.LEFT_SQUARE_BRACKET||e.shiftKey||e.ctrlKey||e.metaKey||(t=e.target,"value"in t||t.isContentEditable));var t}function o(e){return e.keyCode===Q.TAB&&e.shiftKey}function l(e,t){return e===t.find(":aui-tabbable")[0]}function c(e,t){return e===t.find(":aui-tabbable").last()[0]}function u(e){e.attr("persistent",""),e.find(":aui-tabbable").first().focus(),setTimeout((function(){e.removeAttr("persistent")}),100)}i(document).on("keypress",s),e._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},e.$el.on("touchend",(function(t){e.isCollapsed()&&(e.expand(),t.preventDefault())})),e.$el.tooltip(wc(wc({},Lc),{},{live:e.collapsedTriggersSelector,suppress:function(){const t=i(this),n=!1===e.isCollapsed();return!0===Mc(t)||n}})),e.$el.tooltip(wc(wc({},Lc),{},{aria:!1,live:e.toggleSelector,title:function(){return e.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}})),e.$el.on("keydown",e.collapsedTriggersSelector,(function(t){if(e.isCollapsed()){var n=t.target,s=Sc(n);if(!s)return;var a=i(s);r(t)&&s.open&&(t.preventDefault(),u(a),a.on("keydown",(function(e){(o(e)&&l(e.target,a)||r(e)&&c(e.target,a))&&(n.focus(),i(this).off("keydown"),Nc())})))}}))}(this),function(e){i(e.collapsedTriggersSelector).each((function(){var t=i(this);Ic(e,t)}))}(this))}var kc="_aui-internal-sidebar-";function Tc(e){return i.map(e.split(" "),(function(e){return kc+e})).join(" ")}function Dc(){return document.querySelectorAll(Cc.prototype.inlineDialogSelector)}function Ec(){this.inlineDialog=null}function Ac(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function Sc(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function Mc(e){return 0!==Ac(e).length}function Nc(){var e=Dc();Array.prototype.forEach.call(e,(function(e){e.open=!1}))}function Ic(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),Mc(t))){var n=document.createElement("aui-inline-dialog"),s=Sn("sidebar-submenu");return t.attr("aria-controls",s),t.attr("data-aui-trigger",""),Z.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(Cc.prototype.inlineDialogClass),document.body.appendChild(n),Z.init(n),function(e,t,n){n.addEventListener("aui-layer-show",(function(s){if(e.isCollapsed()){if(!function(e){return"AUI-INLINE-DIALOG"!==e.target.tagName}(s)&&!function(e){return!e.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");t.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(e,t){e.addClass("active"),t.innerHTML=Oc;var n=e.is("a")?e.text():e.children(".aui-nav-heading").text(),s=i(t).find(".aui-navgroup-inner");s.children(".aui-nav-heading").attr("title",n).children("strong").text(n);var r=Ac(e);function a(e){const t=fc(e);return bc(t,Sn),t.hasClass("aui-expander-content")&&(t.find(".aui-expander-cutoff").remove(),t.removeClass("aui-expander-content")),t}a(r).appendTo(s)}(t,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(e){e.removeClass("active")}(t)}))}(e,t,n),n}}Cc.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=Tc(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},Cc.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=Tc(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},Cc.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},Cc.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>xc(this.$el)),this},Cc.prototype.setPosition=P(Cc.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Cc.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},Cc.prototype.setCollapsedState=function(e){var t={collapsed:{},expanded:{}};t.collapsed.narrow={narrow:i.noop,wide:function(t){t._expand(e,!0)}},t.collapsed.wide={narrow:i.noop,wide:i.noop},t.expanded.narrow={narrow:i.noop,wide:function(e){e.$body.removeClass("aui-sidebar-collapsed"),e.$el.removeClass("aui-sidebar-fly-out")}},t.expanded.wide={narrow:function(e){e._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(e)?"narrow":"wide";return t[n][s][r](this),this},Cc.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(kc+"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(kc+"collapse-end",{isResponsive:e}))),this},Cc.prototype.collapse=function(){return this._collapse(!1)},Cc.prototype._expand=function(e,t){var n=i.Event(kc+"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(kc+"expand-end",{isResponsive:t})),this},Cc.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Cc.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Cc.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Cc.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},Cc.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)},Cc.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=xc(this.$el),a=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);o||!a&&l||(this.setHeight(e,t,r),this.setTopPosition(e))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=e,this._previousViewportHeight=t,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Cc.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.collapse.tooltip"))):(this.collapse(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.expand.tooltip"))),this},Cc.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Cc.prototype.collapsedTriggersSelector=[Cc.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Cc.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Cc.prototype.tooltipClassName="aui-sidebar-section-tooltip",Cc.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Cc.prototype.inlineDialogSelector="."+Cc.prototype.inlineDialogClass,Ec.prototype.submenu=function(e){return Rc(),Ac(e)},Ec.prototype.hasSubmenu=function(e){return Rc(),Mc(e)},Ec.prototype.submenuHeadingHeight=function(){return Rc(),34},Ec.prototype.isShowing=function(){return Rc(),Cc.prototype.isSubmenuVisible()},Ec.prototype.show=function(e,t){Rc(),function(e){Sc(e).open=!0}(t)},Ec.prototype.hide=function(){Rc(),Nc()},Ec.prototype.inlineDialogShowHandler=function(){Rc()},Ec.prototype.inlineDialogHideHandler=function(){Rc()},Ec.prototype.moveSubmenuToInlineDialog=function(){Rc()},Ec.prototype.restoreSubmenu=function(){Rc()},Cc.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(Dc(),(function(e){return e.open}))},Cc.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const Oc='<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 Lc={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 Pc=ge("sidebar",Cc);i((function(){Pc(".aui-sidebar")}));var Rc=O("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});l("sidebar",Pc);const $c=Pc;r(42),r(529);const jc=2600;function Fc(e){var t={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(e){e.keyCode===Q.ESCAPE&&n.is(":visible")&&l.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=jc;i(".aui-dialog").each((function(){var e=i(this);s=e.css("z-index")>s?e.css("z-index"):s}));var r=function t(i,r){return e.width=i=i||e.width,e.height=r=r||e.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),t}(e.width,e.height);i("body").append(n),n.hide(),h(n);var a=i(".aui-blanket"),o=function(e,t){var n=i(e,t);return!!n.length&&(n.focus(),!0)},l={changeSize:function(t,i){(t&&t!=e.width||i&&i!=e.height)&&r(t,i),this.show()},show:function(){var t=function(){i(document).off("keydown",e.keypressListener).on("keydown",e.keypressListener),V(),0!==(a=i(".aui-blanket")).length&&e.closeOnOutsideClick&&a.on("click",(function(){n.is(":visible")&&l.hide()})),n.show(),Fc.current=this,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))}}(n),i(document).trigger("showLayer",["popup",this])};t.call(this),this.show=t},hide:function(){i(document).unbind("keydown",e.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&Y();var t=document.activeElement;this.element.has(t).length&&t.blur(),i(document).trigger("hideLayer",["popup",this]),Fc.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 l}var zc=function(){function e(e,t,n,s){e.buttonpanel||e.addButtonPanel(),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<button></button>").html(t).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function t(e,t,n,s,r){e.buttonpanel||e.addButtonPanel(),r||(r="#"),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<a></a>").html(t).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function n(e,t){var i="left"==e?-1:1;return function(e){var n=this.page[t];if(this.id!=(1==i?n.length-1:0)){i*=e||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==t&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(e){return function(){this.page[e].splice(this.id,1);for(var t=0,i=this.page[e].length;t<i;t++)this.page[e][t].id=t;this.item.remove()}}e.prototype.moveUp=e.prototype.moveLeft=n("left","button"),e.prototype.moveDown=e.prototype.moveRight=n("right","button"),e.prototype.remove=s("button"),e.prototype.html=function(e){return this.item.html(e)},e.prototype.onclick=function(e){let t=this;if(void 0===e)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===e.call(this,t.page.dialog,t.page,i)},"function"==typeof e&&this.item.click(this._onclick)};var r=function(e,t,n,s,r){n instanceof i||(n=i(n)),this.dialog=e.dialog,this.page=e,this.id=e.panel.length,this.button=i("<button></button>").html(t).addClass("item-button"),r&&(this.button[0].id=r),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",e.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var a=e.panel.length,o=this;e.menu.append(this.item),e.body.append(this.body),e.panel[a]=this;var l=function(){var t;e.curtab+1&&((t=e.panel[e.curtab]).body.hide(),t.item.removeClass("selected"),"function"==typeof t.onblur&&t.onblur()),e.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof e.ontabchange&&e.ontabchange(o,t)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?e.menu.css("display","none"):e.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(e){return e?(this.body.html(e),this):this.body.html()},r.prototype.setPadding=function(e){return isNaN(+e)||(this.body.css("padding",+e),this.padding=+e,this.page.recalcSize()),this};var a=function(e,t){this.dialog=e,this.id=e.page.length,this.element=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<ul></ul>").addClass("dialog-page-menu").css("height",e.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],t&&this.body.addClass(t),e.popup.element.append(this.element.append(this.menu).append(this.body)),e.page[e.page.length]=this};function o(e,t,n){var s={};+e||(e=(s=Object(e)).width,t=s.height,n=s.id),this.height=t||480,this.width=e||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=Fc(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var e=this.header?62:0,t=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-e-t;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(e,t,i,n){return new r(this,e,t,i,n),this.recalcSize(),this},a.prototype.addHeader=function(e,t){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(e||"").addClass("dialog-title"),t&&this.header.addClass(t),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},a.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(e,t){return this.page[this.curpage].addHeader(e,t),this},o.prototype.addButton=function(e,t,i){return this.page[this.curpage].addButton(e,t,i),this},o.prototype.addLink=function(e,t,i,n){return this.page[this.curpage].addLink(e,t,i,n),this},o.prototype.addSubmit=function(e,t){return this.page[this.curpage].addButton(e,t,"button-panel-submit-button"),this},o.prototype.addCancel=function(e,t){return this.page[this.curpage].addLink(e,t,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(e,t,i,n){return this.page[this.curpage].addPanel(e,t,i,n),this},o.prototype.addPage=function(e){return new a(this,e),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(e){return this.page[this.curpage].hide(),this.curpage=e,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(e,t){var i=null==t?this.curpage:e;return null==t&&(t=e),this.page[i].panel[t]},o.prototype.getPage=function(e){return this.page[e]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(e,t){if(null!=t){var i=e.id||e;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===t?e:t)},o.prototype.show=function(){return this.popup.show(),T("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),T("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),T("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(e){var t=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(e+"").replace(r,(function(e,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&t.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&t.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&t.push(d[h][n][r]),"header"==n&&d[h].header&&t.push(d[h].header)}else t=t.concat(d)}));for(var a={length:t.length},o=t.length;o--;)for(var l in a[o]=t[o],t[o])l in a||function(e){a[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var e=0,t=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>e&&(e=Math.min(t,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:e||this.height});this.page[0].menu.height(e),this.height=e+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();zc=R(zc,"Dialog constructor",{alternativeName:"Dialog2"}),Fc=R(Fc,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",zc),l("popup",Fc);const Hc=!1;var Bc=-1!==navigator.platform.indexOf("Mac"),Uc=-1!==navigator.userAgent.indexOf("Safari"),Wc=/^(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 Vc=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 Yc(e){var t=[],n=i.Callbacks();function s(e){!Fc.current&&n&&n.fire(e)}function r(e){e.preventDefault()}function a(e){(e&&e.split?i.trim(e).split(" "):[e]).forEach((function(e){!function(e){var n=e instanceof Array?e:function(e){var t=[],i="";for(;e.length;){var n=e.match(/^(ctrl|meta|shift|alt)\+/i),s=e.match(Wc);n?(i+=n[0],e=e.substring(n[0].length)):s?(t.push(i+s[0]),e=e.substring(s[0].length),i=""):(t.push(i+e[0]),e=e.substring(1),i="")}return t}(e.toString()),a=function(e){var t=e.length;for(;t--;)if(e[t].length>1&&"space"!==e[t])return!0;return!1}(n)?"keydown":"keypress";t.push(n),i(document).on(a,Hc,n,s),i(document).on(a+" keyup",Hc,n,r)}(e)}))}function o(e,t,i,n){var s="(",r=")";return n&&n.workaroundJaws&&(s="",r=""),i?t+=" "+s+I18n.getText("aui.keyboard.shortcut.type.x",e.shift()):(t=t.replace(/\)$/,""),t+=" "+I18n.getText("aui.keyboard.shortcut.or.x",e.shift())),e.forEach((function(e){t+=" "+I18n.getText("aui.keyboard.shortcut.then.x",e)})),t+=r}return a(e),Yc.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",r=t.slice(),a=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=n.data("kbShortcutAppendedScreenReader")||"",u=n.attr("aria-label"),d=!l,h=!c,p=d?s:s.substring(0,s.length-l.length),f=h?s:u.substring(0,u.length-c.length);r.length;){var g=r.shift();a.some((function(e){return(0,vt.isEqual)(g,e)}))||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}Bc&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧"),c=c.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",p+l),n.attr("aria-label",f+c),n.data("kbShortcutAppended",l),n.data("kbShortcutAppendedScreenReader",c),n.data("boundKeyCombos",a.concat(t))},removeShortcutsFromTitle:function(e){var t=i(e),n=t.data("kbShortcutAppended");if(n){var s=t.attr("title");t.attr("title",s.replace(n,"")),t.attr("aria-label",s.replace(n,"")),t.removeData("kbShortcutAppended"),t.removeData("kbShortcutAppendedScreenReader"),t.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}Yc.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,r=e.removeShortcutsFromTitle,a=e.keypressHandler,o=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return t.add((function(){const t=i(n);let s=t.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(e){e.keyCode===Q.ESCAPE&&s&&s.removeClass(r)})),s.length&&s.removeClass(r),s=e(s,t,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())})),this}}return{moveToNextItem:c((function(e,t,n){var s;return n&&0===e.length?t.eq(0):(s=i.inArray(e.get(0),t))<t.length-1?(s+=1,t.eq(s)):n?t.eq(0):e})),moveToPrevItem:c((function(e,t,n){var s;return n&&0===e.length?t.filter(":last"):(s=i.inArray(e.get(0),t))>0?(s-=1,t.eq(s)):n?t.filter(":last"):e})),click:function(e){return l.push(e),s(e),t.add((function(){const t=i(e);Vc(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&&(Vc(t),t.moveTo())})),this},moveToAndFocus:function(e){return l.push(e),s(e),t.add((function(t){var n=i(e);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&t.preventDefault())})),this},or:function(e){return n(e),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var e=0,t=l.length;e<t;e++)r(l[e]);l=[]}}},Yc.fromJSON=function(e,t){var n=[];return e&&i.each(e,(function(e,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(e){m("When using a parameter array, array must be in strict JSON format: "+a)}i.isArray(o)||m("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];i.each(s.keys,(function(){var e=this;t&&Bc&&(e=i.map(e,(function(e){return e.replace(/ctrl/i,"meta")})));var s=Yc(e);s[r].apply(s,o),n.push(s)}))})),n},i(document).on("iframeAppended",(function(e,t){i(t).load((function(){i(t).contents().on("keyup keydown keypress",(function(e){Uc&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)}))}))})),l("whenIType",Yc);const qc=Yc,{FocusManager:Kc,InlineDialog2:Qc,LayerManager:Gc,ProgressiveDataSet:Zc,clone:Jc,debounce:Xc,debounceImmediate:eu,dim:tu,escapeHtml:iu,formValidation:nu,id:su,isClipped:ru,keyCode:au,layer:ou,messages:lu,populateParameters:cu,params:uu,responsiveheader:du,select:hu,tablessortable:pu,tabs:fu,undim:gu,_addID:mu}=window.AJS,{contextPath:vu}=window.AJS})(),a})()));
103
+ !function(e){"use strict";e.extend({tablesorter:new function(){var t=this;function i(){var e=arguments[0],t=arguments.length>1?Array.prototype.slice.call(arguments):e;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function n(e,t){i(e+" ("+((new Date).getTime()-t.getTime())+"ms)")}function s(e){for(var t in e)return!1;return!0}function r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?e(n).attr(a.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=t.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function a(e,n,s,a){for(var o,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(e,c=n[s].cells[a],a),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=t.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,e,c))return o;return t.getParserById("text")}function o(e){var s,r,o,l,c,u,d,h,p,f,g=e.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=t.getColumnData(e,g.headers,l),p=t.getParserById(t.getData(c,u,"extractor")),h=t.getParserById(t.getData(c,u,"sorter")),d="false"===t.getData(c,u,"parser"),g.empties[l]=t.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top"),g.strings[l]=t.getData(c,u,"string")||g.stringTo||"max",d&&(h=t.getParserById("no-parser")),p||(p=!1),h||(h=a(e,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,x=y.parsers;if(y.cache={},y.totalRows=0,!x)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&t.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=e(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(t.css.cssHasChild),v.child[o]=e.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==x[d]?(o=r(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,s,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(x[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=e(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=t.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);t.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||t.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(e){return/^d/i.test(e)||1===e}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=t.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===t.css.icon?t.css.icon:f.cssIcon+" "+t.css.icon)+'"></i>':"",f.$headers=e(s).find(f.selectorHeaders).each((function(i){a=e(this),r=t.getColumnData(s,f.headers,i,!0),f.headerContent[i]=e(this).html(),c=f.headerTemplate.replace(/\{content\}/g,e(this).html()).replace(/\{icon\}/g,l),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col",role:"columnheader"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),o(e),l(e),y(n.$table,t,i)}function p(i){var n,s,r,a=i.config;a.$headers.each((function(o,l){s=e(l),r=t.getColumnData(i,a.headers,o,!0),n="false"===t.getData(l,r,"sorter")||"false"===t.getData(l,r,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))}))}function f(i){var n,s,r,a=i.config,o=a.sortList,l=o.length,c=t.css.sortNone+" "+a.cssNone,u=[t.css.sortAsc+" "+a.cssAsc,t.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each((function(){var i=e(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],s=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(e,t){return e&&e[t]&&e[t].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout((function(){m(i,n,s)}),50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=t.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(t.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(e){var i,r,a,o,l,c,u,d,h,p,f=0,m=e.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=e.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort((function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],e):t["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,e)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,e):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,e):t["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,e,m)),d)return d}return n[m.columns].order-s[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(t,i){t[0].isUpdating&&t.trigger("updateComplete"),e.isFunction(i)&&i(t[0])}function y(e,i,n){var s=e[0].config.sortList;!1!==i&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){b(e,n)},!0]):(b(e,n),t.applyWidget(e[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(t,s){t.stopPropagation(),n.sortList=[],f(i),v(i),c(i),e.isFunction(s)&&s(i)})).bind("updateAll"+n.namespace,(function(e,s,r){e.stopPropagation(),i.isUpdating=!0,t.refreshWidgets(i,!0,!0),t.restoreHeaders(i),d(i),t.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(e,t,n){e.stopPropagation(),i.isUpdating=!0,p(i),h(i,t,n)})).bind("updateCell"+n.namespace,(function(t,s,o,l){t.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=e(s),g=p.index(e.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=e.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?r(i,s,h):n.extractors[h].format(r(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(t,l,c,u){if(t.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=e(l).attr("role","row")).filter("tr").length,x=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[x].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?r(i,l[d].cells[f],f):n.extractors[f].format(r(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[x].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[x].colMax[f]||0));w.push(b),n.cache[x].normalized.push(w)}y(a,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,r,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(t,i){var n,s,r,a,o,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,(function(t,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===t?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=e.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),t.applyWidget(i),e.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(t,n,s){t.stopPropagation(),c(i,s),e.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(t,s){n.parsers&&n.parsers.length||o(i),l(i),e.isFunction(s)&&s(i)})).bind("applyWidgetId"+n.namespace,(function(e,s){e.stopPropagation(),t.getWidgetById(s).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(e,n){e.stopPropagation(),t.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(e,n,s){e.stopPropagation(),t.refreshWidgets(i,n,s)})).bind("destroy"+n.namespace,(function(e,n,s){e.stopPropagation(),t.destroy(i,n,s)})).bind("resetToLoadState"+n.namespace,(function(){t.refreshWidgets(i,!0,!0),n=e.extend(!0,t.defaults,n.originalSettings),i.hasInitialized=!1,t.setup(i,n)}))}t.version="2.17.7",t.parsers=[],t.widgets=[],t.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},t.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},t.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},t.log=i,t.benchmark=n,t.construct=function(i){return this.each((function(){var n=this,s=e.extend(!0,{},t.defaults,i);s.originalSettings=i,!n.hasInitialized&&t.buildTable&&"TABLE"!==this.tagName?t.buildTable(n,s):t.setup(n,s)}))},t.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var r,a="",c=e(n),u=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,e.data(n,"tablesorter",s),s.debug&&e.data(n,"startoveralltimer",new Date),s.supportsDataObject=((r=e.fn.jquery.split("."))[0]=parseInt(r[0],10),r[0]>1||1===r[0]&&parseInt(r[1],10)>=4),s.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(c.attr("class"))||(a=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=c.addClass(t.css.table+" "+s.tableClass+a).attr("role","grid"),s.$headers=c.find(s.selectorHeaders),s.namespace?s.namespace="."+s.namespace.replace(/\W/g,""):s.namespace=".tablesorter"+Math.random().toString(16).slice(2),s.$table.children().children("tr").attr("role","row"),s.$tbodies=c.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(t){if(t.config.widthFixed&&0===e(t).find("colgroup").length){var i=e("<colgroup>"),n=e(t).width();e(t.tBodies[0]).find("tr:first").children(":visible").each((function(){i.append(e("<col>").css("width",parseInt(e(this).width()/n*1e3,10)/10+"%"))})),e(t).prepend(i)}}(n),o(n),s.totalRows=0,s.delayInit||l(n),t.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==c.data().sortlist?s.sortList=c.data().sortlist:u&&c.metadata()&&c.metadata().sortlist&&(s.sortList=c.metadata().sortlist),t.applyWidget(n,!0),s.sortList.length>0?c.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&t.applyWidget(n,!1)),s.showProcessing&&c.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,(function(e){clearTimeout(s.processTimer),t.isProcessing(n),"sortBegin"===e.type&&(s.processTimer=setTimeout((function(){t.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&t.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),c.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},t.getColumnData=function(t,i,n,s){if(null!=i){var r,a=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},t.computeColumnIndex=function(t){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<t.length;i++)for(l=t[i].cells,n=0;n<l.length;n++){for(o=l[n],a=e(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},t.isProcessing=function(i,n,s){var r=(i=e(i))[0].config,a=s||i.find("."+t.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),r.sortList)>=0}))),i.add(a).addClass(t.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(t.css.processing+" "+r.cssProcessing)},t.processTbody=function(t,i,n){var s;if(t=e(t)[0],n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},t.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},t.bindEvents=function(t,i,n){var r,a=(t=e(t)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(t),c=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(t,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},t.restoreHeaders=function(i){var n=e(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){e(this).find("."+t.css.headerIn).length&&e(this).html(n.headerContent[i])}))},t.destroy=function(i,n,s){if((i=e(i)[0]).hasInitialized){t.refreshWidgets(i,!0,!0);var r=e(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([t.css.header,a.cssHeader,a.cssAsc,a.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),t.restoreHeaders(i),r.toggleClass(t.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},t.sortNatural=function(e,i){if(e===i)return 0;var n,s,r,a,o,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,r){if(e===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,r){if(e===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:t.sortNatural(i,e)},t.sortText=function(e,t){return e>t?1:e<t?-1:0},t.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,r=i+t;for(n=0;n<s;n++)r+=e.charCodeAt(n);return t*r}return 0},t.sortNumericAsc=function(e,i,n,s,r,a){if(e===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,r,a){if(e===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},t.replaceAccents=function(e){var i,n="[",s=t.characterEquivalents;if(!t.characterRegex){for(i in t.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],t.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));t.characterRegex=new RegExp(n+"]")}if(t.characterRegex.test(e))for(i in s)"string"==typeof i&&(e=e.replace(t.characterRegexArray[i],i));return e},t.isValueInArray=function(e,t){var i,n=t.length;for(i=0;i<n;i++)if(t[i][0]===e)return i;return-1},t.addParser=function(e){var i,n=t.parsers.length,s=!0;for(i=0;i<n;i++)t.parsers[i].id.toLowerCase()===e.id.toLowerCase()&&(s=!1);s&&t.parsers.push(e)},t.getParserById=function(e){if("false"==e)return!1;var i,n=t.parsers.length;for(i=0;i<n;i++)if(t.parsers[i].id.toLowerCase()===e.toString().toLowerCase())return t.parsers[i];return!1},t.addWidget=function(e){t.widgets.push(e)},t.hasWidget=function(t,i){return(t=e(t)).length&&t[0].config&&t[0].config.widgetInit[i]||!1},t.getWidgetById=function(e){var i,n,s=t.widgets.length;for(i=0;i<s;i++)if((n=t.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===e.toLowerCase())return n},t.applyWidget=function(i,s){var r,a,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,(function(t,i){return e.inArray(t,l.widgets)===i})),e.each(l.widgets||[],(function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)})),u.sort((function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1})),e.each(u,(function(t,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=e.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))}))),setTimeout((function(){i.isApplyingWidgets=!1}),0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},t.refreshWidgets=function(n,s,r){var a,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||e.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,r,a="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(a)):""},t.formatFloat=function(t,i){return"string"!=typeof t||""===t?t:(t=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(t),isNaN(n)?e.trim(t):n);var n},t.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var t=e.tablesorter;e.fn.extend({tablesorter:t.construct}),t.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),t.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=e.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?t.replaceAccents(i):i),i},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,i){var n,s=e?e.split("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return e?t.formatFloat(r,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(t){return t?e.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},type:"text"}),t.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,i){return e?t.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",i):e},type:"numeric"}),t.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,i){return e?t.formatFloat(e.replace(/%/g,""),i):e},type:"numeric"}),t.addParser({id:"usLongDate",is:function(e){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,i,n,s){if(e){var r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||t.getData(a,t.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[r]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(r=h.eq(u)).children("tr").length>1&&(o=0,r.children("tr:visible").not(n.selectorRemove).each((function(){a=e(this),d.test(this.className)||o++,l=o%2==0,a.removeClass(s.zebra[l?1:0]).addClass(s.zebra[l?0:1])})));n.debug&&t.benchmark("Applying Zebra widget",c)},remove:function(t,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=e.tablesorter.processTbody(t,a.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,r,!1)}})}(jQuery)},37:()=>{var e;void 0===(e=jQuery).fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}}),function(e,t){"use strict";if(window.Select2===t){var i,n,s,r,a,o,l,c,u={x:0,y:0},d={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},h="<div class='select2-measure-scrollbar'></div>",p={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};o=e(document),c=1,r=function(){return c++},i=O(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,a=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e(document.body),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(M(i.containerCss,this.opts.element)),this.container.addClass(M(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",x),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(M(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",x),this.results=n=this.container.find(a),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",x),this.results.on("mousemove",(function(i){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",a,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",a,this.bind((function(e){this._touchEvent=!0,this.highlightUnderEvent(e)}))),this.dropdown.on("touchmove",a,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",a,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind((function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())}))),function(e,t){var i=_(e,(function(e){t.trigger("scroll-debounced",e)}));t.on("scroll",(function(e){m(e.target,t.get())>=0&&i(e)}))}(80,this.results),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",(function(e){e.stopPropagation()})),e(this.dropdown).on("change",".select2-input",(function(e){e.stopPropagation()})),e.fn.mousewheel&&n.mousewheel((function(e,t,i,s){var r=n.scrollTop();s>0&&r-s<=0?(n.scrollTop(0),x(e)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),x(e))})),w(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",a,this.bind((function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))}))),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",(function(e){e.stopPropagation()})),this.lastSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var o=i.element.prop("disabled");o===t&&(o=!1),this.enable(!o);var c=i.element.prop("readonly");c===t&&(c=!1),this.readonly(c),l=l||function(){var t=e(h);t.appendTo(document.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.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each((function(){n._sync&&this.detachEvent("onpropertychange",n._sync)})),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==t&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),I.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:v(e.attr("locked"),"locked")||v(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,s,a,o,l=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),i.debug=i.debug||e.fn.select2.defaults.debug,i.debug&&console&&console.warn&&(null!=i.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=i.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=i.ajax&&null!=i.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=i.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=i.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=i.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=i.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=i.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=i.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),i.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=i.element.data("tags")){var c=i.element.data("tags");e.isArray(c)||(c=[]),i.element.data("select2Tags",c)}if(null!=i.sorter&&(i.sortResults=i.sorter),null!=i.selectOnClose&&(i.selectOnBlur=i.selectOnClose),null!=i.ajax&&e.isFunction(i.ajax.processResults)&&(i.ajax.results=i.ajax.processResults),null!=i.language){var u=i.language;e.isFunction(u.noMatches)&&(i.formatNoMatches=u.noMatches),e.isFunction(u.searching)&&(i.formatSearching=u.searching),e.isFunction(u.inputTooShort)&&(i.formatInputTooShort=u.inputTooShort),e.isFunction(u.inputTooLong)&&(i.formatInputTooLong=u.inputTooLong),e.isFunction(u.loadingMore)&&(i.formatLoading=u.loadingMore),e.isFunction(u.maximumSelected)&&(i.formatSelectionTooBig=u.maximumSelected)}if("function"!=typeof(i=e.extend({},{populateResults:function(n,s,a){var o,c=this.opts.id,u=this.liveRegion;o=function(n,s,d){var h,p,f,g,m,v,b,y,w,_,x=[];for(h=0,p=(n=i.sortResults(n,s,a)).length;h<p;h+=1)g=!(m=!0===(f=n[h]).disabled)&&c(f)!==t,v=f.children&&f.children.length>0,(b=e("<li></li>")).addClass("select2-results-dept-"+d),b.addClass("select2-result"),b.addClass(g?"select2-result-selectable":"select2-result-unselectable"),m&&b.addClass("select2-disabled"),v&&b.addClass("select2-result-with-children"),b.addClass(l.opts.formatResultCssClass(f)),b.attr("role","presentation"),(y=e(document.createElement("div"))).addClass("select2-result-label"),y.attr("id","select2-result-label-"+r()),y.attr("role","option"),(_=i.formatResult(f,y,a,l.opts.escapeMarkup))!==t&&(y.html(_),b.append(y)),v&&((w=e("<ul></ul>")).addClass("select2-result-sub"),o(f.children,w,d+1),b.append(w)),b.data("select2-data",f),x.push(b[0]);s.append(x),u.text(i.formatMatches(n.length))},o(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,r,a={results:[],more:!1},o=e.term;r=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2((function(e,t){r(t,n.children)})),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2((function(e,t){r(t,a.results)})),e.callback(a)})),i.id=function(e){return e.id}):"query"in i||("ajax"in i?((o=i.element.data("ajax-url"))&&o.length>0&&(i.ajax.url=o),i.query=D.call(i.element,i.ajax)):"data"in i?i.query=E(i.data):"tags"in i&&(i.query=A(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(b(t.val(),i.separator,i.transformVal)).each((function(){var t={id:this,text:this},n=i.tags;e.isFunction(n)&&(n=n()),e(n).each((function(){if(v(this.id,t.id))return t=this,!1})),s.push(t)})),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind((function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),this._sync=this.bind((function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=n.prop("readonly");i===t&&(i=!1),this.readonly(i),this.container&&(C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(M(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(M(this.opts.dropdownCssClass,this.opts.element)))})),n.length&&n[0].attachEvent&&n.each((function(){this.attachEvent("onpropertychange",s._sync)})),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i((function(t){e.each(t,s._sync)})),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,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){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,r,a=this.dropdown,o=this.container,c=o.offset(),u=o.outerHeight(!1),d=o.outerWidth(!1),h=a.outerHeight(!1),p=e(window),f=p.width(),g=p.height(),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,w=b+h<=v,_=c.top-h>=p.scrollTop(),x=a.outerWidth(!1);a.hasClass("select2-drop-above")?(i=!0,!_&&w&&(n=!0,i=!1)):(i=!1,!w&&_&&(n=!0,i=!0)),n&&(a.hide(),c=this.container.offset(),u=this.container.outerHeight(!1),d=this.container.outerWidth(!1),h=a.outerHeight(!1),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,x=a.outerWidth(!1),a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(r=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(x=a.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:l.width))>d?d=x:x=d,h=a.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(b-=(t=this.body.offset()).top,y-=t.left),!(y+x<=m)&&c.left+m+o.outerWidth(!1)>x&&(y=c.left+this.container.outerWidth(!1)-x),s={left:y,width:d},i?(this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above"),h=a.outerHeight(!1),s.top=c.top-h,s.bottom="auto"):(s.top=b,s.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),s=e.extend(s,M(this.opts.dropdownCss,this.opts.element)),a.css(s)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),o.on("mousemove.select2Event",(function(e){u.x=e.pageX,u.y=e.pageY})),!0)},opening:function(){var t,i=this.containerEventName,n="scroll."+i,s="resize."+i,r="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",(function(i){f(t);var n,s=e("#select2-drop");s.length>0&&((n=s.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())}))),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){e(this).on(s+" "+n+" "+r,(function(e){a.opened()&&a.positionDropdown()}))}))},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each((function(){e(this).off(i).off(n).off(s)})),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),o.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return e!==t&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return M(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,n,s,r,a,o,l,c=this.results;(i=this.highlight())<0||(0!=i?(t=this.findHighlightableChoices().find(".select2-result-label"),s=(l=((n=e(t[i])).offset()||{}).top||0)+n.outerHeight(!0),i===t.length-1&&(o=c.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(r=c.offset().top+c.outerHeight(!1))&&c.scrollTop(c.scrollTop()+(s-r)),(a=l-c.offset().top)<0&&"none"!=n.css("display")&&c.scrollTop(c.scrollTop()+a)):c.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=e(i[n+=t]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,n,s=this.findHighlightableChoices();if(0===arguments.length)return m(s.filter(".select2-highlighted")[0],s.get());t>=s.length&&(t=s.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(s[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),r=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:r,matcher:this.opts.matcher,callback:this.bind((function(a){n.opened()&&(n.opts.populateResults.call(this,e,a.results,{term:s,page:i,context:r}),n.postprocessResults(a,!1,!1),!0===a.more?(t.detach().appendTo(e).html(n.opts.escapeMarkup(M(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var n,s,r,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),d=e.data(this.container,"select2-last-term");if((!0===i||!d||!v(u,d))&&(e.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&S(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(S(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+M(l.formatInputTooShort,l.element,a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?S(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+M(l.formatInputTooLong,l.element,a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+M(l.formatSearching,l.element)+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=t&&null!=s&&a.val(s),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var s;if(r==this.queryCount)if(this.opened())if(n.hasError!==t&&S(l.formatAjaxError,"formatAjaxError"))f("<li class='select2-ajax-error'>"+M(l.formatAjaxError,l.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");else{if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&(s=this.opts.createSearchChoice.call(c,a.val(),n.results))!==t&&null!==s&&c.id(s)!==t&&null!==c.id(s)&&0===e(n.results).filter((function(){return v(c.id(this),c.id(s))})).length&&this.opts.createSearchChoicePosition(n.results,s),0===n.results.length&&S(l.formatNoMatches,"formatNoMatches"))return f("<li class='select2-no-results'>"+M(l.formatNoMatches,l.element,a.val())+"</li>"),void(this.showSearch&&this.showSearch(a.val()));o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&S(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+l.escapeMarkup(M(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n})}else this.search.removeClass("select2-active")}))})));f("<li class='select2-selection-limit'>"+M(l.formatSelectionTooBig,l.element,h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(o.text()):c.liveRegion.text(c.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function 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(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))}),0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{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 i=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){var t=function(){var t,i,n,s,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("string"==typeof(t=this.opts.element.attr("style")))for(s=0,r=(i=t.split(";")).length;s<r;s+=1)if(null!==(n=i[s].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&n.length>=1)return n[1];return"resolve"===this.opts.width?(t=this.opts.element.css("width")).indexOf("%")>0?t: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!==t&&this.container.css("width",t)}}),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'>&#160;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((i=t.createTextRange()).collapse(!1),i.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,s=this.dropdown,a=r();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind((function(){this.focus()}))),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which!==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 x(e);case d.ENTER:return this.selectHighlighted(),void x(e);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(e),void x(e)}else x(e)}))),this.search.on("blur",this.bind((function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind((function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()&&e.which!==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 x(e)}return e.which==d.DELETE||e.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void x(e)):void 0}x(e)}}))),w(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 touchstart","abbr",this.bind((function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())}))),t.on("mousedown touchstart",this.bind((function(i){f(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),x(i)}))),s.on("mousedown touchstart",this.bind((function(){this.opts.shouldFocusInput(this)&&this.search.focus()}))),t.on("focus",this.bind((function(e){x(e)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())}))}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter((function(){return this.selected&&!this.disabled}));t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),r=null;t.query({matcher:function(e,i,n){var a=v(s,t.id(n));return a&&(r=n),a},callback:e.isFunction(n)?function(){n(r)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,i){var n=0,s=this;if(this.findHighlightableChoices().each2((function(e,t){if(v(s.id(t.data("select2-data")),s.opts.element.val()))return n=e,!1})),!1!==i&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(N(e.results)>=r)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),v(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),i!==t&&s.append(i),(n=this.opts.formatSelectionCssClass(e,s))!==t&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,r=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter((function(){return this.selected})).each2((function(e,t){return n=s.optionToData(t),!1})),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:r});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,(function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),i&&s.triggerChange({added:e,removed:r})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==t&&(i=null),i;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),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'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].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&&!this.disabled})).each2((function(e,t){n.push(i.optionToData(t))})),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=b(i.val(),t.separator,t.transformVal),r=[];t.query({matcher:function(i,n,a){var o=e.grep(s,(function(e){return v(e,t.id(a))})).length;return o&&r.push(a),o},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<s.length;i++)for(var a=s[i],o=0;o<r.length;o++){var l=r[o];if(v(a,t.id(l))){e.push(l),r.splice(o,1);break}}n(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",(function(t){n.search[0].focus(),n.selectChoice(e(this))})),this.search.attr("id","s2id_autogen"+r()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind((function(){this.focus()}))),this.search.on("input paste",this.bind((function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),a=function(t){var i=0,n=0;if("selectionStart"in(t=e(t)[0]))i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var o=n;return i.which==d.LEFT&&s.length?o=s:i.which==d.RIGHT?o=r.length?r:null:i.which===d.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),o=s.length?s:r):i.which==d.DELETE?this.unselect(n.first())&&(this.search.width(10),o=r.length?r:null):i.which==d.ENTER&&(o=null),this.selectChoice(o),x(i),void(o&&o.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void x(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 x(i);case d.ENTER:return this.selectHighlighted(),void x(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void x(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||x(i),i.which===d.ENTER&&x(i)}}}))),this.search.on("keyup",this.bind((function(e){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))}))),this.container.on("click",i,this.bind((function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))}))),this.container.on("focus",i,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,(function(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.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var i={},n=[],s=this;e(t).each((function(){s.id(this)in i||(i[s.id(this)]=0,n.push(this))})),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var i=this.getVal(),n=this;e(t).each((function(){i.push(n.createChoice(this))})),this.setVal(i)},createChoice:function(i){var n,s,r=!i.locked,a=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=r?a:o,c=this.id(i);return(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith(e("<div></div>").html(n)),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=t&&l.addClass(s),r&&l.find(".select2-search-choice-close").on("mousedown",x).on("click dblclick",this.bind((function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),x(t),this.close(),this.focusSearch())}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),l.data("select2-data",i),l.insertBefore(this.searchContainer),c},unselect:function(t){var i,n,s=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var r=e.Event("select2-removing");if(r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented())return!1;for(;(n=m(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),s=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;s.each2((function(e,t){m(a.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))})),r.each2((function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&S(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+M(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-y(this.search)},resizeSearch:function(){var t,i,n,s,r=y(this.search);t=function(t){if(!a){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(a=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e(document.body).append(a)}return a.text(t.val()),a.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-r)<t&&(s=n-r),s<40&&(s=n-r),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:b(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(t){if(this.select)this.select.val(t);else{var i=[],n={};e(t).each((function(){this in n||(i.push(this),n[this]=0)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator))}},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var i=0;i<t.length;i++)for(var n=0;n<e.length;n++)if(v(this.opts.id(t[i]),this.opts.id(e[n]))){t.splice(i,1),i--,e.splice(n,1);break}return{added:t,removed:e}},val:function(i,n){var s,r=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(t){var i=e.map(t,r.id);r.setVal(i),r.updateSelection(t),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(s,r.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){t.push(i.opts.id(e(this).data("select2-data")))})),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,r=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map((function(){return e(this).data("select2-data")})).get();s=this.data(),t||(t=[]),n=e.map(t,(function(e){return r.opts.id(e)})),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,n,s,r,a,o=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each((function(){if(0===o.length||"object"==typeof o[0])(i=0===o.length?{}:e.extend({},o[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?a=i.element.prop("multiple"):(a=i.multiple||!1,"tags"in i&&(i.multiple=a=!0)),(n=a?new window.Select2.class.multi:new window.Select2.class.single).init(i);else{if("string"!=typeof o[0])throw"Invalid arguments to select2 plugin: "+o;if(m(o[0],l)<0)throw"Unknown method: "+o[0];if(r=t,(n=e(this).data("select2"))===t)return;if("container"===(s=o[0])?r=n.container:"dropdown"===s?r=n.dropdown:(d[s]&&(s=d[s]),r=n[s].apply(n,o.slice(1))),m(o[0],c)>=0||m(o[0],u)>=0&&1==o.length)return!1}})),r===t?this:r},e.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return k(this.text(e),i.term,s,n),s.join("")},transformVal:function(t){return e.trim(t)},formatSelection:function(e,i,n){return e?n(this.text(e)):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?e.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(e,t){return g(""+t).toUpperCase().indexOf(g(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,s){var r,a,o,l,c,u=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(a=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((a=e.indexOf(c))>=0));o++);if(a<0)break;if(r=e.substring(0,a),e=e.substring(a+c.length),r.length>0&&(r=s.createSearchChoice.call(this,r,i))!==t&&null!==r&&s.id(r)!==t&&null!==s.id(r)){for(d=!1,o=0,l=i.length;o<l;o++)if(v(s.id(r),s.id(i[o]))){d=!0;break}d||n(r)}}return u!==e?e:void 0},escapeMarkup:T,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:D,local:E,tags:A},util:{debounce:_,markMatch:k,escapeMarkup:T,stripDiacritics:g},class:{abstract:i,single:n,multi:s}}}function f(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function g(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return p[e]||e}))}function m(e,t){for(var i=0,n=t.length;i<n;i+=1)if(v(e,t[i]))return i;return-1}function v(e,i){return e===i||e!==t&&i!==t&&(null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+""))}function b(e,t,i){var n,s,r;if(null===e||e.length<1)return[];for(s=0,r=(n=e.split(t)).length;s<r;s+=1)n[s]=i(n[s]);return n}function y(e){return e.outerWidth(!1)-e.width()}function w(i){var n="keyup-change-value";i.on("keydown",(function(){e.data(i,n)===t&&e.data(i,n,i.val())})),i.on("keyup",(function(){var s=e.data(i,n);s!==t&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))}))}function _(e,i,n){var s;return n=n||t,function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout((function(){i.apply(n,t)}),e)}}function x(e){e.preventDefault(),e.stopPropagation()}function C(t,i,n){var s,r,a=[];(s=e.trim(t.attr("class")))&&e((s=""+s).split(/\s+/)).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(s=e.trim(i.attr("class")))&&e((s=""+s).split(/\s+/)).each2((function(){0!==this.indexOf("select2-")&&(r=n(this))&&a.push(r)})),t.attr("class",a.join(" "))}function k(e,t,i,n){var s=g(e.toUpperCase()).indexOf(g(t.toUpperCase())),r=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+r))),i.push("</span>"),i.push(n(e.substring(s+r,e.length))))}function T(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))}function D(i){var n,s=null,r=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,r=a,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},d=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,s&&"function"==typeof s.abort&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(d,i.params.call(o)):e.extend(d,i.params)),e.extend(d,{url:r,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page,l);l.callback(t)},error:function(e,t,i){var n={hasError:!0,jqXHR:e,textStatus:t,errorThrown:i};l.callback(n)}}),s=c.call(o,d)}),r)}}function E(t){var i,n,s=t,r=function(e){return""+e.text};e.isArray(s)&&(s={results:n=s}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var a=s();return a.text&&(r=a.text,e.isFunction(r)||(i=a.text,r=function(e){return e[i]})),function(t){var i,n=t.term,a={results:[]};""!==n?(i=function(s,a){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2((function(e,t){i(t,o.children)})),(o.children.length||t.matcher(n,r(o),s))&&a.push(o)}else t.matcher(n,r(s),s)&&a.push(s)},e(s().results).each2((function(e,t){i(t,a.results)})),t.callback(a)):t.callback(s())}}function A(i){var n=e.isFunction(i);return function(s){var r=s.term,a={results:[]},o=n?i(s):i;e.isArray(o)&&(e(o).each((function(){var e=this.text!==t,i=e?this.text:this;(""===r||s.matcher(r,i))&&a.results.push(e?this:{id:this,text:this})})),s.callback(a))}}function S(t,i){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(i+" must be a string, function, or falsy value")}function M(t,i){if(e.isFunction(t)){var n=Array.prototype.slice.call(arguments,2);return t.apply(i,n)}return t}function N(t){var i=0;return e.each(t,(function(e,t){t.children?i+=N(t.children):i++})),i}function I(){var t=this;e.each(arguments,(function(e,i){t[i].remove(),t[i]=null}))}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}},775:t=>{"use strict";t.exports=e},472:e=>{"use strict";e.exports=t},302:e=>{"use strict";e.exports=i}},s={};function r(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";r.r(a),r.d(a,{$:()=>He,AvatarBadged:()=>Ke,AvatarEl:()=>nt,AvatarGroupEl:()=>ut,CalendarWidget:()=>zl,CheckboxMultiselectEl:()=>ir,DatePicker:()=>Ul,DropdownEl:()=>rs,FancyFileInput:()=>sr,FocusManager:()=>Yc,Header:()=>Ol,I18n:()=>I18n,InlineDialog2:()=>qc,InlineDialogEl:()=>Ia,ItemCheckboxEl:()=>is,ItemLinkEl:()=>ts,ItemRadioEl:()=>ns,LabelEl:()=>cr,LayerManager:()=>Kc,MessageEl:()=>bs,NavigationEl:()=>Pa,ProgressBarEl:()=>Ga,ProgressiveDataSet:()=>Qc,RestfulTable:()=>uc,SectionEl:()=>ss,SelectEl:()=>Zr,SpinnerEl:()=>Ct,TabContainerEl:()=>Co,TabItemEl:()=>ko,TabPaneEl:()=>To,ToggleEl:()=>ha,_addID:()=>fu,banner:()=>ft,bind:()=>C,clone:()=>Gc,contextPath:()=>gu,debounce:()=>Zc,debounceImmediate:()=>Jc,dialog2:()=>Ot,dim:()=>Xc,error:()=>m,escapeHtml:()=>eu,flag:()=>Ds,formValidation:()=>tu,format:()=>b,id:()=>iu,isClipped:()=>nu,keyCode:()=>su,layer:()=>ru,log:()=>f,messages:()=>au,navigation:()=>Ra,params:()=>lu,populateParameters:()=>ou,progressBars:()=>Ja,responsiveheader:()=>cu,select:()=>uu,sidebar:()=>Pc,tablessortable:()=>du,tabs:()=>hu,toInit:()=>Ue,trigger:()=>T,unbind:()=>k,undim:()=>pu,version:()=>w,warn:()=>g,whenIType:()=>Vc});var e=r(472),t=r.n(e);const i=window.jQuery||window.Zepto||t(),n="AJS",s="I18n";function o(){"object"!=typeof window[n]&&(window[n]={})}function l(e,t){return o(),window[n][e]=t}var c=r(953),u=r.n(c);function d(e){let i;return{type:u().type.CLASSNAME,attached:function(n){!function(e,t){let i=!1;if(t((()=>{i=!0})),i)return;const n=new MutationObserver((e=>{(function(e){for(const t of e)if("childList"===t.type)return!0;return!1})(e)&&t((()=>n.disconnect()))}));n.observe(e,{childList:!0})}(n,(s=>{i=s;const r=t()(`input[type=${e}]`,n);r.each((function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)}));r.length>0&&i()}))},detached:function(e){t()(".aui-form-glyph",e).remove(),i&&i()}}}function h(e,t){var n=i(e);return void 0===t&&(t=!0),n.each((function(){this.disabled=!t}))}function p(e){return function(){"undefined"!=typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}u()("checkbox",d("checkbox")),u()("radio",d("radio")),l("enable",h),l("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 f=p("log"),g=p("warn"),m=p("error");function v(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(t,a){var o,l="";if(o=t.match(i))l=a.length>++t?a[t]:"";else if(o=t.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=t.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,p=0;p<u.length;p++){var f=u[p].match(r);if(null!=f){var g=parseInt(f[1],10);if(c<g){if(h){l=h;break}l=f[3];break}if(c==g&&"#"==f[2]){l=f[3];break}p==u.length-1&&(l=f[3]),h=f[3]}else d=!0}d&&m('The format "'+t+'" from message "'+e+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=v.apply(null,b)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var r=e.charAt(s);if("'"==r&&(t=!t),!t)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(e.substring(0,s+1)),a.push(e.substring(0,i)),a.push(e.substring(i+1,s)),a}}return null};return function(e){var i=arguments,n="";if(!e)return n;for(var s=o(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=a(s[2],i),s=o(e);return n+=e.replace(t,"")}.apply(null,arguments)}l("error",m),l("log",f),l("warn",g),l("format",v);const b=v;var y="9.7.2";l("version",y);const w=y,_=!1,x=i(window);function C(e,t,i){try{return"function"==typeof i?x.on(e,_,t,i):x.on(e,_,t)}catch(e){f("error while binding: ",e.message)}}function k(e,t){try{return x.off(e,t)}catch(e){f("error while unbinding: ",e.message)}}function T(e,t){try{return x.trigger(e,t)}catch(e){f("error while triggering: "+e.message)}}l("bind",C),l("trigger",T),l("unbind",k);const D={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},E=new RegExp(`[${Object.keys(D).join("")}]`,"g");function A(e){return e.replace(E,(e=>D[e]))}l("escapeHtml",A);const S=A;var M=Object.prototype.hasOwnProperty,N=[];function I(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function O(e,t){if("function"==typeof e)return e;var i=!1;return t=t||{},function(n){var s,r=function(e){var t=new Error,i=t.stack||t.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[e+2]:n}(n||1)||"";if(!i||-1===N.indexOf(r)){N.push(r),i=!0;var a="DEPRECATED "+(t.deprecationType+" "||0)+"- "+(s=e,((s+="")?s.charAt(0).toUpperCase()+s.substring(1):"")+" has been deprecated")+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion||"a future release")+".";t.alternativeName&&(a+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(a+=" "+t.extraInfo),r=""===r?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+r,t.extraObject?I(a+="\n",t.extraObject,r):I(a,r)}}}function L(e,t){var n=e.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:t},e.options);O("'"+e.selector+"' pattern"+n,s)()}function P(e,t,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=O(t||e.name||"this function",i);return function(){return n(),e.apply(this,arguments)}}function R(e,t,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=P(e,t,n);return s.prototype=e.prototype,i.extend(s,e),s}var $=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),$=!0)}catch(e){}function j(e,t,i){if("function"==typeof e[t]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||t;e[t]=P(e[t],n,i)}else!function(e,t,i){if($){var n=e[t];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=O(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 F(e){return function(t){for(var i={selector:t,options:e||{}},n=document.querySelectorAll(t),s=0;s<n.length;s++)L(i,n[s]);!function(e){if(H.push(e),!B){B=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&&H.forEach(z(n))}}))}));var t={childList:!0,subtree:!0};B.observe(document,t)}}(i)}}function z(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)&&L(t,e)}}const H=[];let B;function U(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}var W;function V(e,t){W||(W=document.body),!0===e&&q();const n=!!V.$dim&&!V.$dim[0].hasAttribute("hidden");return V.$dim&&(V.$dim.remove(),V.$dim=null),V.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),V.$dim.appendTo(document.body),n||(U(V.$dim),V.cachedOverflow={overflow:W.style.overflow,overflowX:W.style.overflowX,overflowY:W.style.overflowY},W.style.overflowX="hidden",W.style.overflowY="hidden",W.style.overflow="hidden"),V.$dim.removeAttr("hidden"),t&&V.$dim.css({zIndex:t}),V.$dim}function Y(){V.$dim&&(V.$dim[0].setAttribute("hidden",""),W&&(W.style.overflow=V.cachedOverflow.overflow,W.style.overflowX=V.cachedOverflow.overflowX,W.style.overflowY=V.cachedOverflow.overflowY))}l("deprecate",{fn:P,construct:R,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(F(t))},prop:j,obj:function(e,t,n){for(var s in n=n||{},e)M.call(e,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=t+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,j(e,s,i.extend({},n)))},propertyDeprecationSupported:$,getMessageLogger:O});const q=O("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});l("dim",V),l("undim",Y);var K={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};l("keyCode",K);const Q=K;function G(e,t){window.define&&(0,window.define)(e,[],(function(){return t}));return t}const Z=u().noConflict();const J=function(e){return{set:function(t,i){void 0===e._state&&(e._state={}),e._state[t]=i},get:function(t){if(e._state)return e._state[t]}}};function X(e){return J(e).get("last-trigger")||ne(e)[0]}function ee(e,t){var i=t&&t.nodeType&&1===t.nodeType;return J(e).set("last-trigger",!!i&&t)}function te(e,t){var i=X(e);i&&t(i)}function ie(e,t){return Array.prototype.forEach.call(ne(e),t)}function ne(e){const t=window.frames,i=`[aria-controls="${e.id}"]`;let n=[],s=!1;for(let e=0;e<t.length;e++)try{let s=t[e].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(e){s=!0}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&g([`No triggers found for element (${e.id}) in iframes from the same origin.`,"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function se(e){return document.getElementById(e.getAttribute("aria-controls"))}function re(e){return"true"!==e.getAttribute("aria-disabled")}function ae(e,t){if(re(e)){var i=se(e);i&&i.message&&i.message(t)}}const oe={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(ae(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==Q.ENTER&&i!==Q.SPACE||(t.preventDefault(),t.type="click",oe.click(e,t))},mouseenter(e,t){ae(e,t)},mouseleave(e,t){ae(e,t)},focus(e,t){ae(e,t)},blur(e,t){(function(e,t){let n=t.relatedTarget;return n||(n=document.activeElement),i(se(e)).find(n).length>0})(e,t)||ae(e,t)}};Object.keys(oe).forEach((function(e){const t=oe[e];i(document).on(`${e}.aui-trigger`,"[data-aui-trigger]",(function(i){t(i.currentTarget,function(e,t){const{target:i,currentTarget:n,relatedTarget:s}=e,{keyCode:r,which:a}=e;return{type:t,data:"keydown"===t?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))}))})),Z("data-aui-trigger",{type:Z.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return re(this)}}}),G("aui/trigger"),function(){function e(e){return"visible"===i.css(e,"visibility")&&i(e).is(":visible")}function t(t,n){var s=t.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=t.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!t.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&e(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=t.href||n;return(l?!t.disabled:c?u:n)&&e(t)}i.extend(i.expr.pseudos,{"aui-focusable":e=>t(e,!isNaN(i.attr(e,"tabindex"))),"aui-tabbable":function(e){var n=i.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&t(e,!s)}})}();var le="_aui-focus-restore";function ce(e){return e.is(".aui-dialog2")||e.is('[aui-focus-trap="true"]')}function ue(){this._focusTrapStack=[],this._handler}function de(e,t){if(0===e.length)return;if(t.keyCode!==Q.TAB)return;const n=t.shiftKey?-1:1,s=t.target,r=e[e.length-1],a=r.find(":aui-tabbable");if(!a.length&&ce(r)&&(r.trigger("focus"),t.preventDefault()),!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let e;if(e=i(s).closest(".aui-layer"),!e.length){e=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(s)}if(e.length){const t=e.find(":aui-tabbable"),i=t.index(s)+n;if(!(i<0||i>=t.length))return;{const t=X(e.get(0));l=a.index(t)}}}l=l>-1?(l+n)%a.length:0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),t.preventDefault())}let he;function pe(){return he||(he=new ue),he}ue.defaultFocusSelector=":aui-tabbable",ue.prototype.enter=function(e,t){if(function(e,t=document.activeElement){e.data(le,t)}(e,t),"false"!==e.attr("data-aui-focus")){var n=e.attr("data-aui-focus-selector")||ue.defaultFocusSelector;(e.is(n)?e:e.find(n)).first().trigger("focus")}ce(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=de.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ue.prototype.exit=function(e){ce(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(le))}(e);n.length&&(e.removeData(le),n.trigger("focus"))}},pe.global=pe(),l("FocusManager",pe);const fe=pe;function ge(e,t){var n="_aui-widget-"+e;return function(e,s){var r,a;i.isPlainObject(e)?a=e:(r=e,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new t(l,a||{})).$el).data(n,o),o}}let me;!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(me=window.CustomEvent)}catch(e){}me=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},me.prototype=window.Event.prototype}();const ve=me,be="_aui-internal-layer-",ye="_aui-internal-layer-global-",we="aui-layer-",_e="aui-",xe=3e3;var Ce=i(document);function ke(e,t,i,n){!function(e,t){var i=window.getComputedStyle(e).transitionProperty;return!!i&&i.indexOf(t)>-1}(e,t)?i.call(e):e.addEventListener("transitionend",(function s(r){t===r.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))}))}function Te(e,t,n){var s=i.Event(be+t),r=i.Event(ye+t),a=new ve(we+n,{bubbles:!0,cancelable:!0}),o=new ve(_e+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(r,[e]),e[0].dispatchEvent(a),e[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function De(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function Ee(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}De.prototype={below:function(){return Le.global.item(Le.global.indexOf(this.$el)-1)},above:function(){return Le.global.item(Le.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(be+e,t),this},off:function(e,t){return this.$el.off(be+e,t),this},show:function(){return this.isVisible()||Le.global.indexOf(this.$el)>-1?this:Te(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Le.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return ke(this.$el.get(0),"opacity",(function(){e.isVisible()||(this.style.display="none")}),!0),Le.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=Ee(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=Ee(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!Te(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&fe.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(be+"hide"),this.$el.trigger(ye+"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()&&fe.global.enter(this.$el),this.$el.trigger(be+"show"),this.$el.trigger(ye+"show",[this.$el])}};var Ae=ge("layer",De);function Se(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function Me(e,t){return Se(e,(function(e){return e[0]===t[0]}))}function Ne(e){return Se(e,(function(e){return Ae(e).isBlanketed()}))}function Ie(e,t){var i=Ne(e);t!==i&&(i>-1?V(!1,e[i].css("z-index")-20):Y())}function Oe(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,r=e.length-1;r>=t;r--){s=e[r];var a=Ae(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];e.splice(r,1)}}return[!0,s]}function Le(){this._stack=[]}function Pe(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Le.global.indexOf(t)>-1}Ae.on=function(e,t,i){return Ce.on(ye+e,t,i),this},Ae.off=function(e,t,i){return Ce.off(ye+e,t,i),this},Le.prototype={push:function(e){var t=e instanceof i?e:i(e);if(Me(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=Ae(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(xe,t)}(this._stack);return n._showLayer(s),n.isBlanketed()&&V(!1,s-20),this._stack.push(t),this},popLayersBeside:function(e){const t=i(e).get(0);if(!function(e){return!!X(e)}(t)){var n=Ne(this._stack);return void Oe(this._stack,++n,!1)}const s=function(e){var t=X(e);if(t)return i(t).closest(".aui-layer").get(0)}(t);if(s){let e=this.indexOf(s);Oe(this._stack,++e,!1)}else Oe(this._stack,0,!1)},indexOf:function(e){return Me(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach((function(e){let t=Ae(e);t.isBlanketed()||t.isPersistent()||t.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Me(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var r=Ae(t);if(!r.isPersistent()||r.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Me(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var r=Ae(t);if(!r.isPersistent()&&!r.isBlanketed())return t;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},popUntil:function(e,t=!1){var n=e instanceof i?e:i(e),s=Me(this._stack,n);if(-1===s)return null;const r=Ne(this._stack),a=Ae(n),[o,l]=Oe(this._stack,s+1,a.isBlanketed(),t);return o&&a._hideLayer(t)?(this._stack.splice(s,1),Ie(this._stack,r),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=Ae(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=Ne(this._stack);if(t<0)return null;var i=this._stack[t];if(Ae(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=Me(this._stack,n);return Oe(this._stack,s,!0,e),n}return null}return Oe(this._stack,t,!0),Ie(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Le.global.getTopLayer();if(t){var i,n=Ne(this._stack),s=Ae(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Le.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=Ae(t),!t||s.isPersistent())return;i=Me(this._stack,t),Oe(this._stack,i,!0,e),Ie(this._stack,n)}else i=Me(this._stack,t),Oe(this._stack,i,!0,e),Ie(this._stack,n)}}},Ce.on("keydown",(function(e){e.keyCode===Q.ESCAPE&&(Le.global.popUntilTopPersistent(!0),e.preventDefault())})),Ce.on("click",".aui-blanket",(function(e){Le.global.popUntilTopBlanketed(!0)&&e.preventDefault()})),Ce.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&&!Pe(n)){const t=i.Event("aui-close-layers-on-outer-click");return Ce.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Le.global.hideAll()}if(!Pe(n)&&s.length){var r=Le.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&Ae(r).hide()}}})),Le.global=new Le,Ae.Manager=Le,l("layer",Ae);const Re=Ae;l("LayerManager",Re.Manager);Re.Manager;const $e={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},je=l("params",new Proxy({},{get:function(e,t){return O("AJS.params",$e)(),e[t]}}));const Fe=P((function(e){e||(e=je),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"});l("populateParameters",Fe);const ze=Fe;i((function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",w),ze()})),l("$",i);const He=i;function Be(e){return i.when(i.ready).then((function(){setTimeout((function(){try{e.call(this,i)}catch(t){m("Failed to run init function: "+t.message,e,t,t.stack)}}),1)})),this}l("toInit",Be);const Ue=Be,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.number.suggestions":"Found {0,choice,0#0 options|1#1 option|1<{0,number} options}.","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","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)?b.apply(null,[this.keys[e]].concat(t)):e}};for(const e in I18n)We=e,Ve=I18n[e],o(),"object"!=typeof window[n][s]&&(window[n][s]={}),void 0===window[n][s][We]&&(window[n][s][We]=Ve);var We,Ve;const Ye="bottom-end",qe=["top-start","top-end","bottom-start","bottom-end"],Ke=Z("aui-avatar-badged",{attributes:{placement:{value:Ye,fallback(e,{newValue:t,oldValue:i}){((e,t,i)=>{const n=qe.includes(t)?t:Ye;i&&e.classList.remove(`aui-avatar-badged-${i}`),e.classList.add(`aui-avatar-badged-${n}`)})(e,t,i)}}},created:function(e){e.classList.add("aui-avatar-badged")}});var Qe=r(596),Ge=r.n(Qe);const Ze=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Je=(e,t)=>e.querySelector(t),Xe=(e,t,i)=>{const n=Je(e,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},et=e=>{if(e.hasAttribute("src"))it(e,e.getAttribute("src"));else{const t=(e=>"project"===e.getAttribute("type")?"project":"user")(e),i=Ze.get(t);it(e,i)}},tt=(e,t,i)=>Je(e,"img").setAttribute(t,i),it=(e,t)=>tt(e,"src",t),nt=Z("aui-avatar",{template:Ge()("\n <span class='aui-avatar'>\n <span class='aui-avatar-inner'>\n <img />\n </span>\n <content></content>\n </span>\n "),attributes:{size(e,{newValue:t,oldValue:i}){Xe(e,t,i)},type(e,{newValue:t,oldValue:i}){Xe(e,t,i),et(e)},src(e,{newValue:t}){it(e,t)},alt:{value:"",fallback(e,{newValue:t}){((e,t)=>{tt(e,"alt",t)})(e,t)}},title(e,{newValue:t}){((e,t)=>{tt(e,"title",t)})(e,t)}},created:function(e){e.className="aui-avatar",et(e),(e=>null!==e.querySelector("aui-avatar-badged"))(e)&&e.setAttribute("role","img")}}),st="medium",rt={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128};let at=!1;const ot=(e,t,i)=>(rt[e]-rt[e]/t)*i+"px",lt=e=>{e.parentNode.querySelector(".aui-avatar-group-dropdown").classList.toggle("aui-avatar-group-dropdown-show"),at=!at,e.setAttribute("aria-expanded",at.toString()),(e=>{const t=e.parentNode.querySelectorAll("aui-avatar"),i=e.parentNode.querySelector(".aui-avatar-group-dropdown"),n=[...t].slice(4);at?n.forEach((e=>{const t=e.getAttribute("src"),n=e.getAttribute("alt"),s=e.getAttribute("title"),r=document.createElement("span");r.setAttribute("class","aui-avatar-group-dropdown-item"),r.innerHTML=t?`<aui-avatar id="avatar-item" src=${t} alt=${n} title=${s}></aui-avatar>`:"<aui-avatar></aui-avatar>",i.appendChild(r)})):n.forEach((()=>{const e=document.querySelector(".aui-avatar-group-dropdown-item");e&&e.remove()}))})(e)},ct=(e,t)=>{const i=e.querySelectorAll("aui-avatar");let n=i.length-4;if(i.forEach(((e,i)=>{e.classList.toggle("aui-avatar-group-item-hidden",i>=4),((e,t,i)=>{e.setAttribute("size",t),e.classList.add("aui-avatar-group-item"),e.style.left=ot(t,4,i),e.style.zIndex=""+(5-i)})(e,t,i)})),n>0)((e,t,i,n)=>{const s=e.querySelector(".aui-avatar-group-badged");s&&s.remove();const r=e.querySelector(".aui-avatar-group-dropdown");r&&r.remove();const a=i.length-n,o=document.createElement("button");o.classList.add("aui-avatar-group-badged","aui-avatar-inner"),o.style.left=ot(t,4.5,a),o.innerText=`+${n}`,o.setAttribute("aria-expanded",at.toString()),o.setAttribute("aria-haspopup","dialog"),e.appendChild(o),o.addEventListener("click",(()=>lt(o)));const l=document.createElement("div");l.classList.add("aui-avatar-group-dropdown"),l.style.left=ot(t,4.5,a),e.appendChild(l)})(e,t,i,n);else{const t=e.querySelector(".aui-avatar-group-badged");t&&t.remove()}},ut=Z("aui-avatar-group",{attributes:{size:{value:st,fallback(e,{newValue:t,oldValue:i}){const n=(e=>Object.keys(rt).includes(e)?e:st)(t);Z.init(e),((e,t,i)=>{i&&e.classList.remove(`aui-avatar-group-${i}`),e.classList.add(`aui-avatar-group-${t}`)})(e,n,i),ct(e,n)}}},created(e){e.classList.add("aui-avatar-group")}});new MutationObserver((function(e){e.forEach((function(e){const t=e.target;((e,t)=>e.removedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.removedNodes[0].classList.contains("aui-avatar-group-item"))(e,t)&&ct(t,t.getAttribute("size")),((e,t)=>e.addedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.addedNodes[0].classList.contains("aui-avatar"))(e,t)&&setTimeout((()=>{ct(t,t.getAttribute("size"))}),0)}))})).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});var dt="header";function ht(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 pt().find(".aui-banner").get().forEach((function(e){e.hasAttribute("hidden")&&i(e).remove()})),function(e){var t=pt();if(!t.length)throw new Error("You must implement the application header");e.prependTo(t),U(e),e[0].removeAttribute("hidden")}(t),t[0]}function pt(){return i("#"+dt)}G("aui/banner",ht),l("banner",ht);const ft=ht;var gt=r(302);const mt={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},vt={filled:!1,size:mt.MEDIUM.name},bt="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.",yt=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:bt}),wt=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:bt});function _t(e){let t=mt.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();const i=Object.keys(mt).map((e=>e.toLowerCase()));i.indexOf(e)>-1&&(t=e)}return t}function xt(e){const{px:t,radius:i}=(0,gt.find)(mt,(t=>t.name===e._data.size))||mt.MEDIUM;!function(e,t,i){const n=e.querySelector("svg"),s=e.querySelector("circle");n.setAttribute("size",t),n.setAttribute("height",t),n.setAttribute("width",t),n.setAttribute("viewBox",`0 0 ${t} ${t}`);const r=t/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(e,t,i),e._data.filled?function(e,t){const i=e.parentNode;if(i&&1===i.nodeType){const n=e.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+t/2;e.querySelector("svg").style.top=r-a+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const Ct=Z("aui-spinner",{template(e){e.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',xt(e)},attached(e){xt(e)},attributes:{filled:{created:function(e){yt(),e._data.filled=!0,xt(e)},removed:function(e){e._data.filled=!1,xt(e)}},size(e,t){e._data.size=_t(t.newValue),xt(e)}},prototype:{get _data(){return this.__data||(this._data=(0,gt.defaults)({},vt))},set _data(e){return this.__data=e},set filled(e){wt(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=_t(e);this.setAttribute("size",t)}}});function kt(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function Tt(e){return"INPUT"===e.nodeName}Z("aui-button",{type:Z.type.CLASSNAME,created:function(e){e._spinner=new Ct,e._spinner.setAttribute("size",mt.SMALL.name)},prototype:{busy:function(){return Tt(this)||kt(this)?(g("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 Tt(this)||!kt(this)?(g("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 Tt(this)?(g("It is not valid to call isBusy() on an input button."),!1):kt(this)}}}),G("aui/button");const Dt="aui-close-button",Et=`.${Dt}`,At=`<button type="button" class="${Dt}" aria-label="${I18n.getText("aui.words.close")}">`,St={"aui-focus":"false","aui-blanketed":"true"};function Mt(e){var t;this._handlers=new WeakMap,this.$el=i(e||`\n <section role="dialog" aria-modal="true" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n ${At}\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(St,(function(e,i){const n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)}))}Mt.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)};Re(i).on(e,n),this._handlers.set(t,n)}return this},Mt.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Re(i).off(e,n),this._handlers.delete(t)),this},Mt.prototype.show=function(){return Re(this.$el).show(),this},Mt.prototype.hide=function(){return Re(this.$el).hide(),this},Mt.prototype.remove=function(){return Re(this.$el).remove(),this},Mt.prototype.isVisible=function(){return Re(this.$el).isVisible()};var Nt=ge("dialog2",Mt),It=new Set;Nt.on=function(e,t){return It.has(t)||(Re.on(e,".aui-dialog2",t),It.add(t)),this},Nt.off=function(e,t){return It.has(t)&&(Re.off(e,".aui-dialog2",t),It.delete(t)),this},i(document).on("click keydown",`.aui-dialog2-header ${Et}`,(function(e){("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE)&&(e.preventDefault(),Nt(i(e.target).closest(".aui-dialog2")).hide())})),Nt.on("show",(function(e,t){!function(e){const t=e.querySelector(Et);t&&(O(`Dialog2 [${Et}] element is deprecated.`,{removeInVersion:"10.0.0",sinceVersion:"9.6.0",extraInfo:"Replace it with another actionable element inside your Dialog which will trigger closing of the modal.",deprecationType:"MARKUP"})(),t.setAttribute("tabindex","0"));e.setAttribute("tabindex","-1");const i=e.hasAttribute("data-aui-focus-selector");i&&O("Dialog2 [data-aui-focus-selector] attribute is deprecated.",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"9.6.0",extraInfo:"Replace [data-aui-focus-selector] attribute with HTML [autofocus] attribute",deprecationType:"ATTRIBUTE"})();const n=e.querySelector("[autofocus]");if(n)return document.activeElement.blur(),void setTimeout((()=>n.focus()),0);if(i){const t=e.querySelector(i);if(t)return t.blur(),void setTimeout((()=>t.focus()),0)}const s=[...e.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden")));if(s.length){let e=s.shift();return e.classList.contains(Dt)&&(e=s.shift()),void(e&&(e.blur(),setTimeout((()=>e.focus()),0)))}e.focus()}(t[0])})),Nt.on("hide",(function(e,t){const i=Re(t);t.data("aui-remove-on-hide")&&i.remove()})),G("aui/dialog2",Nt),l("dialog2",Nt);const Ot=Nt;var Lt,Pt,Rt=navigator.userAgent.toLowerCase(),$t=(/msie/.test(Rt),/windows nt 5.1/.test(Rt),/windows nt 6.0/.test(Rt),/windows nt 6.1/.test(Rt),/mac os x/.test(Rt));function jt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ft(e){return e instanceof jt(e).Element||e instanceof Element}function zt(e){return e instanceof jt(e).HTMLElement||e instanceof HTMLElement}function Ht(e){return"undefined"!=typeof ShadowRoot&&(e instanceof jt(e).ShadowRoot||e instanceof ShadowRoot)}var Bt=Math.max,Ut=Math.min,Wt=Math.round;function Vt(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Yt(){return!/^((?!chrome|android).)*safari/i.test(Vt())}function qt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&zt(e)&&(s=e.offsetWidth>0&&Wt(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Wt(n.height)/e.offsetHeight||1);var a=(Ft(e)?jt(e):window).visualViewport,o=!Yt()&&i,l=(n.left+(o&&a?a.offsetLeft:0))/s,c=(n.top+(o&&a?a.offsetTop:0))/r,u=n.width/s,d=n.height/r;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Kt(e){var t=jt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){return((Ft(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zt(e){return qt(Gt(e)).left+Kt(e).scrollLeft}function Jt(e){return jt(e).getComputedStyle(e)}function Xt(e){var t=Jt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ei(e,t,i){void 0===i&&(i=!1);var n,s,r=zt(t),a=zt(t)&&function(e){var t=e.getBoundingClientRect(),i=Wt(t.width)/e.offsetWidth||1,n=Wt(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),o=Gt(t),l=qt(e,a,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!i)&&(("body"!==Qt(t)||Xt(o))&&(c=(n=t)!==jt(n)&&zt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Kt(n)),zt(t)?((u=qt(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Zt(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function ti(e){var t=qt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function ii(e){return"html"===Qt(e)?e:e.assignedSlot||e.parentNode||(Ht(e)?e.host:null)||Gt(e)}function ni(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:zt(e)&&Xt(e)?e:ni(ii(e))}function si(e,t){var i;void 0===t&&(t=[]);var n=ni(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=jt(n),a=s?[r].concat(r.visualViewport||[],Xt(n)?n:[]):n,o=t.concat(a);return s?o:o.concat(si(ii(a)))}function ri(e){return["table","td","th"].indexOf(Qt(e))>=0}function ai(e){return zt(e)&&"fixed"!==Jt(e).position?e.offsetParent:null}function oi(e){for(var t=jt(e),i=ai(e);i&&ri(i)&&"static"===Jt(i).position;)i=ai(i);return i&&("html"===Qt(i)||"body"===Qt(i)&&"static"===Jt(i).position)?t:i||function(e){var t=/firefox/i.test(Vt());if(/Trident/i.test(Vt())&&zt(e)&&"fixed"===Jt(e).position)return null;var i=ii(e);for(Ht(i)&&(i=i.host);zt(i)&&["html","body"].indexOf(Qt(i))<0;){var n=Jt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var li="top",ci="bottom",ui="right",di="left",hi="auto",pi=[li,ci,ui,di],fi="start",gi="end",mi="clippingParents",vi="viewport",bi="popper",yi="reference",wi=pi.reduce((function(e,t){return e.concat([t+"-"+fi,t+"-"+gi])}),[]),_i=[].concat(pi,[hi]).reduce((function(e,t){return e.concat([t,t+"-"+fi,t+"-"+gi])}),[]),xi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ci(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 ki(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ht(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ti(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Di(e,t,i){return t===vi?Ti(function(e,t){var i=jt(e),n=Gt(e),s=i.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=Yt();(c||!c&&"fixed"===t)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+Zt(e),y:l}}(e,i)):Ft(t)?function(e,t){var i=qt(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Ti(function(e){var t,i=Gt(e),n=Kt(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=Bt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Bt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+Zt(e),l=-n.scrollTop;return"rtl"===Jt(s||i).direction&&(o+=Bt(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}(Gt(e)))}function Ei(e,t,i,n){var s="clippingParents"===t?function(e){var t=si(ii(e)),i=["absolute","fixed"].indexOf(Jt(e).position)>=0&&zt(e)?oi(e):e;return Ft(i)?t.filter((function(e){return Ft(e)&&ki(e,i)&&"body"!==Qt(e)})):[]}(e):[].concat(t),r=[].concat(s,[i]),a=r[0],o=r.reduce((function(t,i){var s=Di(e,i,n);return t.top=Bt(s.top,t.top),t.right=Ut(s.right,t.right),t.bottom=Ut(s.bottom,t.bottom),t.left=Bt(s.left,t.left),t}),Di(e,a,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ai(e){return e.split("-")[0]}function Si(e){return e.split("-")[1]}function Mi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ni(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Ai(s):null,a=s?Si(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case li:t={x:o,y:i.y-n.height};break;case ci:t={x:o,y:i.y+i.height};break;case ui:t={x:i.x+i.width,y:l};break;case di:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?Mi(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case fi:t[c]=t[c]-(i[u]/2-n[u]/2);break;case gi:t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function Ii(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Oi(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function Li(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.strategy,a=void 0===r?e.strategy:r,o=i.boundary,l=void 0===o?mi:o,c=i.rootBoundary,u=void 0===c?vi:c,d=i.elementContext,h=void 0===d?bi:d,p=i.altBoundary,f=void 0!==p&&p,g=i.padding,m=void 0===g?0:g,v=Ii("number"!=typeof m?m:Oi(m,pi)),b=h===bi?yi:bi,y=e.rects.popper,w=e.elements[f?b:h],_=Ei(Ft(w)?w:w.contextElement||Gt(e.elements.popper),l,u,a),x=qt(e.elements.reference),C=Ni({reference:x,element:y,strategy:"absolute",placement:s}),k=Ti(Object.assign({},y,C)),T=h===bi?k:x,D={top:_.top-T.top+v.top,bottom:T.bottom-_.bottom+v.bottom,left:_.left-T.left+v.left,right:T.right-_.right+v.right},E=e.modifiersData.offset;if(h===bi&&E){var A=E[s];Object.keys(D).forEach((function(e){var t=[ui,ci].indexOf(e)>=0?1:-1,i=[li,ci].indexOf(e)>=0?"y":"x";D[e]+=A[i]*t}))}return D}var Pi={placement:"bottom",modifiers:[],strategy:"absolute"};function Ri(){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 $i(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,r=void 0===s?Pi:s;return function(e,t,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pi,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){var s="function"==typeof i?i(o.options):i;d(),o.options=Object.assign({},r,o.options,s),o.scrollParents={reference:Ft(e)?si(e):e.contextElement?si(e.contextElement):[],popper:si(t)};var a=function(e){var t=Ci(e);return xi.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({},i,t,{options:Object.assign({},i.options,t.options),data: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=a.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var r=s({state:o,name:t,instance:u,options:n}),a=function(){};l.push(r||a)}})),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,i=e.popper;if(Ri(t,i)){o.rects={reference:ei(t,oi(i),"fixed"===o.options.strategy),popper:ti(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(o)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(s())}))}))),a}),destroy:function(){d(),c=!0}};if(!Ri(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 ji={passive:!0};const Fi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=jt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,ji)})),o&&l.addEventListener("resize",i.update,ji),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ji)})),o&&l.removeEventListener("resize",i.update,ji)}},data:{}};const zi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Ni({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Hi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bi(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,p=void 0===h?0:h,f=a.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=di,w=li,_=window;if(c){var x=oi(i),C="clientHeight",k="clientWidth";if(x===jt(i)&&"static"!==Jt(x=Gt(i)).position&&"absolute"===o&&(C="scrollHeight",k="scrollWidth"),s===li||(s===di||s===ui)&&r===gi)w=ci,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===di||(s===li||s===ci)&&r===gi)y=ui,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-n.width,p*=l?1:-1}var T,D=Object.assign({position:o},c&&Hi),E=!0===u?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:Wt(t*n)/n||0,y:Wt(i*n)/n||0}}({x:p,y:g}):{x:p,y:g};return p=E.x,g=E.y,l?Object.assign({},D,((T={})[w]=b?"0":"",T[y]=v?"0":"",T.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",T)):Object.assign({},D,((t={})[w]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const Ui={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o=i.roundOffsets,l=void 0===o||o,c={placement:Ai(t.placement),variation:Si(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Bi(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bi(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const Wi={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];zt(s)&&Qt(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.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});zt(n)&&Qt(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const Vi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,r=void 0===s?[0,0]:s,a=_i.reduce((function(e,i){return e[i]=function(e,t,i){var n=Ai(e),s=[di,li].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[di,ui].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,t.rects,r),e}),{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Yi={left:"right",right:"left",bottom:"top",top:"bottom"};function qi(e){return e.replace(/left|right|bottom|top/g,(function(e){return Yi[e]}))}var Ki={start:"end",end:"start"};function Qi(e){return e.replace(/start|end/g,(function(e){return Ki[e]}))}const Gi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=t.options.placement,v=Ai(m),b=l||(v===m||!f?[qi(m)]:function(e){if(Ai(e)===hi)return[];var t=qi(e);return[Qi(e),t,Qi(t)]}(m)),y=[m].concat(b).reduce((function(e,i){return e.concat(Ai(i)===hi?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?_i:l,u=Si(n),d=u?o?wi:wi.filter((function(e){return Si(e)===u})):pi,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]=Li(e,{placement:i,boundary:s,rootBoundary:r,padding:a})[Ai(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,x=new Map,C=!0,k=y[0],T=0;T<y.length;T++){var D=y[T],E=Ai(D),A=Si(D)===fi,S=[li,ci].indexOf(E)>=0,M=S?"width":"height",N=Li(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),I=S?A?ui:di:A?ci:li;w[M]>_[M]&&(I=qi(I));var O=qi(I),L=[];if(r&&L.push(N[E]<=0),o&&L.push(N[I]<=0,N[O]<=0),L.every((function(e){return e}))){k=D,C=!1;break}x.set(D,L)}if(C)for(var P=function(e){var t=y.find((function(t){var i=x.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},R=f?3:1;R>0;R--){if("break"===P(R))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Zi(e,t,i){return Bt(e,Ut(t,i))}const Ji={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Li(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Ai(t.placement),b=Si(t.placement),y=!b,w=Mi(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,D="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(r){var S,M="y"===w?li:di,N="y"===w?ci:ui,I="y"===w?"height":"width",O=x[w],L=O+m[M],P=O-m[N],R=p?-k[I]/2:0,$=b===fi?C[I]:k[I],j=b===fi?-k[I]:-C[I],F=t.elements.arrow,z=p&&F?ti(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[M],U=H[N],W=Zi(0,C[I],z[I]),V=y?C[I]/2-R-W-B-D.mainAxis:$-W-B-D.mainAxis,Y=y?-C[I]/2+R+W+U+D.mainAxis:j+W+U+D.mainAxis,q=t.elements.arrow&&oi(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(S=null==E?void 0:E[w])?S:0,G=O+Y-Q,Z=Zi(p?Ut(L,O+V-Q-K):L,O,p?Bt(P,G):P);x[w]=Z,A[w]=Z-O}if(o){var J,X="x"===w?li:di,ee="x"===w?ci:ui,te=x[_],ie="y"===_?"height":"width",ne=te+m[X],se=te-m[ee],re=-1!==[li,di].indexOf(v),ae=null!=(J=null==E?void 0:E[_])?J:0,oe=re?ne:te-C[ie]-k[ie]-ae+D.altAxis,le=re?te+C[ie]+k[ie]-ae-D.altAxis:se,ce=p&&re?function(e,t,i){var n=Zi(e,t,i);return n>i?i:n}(oe,te,le):Zi(p?oe:ne,te,p?le:se);x[_]=ce,A[_]=ce-te}t.modifiersData[n]=A}},requiresIfExists:["offset"]};var Xi=function(e,t){return Ii("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Oi(e,pi))};const en={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,o=Ai(i.placement),l=Mi(o),c=[di,ui].indexOf(o)>=0?"height":"width";if(r&&a){var u=Xi(s.padding,i),d=ti(r),h="y"===l?li:di,p="y"===l?ci:ui,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],g=a[l]-i.rects.reference[l],m=oi(r),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=f/2-g/2,y=u[h],w=v-d[c]-u[p],_=v/2-d[c]/2+b,x=Zi(y,_,w),C=l;i.modifiersData[n]=((t={})[C]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ki(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tn(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 nn(e){return[li,ui,ci,di].some((function(t){return e[t]>=0}))}const sn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=Li(t,{elementContext:"reference"}),o=Li(t,{altBoundary:!0}),l=tn(a,n),c=tn(o,s,r),u=nn(l),d=nn(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var rn=$i({defaultModifiers:[Fi,zi,Ui,Wi,Vi,Gi,Ji,en,sn]});const an="alignment",on="right middle",ln="alignment-container",cn="aui-alignment-side-",un="aui-alignment-snap-",dn="aui-alignment-use-gpu",hn={"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 pn(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function fn(e){return pn(e,an)||on}function gn(e){let[t,i]=fn(e).split(" ");return{side:t,snap:i}}function mn(e){let t=function(e){let t=pn(e,ln)||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 vn(e,t){const i=gn(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=fn(e);return hn[t]||"right"}(e):(i.snap=mn(t),n="submenu"===i.side?hn[("right"===i.snap?"left":"right")+" top"]:hn[`${i.side} ${i.snap}`]),n}const bn={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function yn(e,t,i={}){const n=gn(e),s=vn(e,t),r=bn[s.split("-")[0]],a=t.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a||(i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document")}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains(dn)}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return i.enabled&&i.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={fn:i.onEvents}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),e}}];a&&t.ownerDocument!=e.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(e){const t=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),r=s([t.top,i.paddingTop,i.borderTop]),o=s([t.left,i.paddingLeft,i.borderLeft]);return e.offsets.reference.left+=o,e.offsets.reference.top+=r,e.offsets.popper.left+=o,e.offsets.popper.top+=r,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=rn(t,e,l),function(e,t,i){const n=cn+t,s=un+i;e.classList.contains(n)||e.classList.add(n),e.classList.contains(s)||e.classList.add(s)}(e,n.side,n.snap)}yn.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 wn=yn,_n=12;function xn(e){let t=new i.Deferred;return e?setTimeout((()=>{e.parentElement||t.resolve()}),_n):t.reject(),t.promise()}var Cn,kn,Tn=0;function Dn(e){if(Cn=Tn+++"",kn=e?e+Cn:"aui-uid-"+Cn,document.getElementById(kn)){if(kn=kn+"-"+(new Date).getTime(),document.getElementById(kn))throw new Error('Timestamped fallback ID "'+kn+'" exists.');return kn}return kn}l("id",Dn);const En=Dn;function An(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function Sn(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}var Mn="unloaded",Nn="loading",In="error",On="success";function Ln(e,t){J(e).set("loading-state",On),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 ${S(e.content)}\n </${n}>`})).join("");return`\n <aui-section ${e.label?`label="${e.label}"`:""}>\n ${t}\n </aui-section>`})).join("\n")}(t),Z.init(e)}function Pn(e){J(e).set("loading-state",In),J(e).set("hasErrorBeenShown",e.isVisible()),e.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Rn(e){e.src&&J(e).get("loading-state")!==Nn&&(!function(e){J(e).set("loading-state",Nn),J(e).set("hasErrorBeenShown",!1),te(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?Ln(e,t):Pn(e)})).fail((function(){Pn(e)})).always((function(){!function(e){te(e,(function(e){e.setAttribute("aria-busy","false")}))}(e)})))}function $n(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 jn(e){return $n(e,(()=>!0))}function Fn(e){return $n(e,((e,t)=>!An(t)))}function zn(e){jn(e).each(((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||An(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Hn(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Bn(e,t){var n=t&&t.hasSubmenu&&t.hasSubmenu(),s="submenu auto"===e.getAttribute("data-aui-alignment");!n&&s&&function(e){var t=i(e),n=t.data("previous-data-aui-alignment");n?e.setAttribute("data-aui-alignment",n):e.removeAttribute("data-aui-alignment");t.removeData("previous-data-aui-alignment"),t.data("had-data-aui-alignment-static")||e.removeAttribute("data-aui-alignment-static");t.removeData("had-data-aui-alignment-static")}(e);var r=e.hasAttribute("data-aui-alignment");n&&!s?(!function(e){var t=i(e);e.hasAttribute("data-aui-alignment")&&t.data("previous-data-aui-alignment",e.getAttribute("data-aui-alignment"));t.data("had-data-aui-alignment-static",e.hasAttribute("data-aui-alignment-static"))}(e),e.setAttribute("data-aui-alignment","submenu auto"),e.setAttribute("data-aui-alignment-static",!0)):r||(e.setAttribute("data-aui-alignment","bottom auto"),e.setAttribute("data-aui-alignment-static",!0)),Hn(e),e._auiAlignment=new wn(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")||(Z.init(this),O("Dropdown2 lazy initialisation",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(e){const t=i(e.currentTarget);if(t.is(".aui-dropdown2-active"))return;if(t.closest(".aui-dropdown2").length)return;const n=t.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&t.is(".aui-dropdown2-trigger")&&(s.blur(),t.trigger("aui-button-invoke"),e.preventDefault());const r=n.find(":focus");r.length&&t.is(".aui-dropdown2-trigger")&&r.blur()}));var Un=!1;function Wn(){Un=!0}function Vn(e){Re(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),zn(e),i(e).trigger("aui-dropdown2-show"),te(e,(function(t){Sn(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"),jn(e).removeClass("active aui-dropdown2-active"),te(e,(function(e){var t;Sn(e,!1),t=!0===Un,Un=!1,t&&e.focus()})),delete e.isSubmenu)}))}function Yn(e){var t=i(e);function n(t){return i(t).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===e}t.on("keydown",(function(t){n(t.target)&&(t.keyCode===Q.DOWN?(e.focusNext(),t.preventDefault()):t.keyCode===Q.UP?(e.focusPrevious(),t.preventDefault()):t.keyCode===Q.LEFT?e.isSubmenu&&(Wn(),e.hide(t),t.preventDefault()):t.keyCode===Q.ESCAPE?Wn():t.keyCode===Q.TAB&&(Wn(),e.hideAll(!1)))}));t.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(t){if(!n(t.target))return;const i=t.keyCode,s=i===Q.ENTER,r=i===Q.SPACE;("click"===t.type||s||r)&&function(t){const i=t.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void t.preventDefault();t.currentTarget.hasSubmenu&&t.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive")||e.hideAll(!0)}(t)})),t.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(t){if(!n(t.target))return;t.currentTarget.focus();let s=i(Re(e).above()).get(0);for(;s&&s.isDropdown&&s!==e;){const e=s.getAttribute("id"),n=t.target.getAttribute("aria-controls"),r=Re(s).above();n!==e&&Re(s).hide(),s=i(r).get(0)}}))}function qn(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")),Vn(e),Yn(e),i(e).on("click keydown",".aui-dropdown2-checkbox",(function(e){if("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),t.isEnabled()&&(t.isChecked()?t.uncheck():t.check())}})),i(e).on("click keydown",".aui-dropdown2-radio",(function(e){if("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(t).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),t.check())}}))}i(window).on("resize",(0,gt.debounce)((function(){i(".aui-dropdown2").each((function(e,t){Z.init(t),t.isVisible()&&t.hide()}))}),1e3,!0));var Kn={toggle:function(e){this.isVisible()?this.hide(e):this.show(e)},show:function(e){const t=this;return te(t,(e=>{Sn(e,!1)})),e&&e.currentTarget&&e.currentTarget.classList.contains("aui-dropdown2-trigger")&&ee(t,e.currentTarget),Re(t).show(),te(t,(function(e){Sn(e,!0),Bn(t,e)})),setTimeout((()=>function(e,t={}){if(t&&t.type&&-1===t.type.indexOf("mouse")){const i=t.type.indexOf("key")>-1;if(e.isSubmenu)e.focusItem(0);else if(i)if(t.keyCode===Q.UP){const t=Fn(e);t&&t.length&&e.focusItem(t.length-1)}else e.focusItem(0);else e.focus()}}(t,e)),0),this},hide:function(){return Re(this).hide(),this},hideAll:function(e=!0){let t=Re(this).below(),i=Re(this);for(;t&&t.get(0).isDropdown;)i=Re(t),t=i.below(),i.hide();return i&&e&&te(i.el,(e=>{e.focus(),ee(i.el,null)})),Re(this).hide(),this},focusNext:function(){var e,t=Fn(this),i=document.activeElement;t.last()[0]!==i?(e=t.toArray().indexOf(i),this.focusItem(t.get(e+1))):this.focusItem(0)},focusPrevious:function(){var e,t=Fn(this),i=document.activeElement;t.first()[0]!==i?(e=t.toArray().indexOf(i),this.focusItem(t.get(e-1))):this.focusItem(t.length-1)},focusItem:function(e){const t=Fn(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 Re(this).isVisible()},isDropdown:!0},Qn={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")}},Gn={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Zn={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new ve("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 ve("change",{bubbles:!0}))}},Jn={created:function(e){Qn.created(e)},removed:function(e){Qn.removed(e)}},Xn=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const es=function(e=""){return e.split(" ").map((e=>e.trim())).filter((e=>e))},ts=Z("aui-item-link",{template:Ge()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Qn,interactive:Gn,hidden:Jn,href:Xn("href"),"item-id":Xn("id"),for:{created:function(e){var t=e.children[0];t.setAttribute("aria-controls",e.getAttribute("for")),i(t).addClass("aui-dropdown2-sub-trigger")},updated:function(e){e.children[0].setAttribute("aria-controls",e.getAttribute("for"))},removed:function(e){var t=e.children[0];t.removeAttribute("aria-controls"),i(t).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(e,t){const i=e.children[0];t.oldValue&&i.classList.remove(...es(t.oldValue)),t.newValue&&i.classList.add(...es(t.newValue))}}}),[is,ns]=["checkbox","radio"].map((e=>Z(`aui-item-${e}`,{template:Ge()(`<span role="menuitem${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Xn("id"),disabled:Qn,interactive:Gn,checked:Zn,hidden:Jn}}))),ss=Z("aui-section",{template:Ge()('\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=En();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")}}),rs=Z("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Re(e),J(e).set("loading-state",Mn),Z.init(e)},detached:function(e){xn(e).then((()=>Hn(e)))},attributes:{src:{}},prototype:Kn,events:{"aui-layer-show":function(e){var t=J(e).get("loading-state")===Mn,i=J(e).get("hasErrorBeenShown");(t||i)&&Rn(e),J(e).get("loading-state")===In&&J(e).set("hasErrorBeenShown",!0)}}});Z("aui-dropdown2",{type:Z.type.CLASSNAME,created:qn,prototype:Kn}),Z("data-aui-dropdown2",{type:Z.type.ATTRIBUTE,created:qn,prototype:Kn}),Z("aui-dropdown2-trigger",{type:Z.type.CLASSNAME,created:function(e){let t=e.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==e)return;if(n.preventDefault(),!e.isEnabled())return;const r=document.getElementById(t);if(!r)return void m('Could not find a dropdown with id "'+t+'" in the DOM.');const a=i(e);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=e.hasSubmenu(),r}t||(t=e.getAttribute("aria-owns"),t?(e.removeAttribute("aria-owns"),e.setAttribute("aria-controls",t)):m('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),e.setAttribute("aria-haspopup",!0),e.setAttribute("aria-expanded",!1),"A"===e.nodeName&&!e.href&&e.setAttribute("href",`#${t}`),i(e).on("aui-button-invoke",n).on("click",n).on("keydown",(function(t){if(t.currentTarget!==e)return;const i=t.keyCode===Q.ENTER||t.keyCode===Q.SPACE,s=t.keyCode===Q.RIGHT&&e.hasSubmenu(),r=(t.keyCode===Q.UP||t.keyCode===Q.DOWN)&&!e.hasSubmenu();i?n(t):(r||s)&&n(t,document.activeElement===e)})).on("mouseenter",(function(i){if(i.currentTarget!==e)return;if(i.preventDefault(),!e.isEnabled())return;const n=document.getElementById(t);if(n)return function(e){var t=J(e).get("loading-state")===Mn,i=J(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&Rn(e)}(n),e.hasSubmenu()&&(n.show(i),n.isSubmenu=e.hasSubmenu()),n;m('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")}}}),Z("aui-dropdown2-sub-trigger",{type:Z.type.CLASSNAME,created:function(e){e.classList.add("aui-dropdown2-trigger"),Z.init(e)}}),["checkbox","radio"].map((e=>Z(`aui-dropdown2-${e}`,{type:Z.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"),$t&&t.setAttribute("role",`menuitem${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 as=i(document),os=function(e){var t={};return t.$trigger=i(e.currentTarget),t.$content=as.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},ls=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)}},cs={"aui-expander-invoke":function(e){var t=i(e.currentTarget),n=as.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=os(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"),ls(t),t.triggerIsParent&&t.$shortContent.hide(),t.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(e){var t=os(e);"true"===t.$content.attr("aria-expanded")&&(ls(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)}};as.on(cs,".aui-expander-trigger");var us=500,ds=5e3,hs=100;function ps(e){vs[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,removeOnHide:n,fadeout:s,title:r,body:a},o){const l=r?`<p class="title"><strong>${S(r)}</strong></p>`:"",c=i(`<div class="aui-message">${l}</div>`).append(i.parseHTML(a||"")).addClass(n?"aui-remove-on-hide":"").addClass(t?"closeable":"").addClass(s?"fadeout":"").addClass(`aui-message-${o}`);e&&(/[#\'\"\.\s]/g.test(e)?g("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):c.attr("id",e));return c}(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.removeOnHide&&fs(s,n.delay,n.duration),n.closeable&&gs(s),n.fadeout&&ms(s,n.delay,n.duration),s}}function fs(e,t,n){i(e||".aui-message.aui-remove-on-hide").each((function(){ms(i(this),t,n)}))}function gs(e){i(e||"div.aui-message.closeable").each((function(){var e,t=i(this),n=t.find(Et),s=n.length>0?n.first():i(At);t.addClass("closeable"),t.append(s),(e=t).unbind("click.aui-message").unbind("keydown.aui-message"),e.on("click.aui-message",Et,(function(e){i(e.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Et,(function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())}))}))}function ms(e,t,n){t=void 0!==t?t:ds,n=void 0!==n?n:us,i(e||"div.aui-message.fadeout").each((function(){var e=i(this),s=!1,r=!1;function a(){e.stop(!0,!1).delay(t).fadeOut(n,(function(){e.closeMessage()}))}function o(){e.stop(!0,!1).fadeTo(hs,1)}function l(){return!s&&!r}e.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}var vs={setup:function(){fs(),gs(),ms()},makeRemoveOnHide:fs,makeCloseable:gs,makeFadeout:ms,createMessage:ps};i.fn.closeMessage=function(){var e=i(this);e.hasClass("aui-message")&&(e.hasClass("closeable")||e.hasClass("aui-remove-on-hide"))&&(e.stop(!0),e.trigger("messageClose",[this]),e.remove(),i(document).trigger("aui-message-close",[this]))},ps("generic"),ps("error"),ps("warning"),ps("info"),ps("confirmation"),ps("change"),ps("success"),ps("hint");const bs=Z("aui-message",{created:function(e){var t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",vs[i](e,{body:t,removeOnHide:e.getAttribute("removeOnHide"),closeable:e.getAttribute("closeable"),delay:e.getAttribute("delay"),duration:e.getAttribute("duration"),fadeout:e.getAttribute("fadeout"),title:e.getAttribute("title")})}});i((function(){vs.setup()})),j(vs,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),j(vs,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(vs,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),j(vs,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(vs,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(vs,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),l("messages",vs);var ys=5e3,ws="aui-flag-container",_s={body:"",close:"manual",title:"",type:"info"};function xs(e){(e=i.extend({},_s,e)).title=(e.title||"").toString().trim();var t=function({body:e,title:t,close:n,type:s}){const r=t?`<p class="title"><strong>${S(t)}</strong></p>`:"",a=i(`<div class="aui-message">${r}</div>`).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`);return i('<div class="aui-flag" aria-live="polite"></div>').append(a)}(e);return function(e){var t=e[0];t.close=function(){ks(e)}}(t),"auto"===e.close?(Cs(t),function(e){e.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){e[0].close()}),ys)}(t)):"manual"===e.close&&Cs(t),function(){const e=Ts();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="'+ws+'"></div>')}(),function(e){const t=Ts();e.appendTo(t),U(e),e.removeAttr("hidden").attr("open","")}(t),t.get(0)}function Cs(e){var t=i(At);return t.on("click",(function(){ks(e)})),t.on("keypress",(function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(ks(e),t.preventDefault())})),e.find(".aui-message").append(t)[0]}function ks(e){var t=e.get(0);return t.removeAttribute("open"),t.dispatchEvent(new ve("aui-flag-close",{bubbles:!0})),t}function Ts(){return document.getElementById(ws)}G("aui/flag",xs),l("flag",xs);const Ds=xs;var Es=r(951),As=r.n(Es);function Ss(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 Ms(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(i),!0).forEach((function(t){Ns(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ss(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Ns(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const Is="aui-tooltip",Os={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},Ls="aui-tooltip",Ps={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let Rs;const $s=(e=!1)=>{const t=Rs&&Rs.get(0);t&&t.classList.toggle("assistive",e)};class js{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options=Ms(Ms({},Ps),t),this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer()}destroy(){this.unbindHandlers(),this.hide(),Fs.delete(this.triggerElement)}moveTitleToTooltip(){const e=this,t=this.$triggerElement;t.attr("title",(function(i,n){return e.originalTitle=n,e.options.aria&&t.attr("aria-describedby",Is),null}))}unbindHandlers(){const e=this.options.live;this.options.$delegationRoot&&e?this.options.$delegationRoot.off(`.${Ls}`,e):this.$triggerElement.off(`.${Ls}`)}initContainer(){(void 0===Rs||Rs.get(0)&&!Rs.get(0).isConnected)&&(Rs=i(`<div id="${Is}" class="aui-tooltip assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(Rs))}buildTip(e){const t=this.options,i=Rs.find(".aui-tooltip-content");return t.html?(t.sanitize&&(e=As().sanitize(e)),i.html(e)):i.text(e),t.maxWidth&&i.css("max-width",t.maxWidth+"px"),Rs}getTipTitle(){const e=this.options;let t=("function"==typeof e.title?e.title:"string"==typeof e.title?()=>e.title:()=>this.originalTitle||"").call(this.triggerElement);return t&&t.trim().length?t:void 0}show(){const e=this.getTipTitle();if(!1===this.enabled||!e)return;Rs&&e!==Rs.text()&&this.hide();const t=this.triggerElement,n=Os[this.options.gravity];if("function"==typeof this.options.suppress&&!0===this.options.suppress.call(t))return;const s=this.buildTip(e).get(0);this.showTooltip(),this.popperInstance=rn(t,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on(`scroll.${Ls}`,(()=>this.hide()))}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${Ls}`)}showTooltip(){$s(!1)}hideTooltip(){$s(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Fs=new WeakMap,zs=(e,t)=>{let i=Fs.get(e);return void 0===i&&(i=new js(e,t),"object"==typeof e&&Fs.set(e,i)),i},Hs=e=>e.map((e=>`${e}.${Ls}`)).join(" "),Bs=Hs(["mouseenter","focus"]),Us=Hs(["click","mouseleave","blur"]);let Ws,Vs;i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return zs(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(){clearTimeout(Vs),clearTimeout(Ws)},s=function(){n();const e=zs(this,i);Ws=setTimeout((()=>{n(),e.show(),Rs&&(Rs.off(`mouseenter.${Ls}`),Rs.off(`mouseleave.${Ls}`),Rs.on(`mouseenter.${Ls}`,(()=>{n()})),Rs.on(`mouseleave.${Ls}`,(()=>{n(),r()})))}),300)},r=function(){n();const e=zs(this,i);Vs=setTimeout((()=>{e.hide()}),300)},a=function(e){"Escape"===e.code&&r()},o=i.live;return void 0!==o?(i.$delegationRoot=t,t.on(Bs,o,s),t.on(Us,o,r),t.on("keyup",o,a),t):(t.on(Bs,s),t.on(Us,r),t.on("keyup",a),t)};var Ys={dropdown:function(e){function t(){return i('<div class="aui-dropdown2-section">')}var n=t();i("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(n);var s=t(),r=i("<ul />").appendTo(s);return i.each(e,(function(e,t){var n=i("<li />").attr({class:t.styleClass||""}).appendTo(r),s=i("<a />").text(t.label).attr("data-value",t.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(n);t.icon&&i("<span />").addClass("aui-icon").css("backgroundImage","url("+t.icon+')")').appendTo(s),t.selected&&s.addClass("aui-dropdown2-checked")})),i("<div />").append(n).append(s).html()},furniture:function(e,t){var n=e+"-dropdown",s=i("<select />").attr({name:e,multiple:"multiple"}).html(t),r=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=i("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":n,"aria-haspopup":!0});return i("<div />").append(s).append(a).append(r).html()}};function qs(e){var t=i(e.target);Ks(this,t.attr("data-value"),t.hasClass("aui-dropdown2-checked"))}function Ks(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 Qs(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Xs(e).length<1}))}function Gs(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 Zs(e){e.$dropdown.html(Ys.dropdown(function(e){return Gs(e.getOptions())}(e))),Qs(e)}function Js(e){var t=er(e),n=function(e){return 0===Xs(e).length}(e)?function(e){return i(e).data("allLabel")||"All"}(e):t.join(", ");e.$btn.text(n)}function Xs(e){return Gs(e.getSelectedOptions())}function er(e){return i.map(Xs(e),(function(e){return e.label}))}const tr=Z("aui-checkbox-multiselect",{attached:function(e){var t=e.getAttribute("name")||En("aui-checkbox-multiselect-");e.innerHTML=Ys.furniture(t,e.innerHTML),e.$select=i("select",e).on("change",(function(){Js(e),Qs(e)})),e.$dropdown=i(".aui-checkbox-multiselect-dropdown",e).on("aui-dropdown2-item-check",qs.bind(e)).on("aui-dropdown2-item-uncheck",qs.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")?"":er(e).join(", ")}(e)}}),Js(e),Zs(e)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){Ks(this,e,!0)},unselectOption:function(e){Ks(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),Js(this),Zs(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),Js(this),Zs(this)}}});G("aui/checkbox-multiselect",tr);const ir=tr;var nr=r(726);const sr=r.n(nr)();const rr=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?m(i,e):m(i),!1)}return{attributeExists:t,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},ar="-input";function or(e){return e.querySelector("label")}const lr=Z("aui-label",{template:Ge()("<label><content></content></label>"),created:function(e){e._label=or(e)},attached:function(e){rr(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?or(e).setAttribute("for",`${t.newValue}${ar}`):or(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?or(e).setAttribute("form",t.newValue):or(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()}}}),cr=lr;r(37);const ur=i.fn.select2,dr="aui-select2-container",hr="aui-select2-drop aui-dropdown2",pr="aui-has-avatar";i.fn.auiSelect2=function(e){let t;if(i.isPlainObject(e)){const n=i.extend({},e),s=n.hasAvatar?" "+pr:"";n.containerCssClass=dr+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=hr+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),t=Array.prototype.slice.call(arguments,1),t.unshift(n)}else t=arguments.length?arguments:[{containerCssClass:dr,dropdownCssClass:hr}];const n=t[0];if(n.ajax&&n.ajax.params&&n.ajax.params.error){let e=n.ajax.params.error;Array.isArray(e)||(e=[e]);let t=n.ajax.transport;t||(t=ur.ajaxDefaults.transport);const i=function(...i){return i[0].error=[i[0].error,...e],t(...i)};n.ajax.transport=i}const s=ur.apply(this,t),r=this,a=n.searchLabel;return r.on("select2-open",(function(){const e=i(this);if(n.multiple||e.attr("multiple"))return;const t=e.select2("dropdown");a&&t.find(".select2-search label").text(a)})),r.on("select2-close",(function(){i(this).removeData("was-ariadescribedby-cleared")})),r.on("select2-loaded",(function(){const e=i(this),t=e.data("was-ariadescribedby-cleared");if(n.multiple||e.attr("multiple")||t)return;e.select2("dropdown").find(".select2-search .select2-input").attr("aria-activedescendant",""),e.data("was-ariadescribedby-cleared",!0)})),r.on("select2-focus",(function(){const e=i(this),t=e.parent().find(".select2-container");if(n.multiple||e.attr("multiple"))return void(a&&t.find(".select2-search-field label").text(a));const s=t.find("label");if(s.attr("id"))return;const r=t.find(".select2-focusser"),o=r.attr("id")+"-label",l=r.attr("aria-labelledby");s.attr("id",o),r.attr("aria-labelledby",o+" "+l)})),s},i.fn.spin=P((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),Z.init(this),t.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=P((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 fr=Z("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||S(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=S(this.textContent),e}}});var gr=r(775),mr=r.n(gr),vr=mr().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,gt.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,gt.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,gt.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return mr().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,gt.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,gt.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))}});l("ProgressiveDataSet",vr);const br=vr,yr=mr().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});function wr(){this._suggestions=[],this._activeIndex=-1}wr.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(){const e=this._activeIndex,t=0===e?this._suggestions.length-1:e-1;return this.highlight(t),this},highlightNext:function(){const e=this._activeIndex,t=e===this._suggestions.length-1?0:e+1;return this.highlight(t),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};const _r=wr;function xr(e,t){return e+"-"+t}function Cr(e,t){this.el=e,this.anchor=t}function kr(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}Cr.prototype={render:function(e,t,i,n){this.currListId=i;let s="";if(e.length){for(let r=0;r<e.length;r++){const a=e[r],o=r+t,l=a.getLabel(),c=a.get("img-src"),u=c?`<img src="${encodeURI(c)}"/>`:"",d=a.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";s+=`<li role="option" class="aui-select-suggestion" aria-selected="${n===o}" id="${xr(i,o)}">${u}${l}${d}</li>`}t?this.el.querySelector("ul").innerHTML+=s:this.el.querySelector("ul").innerHTML=s}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){kr(this.el),i(this.el).find("#"+xr(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()),Re(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new wn(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){var e;kr(this.el),Re(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 Tr=Cr,Dr=Ge()('\n <input type="text" class="text" role="combobox" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" tabindex="-1" type="button"></button>\n <div class="aui-popover" data-aui-alignment="bottom left" hidden>\n <ul role="listbox" class="aui-optionlist"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n'),Er=-1,Ar=-1,Sr=20,Mr=50;function Nr(e){e._select.selectedIndex=Er,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function Ir(e){return e._suggestionModel.getNumberOfResults()}function Or(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function Lr(e){e._input.setAttribute("aria-expanded","false"),e._button.setAttribute("aria-expanded","false"),e._input.removeAttribute("aria-activedescendant"),Vr(e,"")}function Pr(e){e._suggestionsView.hide(),Lr(e)}function Rr(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function $r(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 jr(e,t){if(t){var i,n=document.createElement("option"),s=e._select,r=t.get("value")||t.get("label"),a=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,e._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new ve("change",{bubbles:!0}))}}function Fr(e){jr(e,e._suggestionModel.highlighted()),$r(e),Pr(e)}function zr(e){return new yr(e.serialize())}function Hr(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(zr(n))}return t}function Br(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function Ur(e,t){return i.map(t,(function(e){return e.id})).indexOf(e)}function Wr(e){e._progressiveDataSet=new br(Hr(e),{model:yr,matcher:Or,queryEndpoint:e._queryEndpoint,maxResults:Sr}),e._isSync=!e._queryEndpoint,e._progressiveDataSet.on("activity",(function(){e._progressiveDataSet.activeQueryCount&&!e._isSync?(!function(e){e._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true"))}(e),J(e).set("should-flag-new-suggestions",!1)):(!function(e){e._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false")}(e),J(e).set("should-flag-new-suggestions",!0))})),e._progressiveDataSet.on("respond",(function(t){if(t.query&&!e._input.value)return;if(J(e).get("should-cancel-response"))return void(e._progressiveDataSet.activeQueryCount||J(e).set("should-cancel-response",!1));t.query||(t.results=Hr(e));var i=-1!==Ur(e._input.value,t.results),n=!e._input.value;!e.hasAttribute("can-create-values")||i||n||t.results.push(function(e){var t=new fr;t.setAttribute("value",e._input.value);var i=zr(t);return i.set("new-value",!0),i}(e));let s=Ur(e.value,t.results);s=-1===s?0:s;const r=function(e,t){const i=e._suggestionModel.getNumberOfResults();return e._suggestionModel.set(),e._suggestionModel.set(t.results),i!==e._suggestionModel.getNumberOfResults()}(e,t),a=t.results[s];e._autoHighlight&&(e._suggestionModel.setHighlighted(a),setTimeout((function(){const t=Br(e);null!=t?e._input.setAttribute("aria-activedescendant",t):e._input.removeAttribute("aria-activedescendant")}),Mr)),e._input.setAttribute("aria-expanded","true"),e._button.setAttribute("aria-expanded","true"),!e._isSync&&r&&e._suggestionsView.getActive()&&J(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),e._suggestionsView.show()}))}function Vr(e,t){clearTimeout(e.assistiveStatusTimerId),e.assistiveStatusTimerId=setTimeout((()=>{const i=e._assistiveStatus.innerText;t!==i&&(e._assistiveStatus.innerText=t)}),Mr)}function Yr(e){Rr(e,!0,e.value?"":e._input.value)}function qr(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&J(e).set("should-cancel-response",!0)}function Kr(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function Qr(e){qr(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==Kr(e);if(i||n)if(t)Nr(e);else{var s=Kr(e);void 0===s?Nr(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(Ar)}(e),Pr(e)}const Gr=Z("aui-select",{template:Dr,created:function(e){e._listId=En(),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._assistiveStatus=e.querySelector(".aui-select-status.assistive"),e._suggestionsView=new Tr(e._dropdown,e._input),e._suggestionModel=new _r,e._suggestionModel.onChange=function(t){const i=[];e._suggestionModel._suggestions.forEach((function(e){t.some((t=>e.id===t.id))||i.push(e)}));const n=Hr(e),s=Ur(e.value,n),r=t.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;e._suggestionsView.render(i,t.length,e._listId,s),Vr(e,r)},e._suggestionModel.onHighlightChange=function(){const t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t);const i=Br(e);null!=i?e._input.setAttribute("aria-activedescendant",i):e._input.removeAttribute("aria-activedescendant")}},attached:function(e){Z.init(e),Wr(e),function(e){e._dropdown.id=e._listId,e.querySelector("button").setAttribute("aria-controls",e._listId)}(e),e._input.setAttribute("aria-controls",e._listId),function(e){i(e._dropdown).on("mouseover","li",(function(t){Ir(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(!Ir(e))return!1;e._suggestionModel.highlight(i(n.target).index()),Fr(e),i(e).closest(".aui-layer").length>0&&(t=!0)}))}(e),function(e){var t=e._datalist.querySelector("aui-option[selected]");t&&jr(e,zr(t))}(e),function(e){var t=Ir(e)?0:Ar;e._suggestionModel.highlight(t),Pr(e)}(e),$r(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),xn(e).then((()=>{Pr(e),e._suggestionsView.destroy()}))},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+ar)},name(e,t){e.querySelector("select").setAttribute("name",t.newValue),e.querySelector("select").setAttribute("aria-label",`${t.newValue} list`),e.querySelector("button").setAttribute("aria-label",`${t.newValue} list`),e.querySelector('ul[role="listbox"]').setAttribute("aria-label",`${t.newValue} list`)},placeholder(e,t){e.querySelector("input").setAttribute("placeholder",t.newValue)},src(e,t){e._queryEndpoint=t.newValue}},events:{"blur input":function(e){Qr(e)},"mousedown button":function(e){document.activeElement!==e._input||e._dropdown.hasAttribute("hidden")||J(e).set("prevent-open-on-button-click",!0)},"click input":function(e){Yr(e)},"click button":function(e){var t=J(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):(J(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?Rr(e,!0):J(e).get("button-clicked-prevent-dropdown-hide")?J(e).set("button-clicked-prevent-dropdown-hide",!1):Pr(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===Q.ESCAPE)return qr(e),void Lr(e);e._suggestionsView.isVisible()&&Ir(e)?t.keyCode===Q.ENTER?(qr(e),Fr(e),t.preventDefault()):t.keyCode===Q.TAB?(Fr(e),n=!0):t.keyCode===Q.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===Q.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==Q.UP&&t.keyCode!==Q.DOWN||(Yr(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout((function(){e._input.value===i||n||e.dispatchEvent(new ve("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 yr({value:e,label:e})),jr(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Qr(this),this},focus:function(){return this._input.focus(),Yr(this),this}}});G("aui/select",Gr),l("select",Gr);const Zr=Gr;function Jr(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const Xr={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:Jr,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 ea(e){return e._input||(e._input=e.querySelector("input"))}function ta(e){return e._spinner||(e._spinner=new Ct)}function ia(e,t){ea(t).removeAttribute(e)}function na(e,t,i){ea(t).setAttribute(e,i.newValue)}function sa(e){return{removed:ia.bind(this,e),fallback:na.bind(this,e)}}const ra={removed:function(e){ia.call(this,"form",e),e._formId=null},fallback:function(e,t){na.call(this,"form",e,t),e._formId=t.newValue}},aa={removed:ia.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}${ar}`;ea(e).setAttribute("id",i)}},oa={removed:function(e){ia.call(this,"value",e),ea(e).value="on"},fallback:function(e,t){na.call(this,"value",e,t)}},la={removed:function(e){ea(e).checked=!1},fallback:function(e){ea(e).checked=!0}},ca={removed:function(e){ea(e).removeAttribute("aria-label")},fallback:function(e,t){ea(e).setAttribute("aria-label",t.newValue)}};function ua(e){ea(e).addEventListener("keydown",(function(t){e.busy&&t.keyCode===Q.SPACE&&t.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&ea(e).addEventListener("click",(function(t){e.busy&&t.preventDefault()})),function(){if(void 0===Pt)try{document.querySelector(":focus-within"),Pt=!0}catch(e){Pt=!1}return Pt}()||(e._input.addEventListener("focus",(()=>e.classList.add("active"))),e._input.addEventListener("blur",(()=>e.classList.remove("active"))))}const da=Z("aui-toggle",{template:Ge()('<input type="checkbox" role="switch" 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){ea(e),ta(e).setAttribute("size",mt.SMALL.name),i(ea(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),ua(e),e.hasAttribute("checked")&&ea(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){rr(e).attributeExists("label")},events:{click:function(e,t){const i=ea(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked,function(e){e._canFireEventsNow&&e.dispatchEvent(new ve("change",{bubbles:!0}))}(e)),Jr(e,"checked",i.checked)}},attributes:{id:aa,checked:la,disabled:sa("disabled"),form:ra,name:sa("name"),value:oa,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(e,t){ea(e).setAttribute("tooltip-on",t.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(e,t){ea(e).setAttribute("tooltip-off",t.newValue||I18n.getText("aui.toggle.off"))}},label:ca},prototype:{focus:function(){return ea(this).focus(),this},get checked(){return ea(this).checked},set checked(e){ea(this).checked!==e&&(ea(this).checked=e,Jr(this,"checked",e))},get disabled(){return ea(this).disabled},set disabled(e){return Jr(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return ra.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return ea(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return ea(this).value},set value(e){let t=null===e?"":e;return this.setAttribute("value",t),t},get busy(){return"true"===ea(this).getAttribute("aria-busy")},set busy(e){const t=ea(this),n=ta(this);var s,r;return Jr(this,"busy",e),e?(t.setAttribute("aria-busy","true"),t.indeterminate=!0,this.checked?(t.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(t.classList.remove("indeterminate-checked"),t.indeterminate=!1,t.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(e){e.disabled=r})),e}}}),ha=da,pa=1e3;function fa(e,t){Aa(e)&&te(e,(function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)})),ee(e,t)}function ga(e,t){if(e._auiAlignment)e._auiAlignment.changeTarget(t),e._auiAlignment.enable();else{let i={overflowContainer:"viewport"===e.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};e._auiAlignment=new wn(e,t,i)}}function ma(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function va(e,t){var i=t.currentTarget;i&&(fa(e,i),ga(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function ba(e=0){return function(t){t.open&&!Re(t).isPersistent()&&(clearTimeout(t._closingTimeout),t._closingTimeout=setTimeout((function(){(function(e){return J(e).get("mouse-inside")||e.contains(document.activeElement)})(t)||(t.open=!1),t._closingTimeout=null}),e))}}const ya={click(e,t){e.open&&!Re(e).isPersistent()?e.open=!1:(fa(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:va,mouseleave:ba(pa),focus:va,blur:ba(0)};function wa(e){var t=e.currentTarget;J(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function _a(e){var t=e.currentTarget;J(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function xa(e){var t=e.currentTarget;"hover"===t.respondsTo&&ba(pa)(t)}function Ca(e){J(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",wa),e.removeEventListener("mouseleave",_a),e.removeEventListener("blur",xa),"hover"===e.respondsTo&&(J(e).set("mouse-inside",!1),e.addEventListener("mouseenter",wa),e.addEventListener("mouseleave",_a),e.addEventListener("blur",xa))}function ka(e,t){return`${e}.nested-layer-${t}`}function Ta(e){return Re(e).show(),!0===Re(e).isVisible()}function Da(e){return Re(e).hide(),!1===Re(e).isVisible()}function Ea(e){return"hover"!==e.respondsTo}function Aa(e){return"dialog"!==e.getAttribute("role")}function Sa(e){e.__initialised||(Re(e),i(e).on({[`${be}show`]:function(e){const t=this;e.target===t&&(!function(e){let t=i(e);const n=e.id,s=e=>t.find(X(e.target)).length<1;i(document).on(ka("aui-layer-show",n),(e=>{s(e)||t.attr("persistent","")})).on(ka("aui-layer-hide",n),(e=>{s(e)||t.removeAttr("persistent")})).on(ka("select2-opening",n),(()=>{t.attr("persistent","")})).on(ka("select2-close",n),(()=>{setTimeout((()=>{t.removeAttr("persistent")}),150)}))}(t),te(t,(function(e){Ea(t)&&fe().enter(i(t),i(e)),ga(t,e),Aa(t)&&e.setAttribute("aria-expanded","true")})))},[`${be}hide`]:function(e){const t=this;var n;e.target===t&&(n=t.id,i(document).off(ka("aui-layer-hide",n)).off(ka("aui-layer-show",n)).off(ka("select2-opening",n)).off(ka("select2-close",n)),t.ownerDocument.body.contains(t)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(t):ma(t),te(t,(function(e){Ea(t)&&fe().exit(i(t)),Aa(t)&&e.setAttribute("aria-expanded","false")})),ee(t,null))}}),e.__initialised=!0)}const Ma={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},Na=Z("aui-inline-dialog",{prototype:{get open(){return Re(this).isVisible()},set open(e){this.__propUpdate=!0,e?Ta(this):Da(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){Xr.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=Ma.attribute;return Xr.computeEnumValue(Ma,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;Xr.setEnumAttribute(this,Ma,e),t!==this.respondsTo&&Ca(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&&ya[i.type](t,i),this}},attributes:{open:function(e,t){if(Sa(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){Ta(e)||Jr(e,"open",!1)}if("removed"===t.type){Da(e)||Jr(e,"open",!0)}}},"responds-to":function(e,t){Xr.computeEnumValue(Ma,t.oldValue)!==Xr.computeEnumValue(Ma,t.newValue)&&Ca(e)}},created:Sa,attached:function(e){rr(e).attributeExists("id"),e.setAttribute("tabindex",0),Aa(e)&&(e.setAttribute("role","group"),te(e,(function(t){t.setAttribute("aria-expanded",e.open)})),ie(e,(function(e){e.setAttribute("aria-haspopup","true")}))),Ca(e)},detached:function(e){xn(e).then((()=>{ma(e),Aa(e)&&ie(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)}});G("aui/inline-dialog2",Na),l("InlineDialog2",Na);const Ia=Na;function Oa(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(e,t){return new Oa(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(){La(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){La(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}Oa.prototype.isNested=function(){return 1===this.$treeParent.length},Oa.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Oa.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},Oa.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},Oa.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const La=ge("navigation",Oa),Pa=Z("aui-nav",{type:Z.type.CLASSNAME,attached:function(e){new Oa(e)},detached:function(e){i(e).removeData()}});l("navigation",La);const Ra=La,$a="aui-progress-indicator-after-update",ja="aui-progress-indicator-before-update",Fa="transitionend webkitTransitionEnd";function za(e,t,{currentProgress:n,value:s}){const r=i(e),a=i(t);"number"==typeof s&&s<=1&&s>=0&&(a.trigger(ja,[n,s]),r.one(Fa,(function(){a.trigger($a,[n,s])})),function(e,t,i){U(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(r,a,s))}function Ha(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),U(t),n.css("width","")}const Ba={indeterminate:!1,max:1,val:0};function Ua(e){return(0,gt.isNumber)(e)&&(0,gt.isFinite)(e)&&!(0,gt.isNaN)(e)}function Wa(e,t=1){const i=parseFloat(e);return Ua(i)?i:Number(t)}function Va(e,t=1){return Number(parseFloat(e).toFixed(t))}function Ya(e){const{val:t,max:i}=e,n=function(e){return e>0?e:Ba.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),r=Va(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:Va(100*r,2)}}function qa(e){const{val:t,valAsFraction:i,max:n}=Ya(e._data),s=e.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),Ha(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),za(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function Ka(e,t){e._data.val=Wa(t.newValue,t.oldValue||Ba.val),qa(e)}function Qa(e,t){e._data.max=Wa(t.newValue,t.oldValue||Ba.max),qa(e)}const Ga=Z("aui-progressbar",{template(e){e._data.max=Wa(e.getAttribute("max"),Ba.max),e._data.val=Wa(e.getAttribute("value"),Ba.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=Ya(e._data),r=e._data.indeterminate?"":`data-value="${n}"`;e.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${t}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(e){qa(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:Ba.val,fallback:function(e,t){if(e._updating)return!1;Ka(e,t)}},max:{value:Ba.max,fallback:function(e,t){if(e._updating)return!1;Qa(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,gt.defaults)({},Ba))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,qa(this)},get value(){const{val:e}=Ya(this._data);return e},set value(e){if(!Ua(e))return!1;const t={newValue:Va(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,Ka(this,t)},get max(){const{max:e}=Ya(this._data);return e},set max(e){if(!Ua(e))return!1;const t={newValue:Va(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,Qa(this,t)}}}),Za={update:P((function(e,t){if("string"==typeof e){let t=document.getElementById(e);t&&(e=t)}var n=i(e).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===t;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),za(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:P(Ha,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",Za);const Ja=Za;r(473);const Xa={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function eo(e,t){let n=Object.assign({},Xa,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 to={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){const t=e.split("-"),i=t[0],n=t[1],s="..........",r="000000";let a=(i+s).slice(0,s.length);return a+=(r+n).slice(-r.length),a},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(e,t,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(e,t,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each((function(){eo(i(this))}))},setTableSortable:function(e,t){return eo(e,t)}};i(to.setup),l("tablessortable",to);function io(e,t=""){var n=i(e),s=t||!1;n.each((function(){var e=i(this);e.attr("id")||e.attr("id",En(s))}))}l("_addID",io);const no=io;function so(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}l("isClipped",so);const ro=so;var ao=window.skateTemplateHtml,oo="_internal-aui-tabs-",lo='.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])';function co(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function uo(e){let t=co(e);return t?document.getElementById(t):null}var ho={totalTabsWidth:function(e,t){var i=this.totalVisibleTabWidth(e),n=0;return t.find("li").each((function(e,t){n+=parseInt(t.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(e){var t=0;return e.each((function(e,n){t+=i(n).outerWidth()})),t},removeResponsiveDropdown:function(e,t){e.remove(),t.remove()},createResponsiveDropdownTrigger:function(e,t){var i=`<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-${t}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${t}"\n href="#aui-tabs-responsive-dropdown-${t}">...</a>\n </li>`;return e.append(i),e.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(e,t){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+t+'"><ul></ul></div>';return e.append(i),e.find("#aui-tabs-responsive-dropdown-"+t)},findNewVisibleTabs:function(e,t,n){function s(e,t,i){return e+t<=i}for(var r=0,a=0;s(r,n,t)&&a<e.length;a++){r+=i(e[a]).outerWidth(!0)}return e.slice(0,a-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=e.length-1;l>=o;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(a)},moveTabToResponsiveDropdown:function(e,t,i){var n=e.find("a");e.attr("data-aui-tab-width",e.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),e.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),t.find("ul").prepend(e)},moveInvisibleTabs:function(e,t,n){function s(e){return e>0}for(var r=0;s(t)&&r<e.length;r++){var a=i(e[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<t&&this.moveTabOutOfDropdown(a,n),t-=o}},moveTabOutOfDropdown:function(e,t){e.find("a").hasClass("aui-dropdown2-checked")&&(e.addClass("active-tab"),t.removeClass("active-tab")),e.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),t.before(e)}};function po(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=uo(t);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=t.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),t.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),t.hasClass("aui-tabs-responsive-item")){var o=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}t.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),t.closest(".tabs-menu").find("a").attr("aria-selected","false"),t.attr("aria-selected","true"),t.trigger("tabSelect",{tab:t,pane:s})}else m("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",e)}}function fo(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function go(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return oo+(t||"")+(i&&"true"!==i?"-"+i:"")}function mo(e){xo.change(i(e.target).closest("a")),e&&e.preventDefault()}function vo(e){e.forEach((function(e,t){!function(e,t){var n=i(e),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=ho.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=ho.createResponsiveDropdownTrigger(s,t),c=ho.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=ho.moveVisibleTabs(r.toArray(),n,a),p=ho.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");ho.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",mo),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){ho.moveTabOutOfDropdown(i(this),a)})),ho.removeResponsiveDropdown(c,a))}(e,t)}))}function bo(){return i(lo).toArray()}function yo(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=uo(t),co(e)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(no(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")):g("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",mo),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(_o)}(e)}}function wo(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each((function(){yo(this)})),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(fo(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(go(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&po(a)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function _o(e){e.setAttribute("role","tabpanel")}var xo={setup:function(){!function(){const e=(0,gt.debounce)(vo,200);e(bo()),i(window).on("resize.aui-tabs",(()=>e(bo())))}(),wo(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var e=i(this);e.attr("title")||ro(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");po(n),fo(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=co(e);i&&window.localStorage.setItem(go(t),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(xo.setup);const Co=Z("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),Z.init(e),yo(e)},template:ao('<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&&xo.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),ko=Z("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:ao('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),To=Z("aui-tabs-pane",{attached:function(e){var t=i(function(e){return i(e).closest("aui-tabs").get(0)}(e)),n=i(e),s=t.find("aui-tabs-pane").index(n),r=new ko,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+e.id),ao.wrap(r).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&a.addClass("active-tab"),n.siblings("ul").append(r)},template:ao("<content></content>")});l("tabs",xo);const Do="_aui-form-notification-initialised",Eo="aria-describedby",Ao="description",So="errors",Mo="data-aui-notification-",No=Mo+"wait",Io=Mo+"info",Oo=Mo+"error",Lo=[Oo,Mo+"success",No,Io];function Po(e){Ro(e)||(!function(e){e.addClass(Do),$o(e)}(e),zo(e))}function Ro(e){return e.hasClass(Do)}function $o(e,t){if(t=t||jo(e),Fo(e)===Io){e.parent().find(".description").length||e.after(function(e,t){const i=e.attr("id")||e.attr("name");if(t.length>1){let e=t.map((e=>`<li>${e}</li>`)).join("");return`<div class="description" id="${i}-${Ao}"><ul>${e}</ul></div>`}return`<div class="description" id="${i}-${Ao}">${t}</div>`}(e,t))}Ho(e)}function jo(e){var t=Fo(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 Fo(e){let t;return Lo.some((function(i){if(e.is("["+i+"]"))return t=i,!0})),t}function zo(e){const t=i(e);if(!Ro(t))return;const n=Fo(t);Wo(t,n===No);const s=jo(t);s&&n===Oo?Bo(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(Oo)||t.parent().find(".error").remove()}function Ho(e){const t=[],i=e.attr("id")||e.attr("name"),n=Fo(e);jo(e)&&n===Oo&&t.push(`${i}-${So}`),Uo(e,"description").length&&t.push(`${i}-${Ao}`);const s=function(e){const t={"aui-select":'input[type="text"][role="combobox"]'};for(let[i,n]of Object.entries(t))if(e.is(i)){const t=e.find(n);if(t.length)return t}return e}(e);s.attr(Eo,t.length?t.join(" "):null)}function Bo(e,t){let i=Uo(e,"error");i.length>0&&i.remove(),e.after(function(e,t){const i=e.attr("id")||e.attr("name"),n=t.map((e=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification"></span>${e}</li>`)).join("");return`<div class="error" role="alert" id="${i}-${So}"><ul>${n}</ul></div>`}(e,t)),Ho(e)}function Uo(e,t){return e.parent().find(`.${t}`)}function Wo(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 Vo=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});Z("data-aui-notification-field",{attached:function(e){Vo(),Po(i(e))},attributes:function(){const e={};return Lo.forEach((function(t){e[t]=zo})),e}(),type:Z.type.ATTRIBUTE}),G("aui/form-notification");var Yo=["displayfield","watchfield","when","novalidate","state"],qo=[];var Ko={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,Yo);return n&&(t=e),n})),t}(e);if(s)return g('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+e.join("],[data-aui-validation-")+"]"}var r={validatorFunction:t,validatorTrigger:n};return qo.push(r),r},validators:function(){return qo}};G("aui/form-validation/validator-register",Ko);const Qo=Ko;function Go(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=il("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=il("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=il("maxlength",e.args);e.invalidate(t)}else e.validate()}function Zo(e){return"password"===e.getAttribute("type")}function Jo(e,t){var i=e.match(t);return!!i&&e===i[0]}function Xo(e){var t=il("pattern",e.args);Jo(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function el(e){var t=il("required",e.args);e.el.value?e.validate():e.invalidate(t)}function tl(e){var t=il("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(il("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(il("max",e.args)):e.validate()}}function il(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:nl[e];var s=i;i||(s=[t(e)]);var r,a=t(e+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}Qo.register(["maxlength","minlength"],Go),Qo.register("[maxlength],[minlength]",Go),Qo.register(["matchingfield"],(function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=il("matchingfield",e.args,[t,n]);(Zo(e.el)||Zo(i))&&(s=il("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()})),Qo.register(["doesnotcontain"],(function(e){var t=il("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)})),Qo.register(["pattern"],Xo),Qo.register("[pattern]",Xo),Qo.register(["required"],el),Qo.register("[required]",el),Qo.register(["min","max"],tl),Qo.register("[min],[max]",tl),Qo.register(["dateformat"],(function(e){var t=e.args("dateformat"),i=il("dateformat",e.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=t.split(""),r="";s.forEach((function(e){var t=n.hasOwnProperty(e);r+=t?n[e]:e}));var a=new RegExp(r+"$","i");Jo(e.el.value,a)?e.validate():e.invalidate(i)})),Qo.register(["minchecked","maxchecked"],(function(e){var t=i(e.el).find(":checked").length,n=!e.args("minchecked")||t>=e.args("minchecked"),s=!e.args("maxchecked")||t<=e.args("maxchecked"),r=il("minchecked",e.args),a=il("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(a):e.invalidate(r)}));var nl={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")};G("aui/form-validation/basic-validators");const sl="aui-validation-",rl="data-aui-notification-",al="aui-validation-state",ol="invalid",ll="valid",cl="validating",ul="unvalidated",dl="_aui-form-validation-initialised",hl="_aui-internal-field-state-changed";function pl(e){(function(e){return e.hasClass(dl)})(e)||(!function(e){e.addClass(dl),$o(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=gl(e,"when"),i=gl(e,"watchfield"),n=i?e.add("#"+i):e;n.on(t,(function(){fl(e)}))}(e)}(e),bl(e,ul))}function fl(e){if(!gl(e,"novalidate"))return function(e){!function(e){yl(_l(e),"none")}(e);var t=function(e){var t=[];return ml().forEach((function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)})),t}(e);bl(e,cl);var n=function(e,t){var n=[];return t.forEach((function(t){var s=ml()[t].validatorFunction,r=new i.Deferred,a=function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){bl(e,ol,i),t.reject()},args:vl(e),el:e[0],$el:e};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,r);s(a),n.push(r)})),n}(e,t),s=i.when.apply(i,n);return s.done((function(){bl(e,ll)})),s}(e);bl(e,ll)}function gl(e,t){var i=e.attr("data-"+sl+t);return i||(i={when:"change"}[t]),i}function ml(){return Qo.validators()}function vl(e){return function(t){return e.attr("data-"+sl+t)||e.attr(t)}}function bl(e,t,n){if(e.attr("data-"+al,t),e.attr("aria-invalid",!1),t!==ul){e.trigger(i.Event(hl));var s=_l(e),r={};r[cl]="wait",r[ol]="error",r[ll]="success";var a=r[t];t===cl?function(e){setTimeout((function(){xl(e)===cl&&(yl(e,"wait"),Wo(e,!0))}),500)}(e):yl(s,a,n),t===ol&&e.attr("aria-invalid",!0)}}function yl(e,t,i){const n=function(e){return e.is("["+rl+"wait]")}(e);!function(e){wl(e,"wait"),Wo(e,!1),wl(e,"success")}(e);var s,r;if(!("success"===t&&!n))if("none"===t)wl(e,"error");else{const n=e.attr(rl+t)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];e.attr(rl+t,JSON.stringify(a)),"error"===t&&Bo(e,a)}}function wl(e,t){e.removeAttr(rl+t),"error"===t&&(Uo(e,t).remove(),Ho(e))}function _l(e){var t=gl(e,"displayfield");return void 0===t?e:i("#"+t)}function xl(e){return e.attr("data-"+al)}function Cl(e,t){t.preventDefault(),e.one(hl,(function(){e.trigger("submit")}))}function kl(e,t){var i="[data-"+al+"="+t+"]";return e.find(i)}i(document).on("submit",(function(e){var t=e.target,n=i(t),s=function(e){var t=e.find("."+dl);return o=t,n=i.map(o,(function(e){return xl(i(e))})),s=-1!==n.indexOf(ol),r=-1!==n.indexOf(ul),a=-1!==n.indexOf(cl),s?ol:r?ul:a?cl:ll;var n,s,r,a;var o}(n);if(s===ul)Cl(n,e),function(e){var t=kl(e,ul);t.each((function(e,t){Tl.validate(i(t))}))}(n);else if(s===cl)Cl(n,e);else if(s===ol)e.preventDefault(),function(e){var t=kl(e,ol).first();t.focus()}(n);else if(s===ll){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&e.preventDefault()}}));const Tl={register:Qo.register,validate:function(e){fl(e=i(e))}};Z("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),pl(i(e)),Z.init(e)},type:Z.type.ATTRIBUTE}),G("aui/form-validation",Tl),l("formValidation",Tl);var Dl=P((function(e,t){var i,n;return function(){var s=arguments,r=this;return clearTimeout(i),i=setTimeout((function(){n=e.apply(r,s),r=s=null}),t),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const El=Dl;l("debounce",Dl),l("debounceImmediate",P((function(e,t){var i,n=null;return function(){var s=this,r=arguments;return null===n&&(i=e.apply(s,r)),clearTimeout(n),n=setTimeout((function(){n=s=r=null}),t),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const Al=i(window);function Sl(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)})}Sl.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,Al.on("resize",this._resizeHandler=El((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(){Al.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}`,Z.init(t);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,Z.init(n),t.appendChild(n);var s=function(e){var t=document.createElement("a");return t.setAttribute("class","aui-dropdown2-trigger"),t.setAttribute("href","#"),t.id=e.id+"-trigger",t.setAttribute("aria-controls",e.id),t.innerHTML=I18n.getText("aui.words.more"),t}(t);return e.appendChild(s),e.appendChild(t),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(e):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(e),this.moreMenuWidth=i(e).outerWidth(!0),i(e)},moveOutOfResponsiveDropdown:function(e){if(!(e<=0)){for(var t=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+e,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}t.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=Ge().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,r=n;r>=s;r--){var a=this.menuItems[r].$element,o=a.children("a");Z.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const e=Array.from(o.get(0).classList).filter((e=>!e.startsWith("aui-")));l.setAttribute("extra-classes",e.join(" "))}Z.init(l),Ge().wrap(l).textContent=o.text(),a.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new ve("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const Ml=function(e){let t=e._header;return t instanceof Sl||(t=new Sl(e),t.init(),e._header=t),t};function Nl(){i(".aui-header").each((function(){Ml(this)}))}i(Nl);const Il={};Il.setup=P(Nl,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),l("responsiveheader",Il);const Ol=Z("aui-header-end",{type:Z.type.ELEMENT,created:function(e){const t=e.parentElement;t&&t.classList.contains("aui-header")?Ml(t):console.log("Could not async. initialise aui-header")}});var Ll=r(207),Pl=r.n(Ll);const Rl=({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:t||n.attr("max"),minDate:e||n.attr("min"),nextText:">",onSelect:function(e){n.val(e),n.trigger("change"),r(),s&&s.call(this,e)},onChangeMonthYear:a,prevText:"<"}),$l=(e,t)=>{let n,s,r,a=!1;const o=i("body"),l=t=>{let n=i(t.target),r=n.closest(s).length||n.is(e),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||t.keyCode===Q.ESCAPE)return h(),void(a=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:e})=>(n=(({horizontalAlignment:e,datePickerUUID:t})=>{const n=new Ia;n.id=t;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${e}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(e=>e.offset().left<window.innerWidth/2?"left":"right")(e),datePickerUUID:t}),r=e.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",(e=>{a&&e.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),e.off("focus click",u),e.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),e.on("focusout keydown",c)}}},jl=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=$l(t,s),g=e=>{i(e.currentTarget).val()&&r.datepicker("setDate",t.val())},m=t.attr("placeholder"),v=t.prop("type");let b;{const i=e=>t=>{if(void 0!==r)return e(t)},n=i((()=>{r.datepicker("destroy")}));e.show=l,e.hide=c,e.destroyPolyfill=()=>{h(),t.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&t.attr("placeholder",m),v&&t.prop("type",v),t.removeAttr("data-aui-dp-uuid"),n(),delete e.destroyPolyfill,delete e.show,delete e.hide},e.setDate=i((e=>{r.datepicker("setDate",e)})),e.getDate=i((()=>r.datepicker("getDate"))),e.setMin=i((e=>r.datepicker("option","minDate",e))),e.setMax=i((e=>r.datepicker("option","maxDate",e)))}n.languageCode in Fl.prototype.localisations||(n.languageCode="");const y=Fl.prototype.localisations;if(t.attr("aria-controls",s),void 0===r){void 0!==t.attr("step")&&f("WARNING: The date picker polyfill currently does not support the step attribute!");const s=Rl({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(e),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),t.append(a)),r})({config:o,popupContents:a({$field:t}),getCalendarNode:d,hint:n.hint}),p(),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 Fl(e,t){let n={};const s=En("date-picker"),r=i(e),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const e=!Fl.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&jl(a)},reconfigure:e=>{n=i.extend(void 0,Fl.prototype.defaultOptions,e),a.reset()}};return a.reconfigure(t),a}function zl(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}Fl.prototype.browserSupportsDateField=function(){if(void 0===Lt){var e=document.createElement("input");e.setAttribute("type","date"),Lt="date"===e.type}return Lt}(),Fl.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:Pl().W3C},Fl.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 Hl="aui-datepicker",Bl=e=>function(t){let i=this.data(Hl);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(Hl,i)),i};i.fn.datePicker=Bl(Fl),l("DatePicker",Fl),i.fn.calendarWidget=Bl(zl),l("CalendarWidget",zl);const Ul=Fl;r(251),r(993),r(927),r(757),r(940);const Wl={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"},Vl=mr().View,Yl=mr().View,ql=mr().View,Kl={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};r(562);const Ql={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"},Gl='<aui-spinner size="small"></aui-spinner>',Zl="aui-spinner";function Jl(e){0===e.find(Zl).length&&e.find(`.${Wl.STATUS}`).append(Gl)}function Xl(e){e.find(`.${Wl.STATUS} ${Zl}`).remove()}var ec=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const tc=mr().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=Ql,this.classNames=Wl,this.dataKeys=Kl,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 ec&&(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 ec&&(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 Jl(this.$el),this},hideLoading:function(){return Xl(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var e=this.$el;return e.serializeObject?e.serializeObject():e.serialize()},mapSubmitParams:function(e){return this.model.changedAttributes(e)},submit:function(e){var t,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,e):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(e,t,i){400===i.status&&(n.renderErrors(t.errors),n.trigger(n._event.VALIDATION_ERROR,t.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return i("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var t=this;return this.$("."+this.classNames.ERROR).remove(),e&&i.each(e,(function(e,i){t.$el.find("[name='"+e+"']").closest("td").append(t.renderError(e,i))})),this},render:function(e){var t=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),i.each(this.columns,(function(n,s){var r,a,o=e.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},e.values,t.model];o&&t.$el.attr("data-"+s.id,o),r=t.isCreateRow&&s.createView?new s.createView({model:t.model}).render(l[0]):s.editView?new s.editView({model:t.model}).render(l[0]):t.defaultColumnRenderer.apply(t,l),a=i("<td />"),"object"==typeof r&&r.done?r.done((function(e){a.append(e)})):a.append(r),s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)})),this.$el.append(this.renderOperations(e.update,e.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,e.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=i('<td class="aui-restfultable-operations" />');return e?t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),t.add(i(`<td class="${this.classNames.STATUS}" />`))}}),ic=document||{},nc=i(ic);function sc(e,t){nc.trigger(e,t)}function rc(e,t,n){i(t).trigger(e,n),sc(e,n),t.id&&sc(t.id+"-"+e,n)}var ac=mr().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)},mr().sync.apply(mr(),arguments)},save:function(e,t){var n,s=this,r=(t=t||{}).error,a=t.success;t.error=function(e,t){var n=i.parseJSON(t.responseText||t.data);r&&r.call(s,s,n,t)},this.isNew()?mr().Model.prototype.save.call(this,e,t):e&&((n=new(ac.extend({url:this.url()}))({id:this.id})).save=mr().Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),a&&a.call(s,s,t)},n.save(e,t))},destroy:function(e){e=e||{};var t=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:e.data||{},contentType:"application/json",success(i){t.collection&&t.collection.remove(t),e.success&&e.success.call(t,i)},error(i){t._serverErrorHandler(i,this),e.error&&e.error.call(t,i)}}),this},changedAttributes:function(e){var t={},n=this.toJSON();if(i.each(e,(function(e,s){n[e]?n[e]&&n[e]!==s&&("object"==typeof s&&(0,gt.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,gt.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),rc(Ql.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),mr().Model.prototype.fetch.call(this,e)}});const oc=ac,lc=mr().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=Ql,this.classNames=Wl,this.dataKeys=Kl,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 Jl(this.$el),this},hideLoading:function(){return Xl(this.$el),this},edit:function(e){var t;return t=i(e.target).is("."+this.classNames.EDITABLE)?i(e.target).attr("data-field-name"):i(e.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,t),this},renderOperations:function(){var e=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(t){t.preventDefault(),e.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let e=this.deleteConfirmationCallback(this.model.toJSON());if(!e||!e.then)throw new Error("deleteConfirmationCallback needs to return a Promise");e.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var e=this,t=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},t)),s=i(`<td class="${this.classNames.STATUS}" />`);return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,(function(n,s){var r,a=i("<td />"),o=t[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},t,e.model];if(o&&e.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:e.model}).render(c[0]):e.defaultColumnRenderer.apply(e,c),!1!==e.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(e.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(e.$el),r&&i.trim(r)||(a.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(e.$el)})),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,t),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var cc=mr().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=Ql,t.classNames=Wl,t.dataKeys=Kl,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&&(g("You have not specified [header] for column ["+e.id+"]. Using id for now..."),n=e.id),t.$theadRow.append("<th>"+n+"</th>")})),t.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(e){t.focusedRow&&t.focusedRow.trigger(t._event.SAVE),e.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(e,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(t.classNames.MOVEABLE);return n.children().each((function(){var e=i(this),t=parseInt(0+e.css("border-left-width"),10),n=parseInt(0+e.css("border-right-width"),10),r=e[0].clientWidth+t+n;s.append(i("<div/>").html(e.html()).attr("class",e.attr("class")).width(r))})),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(e,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(t.classNames.MOVEABLE).children().each((function(e){i(this).width(r.eq(e).width())}));var a='<td colspan="'+t.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),t.getRowFromElement(n.item[0]).trigger(t._event.MODAL)},stop:function(e,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(t.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(t.classNames.ROW),t.getRowFromElement(n.item[0]).trigger(t._event.MODELESS))},update:function(e,i){var n={row:t.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};t.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(e){return!i(e.target).is("."+t.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return t.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(e){void 0===t.options.addPosition&&"bottom"===t.options.createPosition||"bottom"===t.options.addPosition?t.addRow(e):t.addRow(e,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(t._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=i('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(e){t.getRows().forEach((function(i){i.model===e&&(i.hasFocus()&&t._createRow&&t._createRow.trigger(t._event.FOCUS),t.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var e=this;i.isFunction(this.options.resources.all)?this.options.resources.all((function(t){e.populate(t)})):i.get(this.options.resources.all,(function(t){e.populate(t)}))},move:function(e){var t=this,n=function(e){return e.length?{after:t.getRowFromElement(e).model.url()}:{position:"First"}};if(e.row){var s=t.options.reverseOrder?n(e.nextItem):n(e.prevItem);i.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){e.row.hideLoading()},success:function(e){rc(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var n=i.parseJSON(e.responseText||e.data);rc(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(),mr().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]),rc(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">'+Gl+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(),rc(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),rc(this._event.ROW_REMOVED,this,[e,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var e=2;return this.allowReorder&&++e,this.options.columns.length+e},getRowFromElement:function(e){return i(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var e=this,t=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var n=i(this).data(e.dataKeys.ROW_VIEW);n&&t.push(n)})),t},_renderRow:function(e,t){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:e,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(e){rc(this._event.EDIT_ROW,{},[this,s]),s.edit(this,e)})),i=n.render().$el,-1!==t&&("number"==typeof t&&0!==r.length?i.insertBefore(r[t]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach((function(e){s.isRowBeingEdited(e)||e.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach((function(e){s.isRowBeingEdited(e)||e.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(e){var t=!1;return this.editRows.some((function(i){if(i.el===e.el)return t=!0,!0})),t},_applyFocusCoordinator:function(e){var t=this;return e.hasFocusBound||(e.hasFocusBound=!0,e.on(this._event.FOCUS,(function(){t.focusedRow&&t.focusedRow!==e&&t.focusedRow.trigger(t._event.BLUR),t.focusedRow=e,e instanceof lc&&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||oc,allowEdit:!0,views:{editRow:tc,row:lc},Collection:mr().Collection.extend({url:e.resources.self,model:e.model||oc}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});cc.ClassNames=Wl,cc.CustomCreateView=Vl,cc.CustomEditView=Yl,cc.CustomReadView=ql,cc.DataKeys=Kl,cc.EditRow=tc,cc.EntryModel=oc,cc.Events=Ql,cc.Row=lc,l("RestfulTable",cc);const uc=cc;function dc(e){return i(e).clone().removeAttr("id")}l("clone",dc);const hc=dc;var pc=window.DocumentTouch;const fc="ontouchstart"in window||pc&&document instanceof pc;function gc(e,t,i,n){e.find(`[${n}]`).attr(n,((e,n)=>t===n?i:void 0))}function mc(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){gc(e,t,i,"aria-controls"),gc(e,t,i,"aria-owns")}(n,i.id,s),i.id=s}))}function vc(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 bc(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(i),!0).forEach((function(t){yc(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):vc(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function yc(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function wc(e){return e.offset().top}function _c(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 Tc,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);Mc(e,n)}))})(e),fc&&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(xc+(e.isCollapsed()?"collapse-end":"expand-end")))}));e.$el.on("click",".aui-sidebar-toggle",(function(t){t.preventDefault(),e.toggle()})),i(".aui-page-panel").on("click",(function(){!e.isCollapsed()&&e.isViewportNarrow()&&e.collapse()}));var s=function(t){a(t)&&e.toggle()};function r(e){return e.keyCode===Q.TAB&&!e.shiftKey&&!e.altKey}function a(e){return!(e.which!==Q.LEFT_SQUARE_BRACKET||e.shiftKey||e.ctrlKey||e.metaKey||(t=e.target,"value"in t||t.isContentEditable));var t}function o(e){return e.keyCode===Q.TAB&&e.shiftKey}function l(e,t){return e===t.find(":aui-tabbable")[0]}function c(e,t){return e===t.find(":aui-tabbable").last()[0]}function u(e){e.attr("persistent",""),e.find(":aui-tabbable").first().focus(),setTimeout((function(){e.removeAttr("persistent")}),100)}i(document).on("keypress",s),e._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},e.$el.on("touchend",(function(t){e.isCollapsed()&&(e.expand(),t.preventDefault())})),e.$el.tooltip(bc(bc({},Ic),{},{live:e.collapsedTriggersSelector,suppress:function(){const t=i(this),n=!1===e.isCollapsed();return!0===Ac(t)||n}})),e.$el.tooltip(bc(bc({},Ic),{},{aria:!1,live:e.toggleSelector,title:function(){return e.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}})),e.$el.on("keydown",e.collapsedTriggersSelector,(function(t){if(e.isCollapsed()){var n=t.target,s=Ec(n);if(!s)return;var a=i(s);r(t)&&s.open&&(t.preventDefault(),u(a),a.on("keydown",(function(e){(o(e)&&l(e.target,a)||r(e)&&c(e.target,a))&&(n.focus(),i(this).off("keydown"),Sc())})))}}))}(this),function(e){i(e.collapsedTriggersSelector).each((function(){var t=i(this);Mc(e,t)}))}(this))}var xc="_aui-internal-sidebar-";function Cc(e){return i.map(e.split(" "),(function(e){return xc+e})).join(" ")}function kc(){return document.querySelectorAll(_c.prototype.inlineDialogSelector)}function Tc(){this.inlineDialog=null}function Dc(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function Ec(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function Ac(e){return 0!==Dc(e).length}function Sc(){var e=kc();Array.prototype.forEach.call(e,(function(e){e.open=!1}))}function Mc(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),Ac(t))){var n=document.createElement("aui-inline-dialog"),s=En("sidebar-submenu");return t.attr("aria-controls",s),t.attr("data-aui-trigger",""),Z.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(_c.prototype.inlineDialogClass),document.body.appendChild(n),Z.init(n),function(e,t,n){n.addEventListener("aui-layer-show",(function(s){if(e.isCollapsed()){if(!function(e){return"AUI-INLINE-DIALOG"!==e.target.tagName}(s)&&!function(e){return!e.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");t.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(e,t){e.addClass("active"),t.innerHTML=Nc;var n=e.is("a")?e.text():e.children(".aui-nav-heading").text(),s=i(t).find(".aui-navgroup-inner");s.children(".aui-nav-heading").attr("title",n).children("strong").text(n);var r=Dc(e);function a(e){const t=hc(e);return mc(t,En),t.hasClass("aui-expander-content")&&(t.find(".aui-expander-cutoff").remove(),t.removeClass("aui-expander-content")),t}a(r).appendTo(s)}(t,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(e){e.removeClass("active")}(t)}))}(e,t,n),n}}_c.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=Cc(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},_c.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=Cc(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},_c.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},_c.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>wc(this.$el)),this},_c.prototype.setPosition=P(_c.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),_c.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},_c.prototype.setCollapsedState=function(e){var t={collapsed:{},expanded:{}};t.collapsed.narrow={narrow:i.noop,wide:function(t){t._expand(e,!0)}},t.collapsed.wide={narrow:i.noop,wide:i.noop},t.expanded.narrow={narrow:i.noop,wide:function(e){e.$body.removeClass("aui-sidebar-collapsed"),e.$el.removeClass("aui-sidebar-fly-out")}},t.expanded.wide={narrow:function(e){e._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(e)?"narrow":"wide";return t[n][s][r](this),this},_c.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(xc+"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(xc+"collapse-end",{isResponsive:e}))),this},_c.prototype.collapse=function(){return this._collapse(!1)},_c.prototype._expand=function(e,t){var n=i.Event(xc+"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(xc+"expand-end",{isResponsive:t})),this},_c.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},_c.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},_c.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},_c.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},_c.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)},_c.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=wc(this.$el),a=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);o||!a&&l||(this.setHeight(e,t,r),this.setTopPosition(e))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=e,this._previousViewportHeight=t,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},_c.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.collapse.tooltip"))):(this.collapse(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.expand.tooltip"))),this},_c.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",_c.prototype.collapsedTriggersSelector=[_c.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),_c.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",_c.prototype.tooltipClassName="aui-sidebar-section-tooltip",_c.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",_c.prototype.inlineDialogSelector="."+_c.prototype.inlineDialogClass,Tc.prototype.submenu=function(e){return Lc(),Dc(e)},Tc.prototype.hasSubmenu=function(e){return Lc(),Ac(e)},Tc.prototype.submenuHeadingHeight=function(){return Lc(),34},Tc.prototype.isShowing=function(){return Lc(),_c.prototype.isSubmenuVisible()},Tc.prototype.show=function(e,t){Lc(),function(e){Ec(e).open=!0}(t)},Tc.prototype.hide=function(){Lc(),Sc()},Tc.prototype.inlineDialogShowHandler=function(){Lc()},Tc.prototype.inlineDialogHideHandler=function(){Lc()},Tc.prototype.moveSubmenuToInlineDialog=function(){Lc()},Tc.prototype.restoreSubmenu=function(){Lc()},_c.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(kc(),(function(e){return e.open}))},_c.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const Nc='<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 Ic={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 Oc=ge("sidebar",_c);i((function(){Oc(".aui-sidebar")}));var Lc=O("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});l("sidebar",Oc);const Pc=Oc;r(42),r(529);const Rc=2600;function $c(e){var t={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(e){e.keyCode===Q.ESCAPE&&n.is(":visible")&&l.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=Rc;i(".aui-dialog").each((function(){var e=i(this);s=e.css("z-index")>s?e.css("z-index"):s}));var r=function t(i,r){return e.width=i=i||e.width,e.height=r=r||e.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),t}(e.width,e.height);i("body").append(n),n.hide(),h(n);var a=i(".aui-blanket"),o=function(e,t){var n=i(e,t);return!!n.length&&(n.focus(),!0)},l={changeSize:function(t,i){(t&&t!=e.width||i&&i!=e.height)&&r(t,i),this.show()},show:function(){var t=function(){i(document).off("keydown",e.keypressListener).on("keydown",e.keypressListener),V(),0!==(a=i(".aui-blanket")).length&&e.closeOnOutsideClick&&a.on("click",(function(){n.is(":visible")&&l.hide()})),n.show(),$c.current=this,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))}}(n),i(document).trigger("showLayer",["popup",this])};t.call(this),this.show=t},hide:function(){i(document).unbind("keydown",e.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&Y();var t=document.activeElement;this.element.has(t).length&&t.blur(),i(document).trigger("hideLayer",["popup",this]),$c.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 l}var jc=function(){function e(e,t,n,s){e.buttonpanel||e.addButtonPanel(),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<button></button>").html(t).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function t(e,t,n,s,r){e.buttonpanel||e.addButtonPanel(),r||(r="#"),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<a></a>").html(t).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function n(e,t){var i="left"==e?-1:1;return function(e){var n=this.page[t];if(this.id!=(1==i?n.length-1:0)){i*=e||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==t&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(e){return function(){this.page[e].splice(this.id,1);for(var t=0,i=this.page[e].length;t<i;t++)this.page[e][t].id=t;this.item.remove()}}e.prototype.moveUp=e.prototype.moveLeft=n("left","button"),e.prototype.moveDown=e.prototype.moveRight=n("right","button"),e.prototype.remove=s("button"),e.prototype.html=function(e){return this.item.html(e)},e.prototype.onclick=function(e){let t=this;if(void 0===e)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===e.call(this,t.page.dialog,t.page,i)},"function"==typeof e&&this.item.click(this._onclick)};var r=function(e,t,n,s,r){n instanceof i||(n=i(n)),this.dialog=e.dialog,this.page=e,this.id=e.panel.length,this.button=i("<button></button>").html(t).addClass("item-button"),r&&(this.button[0].id=r),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",e.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var a=e.panel.length,o=this;e.menu.append(this.item),e.body.append(this.body),e.panel[a]=this;var l=function(){var t;e.curtab+1&&((t=e.panel[e.curtab]).body.hide(),t.item.removeClass("selected"),"function"==typeof t.onblur&&t.onblur()),e.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof e.ontabchange&&e.ontabchange(o,t)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?e.menu.css("display","none"):e.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(e){return e?(this.body.html(e),this):this.body.html()},r.prototype.setPadding=function(e){return isNaN(+e)||(this.body.css("padding",+e),this.padding=+e,this.page.recalcSize()),this};var a=function(e,t){this.dialog=e,this.id=e.page.length,this.element=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<ul></ul>").addClass("dialog-page-menu").css("height",e.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],t&&this.body.addClass(t),e.popup.element.append(this.element.append(this.menu).append(this.body)),e.page[e.page.length]=this};function o(e,t,n){var s={};+e||(e=(s=Object(e)).width,t=s.height,n=s.id),this.height=t||480,this.width=e||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=$c(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var e=this.header?62:0,t=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-e-t;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(e,t,i,n){return new r(this,e,t,i,n),this.recalcSize(),this},a.prototype.addHeader=function(e,t){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(e||"").addClass("dialog-title"),t&&this.header.addClass(t),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},a.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(e,t){return this.page[this.curpage].addHeader(e,t),this},o.prototype.addButton=function(e,t,i){return this.page[this.curpage].addButton(e,t,i),this},o.prototype.addLink=function(e,t,i,n){return this.page[this.curpage].addLink(e,t,i,n),this},o.prototype.addSubmit=function(e,t){return this.page[this.curpage].addButton(e,t,"button-panel-submit-button"),this},o.prototype.addCancel=function(e,t){return this.page[this.curpage].addLink(e,t,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(e,t,i,n){return this.page[this.curpage].addPanel(e,t,i,n),this},o.prototype.addPage=function(e){return new a(this,e),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(e){return this.page[this.curpage].hide(),this.curpage=e,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(e,t){var i=null==t?this.curpage:e;return null==t&&(t=e),this.page[i].panel[t]},o.prototype.getPage=function(e){return this.page[e]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(e,t){if(null!=t){var i=e.id||e;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===t?e:t)},o.prototype.show=function(){return this.popup.show(),T("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),T("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),T("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(e){var t=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(e+"").replace(r,(function(e,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&t.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&t.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&t.push(d[h][n][r]),"header"==n&&d[h].header&&t.push(d[h].header)}else t=t.concat(d)}));for(var a={length:t.length},o=t.length;o--;)for(var l in a[o]=t[o],t[o])l in a||function(e){a[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var e=0,t=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>e&&(e=Math.min(t,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:e||this.height});this.page[0].menu.height(e),this.height=e+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();jc=R(jc,"Dialog constructor",{alternativeName:"Dialog2"}),$c=R($c,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",jc),l("popup",$c);const Fc=!1;var zc=-1!==navigator.platform.indexOf("Mac"),Hc=-1!==navigator.userAgent.indexOf("Safari"),Bc=/^(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 Uc=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 Wc(e){var t=[],n=i.Callbacks();function s(e){!$c.current&&n&&n.fire(e)}function r(e){e.preventDefault()}function a(e){(e&&e.split?i.trim(e).split(" "):[e]).forEach((function(e){!function(e){var n=e instanceof Array?e:function(e){var t=[],i="";for(;e.length;){var n=e.match(/^(ctrl|meta|shift|alt)\+/i),s=e.match(Bc);n?(i+=n[0],e=e.substring(n[0].length)):s?(t.push(i+s[0]),e=e.substring(s[0].length),i=""):(t.push(i+e[0]),e=e.substring(1),i="")}return t}(e.toString()),a=function(e){var t=e.length;for(;t--;)if(e[t].length>1&&"space"!==e[t])return!0;return!1}(n)?"keydown":"keypress";t.push(n),i(document).on(a,Fc,n,s),i(document).on(a+" keyup",Fc,n,r)}(e)}))}function o(e,t,i,n){var s="(",r=")";return n&&n.workaroundJaws&&(s="",r=""),i?t+=" "+s+I18n.getText("aui.keyboard.shortcut.type.x",e.shift()):(t=t.replace(/\)$/,""),t+=" "+I18n.getText("aui.keyboard.shortcut.or.x",e.shift())),e.forEach((function(e){t+=" "+I18n.getText("aui.keyboard.shortcut.then.x",e)})),t+=r}return a(e),Wc.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",r=t.slice(),a=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=n.data("kbShortcutAppendedScreenReader")||"",u=n.attr("aria-label"),d=!l,h=!c,p=d?s:s.substring(0,s.length-l.length),f=h?s:u.substring(0,u.length-c.length);r.length;){var g=r.shift();a.some((function(e){return(0,gt.isEqual)(g,e)}))||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}zc&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧"),c=c.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",p+l),n.attr("aria-label",f+c),n.data("kbShortcutAppended",l),n.data("kbShortcutAppendedScreenReader",c),n.data("boundKeyCombos",a.concat(t))},removeShortcutsFromTitle:function(e){var t=i(e),n=t.data("kbShortcutAppended");if(n){var s=t.attr("title");t.attr("title",s.replace(n,"")),t.attr("aria-label",s.replace(n,"")),t.removeData("kbShortcutAppended"),t.removeData("kbShortcutAppendedScreenReader"),t.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}Wc.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,r=e.removeShortcutsFromTitle,a=e.keypressHandler,o=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return t.add((function(){const t=i(n);let s=t.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(e){e.keyCode===Q.ESCAPE&&s&&s.removeClass(r)})),s.length&&s.removeClass(r),s=e(s,t,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())})),this}}return{moveToNextItem:c((function(e,t,n){var s;return n&&0===e.length?t.eq(0):(s=i.inArray(e.get(0),t))<t.length-1?(s+=1,t.eq(s)):n?t.eq(0):e})),moveToPrevItem:c((function(e,t,n){var s;return n&&0===e.length?t.filter(":last"):(s=i.inArray(e.get(0),t))>0?(s-=1,t.eq(s)):n?t.filter(":last"):e})),click:function(e){return l.push(e),s(e),t.add((function(){const t=i(e);Uc(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&&(Uc(t),t.moveTo())})),this},moveToAndFocus:function(e){return l.push(e),s(e),t.add((function(t){var n=i(e);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&t.preventDefault())})),this},or:function(e){return n(e),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var e=0,t=l.length;e<t;e++)r(l[e]);l=[]}}},Wc.fromJSON=function(e,t){var n=[];return e&&i.each(e,(function(e,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(e){m("When using a parameter array, array must be in strict JSON format: "+a)}i.isArray(o)||m("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];i.each(s.keys,(function(){var e=this;t&&zc&&(e=i.map(e,(function(e){return e.replace(/ctrl/i,"meta")})));var s=Wc(e);s[r].apply(s,o),n.push(s)}))})),n},i(document).on("iframeAppended",(function(e,t){i(t).load((function(){i(t).contents().on("keyup keydown keypress",(function(e){Hc&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)}))}))})),l("whenIType",Wc);const Vc=Wc,{FocusManager:Yc,InlineDialog2:qc,LayerManager:Kc,ProgressiveDataSet:Qc,clone:Gc,debounce:Zc,debounceImmediate:Jc,dim:Xc,escapeHtml:eu,formValidation:tu,id:iu,isClipped:nu,keyCode:su,layer:ru,messages:au,populateParameters:ou,params:lu,responsiveheader:cu,select:uu,tablessortable:du,tabs:hu,undim:pu,_addID:fu}=window.AJS,{contextPath:gu}=window.AJS})(),a})()));
104
104
  //# sourceMappingURL=aui-prototyping.nodeps.js.map