@atlassian/aui 10.0.2 → 10.0.3

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 v10.0.2
3
+ * @version v10.0.3
4
4
  * @link https://aui.atlassian.com
5
5
  * @license Apache-2.0
6
6
  * @author Atlassian Pty Ltd.
@@ -101,5 +101,5 @@
101
101
  /**!
102
102
  * Modified by Atlassian.
103
103
  */
104
- !function(t){"use strict";t.extend({tablesorter:new function(){var e=this;function i(){var t=arguments[0],e=arguments.length>1?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function n(t,e){i(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function s(t){for(var e in t)return!1;return!0}function r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?t(n).attr(a.textAttribute)||n.textContent||n.innerText||t(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=e.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||t(n).text()||"",t.trim(l)}function a(t,n,s,a){for(var o,l=e.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(t,c=n[s].cells[a],a),t.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=e.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,t,c))return o;return e.getParserById("text")}function o(t){var s,r,o,l,c,u,d,h,p,f,g=t.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=e.getColumnData(t,g.headers,l),p=e.getParserById(e.getData(c,u,"extractor")),h=e.getParserById(e.getData(c,u,"sorter")),d="false"===e.getData(c,u,"parser"),g.empties[l]=(e.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top")).toLowerCase(),g.strings[l]=(e.getData(c,u,"string")||g.stringTo||"max").toLowerCase(),d&&(h=e.getParserById("no-parser")),p||(p=!1),h||(h=a(t,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,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&&e.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=t(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(e.css.cssHasChild),v.child[o]=t.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==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&&e.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=t(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=e.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);e.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||e.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(t){return/^d/i.test(t)||1===t}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=e.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===e.css.icon?e.css.icon:f.cssIcon+" "+e.css.icon)+'"></i>':"",f.$headers=t(s).find(f.selectorHeaders).each((function(i){a=t(this),r=e.getColumnData(s,f.headers,i,!0),f.headerContent[i]=t(this).html(),""!==f.headerTemplate&&(c=f.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,t(this).html()),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),t(this).html('<div class="'+e.css.headerIn+'">'+c+"</div>")),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(t(this).attr("data-column"),10),this.order=u(e.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=e.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(e.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(e.css.headerRow+" "+f.cssHeaderRow),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(t,e,i){var n=t.config;n.$table.find(n.selectorRemove).remove(),o(t),l(t),y(n.$table,e,i)}function p(i){var n,s,r,a=i.config;a.$headers.each((function(o,l){s=t(l),r=e.getColumnData(i,a.headers,o,!0),n="false"===e.getData(l,r,"sorter")||"false"===e.getData(l,r,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))}))}function f(i){var n,s,r,a=i.config,o=a.sortList,l=o.length,c=e.css.sortNone+" "+a.cssNone,u=[e.css.sortAsc+" "+a.cssAsc,e.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=t(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each((function(){var i=t(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],s=i.text()+": "+e.language[i.hasClass(e.css.sortAsc)?"sortAsc":i.hasClass(e.css.sortDesc)?"sortDesc":"sortNone"]+e.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(t,e){return t&&t[e]&&t[e].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout((function(){m(i,n,s)}),50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&t(this).is("."+e.css.sortDesc+",."+e.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=e.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(e.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(t){var i,r,a,o,l,c,u,d,h,p,f=0,m=t.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=t.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort((function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],t):e["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,t)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,t):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,t):e["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,t,m)),d)return d}return n[m.columns].order-s[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(e,i){var n=e[0];n.isUpdating&&e.trigger("updateComplete",n),t.isFunction(i)&&i(e[0])}function y(t,i,n){var s=t[0].config.sortList;!1!==i&&!t[0].isProcessing&&s.length?t.trigger("sorton",[s,function(){b(t,n)},!0]):(b(t,n),e.applyWidget(t[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(e,s){e.stopPropagation(),n.sortList=[],f(i),v(i),c(i),t.isFunction(s)&&s(i)})).bind("updateAll"+n.namespace,(function(t,s,r){t.stopPropagation(),i.isUpdating=!0,e.refreshWidgets(i,!0,!0),e.restoreHeaders(i),d(i),e.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(t,e,n){t.stopPropagation(),i.isUpdating=!0,p(i),h(i,e,n)})).bind("updateCell"+n.namespace,(function(e,s,o,l){e.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=t(s),g=p.index(t.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=t.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?r(i,s,h):n.extractors[h].format(r(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(e,l,c,u){if(e.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=t(l)).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(e,i){var n,s,r,a,o,l=e.config,c=i||l.sortList;l.sortList=[],t.each(c,(function(e,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===e?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=t.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),e.applyWidget(i),t.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(e,n,s){e.stopPropagation(),c(i,s),t.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(e,s){n.parsers&&n.parsers.length||o(i),l(i),t.isFunction(s)&&s(i)})).bind("applyWidgetId"+n.namespace,(function(t,s){t.stopPropagation(),e.getWidgetById(s).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(t,n){t.stopPropagation(),e.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(t,n,s){t.stopPropagation(),e.refreshWidgets(i,n,s)})).bind("destroy"+n.namespace,(function(t,n,s){t.stopPropagation(),e.destroy(i,n,s)})).bind("resetToLoadState"+n.namespace,(function(){e.refreshWidgets(i,!0,!0),n=t.extend(!0,e.defaults,n.originalSettings),i.hasInitialized=!1,e.setup(i,n)}))}e.version="2.17.8",e.parsers=[],e.widgets=[],e.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},e.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},e.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},e.log=i,e.benchmark=n,e.construct=function(i){return this.each((function(){var n=this,s=t.extend(!0,{},e.defaults,i);s.originalSettings=i,!n.hasInitialized&&e.buildTable&&"TABLE"!==this.tagName?e.buildTable(n,s):e.setup(n,s)}))},e.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var r=new RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`);var a,c=[];for(var u of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var h=s[u];h&&(a=h,!r.test(a))&&(c.push(u),i(`ERROR: ${u} must contain only valid CSS class names but is '${h}'`))}if(c.length>0)return s.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var p,g="",m=t(n),v=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,t.data(n,"tablesorter",s),s.debug&&t.data(n,"startoveralltimer",new Date),s.supportsDataObject=((p=t.fn.jquery.split("."))[0]=parseInt(p[0],10),p[0]>1||1===p[0]&&parseInt(p[1],10)>=4),s.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},s.emptyTo=s.emptyTo.toLowerCase(),s.stringTo=s.stringTo.toLowerCase(),/tablesorter\-/.test(m.attr("class"))||(g=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=m.addClass(e.css.table+" "+s.tableClass+g),s.$headers=m.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"),s.$tbodies=m.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(e){var i,n,s=e.config;s.widthFixed&&0===s.$table.find("colgroup").length&&(i=t("<colgroup>"),n=t(e).width(),t(e.tBodies).not("."+s.cssInfoBlock).find("tr:first").children(":visible").each((function(){i.append(t("<col>").css("width",parseInt(t(this).width()/n*1e3,10)/10+"%"))})),s.$table.prepend(i))}(n),o(n),s.totalRows=0,s.delayInit||l(n),e.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==m.data().sortlist?s.sortList=m.data().sortlist:v&&m.metadata()&&m.metadata().sortlist&&(s.sortList=m.metadata().sortlist),e.applyWidget(n,!0),s.sortList.length>0?m.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&e.applyWidget(n,!1)),s.showProcessing&&m.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,(function(t){clearTimeout(s.processTimer),e.isProcessing(n),"sortBegin"===t.type&&(s.processTimer=setTimeout((function(){e.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&e.benchmark("Overall initialization time",t.data(n,"startoveralltimer")),m.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},e.getColumnData=function(e,i,n,s){if(null!=i){var r,a=(e=t(e)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},e.computeColumnIndex=function(e){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<e.length;i++)for(l=e[i].cells,n=0;n<l.length;n++){for(o=l[n],a=t(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},e.isProcessing=function(i,n,s){var r=(i=t(i))[0].config,a=s||i.find("."+e.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&e.isValueInArray(parseFloat(t(this).attr("data-column")),r.sortList)>=0}))),i.add(a).addClass(e.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(e.css.processing+" "+r.cssProcessing)},e.processTbody=function(e,i,n){var s;if(e=t(e)[0],n)return e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=t.fn.detach?i.detach():i.remove();s=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),e.isProcessing=!1},e.clearTableBody=function(e){t(e)[0].config.$tbodies.children().detach()},e.bindEvents=function(e,i,n){var r,a=(e=t(e)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(e),c=t.fn.closest?t(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:t(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(e,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},e.restoreHeaders=function(i){var n=t(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){t(this).find("."+e.css.headerIn).length&&t(this).html(n.headerContent[i])}))},e.destroy=function(i,n,s){if((i=t(i)[0]).hasInitialized){e.refreshWidgets(i,!0,!0);var r=t(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+e.css.headerRow).removeClass(e.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&t.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([e.css.header,a.cssHeader,a.cssAsc,a.cssDesc,e.css.sortAsc,e.css.sortDesc,e.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),e.restoreHeaders(i),r.toggleClass(e.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},e.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},e.sortNatural=function(t,i){if(t===i)return 0;var n,s,r,a,o,l,c,u,d=e.regex;if(d.hex.test(i)){if((s=parseInt(t.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},e.sortNaturalAsc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:e.sortNatural(t,i)},e.sortNaturalDesc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:e.sortNatural(i,t)},e.sortText=function(t,e){return t>e?1:t<e?-1:0},e.getTextValue=function(t,e,i){if(i){var n,s=t?t.length:0,r=i+e;for(n=0;n<s;n++)r+=t.charCodeAt(n);return e*r}return 0},e.sortNumericAsc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),t-i)},e.sortNumericDesc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),i-t)},e.sortNumeric=function(t,e){return t-e},e.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},e.replaceAccents=function(t){var i,n="[",s=e.characterEquivalents;if(!e.characterRegex){for(i in e.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],e.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));e.characterRegex=new RegExp(n+"]")}if(e.characterRegex.test(t))for(i in s)"string"==typeof i&&(t=t.replace(e.characterRegexArray[i],i));return t},e.isValueInArray=function(t,e){var i,n=e.length;for(i=0;i<n;i++)if(e[i][0]===t)return i;return-1},e.addParser=function(t){var i,n=e.parsers.length,s=!0;for(i=0;i<n;i++)e.parsers[i].id.toLowerCase()===t.id.toLowerCase()&&(s=!1);s&&e.parsers.push(t)},e.getParserById=function(t){if("false"==t)return!1;var i,n=e.parsers.length;for(i=0;i<n;i++)if(e.parsers[i].id.toLowerCase()===t.toString().toLowerCase())return e.parsers[i];return!1},e.addWidget=function(t){e.widgets.push(t)},e.hasWidget=function(e,i){return(e=t(e)).length&&e[0].config&&e[0].config.widgetInit[i]||!1},e.getWidgetById=function(t){var i,n,s=e.widgets.length;for(i=0;i<s;i++)if((n=e.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===t.toLowerCase())return n},e.applyWidget=function(i,s){var r,a,o,l=(i=t(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=t.grep(l.widgets,(function(e,i){return t.inArray(e,l.widgets)===i})),t.each(l.widgets||[],(function(t,i){(o=e.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[t]=o)})),u.sort((function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1})),t.each(u,(function(e,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=t.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))}))),setTimeout((function(){i.isApplyingWidgets=!1}),0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},e.refreshWidgets=function(n,s,r){var a,o=(n=t(n)[0]).config,l=o.widgets,c=e.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||t.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&e.applyWidget(n,s)},e.getData=function(e,i,n){var s,r,a="",o=t(e);return o.length?(s=!!t.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),t.trim(a)):""},e.formatFloat=function(e,i){return"string"!=typeof e||""===e?e:(e=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(e),isNaN(n)?t.trim(e):n);var n},e.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),e.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=t.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var n,s=t?t.split("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return t?e.formatFloat(r,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},parsed:!0,type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,n,s){if(t){var r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||e.getData(a,e.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return t(n).metadata()[r]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u=new RegExp(n.cssChildRow,"i"),d=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<d.length;c++)a=0,d.eq(c).children("tr:visible").not(n.selectorRemove).each((function(){r=t(this),u.test(this.className)||a++,o=a%2==0,r.removeClass(s.zebra[o?1:0]).addClass(s.zebra[o?0:1])}));n.debug&&e.benchmark("Applying Zebra widget",l)},remove:function(e,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=t.tablesorter.processTbody(e,a.eq(s),!0)).children().removeClass(o),t.tablesorter.processTbody(e,r,!1)}})}(jQuery)},682:()=>{jQuery.fn.serializeObject=function(){var t={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each((function(){""!==this.name&&(null===this.value&&(this.value=""),t[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)})),this.find("input:radio:checked").each((function(){t[this.name]=this.value})),this.find("select[multiple]").each((function(){var e=jQuery(this),i=e.val();e.data("aui-ss")?t[this.name]=i?i[0]:"":t[this.name]=null!==i?i:[]})),t}},687:e=>{"use strict";e.exports=t},171:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0});var n="1.13.7",s="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g||Function("return this")()||{},r=Array.prototype,a=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,l=r.push,c=r.slice,u=a.toString,d=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,f=Array.isArray,g=Object.keys,m=Object.create,v=h&&ArrayBuffer.isView,b=isNaN,y=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function C(t,e){return e=null==e?t.length-1:+e,function(){for(var i=Math.max(arguments.length-e,0),n=Array(i),s=0;s<i;s++)n[s]=arguments[s+e];switch(e){case 0:return t.call(this,n);case 1:return t.call(this,arguments[0],n);case 2:return t.call(this,arguments[0],arguments[1],n)}var r=Array(e+1);for(s=0;s<e;s++)r[s]=arguments[s];return r[e]=n,t.apply(this,r)}}function T(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function k(t){return null===t}function E(t){return void 0===t}function A(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)}function S(t){return!(!t||1!==t.nodeType)}function D(t){var e="[object "+t+"]";return function(t){return u.call(t)===e}}var I=D("String"),M=D("Number"),N=D("Date"),O=D("RegExp"),L=D("Error"),P=D("Symbol"),R=D("ArrayBuffer"),$=D("Function"),j=s.document&&s.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof j&&($=function(t){return"function"==typeof t||!1});var z=$,F=D("Object"),H=p&&(!/\[native code\]/.test(String(DataView))||F(new DataView(new ArrayBuffer(8)))),B="undefined"!=typeof Map&&F(new Map),U=D("DataView");var W=H?function(t){return null!=t&&z(t.getInt8)&&R(t.buffer)}:U,V=f||D("Array");function Y(t,e){return null!=t&&d.call(t,e)}var q=D("Arguments");!function(){q(arguments)||(q=function(t){return Y(t,"callee")})}();var K=q;function Q(t){return!P(t)&&y(t)&&!isNaN(parseFloat(t))}function G(t){return M(t)&&b(t)}function J(t){return function(){return t}}function Z(t){return function(e){var i=t(e);return"number"==typeof i&&i>=0&&i<=x}}function X(t){return function(e){return null==e?void 0:e[t]}}var tt=X("byteLength"),et=Z(tt),it=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var nt=h?function(t){return v?v(t)&&!W(t):et(t)&&it.test(u.call(t))}:J(!1),st=X("length");function rt(t,e){e=function(t){for(var e={},i=t.length,n=0;n<i;++n)e[t[n]]=!0;return{contains:function(t){return!0===e[t]},push:function(i){return e[i]=!0,t.push(i)}}}(e);var i=_.length,n=t.constructor,s=z(n)&&n.prototype||a,r="constructor";for(Y(t,r)&&!e.contains(r)&&e.push(r);i--;)(r=_[i])in t&&t[r]!==s[r]&&!e.contains(r)&&e.push(r)}function at(t){if(!T(t))return[];if(g)return g(t);var e=[];for(var i in t)Y(t,i)&&e.push(i);return w&&rt(t,e),e}function ot(t){if(null==t)return!0;var e=st(t);return"number"==typeof e&&(V(t)||I(t)||K(t))?0===e:0===st(at(t))}function lt(t,e){var i=at(e),n=i.length;if(null==t)return!n;for(var s=Object(t),r=0;r<n;r++){var a=i[r];if(e[a]!==s[a]||!(a in s))return!1}return!0}function ct(t){return t instanceof ct?t:this instanceof ct?void(this._wrapped=t):new ct(t)}function ut(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,tt(t))}ct.VERSION=n,ct.prototype.value=function(){return this._wrapped},ct.prototype.valueOf=ct.prototype.toJSON=ct.prototype.value,ct.prototype.toString=function(){return String(this._wrapped)};var dt="[object DataView]";function ht(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var s=typeof t;return("function"===s||"object"===s||"object"==typeof e)&&pt(t,e,i,n)}function pt(t,e,i,n){t instanceof ct&&(t=t._wrapped),e instanceof ct&&(e=e._wrapped);var s=u.call(t);if(s!==u.call(e))return!1;if(H&&"[object Object]"==s&&W(t)){if(!W(e))return!1;s=dt}switch(s){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return o.valueOf.call(t)===o.valueOf.call(e);case"[object ArrayBuffer]":case dt:return pt(ut(t),ut(e),i,n)}var r="[object Array]"===s;if(!r&&nt(t)){if(tt(t)!==tt(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,l=e.constructor;if(a!==l&&!(z(a)&&a instanceof a&&z(l)&&l instanceof l)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var c=(i=i||[]).length;c--;)if(i[c]===t)return n[c]===e;if(i.push(t),n.push(e),r){if((c=t.length)!==e.length)return!1;for(;c--;)if(!ht(t[c],e[c],i,n))return!1}else{var d,h=at(t);if(c=h.length,at(e).length!==c)return!1;for(;c--;)if(!Y(e,d=h[c])||!ht(t[d],e[d],i,n))return!1}return i.pop(),n.pop(),!0}function ft(t,e){return ht(t,e)}function gt(t){if(!T(t))return[];var e=[];for(var i in t)e.push(i);return w&&rt(t,e),e}function mt(t){var e=st(t);return function(i){if(null==i)return!1;var n=gt(i);if(st(n))return!1;for(var s=0;s<e;s++)if(!z(i[t[s]]))return!1;return t!==_t||!z(i[vt])}}var vt="forEach",bt=["clear","delete"],yt=["get","has","set"],wt=bt.concat(vt,yt),_t=bt.concat(yt),xt=["add"].concat(bt,vt,"has"),Ct=B?mt(wt):D("Map"),Tt=B?mt(_t):D("WeakMap"),kt=B?mt(xt):D("Set"),Et=D("WeakSet");function At(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=t[e[s]];return n}function St(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=[e[s],t[e[s]]];return n}function Dt(t){for(var e={},i=at(t),n=0,s=i.length;n<s;n++)e[t[i[n]]]=i[n];return e}function It(t){var e=[];for(var i in t)z(t[i])&&e.push(i);return e.sort()}function Mt(t,e){return function(i){var n=arguments.length;if(e&&(i=Object(i)),n<2||null==i)return i;for(var s=1;s<n;s++)for(var r=arguments[s],a=t(r),o=a.length,l=0;l<o;l++){var c=a[l];e&&void 0!==i[c]||(i[c]=r[c])}return i}}var Nt=Mt(gt),Ot=Mt(at),Lt=Mt(gt,!0);function Pt(t){if(!T(t))return{};if(m)return m(t);var e=function(){};e.prototype=t;var i=new e;return e.prototype=null,i}function Rt(t,e){var i=Pt(t);return e&&Ot(i,e),i}function $t(t){return T(t)?V(t)?t.slice():Nt({},t):t}function jt(t,e){return e(t),t}function zt(t){return V(t)?t:[t]}function Ft(t){return ct.toPath(t)}function Ht(t,e){for(var i=e.length,n=0;n<i;n++){if(null==t)return;t=t[e[n]]}return i?t:void 0}function Bt(t,e,i){var n=Ht(t,Ft(e));return E(n)?i:n}function Ut(t,e){for(var i=(e=Ft(e)).length,n=0;n<i;n++){var s=e[n];if(!Y(t,s))return!1;t=t[s]}return!!i}function Wt(t){return t}function Vt(t){return t=Ot({},t),function(e){return lt(e,t)}}function Yt(t){return t=Ft(t),function(e){return Ht(e,t)}}function qt(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 3:return function(i,n,s){return t.call(e,i,n,s)};case 4:return function(i,n,s,r){return t.call(e,i,n,s,r)}}return function(){return t.apply(e,arguments)}}function Kt(t,e,i){return null==t?Wt:z(t)?qt(t,e,i):T(t)&&!V(t)?Vt(t):Yt(t)}function Qt(t,e){return Kt(t,e,1/0)}function Gt(t,e,i){return ct.iteratee!==Qt?ct.iteratee(t,e):Kt(t,e,i)}function Jt(t,e,i){e=Gt(e,i);for(var n=at(t),s=n.length,r={},a=0;a<s;a++){var o=n[a];r[o]=e(t[o],o,t)}return r}function Zt(){}function Xt(t){return null==t?Zt:function(e){return Bt(t,e)}}function te(t,e,i){var n=Array(Math.max(0,t));e=qt(e,i,1);for(var s=0;s<t;s++)n[s]=e(s);return n}function ee(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ct.toPath=zt,ct.iteratee=Qt;var ie=Date.now||function(){return(new Date).getTime()};function ne(t){var e=function(e){return t[e]},i="(?:"+at(t).join("|")+")",n=RegExp(i),s=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(s,e):t}}var se={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},re=ne(se),ae=ne(Dt(se)),oe=ct.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},le=/(.)^/,ce={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ue=/\\|'|\r|\n|\u2028|\u2029/g;function de(t){return"\\"+ce[t]}var he=/^\s*(\w|\$)+\s*$/;function pe(t,e,i){!e&&i&&(e=i),e=Lt({},e,ct.templateSettings);var n=RegExp([(e.escape||le).source,(e.interpolate||le).source,(e.evaluate||le).source].join("|")+"|$","g"),s=0,r="__p+='";t.replace(n,(function(e,i,n,a,o){return r+=t.slice(s,o).replace(ue,de),s=o+e.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?r+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),e})),r+="';\n";var a,o=e.variable;if(o){if(!he.test(o))throw new Error("variable is not a bare identifier: "+o)}else r="with(obj||{}){\n"+r+"}\n",o="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{a=new Function(o,"_",r)}catch(t){throw t.source=r,t}var l=function(t){return a.call(this,t,ct)};return l.source="function("+o+"){\n"+r+"}",l}function fe(t,e,i){var n=(e=Ft(e)).length;if(!n)return z(i)?i.call(t):i;for(var s=0;s<n;s++){var r=null==t?void 0:t[e[s]];void 0===r&&(r=i,s=n),t=z(r)?r.call(t):r}return t}var ge=0;function me(t){var e=++ge+"";return t?t+e:e}function ve(t){var e=ct(t);return e._chain=!0,e}function be(t,e,i,n,s){if(!(n instanceof e))return t.apply(i,s);var r=Pt(t.prototype),a=t.apply(r,s);return T(a)?a:r}var ye=C((function(t,e){var i=ye.placeholder,n=function(){for(var s=0,r=e.length,a=Array(r),o=0;o<r;o++)a[o]=e[o]===i?arguments[s++]:e[o];for(;s<arguments.length;)a.push(arguments[s++]);return be(t,n,this,this,a)};return n}));ye.placeholder=ct;var we=C((function(t,e,i){if(!z(t))throw new TypeError("Bind must be called on a function");var n=C((function(s){return be(t,n,e,this,i.concat(s))}));return n})),_e=Z(st);function xe(t,e,i,n){if(n=n||[],e||0===e){if(e<=0)return n.concat(t)}else e=1/0;for(var s=n.length,r=0,a=st(t);r<a;r++){var o=t[r];if(_e(o)&&(V(o)||K(o)))if(e>1)xe(o,e-1,i,n),s=n.length;else for(var l=0,c=o.length;l<c;)n[s++]=o[l++];else i||(n[s++]=o)}return n}var Ce=C((function(t,e){var i=(e=xe(e,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var n=e[i];t[n]=we(t[n],t)}return t}));function Te(t,e){var i=function(n){var s=i.cache,r=""+(e?e.apply(this,arguments):n);return Y(s,r)||(s[r]=t.apply(this,arguments)),s[r]};return i.cache={},i}var ke=C((function(t,e,i){return setTimeout((function(){return t.apply(null,i)}),e)})),Ee=ye(ke,ct,1);function Ae(t,e,i){var n,s,r,a,o=0;i||(i={});var l=function(){o=!1===i.leading?0:ie(),n=null,a=t.apply(s,r),n||(s=r=null)},c=function(){var c=ie();o||!1!==i.leading||(o=c);var u=e-(c-o);return s=this,r=arguments,u<=0||u>e?(n&&(clearTimeout(n),n=null),o=c,a=t.apply(s,r),n||(s=r=null)):n||!1===i.trailing||(n=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(n),o=0,n=s=r=null},c}function Se(t,e,i){var n,s,r,a,o,l=function(){var c=ie()-s;e>c?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(o,r)),n||(r=o=null))},c=C((function(c){return o=this,r=c,s=ie(),n||(n=setTimeout(l,e),i&&(a=t.apply(o,r))),a}));return c.cancel=function(){clearTimeout(n),n=r=o=null},c}function De(t,e){return ye(e,t)}function Ie(t){return function(){return!t.apply(this,arguments)}}function Me(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}}function Ne(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Oe(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}}var Le=ye(Oe,2);function Pe(t,e,i){e=Gt(e,i);for(var n,s=at(t),r=0,a=s.length;r<a;r++)if(e(t[n=s[r]],n,t))return n}function Re(t){return function(e,i,n){i=Gt(i,n);for(var s=st(e),r=t>0?0:s-1;r>=0&&r<s;r+=t)if(i(e[r],r,e))return r;return-1}}var $e=Re(1),je=Re(-1);function ze(t,e,i,n){for(var s=(i=Gt(i,n,1))(e),r=0,a=st(t);r<a;){var o=Math.floor((r+a)/2);i(t[o])<s?r=o+1:a=o}return r}function Fe(t,e,i){return function(n,s,r){var a=0,o=st(n);if("number"==typeof r)t>0?a=r>=0?r:Math.max(r+o,a):o=r>=0?Math.min(r+1,o):r+o+1;else if(i&&r&&o)return n[r=i(n,s)]===s?r:-1;if(s!=s)return(r=e(c.call(n,a,o),G))>=0?r+a:-1;for(r=t>0?a:o-1;r>=0&&r<o;r+=t)if(n[r]===s)return r;return-1}}var He=Fe(1,$e,ze),Be=Fe(-1,je);function Ue(t,e,i){var n=(_e(t)?$e:Pe)(t,e,i);if(void 0!==n&&-1!==n)return t[n]}function We(t,e){return Ue(t,Vt(e))}function Ve(t,e,i){var n,s;if(e=qt(e,i),_e(t))for(n=0,s=t.length;n<s;n++)e(t[n],n,t);else{var r=at(t);for(n=0,s=r.length;n<s;n++)e(t[r[n]],r[n],t)}return t}function Ye(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=Array(s),a=0;a<s;a++){var o=n?n[a]:a;r[a]=e(t[o],o,t)}return r}function qe(t){return function(e,i,n,s){var r=arguments.length>=3;return function(e,i,n,s){var r=!_e(e)&&at(e),a=(r||e).length,o=t>0?0:a-1;for(s||(n=e[r?r[o]:o],o+=t);o>=0&&o<a;o+=t){var l=r?r[o]:o;n=i(n,e[l],l,e)}return n}(e,qt(i,s,4),n,r)}}var Ke=qe(1),Qe=qe(-1);function Ge(t,e,i){var n=[];return e=Gt(e,i),Ve(t,(function(t,i,s){e(t,i,s)&&n.push(t)})),n}function Je(t,e,i){return Ge(t,Ie(Gt(e)),i)}function Ze(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(!e(t[a],a,t))return!1}return!0}function Xe(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(e(t[a],a,t))return!0}return!1}function ti(t,e,i,n){return _e(t)||(t=At(t)),("number"!=typeof i||n)&&(i=0),He(t,e,i)>=0}var ei=C((function(t,e,i){var n,s;return z(e)?s=e:(e=Ft(e),n=e.slice(0,-1),e=e[e.length-1]),Ye(t,(function(t){var r=s;if(!r){if(n&&n.length&&(t=Ht(t,n)),null==t)return;r=t[e]}return null==r?r:r.apply(t,i)}))}));function ii(t,e){return Ye(t,Yt(e))}function ni(t,e){return Ge(t,Vt(e))}function si(t,e,i){var n,s,r=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:At(t)).length;o<l;o++)null!=(n=t[o])&&n>r&&(r=n);else e=Gt(e,i),Ve(t,(function(t,i,n){((s=e(t,i,n))>a||s===-1/0&&r===-1/0)&&(r=t,a=s)}));return r}function ri(t,e,i){var n,s,r=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:At(t)).length;o<l;o++)null!=(n=t[o])&&n<r&&(r=n);else e=Gt(e,i),Ve(t,(function(t,i,n){((s=e(t,i,n))<a||s===1/0&&r===1/0)&&(r=t,a=s)}));return r}var ai=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function oi(t){return t?V(t)?c.call(t):I(t)?t.match(ai):_e(t)?Ye(t,Wt):At(t):[]}function li(t,e,i){if(null==e||i)return _e(t)||(t=At(t)),t[ee(t.length-1)];var n=oi(t),s=st(n);e=Math.max(Math.min(e,s),0);for(var r=s-1,a=0;a<e;a++){var o=ee(a,r),l=n[a];n[a]=n[o],n[o]=l}return n.slice(0,e)}function ci(t){return li(t,1/0)}function ui(t,e,i){var n=0;return e=Gt(e,i),ii(Ye(t,(function(t,i,s){return{value:t,index:n++,criteria:e(t,i,s)}})).sort((function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index})),"value")}function di(t,e){return function(i,n,s){var r=e?[[],[]]:{};return n=Gt(n,s),Ve(i,(function(e,s){var a=n(e,s,i);t(r,e,a)})),r}}var hi=di((function(t,e,i){Y(t,i)?t[i].push(e):t[i]=[e]})),pi=di((function(t,e,i){t[i]=e})),fi=di((function(t,e,i){Y(t,i)?t[i]++:t[i]=1})),gi=di((function(t,e,i){t[i?0:1].push(e)}),!0);function mi(t){return null==t?0:_e(t)?t.length:at(t).length}function vi(t,e,i){return e in i}var bi=C((function(t,e){var i={},n=e[0];if(null==t)return i;z(n)?(e.length>1&&(n=qt(n,e[1])),e=gt(t)):(n=vi,e=xe(e,!1,!1),t=Object(t));for(var s=0,r=e.length;s<r;s++){var a=e[s],o=t[a];n(o,a,t)&&(i[a]=o)}return i})),yi=C((function(t,e){var i,n=e[0];return z(n)?(n=Ie(n),e.length>1&&(i=e[1])):(e=Ye(xe(e,!1,!1),String),n=function(t,i){return!ti(e,i)}),bi(t,n,i)}));function wi(t,e,i){return c.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))}function _i(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[0]:wi(t,t.length-e)}function xi(t,e,i){return c.call(t,null==e||i?1:e)}function Ci(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[t.length-1]:xi(t,Math.max(0,t.length-e))}function Ti(t){return Ge(t,Boolean)}function ki(t,e){return xe(t,e,!1)}var Ei=C((function(t,e){return e=xe(e,!0,!0),Ge(t,(function(t){return!ti(e,t)}))})),Ai=C((function(t,e){return Ei(t,e)}));function Si(t,e,i,n){A(e)||(n=i,i=e,e=!1),null!=i&&(i=Gt(i,n));for(var s=[],r=[],a=0,o=st(t);a<o;a++){var l=t[a],c=i?i(l,a,t):l;e&&!i?(a&&r===c||s.push(l),r=c):i?ti(r,c)||(r.push(c),s.push(l)):ti(s,l)||s.push(l)}return s}var Di=C((function(t){return Si(xe(t,!0,!0))}));function Ii(t){for(var e=[],i=arguments.length,n=0,s=st(t);n<s;n++){var r=t[n];if(!ti(e,r)){var a;for(a=1;a<i&&ti(arguments[a],r);a++);a===i&&e.push(r)}}return e}function Mi(t){for(var e=t&&si(t,st).length||0,i=Array(e),n=0;n<e;n++)i[n]=ii(t,n);return i}var Ni=C(Mi);function Oi(t,e){for(var i={},n=0,s=st(t);n<s;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i}function Li(t,e,i){null==e&&(e=t||0,t=0),i||(i=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/i),0),s=Array(n),r=0;r<n;r++,t+=i)s[r]=t;return s}function Pi(t,e){if(null==e||e<1)return[];for(var i=[],n=0,s=t.length;n<s;)i.push(c.call(t,n,n+=e));return i}function Ri(t,e){return t._chain?ct(e).chain():e}function $i(t){return Ve(It(t),(function(e){var i=ct[e]=t[e];ct.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),Ri(this,i.apply(ct,t))}})),ct}Ve(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=r[t];ct.prototype[t]=function(){var i=this._wrapped;return null!=i&&(e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0]),Ri(this,i)}})),Ve(["concat","join","slice"],(function(t){var e=r[t];ct.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Ri(this,t)}}));var ji=$i({__proto__:null,VERSION:n,restArguments:C,isObject:T,isNull:k,isUndefined:E,isBoolean:A,isElement:S,isString:I,isNumber:M,isDate:N,isRegExp:O,isError:L,isSymbol:P,isArrayBuffer:R,isDataView:W,isArray:V,isFunction:z,isArguments:K,isFinite:Q,isNaN:G,isTypedArray:nt,isEmpty:ot,isMatch:lt,isEqual:ft,isMap:Ct,isWeakMap:Tt,isSet:kt,isWeakSet:Et,keys:at,allKeys:gt,values:At,pairs:St,invert:Dt,functions:It,methods:It,extend:Nt,extendOwn:Ot,assign:Ot,defaults:Lt,create:Rt,clone:$t,tap:jt,get:Bt,has:Ut,mapObject:Jt,identity:Wt,constant:J,noop:Zt,toPath:zt,property:Yt,propertyOf:Xt,matcher:Vt,matches:Vt,times:te,random:ee,now:ie,escape:re,unescape:ae,templateSettings:oe,template:pe,result:fe,uniqueId:me,chain:ve,iteratee:Qt,partial:ye,bind:we,bindAll:Ce,memoize:Te,delay:ke,defer:Ee,throttle:Ae,debounce:Se,wrap:De,negate:Ie,compose:Me,after:Ne,before:Oe,once:Le,findKey:Pe,findIndex:$e,findLastIndex:je,sortedIndex:ze,indexOf:He,lastIndexOf:Be,find:Ue,detect:Ue,findWhere:We,each:Ve,forEach:Ve,map:Ye,collect:Ye,reduce:Ke,foldl:Ke,inject:Ke,reduceRight:Qe,foldr:Qe,filter:Ge,select:Ge,reject:Je,every:Ze,all:Ze,some:Xe,any:Xe,contains:ti,includes:ti,include:ti,invoke:ei,pluck:ii,where:ni,max:si,min:ri,shuffle:ci,sample:li,sortBy:ui,groupBy:hi,indexBy:pi,countBy:fi,partition:gi,toArray:oi,size:mi,pick:bi,omit:yi,first:_i,head:_i,take:_i,initial:wi,last:Ci,rest:xi,tail:xi,drop:xi,compact:Ti,flatten:ki,without:Ai,uniq:Si,unique:Si,union:Di,intersection:Ii,difference:Ei,unzip:Mi,transpose:Mi,zip:Ni,object:Oi,range:Li,chunk:Pi,mixin:$i,default:ct});ji._=ji,e.VERSION=n,e._=ji,e._escape=re,e._unescape=ae,e.after=Ne,e.allKeys=gt,e.before=Oe,e.bind=we,e.bindAll=Ce,e.chain=ve,e.chunk=Pi,e.clone=$t,e.compact=Ti,e.compose=Me,e.constant=J,e.contains=ti,e.countBy=fi,e.create=Rt,e.debounce=Se,e.defaults=Lt,e.defer=Ee,e.delay=ke,e.difference=Ei,e.each=Ve,e.every=Ze,e.extend=Nt,e.extendOwn=Ot,e.filter=Ge,e.find=Ue,e.findIndex=$e,e.findKey=Pe,e.findLastIndex=je,e.findWhere=We,e.first=_i,e.flatten=ki,e.functions=It,e.get=Bt,e.groupBy=hi,e.has=Ut,e.identity=Wt,e.indexBy=pi,e.indexOf=He,e.initial=wi,e.intersection=Ii,e.invert=Dt,e.invoke=ei,e.isArguments=K,e.isArray=V,e.isArrayBuffer=R,e.isBoolean=A,e.isDataView=W,e.isDate=N,e.isElement=S,e.isEmpty=ot,e.isEqual=ft,e.isError=L,e.isFinite=Q,e.isFunction=z,e.isMap=Ct,e.isMatch=lt,e.isNaN=G,e.isNull=k,e.isNumber=M,e.isObject=T,e.isRegExp=O,e.isSet=kt,e.isString=I,e.isSymbol=P,e.isTypedArray=nt,e.isUndefined=E,e.isWeakMap=Tt,e.isWeakSet=Et,e.iteratee=Qt,e.keys=at,e.last=Ci,e.lastIndexOf=Be,e.map=Ye,e.mapObject=Jt,e.matcher=Vt,e.max=si,e.memoize=Te,e.min=ri,e.mixin=$i,e.negate=Ie,e.noop=Zt,e.now=ie,e.object=Oi,e.omit=yi,e.once=Le,e.pairs=St,e.partial=ye,e.partition=gi,e.pick=bi,e.pluck=ii,e.property=Yt,e.propertyOf=Xt,e.random=ee,e.range=Li,e.reduce=Ke,e.reduceRight=Qe,e.reject=Je,e.rest=xi,e.restArguments=C,e.result=fe,e.sample=li,e.shuffle=ci,e.size=mi,e.some=Xe,e.sortBy=ui,e.sortedIndex=ze,e.tap=jt,e.template=pe,e.templateSettings=oe,e.throttle=Ae,e.times=te,e.toArray=oi,e.toPath=zt,e.union=Di,e.uniq=Si,e.uniqueId=me,e.unzip=Mi,e.values=At,e.where=ni,e.without=Ai,e.wrap=De,e.zip=Ni},126:(t,e,i)=>{var n=i(171);t.exports=n._}},i={};function n(t){var s=i[t];if(void 0!==s)return s.exports;var r=i[t]={exports:{}};return e[t].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.r(s),n.d(s,{$:()=>Rt,AvatarBadged:()=>Bt,AvatarEl:()=>Jt,AvatarGroupEl:()=>le,CalendarWidget:()=>yc,DatePicker:()=>xc,DropdownEl:()=>Xn,FancyFileInput:()=>_s,FocusManager:()=>Cu,Header:()=>hc,I18n:()=>I18n,InlineDialog2:()=>Tu,InlineDialogEl:()=>uo,ItemButtonEl:()=>Qn,ItemCheckboxEl:()=>Gn,ItemLinkEl:()=>Kn,ItemRadioEl:()=>Jn,LabelEl:()=>ks,LayerManager:()=>ku,MessageEl:()=>ds,NavigationEl:()=>fo,ProgressBarEl:()=>Do,ProgressiveDataSet:()=>Eu,RestfulTable:()=>Wc,SectionEl:()=>Zn,SelectEl:()=>ur,SpinnerEl:()=>ye,TabContainerEl:()=>el,TabItemEl:()=>il,TabPaneEl:()=>nl,ToggleEl:()=>Wa,_addID:()=>Vu,banner:()=>ue,bind:()=>C,clone:()=>Au,contextPath:()=>Yu,debounce:()=>Su,debounceImmediate:()=>Du,dialog2:()=>De,dim:()=>Iu,error:()=>m,escapeHtml:()=>Mu,flag:()=>ys,formValidation:()=>Nu,format:()=>b,id:()=>Ou,isClipped:()=>Lu,keyCode:()=>Pu,layer:()=>Ru,log:()=>f,messages:()=>$u,navigation:()=>go,params:()=>zu,populateParameters:()=>ju,progressBars:()=>Mo,responsiveheader:()=>Fu,select:()=>Hu,sidebar:()=>hu,tablessortable:()=>Bu,tabs:()=>Uu,toInit:()=>jt,trigger:()=>k,unbind:()=>T,undim:()=>Wu,version:()=>w,warn:()=>g,whenIType:()=>xu});var t=n(687),e=n.n(t);const i=window.jQuery||window.Zepto||e(),r="AJS",a="I18n";function o(){"object"!=typeof window[r]&&(window[r]={})}function l(t,e){return o(),window[r][t]=e}var c=n(714),u=n.n(c);function d(t){let i;return{type:u().type.CLASSNAME,attached:function(n){!function(t,e){let i=!1;if(e((()=>{i=!0})),i)return;const n=new MutationObserver((t=>{(function(t){for(const e of t)if("childList"===e.type)return!0;return!1})(t)&&e((()=>n.disconnect()))}));n.observe(t,{childList:!0})}(n,(s=>{i=s;const r=e()(`input[type=${t}]`,n);r.each((function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)}));r.length>0&&i()}))},detached:function(t){e()(".aui-form-glyph",t).remove(),i&&i()}}}function h(t,e){var n=i(t);return void 0===e&&(e=!0),n.each((function(){this.disabled=!e}))}function p(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],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 t=i(this).siblings(".field-help");t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden")}))}));var f=p("log"),g=p("warn"),m=p("error");function v(t){var e=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(e,a){var o,l="";if(o=e.match(i))l=a.length>++e?a[e]:"";else if(o=e.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=e.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,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 "'+e+'" from message "'+t+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=v.apply(null,b)}}return l},o=function(t){for(var e=!1,i=-1,n=0,s=0;s<t.length;s++){var r=t.charAt(s);if("'"==r&&(e=!e),!e)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(t.substring(0,s+1)),a.push(t.substring(0,i)),a.push(t.substring(i+1,s)),a}}return null};return function(t){var i=arguments,n="";if(!t)return n;for(var s=o(t);s;)t=t.substring(s[0].length),n+=s[1].replace(e,""),n+=a(s[2],i),s=o(t);return n+=t.replace(e,"")}.apply(null,arguments)}l("error",m),l("log",f),l("warn",g),l("format",v);const b=v;var y="10.0.2";l("version",y);const w=y,_=!1,x=i(window);function C(t,e,i){try{return"function"==typeof i?x.on(t,_,e,i):x.on(t,_,e)}catch(t){f("error while binding: ",t.message)}}function T(t,e){try{return x.off(t,e)}catch(t){f("error while unbinding: ",t.message)}}function k(t,e){try{return x.trigger(t,e)}catch(t){f("error while triggering: "+t.message)}}l("bind",C),l("trigger",k),l("unbind",T);const E={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},A=new RegExp(`[${Object.keys(E).join("")}]`,"g");function S(t){return t.replace(A,(t=>E[t]))}l("escapeHtml",S);const D=S,I=Object.prototype.hasOwnProperty,M=[];function N(...t){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,t)}const O=(t,e)=>L(t,e);function L(t,e){if("function"==typeof t)return t;let i=!1;return e=e??{},function(n){let s=function(t){const e=new Error;let i=e.stack??e.stacktrace;return i=i?.replace(/^Error\n/,"")??"",i.split("\n")[t+2]}(n||1)??"";if(!i||!M.includes(s)){M.push(s),i=!0;let n="DEPRECATED "+(e.deprecationType??"")+"- "+(((r=t)?(r=""+r).charAt(0).toUpperCase()+r.substring(1):"")+" has been deprecated")+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion??"a future release")+".";e.alternativeName&&(n+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(n+=" "+e.extraInfo),s=""===s?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+String(s),e.extraObject?(n+="\n",N(n,e.extraObject,s)):N(n,s)}var r}}function P(t,e){let i=t.options?.displayName;i=i?" ("+i+")":"";const n=Object.assign({deprecationType:"CSS",extraObject:e},t.options);L("'"+t.selector+"' pattern"+i,n)()}function R(t,e,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=L(e||t.name||"this function",i);return function(...e){return n(),t.apply(this,e)}}function $(t,e,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=R(t,e,i);return n.prototype=t.prototype,Object.assign(n,t),n}function j(t,e,i){if("function"==typeof t[e]){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=i.displayName??e;t[e]=R(t[e],n,i)}else!function(t,e,i){let n=t[e];(i=i??{}).deprecationType=i.deprecationType??"JS";const s=L(i.displayName??e,i);Object.defineProperty(t,e,{get:function(){return s(),n},set:function(t){return n=t,s(),t}})}(t,e,i)}function z(t){return function(e){const i={selector:e,options:t},n=document.querySelectorAll(e);for(const t of n)P(i,t);!function(t){if(H.push(t),void 0===B){B=new MutationObserver((function(t){t.forEach((function(t){const e=t.addedNodes;for(const t of e)1===t.nodeType&&H.forEach(F(t))}))}));const t={childList:!0,subtree:!0};B.observe(document,t)}}(i)}}function F(t){return function(e){var i,n;i=t,n=e.selector,i instanceof Element&&i.matches(n)&&P(e,t)}}const H=[];let B;function U(t){t=t.jquery?t[0]:t,window.getComputedStyle(t,null).getPropertyValue("left")}var W;function V(t,e){W||(W=document.body),!0===t&&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"),e&&V.$dim.css({zIndex:e}),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:R,construct:$,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(z(e))},prop:j,obj:function(t,e,i){i=i??{};for(const n in t)I.call(t,n)&&(i.deprecationType=i.deprecationType??"JS",i.displayName=e+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,j(t,n,Object.assign({},i)))},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(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e}const J=u().noConflict();const Z=function(t){return{set:function(e,i){void 0===t._state&&(t._state={}),t._state[e]=i},get:function(e){if(t._state)return t._state[e]}}};function X(t){return Z(t).get("last-trigger")||nt(t)[0]}function tt(t,e){var i=e&&e.nodeType&&1===e.nodeType;return Z(t).set("last-trigger",!!i&&e)}function et(t,e){var i=X(t);i&&e(i)}function it(t,e){return Array.prototype.forEach.call(nt(t),e)}function nt(t){const e=window.frames,i=`[aria-controls="${t.id}"]`;let n=[],s=!1;for(let t=0;t<e.length;t++)try{let s=e[t].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(t){s=!0}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&g([`No triggers found for element (${t.id}) in iframes from the same origin.`,"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function st(t){return document.getElementById(t.getAttribute("aria-controls"))}function rt(t){return"true"!==t.getAttribute("aria-disabled")}function at(t,e){if(rt(t)){var i=st(t);i&&i.message&&i.message(e)}}const ot={click(t,e){(function(t,e){var n=i(e).closest("a[href]",t);return!!n.length&&n[0]!==t})(t,e.target)||(at(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==Q.ENTER&&i!==Q.SPACE||(e.preventDefault(),e.type="click",ot.click(t,e))},mouseenter(t,e){at(t,e)},mouseleave(t,e){at(t,e)},focus(t,e){at(t,e)},blur(t,e){(function(t,e){let n=e.relatedTarget;return n||(n=document.activeElement),i(st(t)).find(n).length>0})(t,e)||at(t,e)}};Object.keys(ot).forEach((function(t){const e=ot[t];i(document).on(`${t}.aui-trigger`,"[data-aui-trigger]",(function(i){e(i.currentTarget,function(t,e){const{target:i,currentTarget:n,relatedTarget:s}=t,{keyCode:r,which:a}=t;return{type:e,data:"keydown"===e?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>t.preventDefault()}}(i,t))}))})),J("data-aui-trigger",{type:J.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return rt(this)}}}),G("aui/trigger"),function(){function t(t){return"visible"===i.css(t,"visibility")&&i(t).is(":visible")}function e(e,n){var s=e.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=e.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=e.href||n;return(l?!e.disabled:c?u:n)&&t(e)}i.extend(i.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(i.attr(t,"tabindex"))),"aui-tabbable":function(t){var n=i.attr(t,"tabindex"),s=isNaN(n);return(s||n>=0)&&e(t,!s)}})}();var lt="_aui-focus-restore";function ct(t){return t.is(".aui-dialog2")||t.is('[aui-focus-trap="true"]')}function ut(){this._focusTrapStack=[],this._handler}function dt(t,e){if(0===t.length)return;if(e.keyCode!==Q.TAB)return;const n=e.shiftKey?-1:1,s=e.target,r=t[t.length-1],a=r.find(":aui-tabbable");if(!a.length&&ct(r)&&(r.trigger("focus"),e.preventDefault()),!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let t;if(t=i(s).closest(".aui-layer"),!t.length){t=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(s)}if(t.length){const e=t.find(":aui-tabbable"),i=e.index(s)+n;if(!(i<0||i>=e.length))return;{const e=X(t.get(0));l=a.index(e)}}}l=l>-1?function(t,e,i,n){function s(t){return(t+i)%n.length}let r=s(e);if("radio"===t.type&&t.name)for(;n.eq(r).attr("name")===t.name&&r!==e;)r=s(r);if(r!==e&&"radio"===n.eq(r).attr("type")){const t=n.eq(r).attr("name"),e=n.filter((function(){return"radio"===this.type&&this.name===t})),s=e.filter(":checked");let a;a=s.length>0?s.first():i>0?e.first():e.last(),r=n.index(a)}return r}(s,l,n,a):0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),e.preventDefault())}let ht;function pt(){return ht||(ht=new ut),ht}ut.defaultFocusSelector=":aui-tabbable",ut.prototype.enter=function(t,e){if(function(t,e=document.activeElement){t.data(lt,e)}(t,e),"false"!==t.attr("data-aui-focus")){var n=t.attr("data-aui-focus-selector")||ut.defaultFocusSelector;(t.is(n)?t:t.find(n)).first().trigger("focus")}ct(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=dt.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ut.prototype.exit=function(t){ct(t)&&(this._focusTrapStack.splice(this._focusTrapStack.indexOf(t),1),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){e.blur();var n=function(t){return i(t.data(lt))}(t);n.length&&(t.removeData(lt),n.trigger("focus"))}},pt.global=pt(),l("FocusManager",pt);const ft=pt;function gt(t,e){var n="_aui-widget-"+t;return function(t,s){var r,a;i.isPlainObject(t)?a=t:(r=t,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new e(l,a||{})).$el).data(n,o),o}}const mt="_aui-internal-layer-",vt="_aui-internal-layer-global-";var bt=i(document);function yt(t,e,i,n){!function(t,e){var i=window.getComputedStyle(t).transitionProperty;return!!i&&i.indexOf(e)>-1}(t,e)?i.call(t):t.addEventListener("transitionend",(function s(r){e===r.propertyName&&(i.call(t),n&&t.removeEventListener("transitionend",s))}))}function wt(t,e,n){var s=i.Event(mt+e),r=i.Event(vt+e),a=new CustomEvent("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new CustomEvent("aui-"+n,{bubbles:!0,cancelable:!0});return t.trigger(s),t.trigger(r,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function _t(t){this.$el=i(t||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function xt(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}_t.prototype={below:function(){return Dt.global.item(Dt.global.indexOf(this.$el)-1)},above:function(){return Dt.global.item(Dt.global.indexOf(this.$el)+1)},changeSize:function(t,e){return this.$el.css("width",t),this.$el.css("height","content"===e?"":e),this},on:function(t,e){return this.$el.on(mt+t,e),this},off:function(t,e){return this.$el.off(mt+t,e),this},show:function(){return this.isVisible()||Dt.global.indexOf(this.$el)>-1?this:wt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Dt.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const t=this;return yt(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),Dt.global.popUntil(this.$el,!0),this},isVisible:function(){return!0===this.$el.data("_aui-layer-shown")},remove:function(){this.hide(),this.$el.remove(),this.$el=null,this.el=null},isBlanketed:function(){return"true"===this.el.dataset.auiBlanketed},isPersistent:function(){var t=xt(this.el,"modal"),e=this.el.hasAttribute("persistent");return"true"===t||e},getDOMContainer:function(){let t=xt(this.el,"dom-container");return t&&(t=document.querySelector(t)||document.body),t},_hideLayer:function(t){return!(t&&!wt(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&ft.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(mt+"hide"),this.$el.trigger(vt+"hide",[this.$el]),!0)},_showLayer:function(t){let e=this.getDOMContainer();if(this.isBlanketed()||e){let t=e||"body";this.$el.parent().is(t)||this.$el.appendTo(t)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",t),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&ft.global.enter(this.$el),this.$el.trigger(mt+"show"),this.$el.trigger(vt+"show",[this.$el])}};var Ct=gt("layer",_t);function Tt(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function kt(t,e){return Tt(t,(function(t){return t[0]===e[0]}))}function Et(t){return Tt(t,(function(t){return Ct(t).isBlanketed()}))}function At(t,e){var i=Et(t);e!==i&&(i>-1?V(!1,t[i].css("z-index")-20):Y())}function St(t,e,i,n=!0){if(e<0)return[!1,null];for(var s,r=t.length-1;r>=e;r--){s=t[r];var a=Ct(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];t.splice(r,1)}}return[!0,s]}function Dt(){this._stack=[]}function It(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return Dt.global.indexOf(e)>-1}Ct.on=function(t,e,i){return bt.on(vt+t,e,i),this},Ct.off=function(t,e,i){return bt.off(vt+t,e,i),this},Dt.prototype={push:function(t){var e=t instanceof i?t:i(t);if(kt(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var n=Ct(e),s=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return n._showLayer(s),n.isBlanketed()&&V(!1,s-20),this._stack.push(e),this},popLayersBeside:function(t){const e=i(t).get(0);if(!function(t){return!!X(t)}(e)){var n=Et(this._stack);return void St(this._stack,++n,!1)}const s=function(t){var e=X(t);if(e)return i(e).closest(".aui-layer").get(0)}(e);if(s){let t=this.indexOf(s);St(this._stack,++t,!1)}else St(this._stack,0,!1)},indexOf:function(t){return kt(this._stack,i(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=Ct(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=kt(this._stack,n);if(s<0)return null;for(s--;s>=0;){e=this._stack[s];var r=Ct(e);if(!r.isPersistent()||r.isBlanketed())return e;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=kt(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){e=this._stack[s];var r=Ct(e);if(!r.isPersistent()&&!r.isBlanketed())return e;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},getTopOpenLayer:function(){return this._stack.slice().reverse().find((t=>t.attr("open")))||null},popUntil:function(t,e=!1){var n=t instanceof i?t:i(t),s=kt(this._stack,n);if(-1===s)return null;const r=Et(this._stack),a=Ct(n),[o,l]=St(this._stack,s+1,a.isBlanketed(),e);return o&&a._hideLayer(e)?(this._stack.splice(s,1),At(this._stack,r),n):l},popTopIfNonPersistent:function(t=!1){var e=this.getTopLayer(),i=Ct(e);return!e||i.isPersistent()?null:this.popUntil(e,t)},popUntilTopBlanketed:function(t=!1){var e=Et(this._stack);if(e<0)return null;var i=this._stack[e];if(Ct(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=kt(this._stack,n);return St(this._stack,s,!0,t),n}return null}return St(this._stack,e,!0),At(this._stack,e),i},popUntilTopPersistent:function(t=!1){var e=Dt.global.getTopLayer();if(e){var i,n=Et(this._stack),s=Ct(e);if(s.isPersistent()){if(s.isBlanketed())return;if(e=Dt.global.getNextLowerNonPersistentOrBlanketedLayer(e),s=Ct(e),!e||s.isPersistent())return;i=kt(this._stack,e),St(this._stack,i,!0,t),At(this._stack,n)}else i=kt(this._stack,e),St(this._stack,i,!0,t),At(this._stack,n)}}},bt.on("keydown",(function(t){t.keyCode===Q.ESCAPE&&(Dt.global.popUntilTopPersistent(!0),t.preventDefault())})),bt.on("click",".aui-blanket",(function(t){Dt.global.popUntilTopBlanketed(!0)&&t.preventDefault()})),bt.on("click",(function(t){var e=i(t.target);if(!e.closest(".aui-blanket").length){var n=e.closest("[aria-controls]"),s=e.closest(".aui-layer");if(!s.length&&!It(n)){const e=i.Event("aui-close-layers-on-outer-click");return bt.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void Dt.global.hideAll()}if(!It(n)&&s.length){var r=Dt.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&Ct(r).hide()}}})),Dt.global=new Dt,Ct.Manager=Dt,l("layer",Ct);const Mt=Ct;l("LayerManager",Mt.Manager);Mt.Manager;const Nt={sinceVersion:"9.0.0",removeInVersion:"11.0.0"},Ot=l("params",new Proxy({},{get:function(t,e){return O("AJS.params",Nt)(),t[e]}}));const Lt=R((function(t){t||(t=Ot),i(".parameters input").each((function(){var e=this.value,n=this.title||this.id;i(this).hasClass("list")?t[n]?t[n].push(e):t[n]=[e]:t[n]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"11.0.0"});l("populateParameters",Lt);const Pt=Lt;i((function(){var t=i("body");t.data("auiVersion")||t.attr("data-aui-version",w),Pt()})),l("$",i);const Rt=i;function $t(t){return i.when(i.ready).then((function(){setTimeout((function(){try{t.call(this,i)}catch(e){m("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}l("toInit",$t);const jt=$t;n(547);const zt={keys:{"aui.landmarks.site":"Site","aui.landmarks.sidebar":"Sidebar","aui.landmarks.page":"Page","aui.landmarks.main":"Main","aui.header.home.link":"Go to home page","aui.dropdown.async.error":"Error loading dropdown","aui.dropdown.async.loading":"Loading dropdown","aui.words.expand":"Expand","aui.words.collapse":"Collapse","aui.words.add":"Add","aui.words.update":"Update","aui.words.delete":"Delete","aui.words.remove":"Remove","aui.words.cancel":"Cancel","aui.words.loading":"Loading","aui.words.close":"Close","aui.enter.value":"Enter value","aui.words.more":"More","aui.words.moreitem":"More…","aui.keyboard.shortcut.type.x":"Type ''{0}''","aui.keyboard.shortcut.then.x":"then ''{0}''","aui.keyboard.shortcut.or.x":"OR ''{0}''","aui.sidebar.expand.tooltip":"Expand sidebar ( [ )","aui.sidebar.collapse.tooltip":"Collapse sidebar ( [ )","aui.validation.message.maxlength":"Must be fewer than or equal to {0} characters","aui.validation.message.minlength":"Must be greater than or equal to {0} characters","aui.validation.message.exactlength":"Must be exactly {0} characters","aui.validation.message.matchingfield":"{0} and {1} do not match.","aui.validation.message.matchingfield-novalue":"These fields do not match.","aui.validation.message.doesnotcontain":"Do not include the phrase {0} in this field","aui.validation.message.pattern":"This field does not match the required format","aui.validation.message.required":"This is a required field","aui.validation.message.validnumber":"Please enter a valid number","aui.validation.message.min":"Enter a value greater than or equal to {0}","aui.validation.message.max":"Enter a value less than or equal to {0}","aui.validation.message.dateformat":"Enter a valid date","aui.validation.message.minchecked":"Tick at least {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.validation.message.maxchecked":"Tick at most {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.select.no.suggestions":"No suggestions","aui.select.number.suggestions":"Found {0,choice,0#0 options|1#1 option|1<{0,number} options}.","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","aui.messagecomponent.error.label":"Error","aui.messagecomponent.warning.label":"Warning","aui.messagecomponent.info.label":"Information","aui.messagecomponent.confirmation.label":"Confirmation","aui.messagecomponent.change.label":"Change","ajs.datepicker.localisations.day-names.sunday":"Sunday","ajs.datepicker.localisations.day-names.monday":"Monday","ajs.datepicker.localisations.day-names.tuesday":"Tuesday","ajs.datepicker.localisations.day-names.wednesday":"Wednesday","ajs.datepicker.localisations.day-names.thursday":"Thursday","ajs.datepicker.localisations.day-names.friday":"Friday","ajs.datepicker.localisations.day-names.saturday":"Saturday","ajs.datepicker.localisations.day-names-min.sunday":"Sun","ajs.datepicker.localisations.day-names-min.monday":"Mon","ajs.datepicker.localisations.day-names-min.tuesday":"Tue","ajs.datepicker.localisations.day-names-min.wednesday":"Wed","ajs.datepicker.localisations.day-names-min.thursday":"Thu","ajs.datepicker.localisations.day-names-min.friday":"Fri","ajs.datepicker.localisations.day-names-min.saturday":"Sat","ajs.datepicker.localisations.first-day":0,"ajs.datepicker.localisations.is-RTL":!1,"ajs.datepicker.localisations.month-names.january":"January","ajs.datepicker.localisations.month-names.february":"February","ajs.datepicker.localisations.month-names.march":"March","ajs.datepicker.localisations.month-names.april":"April","ajs.datepicker.localisations.month-names.may":"May","ajs.datepicker.localisations.month-names.june":"June","ajs.datepicker.localisations.month-names.july":"July","ajs.datepicker.localisations.month-names.august":"August","ajs.datepicker.localisations.month-names.september":"September","ajs.datepicker.localisations.month-names.october":"October","ajs.datepicker.localisations.month-names.november":"November","ajs.datepicker.localisations.month-names.december":"December","ajs.datepicker.localisations.show-month-after-year":!1,"ajs.datepicker.localisations.year-suffix":"","aui.flag.default-aria-label.info":"New information message","aui.flag.default-aria-label.success":"New confirmation message","aui.flag.default-aria-label.warning":"New warning message","aui.flag.default-aria-label.error":"New error message"},getText:function(t,...e){return Object.prototype.hasOwnProperty.call(this.keys,t)?b.apply(null,[this.keys[t]].concat(e)):t}},I18n=function(t){o(),"object"!=typeof window[r][a]&&(window[r][a]={});const e=window[r][a];for(const i in t)void 0===e[i]&&(e[i]=t[i]);return e}(zt),Ft="bottom-end",Ht=["top-start","top-end","bottom-start","bottom-end"],Bt=J("aui-avatar-badged",{attributes:{placement:{value:Ft,fallback(t,{newValue:e,oldValue:i}){((t,e,i)=>{const n=Ht.includes(e)?e:Ft;i&&t.classList.remove(`aui-avatar-badged-${i}`),t.classList.add(`aui-avatar-badged-${n}`)})(t,e,i)}}},created:function(t){t.classList.add("aui-avatar-badged")}});var Ut=n(2),Wt=n.n(Ut);const Vt=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Yt=(t,e)=>t.querySelector(e),qt=(t,e,i)=>{const n=Yt(t,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${e}`)},Kt=t=>{if(t.hasAttribute("src"))Gt(t,t.getAttribute("src"));else{const e=(t=>"project"===t.getAttribute("type")?"project":"user")(t),i=Vt.get(e);Gt(t,i)}},Qt=(t,e,i)=>Yt(t,"img").setAttribute(e,i),Gt=(t,e)=>Qt(t,"src",e),Jt=J("aui-avatar",{template:Wt()("\n <span class='aui-avatar'>\n <span class='aui-avatar-inner'>\n <img />\n </span>\n <content></content>\n </span>\n "),attributes:{size(t,{newValue:e,oldValue:i}){qt(t,e,i)},type(t,{newValue:e,oldValue:i}){qt(t,e,i),Kt(t)},src(t,{newValue:e}){Gt(t,e)},alt:{value:"",fallback(t,{newValue:e}){((t,e)=>{Qt(t,"alt",e)})(t,e)}},title(t,{newValue:e}){((t,e)=>{Qt(t,"title",e)})(t,e)}},created:function(t){t.className="aui-avatar",Kt(t),(t=>null!==t.querySelector("aui-avatar-badged"))(t)&&t.setAttribute("role","img")}}),Zt="medium",Xt={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128},te=(t,e)=>{const i=t.querySelectorAll("aui-avatar"),n=[...i].slice(4);se(i,e);const s=t.querySelector(".aui-avatar-group-dropdown");if(s&&s.remove(),0===n.length)return;const r=ee(e,n);t.appendChild(r)},ee=(t,e)=>{const i=document.createElement("div"),n=ie(`+${e.length}`),s=ne();return e.forEach((t=>{s.append(t)})),i.classList.add("aui-avatar-group-dropdown"),i.style.left=re(t,4.2),i.appendChild(n),i.appendChild(s),i},ie=t=>{const e=document.createElement("button");return e.classList.add("aui-avatar-group-dropdown-button","aui-avatar-inner"),e.innerText=t,e.setAttribute("aria-expanded",!1),e.setAttribute("aria-haspopup","dialog"),e},ne=()=>{const t=document.createElement("div");return t.classList.add("aui-avatar-group-dropdown-menu"),t},se=(t,e)=>{t.forEach(((t,i)=>{const n=i>=4;t.classList.add(n?"aui-avatar-group-dropdown-item":"aui-avatar-group-item"),n?t.setAttribute("size","medium"):(t.setAttribute("size",e),t.style.left=re(e,i),t.style.zIndex=""+(5-i))}))},re=(t,e)=>{const i=Xt[t];return`${(i-.25*i)*e}px`};document.addEventListener("click",(t=>{const e=t.target.matches(".aui-avatar-group-dropdown-button"),i=t.target.closest(".aui-avatar-group-dropdown");(e||null===i)&&(e&&(i.classList.contains("aui-avatar-group-dropdown-show")?ae(i):oe(i)),document.querySelectorAll(".aui-avatar-group-dropdown-show").forEach((t=>{t!==i&&ae(t)})))})),document.addEventListener("keydown",(t=>{if("Escape"!==t.key)return;const e=document.querySelector(".aui-avatar-group-dropdown-show");e&&ae(e)}));const ae=t=>{const e=t.querySelector(".aui-avatar-group-dropdown-button");t.classList.remove("aui-avatar-group-dropdown-show"),e.setAttribute("aria-expanded","false")},oe=t=>{const e=t.querySelector(".aui-avatar-group-dropdown-button");t.classList.add("aui-avatar-group-dropdown-show"),e.setAttribute("aria-expanded","true")},le=J("aui-avatar-group",{attributes:{size:{value:Zt,fallback(t,{newValue:e,oldValue:i}){const n=(s=e,Object.keys(Xt).includes(s)?s:Zt);var s;((t,e,i)=>{i&&t.classList.remove(`aui-avatar-group-${i}`),t.classList.add(`aui-avatar-group-${e}`)})(t,n,i),J.init(t),te(t,n)}}},created(t){t.classList.add("aui-avatar-group")}});new MutationObserver((function(t){t.forEach((function(t){const e=t.target;((t,e)=>t.removedNodes.length>0&&e.classList.contains("aui-avatar-group")&&t.removedNodes[0].classList.contains("aui-avatar-group-item"))(t,e)&&te(e,e.getAttribute("size")),((t,e)=>t.addedNodes.length>0&&e.classList.contains("aui-avatar-group")&&t.addedNodes[0].classList.contains("aui-avatar"))(t,e)&&setTimeout((()=>{te(e,e.getAttribute("size"))}),0)}))})).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});function ce(t){const e=document.getElementById("header");if(!e)throw new Error('Unable to find the application header. Please ensure that an element with the ID "header" is present in the DOM');const i=function({body:t="",type:e="error"}){const i=document.createElement("div");i.className=`aui-banner aui-banner-${e}`,i.setAttribute("role","alert"),i.innerHTML=t;const n=document.createElement("div");return n.innerText=`${e}`,n.classList.add("assistive"),i.prepend(n),i}(t);return function(t,e){e.prepend(t),U(t)}(i,e),function(t){const e=t.querySelectorAll(".aui-banner[hidden]"),i=O("Banner [hidden] attribute",{removeInVersion:"11.0.0",sinceVersion:"9.8.0",deprecationType:"ATTRIBUTE",extraInfo:"The hidden attribute on the banner is no longer effective. Future banner function calls won't remove banners with this attribute."});e.forEach((function(t){i(),t.remove()}))}(e),i}G("aui/banner",ce),l("banner",ce);const ue=ce;var de=n(126);const he={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},pe={filled:!1,size:he.MEDIUM.name},fe="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.",ge=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:fe}),me=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:fe});function ve(t){let e=he.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();const i=Object.keys(he).map((t=>t.toLowerCase()));i.indexOf(t)>-1&&(e=t)}return e}function be(t){const{px:e,radius:i}=(0,de.find)(he,(e=>e.name===t._data.size))||he.MEDIUM;!function(t,e,i){const n=t.querySelector("svg"),s=t.querySelector("circle");n.setAttribute("size",e),n.setAttribute("height",e),n.setAttribute("width",e),n.setAttribute("viewBox",`0 0 ${e} ${e}`);const r=e/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(t,e,i),t._data.filled?function(t,e){const i=t.parentNode;if(i&&1===i.nodeType){const n=t.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+e/2;t.querySelector("svg").style.top=r-a+"px"}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}const ye=J("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',be(t)},attached(t){be(t)},attributes:{filled:{created:function(t){ge(),t._data.filled=!0,be(t)},removed:function(t){t._data.filled=!1,be(t)}},size(t,e){t._data.size=ve(e.newValue),be(t)}},prototype:{get _data(){return this.__data||(this._data=(0,de.defaults)({},pe))},set _data(t){return this.__data=t},set filled(t){me(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=ve(t);this.setAttribute("size",e)}}});function we(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function _e(t){return"INPUT"===t.nodeName}J("aui-button",{type:J.type.CLASSNAME,created:function(t){t._spinner=new ye,t._spinner.setAttribute("size",he.SMALL.name)},prototype:{busy:function(){return _e(this)||we(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 _e(this)||!we(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 _e(this)?(g("It is not valid to call isBusy() on an input button."),!1):we(this)}}}),G("aui/button");const xe="aui-close-button",Ce=`.${xe}`,Te=`<button type="button" class="${xe}" aria-label="${I18n.getText("aui.words.close")}">`,ke={"aui-focus":"false","aui-blanketed":"true"};function Ee(t){var e;this._handlers=new WeakMap,this.$el=i(t||`\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 ${Te}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),this.$header=this.$el.find(".aui-dialog2-header"),this.$content=this.$el.find(".aui-dialog2-content"),this.$footer=this.$el.find(".aui-dialog2-footer"),e=this.$el,i.each(ke,(function(t,i){const n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}Ee.prototype.on=function(t,e){const i=this.$el;if(!this._handlers.get(e)){const n=function(t){t.target===i.get(0)&&e.apply(this,arguments)};Mt(i).on(t,n),this._handlers.set(e,n)}return this},Ee.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(Mt(i).off(t,n),this._handlers.delete(e)),this},Ee.prototype.show=function(){return Mt(this.$el).show(),this},Ee.prototype.hide=function(){return Mt(this.$el).hide(),this},Ee.prototype.remove=function(){return Mt(this.$el).remove(),this},Ee.prototype.isVisible=function(){return Mt(this.$el).isVisible()};var Ae=gt("dialog2",Ee),Se=new Set;Ae.on=function(t,e){return Se.has(e)||(Mt.on(t,".aui-dialog2",e),Se.add(e)),this},Ae.off=function(t,e){return Se.has(e)&&(Mt.off(t,".aui-dialog2",e),Se.delete(e)),this},i(document).on("click keydown",`.aui-dialog2-header ${Ce}`,(function(t){("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE)&&(t.preventDefault(),Ae(i(t.target).closest(".aui-dialog2")).hide())})),Ae.on("show",(function(t,e){!function(t){const e=t.querySelector(Ce);e&&(O(`Dialog2 [${Ce}]`,{removeInVersion:"11.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"})(),e.setAttribute("tabindex","0"));t.setAttribute("tabindex","-1");const i=t.hasAttribute("data-aui-focus-selector");i&&O("Dialog2 [data-aui-focus-selector] attribute",{removeInVersion:"11.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=t.querySelector("[autofocus]");if(n)return document.activeElement.blur(),void setTimeout((()=>n.focus()),0);if(i){const e=t.querySelector(i);if(e)return e.blur(),void setTimeout((()=>e.focus()),0)}const s=[...t.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter((t=>!t.hasAttribute("disabled")&&!t.getAttribute("aria-hidden")));if(s.length){let t=s.shift();return t.classList.contains(xe)&&(t=s.shift()),void(t&&(t.blur(),setTimeout((()=>t.focus()),0)))}t.focus()}(e[0])})),Ae.on("hide",(function(t,e){const i=Mt(e);e.data("aui-remove-on-hide")&&i.remove()})),G("aui/dialog2",Ae),l("dialog2",Ae);const De=Ae;var Ie,Me,Ne=navigator.userAgent.toLowerCase(),Oe=(/msie/.test(Ne),/windows nt 5.1/.test(Ne),/windows nt 6.0/.test(Ne),/windows nt 6.1/.test(Ne),/mac os x/.test(Ne));function Le(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Pe(t){return t instanceof Le(t).Element||t instanceof Element}function Re(t){return t instanceof Le(t).HTMLElement||t instanceof HTMLElement}function $e(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Le(t).ShadowRoot||t instanceof ShadowRoot)}var je=Math.max,ze=Math.min,Fe=Math.round;function He(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Be(){return!/^((?!chrome|android).)*safari/i.test(He())}function Ue(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,r=1;e&&Re(t)&&(s=t.offsetWidth>0&&Fe(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Fe(n.height)/t.offsetHeight||1);var a=(Pe(t)?Le(t):window).visualViewport,o=!Be()&&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 We(t){var e=Le(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ve(t){return t?(t.nodeName||"").toLowerCase():null}function Ye(t){return((Pe(t)?t.ownerDocument:t.document)||window.document).documentElement}function qe(t){return Ue(Ye(t)).left+We(t).scrollLeft}function Ke(t){return Le(t).getComputedStyle(t)}function Qe(t){var e=Ke(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ge(t,e,i){void 0===i&&(i=!1);var n,s,r=Re(e),a=Re(e)&&function(t){var e=t.getBoundingClientRect(),i=Fe(e.width)/t.offsetWidth||1,n=Fe(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),o=Ye(e),l=Ue(t,a,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!i)&&(("body"!==Ve(e)||Qe(o))&&(c=(n=e)!==Le(n)&&Re(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:We(n)),Re(e)?((u=Ue(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):o&&(u.x=qe(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Je(t){var e=Ue(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Ze(t){return"html"===Ve(t)?t:t.assignedSlot||t.parentNode||($e(t)?t.host:null)||Ye(t)}function Xe(t){return["html","body","#document"].indexOf(Ve(t))>=0?t.ownerDocument.body:Re(t)&&Qe(t)?t:Xe(Ze(t))}function ti(t,e){var i;void 0===e&&(e=[]);var n=Xe(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),r=Le(n),a=s?[r].concat(r.visualViewport||[],Qe(n)?n:[]):n,o=e.concat(a);return s?o:o.concat(ti(Ze(a)))}function ei(t){return["table","td","th"].indexOf(Ve(t))>=0}function ii(t){return Re(t)&&"fixed"!==Ke(t).position?t.offsetParent:null}function ni(t){for(var e=Le(t),i=ii(t);i&&ei(i)&&"static"===Ke(i).position;)i=ii(i);return i&&("html"===Ve(i)||"body"===Ve(i)&&"static"===Ke(i).position)?e:i||function(t){var e=/firefox/i.test(He());if(/Trident/i.test(He())&&Re(t)&&"fixed"===Ke(t).position)return null;var i=Ze(t);for($e(i)&&(i=i.host);Re(i)&&["html","body"].indexOf(Ve(i))<0;){var n=Ke(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}var si="top",ri="bottom",ai="right",oi="left",li="auto",ci=[si,ri,ai,oi],ui="start",di="end",hi="clippingParents",pi="viewport",fi="popper",gi="reference",mi=ci.reduce((function(t,e){return t.concat([e+"-"+ui,e+"-"+di])}),[]),vi=[].concat(ci,[li]).reduce((function(t,e){return t.concat([e,e+"-"+ui,e+"-"+di])}),[]),bi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yi(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}function wi(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&$e(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _i(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xi(t,e,i){return e===pi?_i(function(t,e){var i=Le(t),n=Ye(t),s=i.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=Be();(c||!c&&"fixed"===e)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+qe(t),y:l}}(t,i)):Pe(e)?function(t,e){var i=Ue(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):_i(function(t){var e,i=Ye(t),n=We(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=je(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=je(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+qe(t),l=-n.scrollTop;return"rtl"===Ke(s||i).direction&&(o+=je(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}(Ye(t)))}function Ci(t,e,i,n){var s="clippingParents"===e?function(t){var e=ti(Ze(t)),i=["absolute","fixed"].indexOf(Ke(t).position)>=0&&Re(t)?ni(t):t;return Pe(i)?e.filter((function(t){return Pe(t)&&wi(t,i)&&"body"!==Ve(t)})):[]}(t):[].concat(e),r=[].concat(s,[i]),a=r[0],o=r.reduce((function(e,i){var s=xi(t,i,n);return e.top=je(s.top,e.top),e.right=ze(s.right,e.right),e.bottom=ze(s.bottom,e.bottom),e.left=je(s.left,e.left),e}),xi(t,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 Ti(t){return t.split("-")[0]}function ki(t){return t.split("-")[1]}function Ei(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ai(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Ti(s):null,a=s?ki(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case si:e={x:o,y:i.y-n.height};break;case ri:e={x:o,y:i.y+i.height};break;case ai:e={x:i.x+i.width,y:l};break;case oi:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?Ei(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ui:e[c]=e[c]-(i[u]/2-n[u]/2);break;case di:e[c]=e[c]+(i[u]/2-n[u]/2)}}return e}function Si(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Di(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function Ii(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.strategy,a=void 0===r?t.strategy:r,o=i.boundary,l=void 0===o?hi:o,c=i.rootBoundary,u=void 0===c?pi:c,d=i.elementContext,h=void 0===d?fi:d,p=i.altBoundary,f=void 0!==p&&p,g=i.padding,m=void 0===g?0:g,v=Si("number"!=typeof m?m:Di(m,ci)),b=h===fi?gi:fi,y=t.rects.popper,w=t.elements[f?b:h],_=Ci(Pe(w)?w:w.contextElement||Ye(t.elements.popper),l,u,a),x=Ue(t.elements.reference),C=Ai({reference:x,element:y,strategy:"absolute",placement:s}),T=_i(Object.assign({},y,C)),k=h===fi?T:x,E={top:_.top-k.top+v.top,bottom:k.bottom-_.bottom+v.bottom,left:_.left-k.left+v.left,right:k.right-_.right+v.right},A=t.modifiersData.offset;if(h===fi&&A){var S=A[s];Object.keys(E).forEach((function(t){var e=[ai,ri].indexOf(t)>=0?1:-1,i=[si,ri].indexOf(t)>=0?"y":"x";E[t]+=S[i]*e}))}return E}var Mi={placement:"bottom",modifiers:[],strategy:"absolute"};function Ni(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Oi(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?Mi:s;return function(t,e,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mi,r),modifiersData:{},elements:{reference:t,popper:e},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:Pe(t)?ti(t):t.contextElement?ti(t.contextElement):[],popper:ti(e)};var a,c,h=function(t){var e=yi(t);return bi.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((a=[].concat(n,o.options.modifiers),c=a.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return o.orderedModifiers=h.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:o,name:e,instance:u,options:n}),a=function(){};l.push(r||a)}})),u.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(Ni(e,i)){o.rects={reference:Ge(e,ni(i),"fixed"===o.options.strategy),popper:Je(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(o)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(s())}))}))),a}),destroy:function(){d(),c=!0}};if(!Ni(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var Li={passive:!0};const Pi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=Le(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,Li)})),o&&l.addEventListener("resize",i.update,Li),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Li)})),o&&l.removeEventListener("resize",i.update,Li)}},data:{}};const Ri={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Ai({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var $i={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ji(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.variation,a=t.offsets,o=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.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=oi,w=si,_=window;if(c){var x=ni(i),C="clientHeight",T="clientWidth";if(x===Le(i)&&"static"!==Ke(x=Ye(i)).position&&"absolute"===o&&(C="scrollHeight",T="scrollWidth"),s===si||(s===oi||s===ai)&&r===di)w=ri,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===oi||(s===si||s===ri)&&r===di)y=ai,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[T])-n.width,p*=l?1:-1}var k,E=Object.assign({position:o},c&&$i),A=!0===u?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Fe(i*s)/s||0,y:Fe(n*s)/s||0}}({x:p,y:g},Le(i)):{x:p,y:g};return p=A.x,g=A.y,l?Object.assign({},E,((k={})[w]=b?"0":"",k[y]=v?"0":"",k.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},E,((e={})[w]=b?g+"px":"",e[y]=v?p+"px":"",e.transform="",e))}const zi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o=i.roundOffsets,l=void 0===o||o,c={placement:Ti(e.placement),variation:ki(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ji(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ji(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};const Fi={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Re(s)&&Ve(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Re(n)&&Ve(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};const Hi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,a=vi.reduce((function(t,i){return t[i]=function(t,e,i){var n=Ti(t),s=[oi,si].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},e,{placement:t})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[oi,ai].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,e.rects,r),t}),{}),o=a[e.placement],l=o.x,c=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}};var Bi={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(t){return t.replace(/left|right|bottom|top/g,(function(t){return Bi[t]}))}var Wi={start:"end",end:"start"};function Vi(t){return t.replace(/start|end/g,(function(t){return Wi[t]}))}const Yi={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=Ti(m),b=l||(v===m||!f?[Ui(m)]:function(t){if(Ti(t)===li)return[];var e=Ui(t);return[Vi(t),e,Vi(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Ti(i)===li?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?vi:l,u=ki(n),d=u?o?mi:mi.filter((function(t){return ki(t)===u})):ci,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,i){return e[i]=Ii(t,{placement:i,boundary:s,rootBoundary:r,padding:a})[Ti(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,T=y[0],k=0;k<y.length;k++){var E=y[k],A=Ti(E),S=ki(E)===ui,D=[si,ri].indexOf(A)>=0,I=D?"width":"height",M=Ii(e,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=D?S?ai:oi:S?ri:si;w[I]>_[I]&&(N=Ui(N));var O=Ui(N),L=[];if(r&&L.push(M[A]<=0),o&&L.push(M[N]<=0,M[O]<=0),L.every((function(t){return t}))){T=E,C=!1;break}x.set(E,L)}if(C)for(var P=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},R=f?3:1;R>0;R--){if("break"===P(R))break}e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qi(t,e,i){return je(t,ze(e,i))}const Ki={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Ii(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Ti(e.placement),b=ki(e.placement),y=!b,w=Ei(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,k="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,E="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(x){if(r){var D,I="y"===w?si:oi,M="y"===w?ri:ai,N="y"===w?"height":"width",O=x[w],L=O+m[I],P=O-m[M],R=p?-T[N]/2:0,$=b===ui?C[N]:T[N],j=b===ui?-T[N]:-C[N],z=e.elements.arrow,F=p&&z?Je(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[I],U=H[M],W=qi(0,C[N],F[N]),V=y?C[N]/2-R-W-B-E.mainAxis:$-W-B-E.mainAxis,Y=y?-C[N]/2+R+W+U+E.mainAxis:j+W+U+E.mainAxis,q=e.elements.arrow&&ni(e.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(D=null==A?void 0:A[w])?D:0,G=O+Y-Q,J=qi(p?ze(L,O+V-Q-K):L,O,p?je(P,G):P);x[w]=J,S[w]=J-O}if(o){var Z,X="x"===w?si:oi,tt="x"===w?ri:ai,et=x[_],it="y"===_?"height":"width",nt=et+m[X],st=et-m[tt],rt=-1!==[si,oi].indexOf(v),at=null!=(Z=null==A?void 0:A[_])?Z:0,ot=rt?nt:et-C[it]-T[it]-at+E.altAxis,lt=rt?et+C[it]+T[it]-at-E.altAxis:st,ct=p&&rt?function(t,e,i){var n=qi(t,e,i);return n>i?i:n}(ot,et,lt):qi(p?ot:nt,et,p?lt:st);x[_]=ct,S[_]=ct-et}e.modifiersData[n]=S}},requiresIfExists:["offset"]};const Qi={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,o=Ti(i.placement),l=Ei(o),c=[oi,ai].indexOf(o)>=0?"height":"width";if(r&&a){var u=function(t,e){return Si("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Di(t,ci))}(s.padding,i),d=Je(r),h="y"===l?si:oi,p="y"===l?ri:ai,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],g=a[l]-i.rects.reference[l],m=ni(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=qi(y,_,w),C=l;i.modifiersData[n]=((e={})[C]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&wi(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gi(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ji(t){return[si,ai,ri,oi].some((function(e){return t[e]>=0}))}const Zi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,a=Ii(e,{elementContext:"reference"}),o=Ii(e,{altBoundary:!0}),l=Gi(a,n),c=Gi(o,s,r),u=Ji(l),d=Ji(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Xi=Oi({defaultModifiers:[Pi,Ri,zi,Fi,Hi,Yi,Ki,Qi,Zi]});const tn="alignment",en="right middle",nn="alignment-container",sn="aui-alignment-side-",rn="aui-alignment-snap-",an={"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 on(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function ln(t){return on(t,tn)||en}function cn(t){let[e,i]=ln(t).split(" ");return{side:e,snap:i}}function un(t){let e=function(t){let e=on(t,nn)||window;return"string"==typeof e&&(e=document.querySelector(e)),e}(t),i="left";if(e&&e!==window&&e!==document||(e=document.documentElement),e&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE){let n=e.getBoundingClientRect();t.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function dn(t,e){const i=cn(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=ln(t);return an[e]||"right"}(t):(i.snap=un(e),n="submenu"===i.side?an[("right"===i.snap?"left":"right")+" top"]:an[`${i.side} ${i.snap}`]),n}const hn={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function pn(t,e,i={}){const n=cn(t),s=dn(t,e),r=hn[s.split("-")[0]],a=e.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a?"document":i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document"}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains("aui-alignment-use-gpu")}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:t})=>{t.elements.popper&&t.elements.popper.setAttribute("x-placement",t.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return i.enabled&&i.fn(),t}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={fn:i.onEvents}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),t}}];a&&e.ownerDocument!=t.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(t){const e=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(t,e)=>t+e,s=t=>t.map(parseFloat).filter(Boolean).reduce(n,0),r=s([e.top,i.paddingTop,i.borderTop]),o=s([e.left,i.paddingLeft,i.borderLeft]);return t.offsets.reference.left+=o,t.offsets.reference.top+=r,t.offsets.popper.left+=o,t.offsets.popper.top+=r,t}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=Xi(e,t,l),function(t,e,i){const n=sn+e,s=rn+i;t.classList.contains(n)||t.classList.add(n),t.classList.contains(s)||t.classList.add(s)}(t,n.side,n.snap)}pn.prototype={destroy(){return this.popper.destroy(),this},changeTarget(t){const e=t.jquery?t[0]:t;return e&&e!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=e,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};const fn=pn;function gn(t){let e=new i.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),12):e.reject(),e.promise()}var mn,vn,bn=0;function yn(t){if(mn=bn+++"",vn=t?t+mn:"aui-uid-"+mn,document.getElementById(vn)){if(vn=vn+"-"+(new Date).getTime(),document.getElementById(vn))throw new Error('Timestamped fallback ID "'+vn+'" exists.');return vn}return vn}l("id",yn);const wn=yn;function _n(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function xn(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}var Cn="unloaded",Tn="loading",kn="error",En="success";function An(t,e){Z(t).set("loading-state",En),t.innerHTML=function(t){return t.map((function(t){var e=t.items.map((function(t){function e(e){return t[e]?`${e} ="true"`:""}function i(e){return t[e]?`${e}="${t[e]}"`:""}var n="aui-item-"+t.type;return`<${n} ${i("for")} ${i("href")} ${e("interactive")}\n ${e("checked")} ${e("disabled")} ${e("hidden")} ${i("data-value")} ${i("item-id")}>\n ${D(t.content)}\n </${n}>`})).join("");function i(e){return t[e]?`${e}="${t[e]}"`:""}return`<aui-section ${i("label")} ${i("aria-label")}>\n ${e}\n </aui-section>`})).join("\n")}(e),J.init(t)}function Sn(t){Z(t).set("loading-state",kn),Z(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Dn(t){t.src&&Z(t).get("loading-state")!==Tn&&(!function(t){Z(t).set("loading-state",Tn),Z(t).set("hasErrorBeenShown",!1),et(t,(function(t){t.setAttribute("aria-busy","true")})),t.innerHTML=`\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(t),i.ajax(t.src).done((function(e,i,n){200===n.status?An(t,e):Sn(t)})).fail((function(){Sn(t)})).always((function(){!function(t){et(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function In(t,e){return i(t).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(e).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Mn(t){return In(t,(()=>!0))}function Nn(t){return In(t,((t,e)=>!_n(e)))}function On(t){Mn(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||_n(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Ln(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Pn(t,e){var n=e&&e.hasSubmenu&&e.hasSubmenu(),s="submenu auto"===t.getAttribute("data-aui-alignment");!n&&s&&function(t){var e=i(t),n=e.data("previous-data-aui-alignment");n?t.setAttribute("data-aui-alignment",n):t.removeAttribute("data-aui-alignment");e.removeData("previous-data-aui-alignment"),e.data("had-data-aui-alignment-static")||t.removeAttribute("data-aui-alignment-static");e.removeData("had-data-aui-alignment-static")}(t);var r=t.hasAttribute("data-aui-alignment");n&&!s?(!function(t){var e=i(t);t.hasAttribute("data-aui-alignment")&&e.data("previous-data-aui-alignment",t.getAttribute("data-aui-alignment"));e.data("had-data-aui-alignment-static",t.hasAttribute("data-aui-alignment-static"))}(t),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):r||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),Ln(t),t._auiAlignment=new fn(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(J.init(this),O("Dropdown2 lazy initialisation",{removeInVersion:"11.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=i(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const n=e.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&e.is(".aui-dropdown2-trigger")&&(s.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const r=n.find(":focus");r.length&&e.is(".aui-dropdown2-trigger")&&r.blur()}));var Rn=!1;function $n(){Rn=!0}function jn(t){Mt(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=i(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(`.${t}`).addClass(`aui-dropdown2-${t}`)}))}(t),On(t),i(t).trigger("aui-dropdown2-show"),et(t,(function(e){xn(e,!0),t._returnTo=function(t,e){var i=e.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||t.parentNode}(t,e)})))})),t.addEventListener("aui-layer-hide",(function(e){t===e.target&&(i(t).trigger("aui-dropdown2-hide"),t._auiAlignment&&t._auiAlignment.destroy(),t._returnTo&&t.parentNode&&t.parentNode!==t._returnTo&&t._returnTo.appendChild(t),t.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Mn(t).removeClass("active aui-dropdown2-active"),et(t,(function(t){var e;xn(t,!1),e=!0===Rn,Rn=!1,e&&t.focus()})),delete t.isSubmenu)}))}function zn(t){var e=i(t);function n(e){return i(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){n(e.target)&&(e.keyCode===Q.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===Q.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===Q.LEFT?t.isSubmenu&&($n(),t.hide(),e.preventDefault()):e.keyCode===Q.ESCAPE?$n():e.keyCode===Q.TAB&&($n(),t.hideAll(!1)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!n(e.target))return;const s=e.currentTarget,r=e.keyCode,a=r===Q.ENTER,o=r===Q.SPACE;a&&i(s).is("a[href], button")||"click"!==e.type&&!a&&!o||function(e){const i=e.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void e.preventDefault();e.currentTarget.hasSubmenu&&e.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive")||t.hideAll(!0)}(e)})),e.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!n(e.target))return;let s=i(Mt(t).above()).get(0);for(;s&&s.isDropdown&&s!==t;){const t=s.getAttribute("id"),n=e.target.getAttribute("aria-controls"),r=Mt(s).above();n!==t&&Mt(s).hide(),s=i(r).get(0)}}))}function Fn(t){t.classList.add("aui-dropdown2"),t.setAttribute("tabindex","-1"),t.hasAttribute("data-container")&&(t.setAttribute("data-aui-alignment-container",t.getAttribute("data-container")),t.removeAttribute("data-container")),jn(t),zn(t),i(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),i(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}i(window).on("resize",(0,de.debounce)((function(){i(".aui-dropdown2").each((function(t,e){J.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var Hn={toggle:function(t){this.isVisible()?this.hide():this.show(t)},show:function(t){const e=this;return et(e,(t=>{xn(t,!1)})),t&&t.currentTarget&&t.currentTarget.classList.contains("aui-dropdown2-trigger")&&tt(e,t.currentTarget),Mt(e).show(),et(e,(function(t){xn(t,!0),Pn(e,t)})),setTimeout((()=>function(t,e={}){if(e&&e.type&&-1===e.type.indexOf("mouse")){const i=e.type.indexOf("key")>-1;if(t.isSubmenu)t.focusItem(0);else if(i)if(e.keyCode===Q.UP){const e=Nn(t);e&&e.length&&t.focusItem(e.length-1)}else t.focusItem(0);else t.focus()}}(e,t)),0),this},hide:function(){return Mt(this).hide(),this},hideAll:function(t=!0){const e=function(t){let e=Mt(t);for(;;){const t=e.below();if(!t)break;if(!t.get(0).isDropdown)break;e=Mt(t)}return e}(this);return e.isVisible()?(e.hide(),t&&et(e.el,(t=>{setTimeout((()=>{t.focus()}),0),tt(e.el,null)})),this):this},focusNext:function(){var t,e=Nn(this),i=document.activeElement;e.last()[0]!==i?(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1))):this.focusItem(0)},focusPrevious:function(){var t,e=Nn(this),i=document.activeElement;e.first()[0]!==i?(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1))):this.focusItem(e.length-1)},focusItem:function(t){const e=Nn(this);"number"==typeof t&&(t=e.get(t));const n=i(t);n.focus(),e.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return Mt(this).isVisible()},isDropdown:!0},Bn={created:function(t){var e=t.children[0];e.setAttribute("aria-disabled","true"),e.classList.add("disabled","aui-dropdown2-disabled")},removed:function(t){var e=t.children[0];e.setAttribute("aria-disabled","false"),e.classList.remove("disabled","aui-dropdown2-disabled")}},Un={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Wn={created:function(t){var e=t.children[0];e.classList.add("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!0),t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))},removed:function(t){var e=t.children[0];e.classList.remove("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!1),t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}},Vn={created:function(t){Bn.created(t)},removed:function(t){Bn.removed(t)}},Yn=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const qn=function(t=""){return t.split(" ").map((t=>t.trim())).filter((t=>t))},Kn=J("aui-item-link",{template:Wt()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Bn,interactive:Un,hidden:Vn,href:Yn("href"),"item-id":Yn("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),i(e).addClass("aui-dropdown2-sub-trigger")},updated:function(t){t.children[0].setAttribute("aria-controls",t.getAttribute("for"))},removed:function(t){var e=t.children[0];e.removeAttribute("aria-controls"),i(e).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...qn(e.oldValue)),e.newValue&&i.classList.add(...qn(e.newValue))},"data-value":Yn("data-value")}}),Qn=J("aui-item-button",{template:Wt()('<button class="aui-button"><content></content></button>'),attributes:{disabled:Bn,"item-id":Yn("id"),"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...qn(e.oldValue)),e.newValue&&i.classList.add(...qn(e.newValue))},"data-value":Yn("data-value")}}),[Gn,Jn]=["checkbox","radio"].map((t=>J(`aui-item-${t}`,{template:Wt()(`<span role="menuitem${t}" class="aui-dropdown2-${t}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Yn("id"),disabled:Bn,interactive:Un,checked:Wn,hidden:Vn,"data-value":Yn("data-value")}}))),Zn=J("aui-section",{template:Wt()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(t,e){const i=wn();var n=t.children[0],s=t.children[1];n.textContent=e.newValue,n.id=i,s.setAttribute("aria-labelledby",i)},"aria-label":{fallback:function(t,e){t.children[1].setAttribute("aria-label",e.newValue)},removed:function(t){t.children[1].removeAttribute("aria-label")}}},created:function(t){t.classList.add("aui-dropdown2-section")}}),Xn=J("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",Mt(t),Z(t).set("loading-state",Cn),J.init(t)},detached:function(t){gn(t).then((()=>Ln(t)))},attributes:{src:{}},prototype:Hn,events:{"aui-layer-show":function(t){var e=Z(t).get("loading-state")===Cn,i=Z(t).get("hasErrorBeenShown");(e||i)&&Dn(t),Z(t).get("loading-state")===kn&&Z(t).set("hasErrorBeenShown",!0)}}});J("aui-dropdown2",{type:J.type.CLASSNAME,created:Fn,prototype:Hn}),J("data-aui-dropdown2",{type:J.type.ATTRIBUTE,created:Fn,prototype:Hn}),J("aui-dropdown2-trigger",{type:J.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==t)return;if(n.preventDefault(),!t.isEnabled())return;const r=document.getElementById(e);if(!r)return void m('Could not find a dropdown with id "'+e+'" in the DOM.');const a=i(t);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=t.hasSubmenu(),r}e||(e=t.getAttribute("aria-owns"),e?(t.removeAttribute("aria-owns"),t.setAttribute("aria-controls",e)):m('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),t.setAttribute("aria-haspopup",!0),t.setAttribute("aria-expanded",!1),"A"===t.nodeName&&!t.href&&t.setAttribute("href",`#${e}`),i(t).on("aui-button-invoke",n).on("click",n).on("keydown",(function(e){if(e.currentTarget!==t)return;const i=e.keyCode===Q.ENTER||e.keyCode===Q.SPACE,s=e.keyCode===Q.RIGHT&&t.hasSubmenu(),r=(e.keyCode===Q.UP||e.keyCode===Q.DOWN)&&!t.hasSubmenu();i?n(e):(r||s)&&n(e,document.activeElement===t)})).on("mouseenter",(function(i){if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const n=document.getElementById(e);if(n)return function(t){var e=Z(t).get("loading-state")===Cn,i=Z(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Dn(t)}(n),t.hasSubmenu()&&(n.show(i),n.isSubmenu=t.hasSubmenu()),n;m('Could not find a dropdown with id "'+e+'" in the DOM.')}))},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),J("aui-dropdown2-sub-trigger",{type:J.type.CLASSNAME,created:function(t){t.classList.add("aui-dropdown2-trigger"),J.init(t)}}),["checkbox","radio"].map((t=>J(`aui-dropdown2-${t}`,{type:J.type.CLASSNAME,created:function(e){const i="true"===e.getAttribute("aria-checked")||e.classList.contains("checked")||e.classList.contains("aui-dropdown2-checked");e.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",i),e.setAttribute("tabindex","0"),Oe&&e.setAttribute("role",`menuitem${t}`)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&this.parentNode.removeAttribute("checked"),i(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));const ts={"aria-expanded":O("Expander [aria-expanded] attribute",{removeInVersion:"11.0.0",sinceVersion:"9.9.0",deprecationType:"ARIA ATTRIBUTE",extraInfo:'The "aria-expanded" attribute will no longer act as an indicator for the expander if it needs to be expanded. Please update the expander in accordance with AUI guidelines.'}),"replace-selector":O("Expander [data-replace-selector] attribute",{removeInVersion:"11.0.0",sinceVersion:"9.9.0",deprecationType:"DATA ATTRIBUTE",extraInfo:'The attribute "data-replace-selector" will no longer have any functionality. It is recommended to update the expander following AUI guidelines.'}),"short-content":O("Expander [.aui-expander-short-content]",{removeInVersion:"11.0.0",sinceVersion:"9.9.0",deprecationType:"EXPANDER CLASS (PATTERN)"})},es=t=>{const e=i(`#${t.attr("aria-controls")}`),n=e.parent().is(t),s=n?t.find(".aui-expander-short-content"):null;return e.attr("aria-expanded")&&(ts["aria-expanded"](),"true"===e.attr("aria-expanded")&&e.addClass("expanded"),e.removeAttr("aria-expanded")),{$content:e,isTriggerParent:n,$shortContent:s,isExpanded:e.hasClass("expanded"),height:e.css("min-height"),isCollapsible:!1!==t.data("collapsible"),textReplacement:t.attr("data-replace-text")}};const is=(t,e)=>{if(!e)return;const i=t.data("replace-selector");if(i){ts["replace-selector"]();const n=t.find(i);return t.attr("data-replace-text",n.text()),void n.text(e)}const n=t.find(":not(:has(*)):first"),s=n.length?n:t;t.attr("data-replace-text",s.text()),s.text(e)},ns={"aui-expander-invoke":function(t){const e=i(t.currentTarget),{isCollapsible:n,isExpanded:s}=es(e);s&&n?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){!function(t){const{$content:e,isTriggerParent:i,$shortContent:n,textReplacement:s}=es(t);t.attr("aria-expanded","true"),e.addClass("expanded"),e.prop("hidden",!1),is(t,s),i&&n.hide(),t.trigger("aui-expander-expanded")}(i(t.currentTarget))},"aui-expander-collapse":function(t){!function(t){const{$content:e,isTriggerParent:i,$shortContent:n,textReplacement:s}=es(t);is(t,s),t.attr("aria-expanded","false"),e.removeClass("expanded"),i&&n.show(),0===e.outerHeight()&&e.prop("hidden",!0),t.trigger("aui-expander-collapsed")}(i(t.currentTarget))},"click.aui-expander":function(t){i(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};i(document).on(ns,".aui-expander-trigger"),i(document).ready((function(){i(".aui-expander-trigger").each((function(){!function(t){const{$content:e,isTriggerParent:i,isExpanded:n}=es(t);t.data("replace-selector")&&ts["replace-selector"](),e.attr("aria-expanded")&&(ts["aria-expanded"](),"true"===e.attr("aria-expanded")&&e.addClass("expanded"),e.removeAttr("aria-expanded")),(i?t.find(".aui-expander-short-content"):null)&&ts["short-content"](),0===e.outerHeight()&&!n&&e.prop("hidden",!0),t.attr("aria-expanded",n?"true":"false")}(i(this))}))}));const ss=500,rs=5e3,as=100;function os(t,e,n){i(t||".aui-message.aui-remove-on-hide").each((function(){cs(i(this),e,n)}))}function ls(t){i(t||"div.aui-message.closeable").each((function(){const t=i(this),e=t.find(Ce),n=e.length>0?e.first():i(Te);var s;t.addClass("closeable"),t.append(n),(s=t).unbind("click.aui-message").unbind("keydown.aui-message"),s.on("click.aui-message",Ce,(function(t){i(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Ce,(function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(i(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function cs(t,e,n){e=void 0!==e?e:rs,n=void 0!==n?n:ss,i(t||"div.aui-message.fadeout").each((function(){const t=i(this);let s=!1,r=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(n,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(as,1)}function l(){return!s&&!r}t.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}const us={setup:function(){os(),ls(),cs()},makeRemoveOnHide:os,makeCloseable:ls,makeFadeout:cs,createMessage:function(t){this[t]=function(e,n){n||(n=e,e="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function(t,e){const{id:n,closeable:s,removeOnHide:r,fadeout:a,title:o,body:l}=t,c=function(t,e){const{a11yTypeLabel:i}=t;if(""===i)return"";if(null!=i)return i;if(null==i)switch(e){case"error":return I18n.getText("aui.messagecomponent.error.label");case"warning":return I18n.getText("aui.messagecomponent.warning.label");case"info":return I18n.getText("aui.messagecomponent.info.label");case"confirmation":return I18n.getText("aui.messagecomponent.confirmation.label");case"change":return I18n.getText("aui.messagecomponent.change.label");case"generic":case"success":case"hint":return"";default:throw Error(`Provide \`a11yTypeLabel\` for AUI message of custom type ${e}`)}}(t,e),u=c?`<strong hidden>${c}: </strong>`:"",d=n?`${n}-title`:"",h=o?`<p class="title" ${d?`id="${d}" aria-hidden="true"`:""}>${u}<strong>${D(o)}</strong></p>`:"",p=`<div class="aui-message" role="note" ${d?`aria-labelledby="${d}"`:""}>${h}</div>`,f=i(p).append(i.parseHTML(l||"")).addClass(r?"aui-remove-on-hide":"").addClass(s?"closeable":"").addClass(a?"fadeout":"").addClass(`aui-message-${e}`);n&&(/[#'".\s]/g.test(n)?g("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):f.attr("id",n));return f}(n,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(s,n.insert,e),n.removeOnHide&&(console.warn&&console.warn("Use of AUI Message `removeOnHide` is deprecated due to accessibility reasons and will be removed in AUI 11.0.0."),os(s,n.delay,n.duration)),n.closeable&&ls(s),n.fadeout&&(console.warn&&console.warn("Use of AUI Message `fadeout` is deprecated due to accessibility reasons and will be removed in AUI 11.0.0."),cs(s,n.delay,n.duration)),s}}};i.fn.closeMessage=function(){const t=i(this);t.hasClass("aui-message")&&(t.hasClass("closeable")||t.hasClass("aui-remove-on-hide"))&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),i(document).trigger("aui-message-close",[this]))},us.createMessage("generic"),us.createMessage("error"),us.createMessage("warning"),us.createMessage("info"),us.createMessage("confirmation"),us.createMessage("change"),us.createMessage("success"),us.createMessage("hint");const ds=J("aui-message",{created:function(t){const e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",us[i](t,{body:e,id:t.getAttribute("id"),a11yTypeLabel:t.getAttribute("a11yTypeLabel"),removeOnHide:t.getAttribute("removeOnHide"),closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")}),t.setAttribute("role","none")}});i((function(){us.setup()})),j(us,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html'}),j(us,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"makeRemoveOnHide",{extraInfo:"Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"makeFadeout",{extraInfo:"Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),l("messages",us);const hs='a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls], summary, [tabindex^="0"], [tabindex^="1"], [tabindex^="2"], [tabindex^="3"], [tabindex^="4"], [tabindex^="5"], [tabindex^="6"], [tabindex^="7"], [tabindex^="8"], [tabindex^="9"]',ps="aui-flag-container",fs={body:"",close:"manual",title:"",type:"info",duration:8e3,ariaLive:"polite"};function gs(t){const e=(0,de.defaults)(t,fs);e.title=(e.title||"").toString().trim();const n=function({body:t,title:e,close:n,type:s,ariaLive:r,ariaLabel:a,ariaDescription:o}){const l=`<div class="aui-message">${e?`<p class="title"><strong>${D(e)}</strong></p>`:""}</div>`;a||(a=function(t){switch(t){case"success":return I18n.getText("aui.flag.default-aria-label.success");case"warning":return I18n.getText("aui.flag.default-aria-label.warning");case"error":return I18n.getText("aui.flag.default-aria-label.error");default:return I18n.getText("aui.flag.default-aria-label.info")}}(s));o||(o="");const c=i(l).append(i.parseHTML(t||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`),u=c.find(hs).length>0,d=u?"alertdialog":"alert";return i('<div class="aui-flag"></div>').attr({"aria-label":D(a),"aria-hidden":"false","aria-live":D(r),role:d,...u?{"data-aui-focus-selector":hs.split(", ").map((t=>`.aui-message ${t}`)).join(", "),"data-aui-focus":"true"}:{},...o?{"aria-description":D(o)}:{}}).append(c)}(e);return function(t){const e=t[0];e.close=function(){vs(t)}}(n),"auto"===e.close?(ms(n),"alert"===n.attr("role")&&function(t,e){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),e)}(n,e.duration)):"manual"===e.close&&ms(n),function(){const t=bs();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else i("body").prepend('<div id="'+ps+'"></div>')}(),function(t){const e=bs();t.appendTo(e),U(t),t.removeAttr("hidden").attr("open","")}(n),setTimeout((function(){"alertdialog"===n.attr("role")&&ft.global.enter(n)}),0),n.get(0)}function ms(t){const e=i(Te);return e.on("click",(function(){vs(t)})),e.on("keypress",(function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(vs(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function vs(t){const e=t.get(0);return"alertdialog"===t.attr("role")&&ft.global.exit(t),e.removeAttribute("open"),e.setAttribute("inert",""),e.setAttribute("aria-hidden",!0),e.style.display="none",e.dispatchEvent(new CustomEvent("aui-flag-close",{bubbles:!0})),e}function bs(){return document.getElementById(ps)}G("aui/flag",gs),l("flag",gs);const ys=gs;var ws=n(722);const _s=n.n(ws)();const xs=function(t){function e(e){return n((function(){return t.hasAttribute(e)}),e+" wasn't defined")}function i(i){if(!e(i))return!1;var s=t.getAttribute(i);return n((function(){return document.getElementById(s)}),'an element with id set to "'+s+'" was not found')}function n(e,i){return!!e()||(t?m(i,t):m(i),!1)}return{attributeExists:e,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},Cs="-input";function Ts(t){return t.querySelector("label")}const ks=J("aui-label",{template:Wt()("<label><content></content></label>"),created:function(t){t._label=Ts(t)},attached:function(t){xs(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?Ts(t).setAttribute("for",`${e.newValue}${Cs}`):Ts(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?Ts(t).setAttribute("form",e.newValue):Ts(t).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(t,e){t.disabled&&e.preventDefault()}}});n(217);const Es=i.fn.select2,As="aui-select2-container",Ss="aui-select2-drop aui-dropdown2",Ds="aui.select2DropdownLayer";i.fn.auiSelect2=function(t){let e;if(i.isPlainObject(t)){const n=i.extend({},t),s=n.hasAvatar?" aui-has-avatar":"";n.containerCssClass=As+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=Ss+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),e=Array.prototype.slice.call(arguments,1),e.unshift(n)}else e=arguments.length?arguments:[{containerCssClass:As,dropdownCssClass:Ss}];const n=e[0];if(n.ajax&&n.ajax.params&&n.ajax.params.error){let t=n.ajax.params.error;Array.isArray(t)||(t=[t]);let e=n.ajax.transport;e||(e=Es.ajaxDefaults.transport);const i=function(...i){return i[0].error=[i[0].error,...t],e(...i)};n.ajax.transport=i}const s=Es.apply(this,e),r=this,a=n.searchLabel;return r.on("select2-open",(function(){const t=i(this),e=t.select2("dropdown");let s=t.data(Ds);s||(s=Mt(),t.data(Ds,s)),s.show(),e.css("z-index",s.$el.css("z-index")),i("#select2-drop-mask").css("z-index",s.$el.css("z-index")),n.multiple||t.attr("multiple")||a&&e.find(".select2-search label").text(a)})),r.on("select2-close",(function(){const t=i(this),e=t.data(Ds);e?e.hide():AJS.warn("Warning! AUI: `select2-close` event handler could not discover the layer linked with the Select2 dropdown.","This may be happening when there are many instances of Select2 created on the same DOM element.","Consider checking your code as this can negatively affect performance."),t.removeData("was-ariadescribedby-cleared")})),r.on("select2-loaded",(function(){const t=i(this),e=t.data("was-ariadescribedby-cleared");if(n.multiple||t.attr("multiple")||e)return;t.select2("dropdown").find(".select2-search .select2-input").attr("aria-activedescendant",""),t.data("was-ariadescribedby-cleared",!0)})),r.on("select2-focus",(function(){const t=i(this),e=t.parent().find(".select2-container");if(n.multiple||t.attr("multiple"))return void(a&&e.find(".select2-search-field label").text(a));const s=e.find("label");if(s.attr("id"))return;const r=e.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=R((function(t,e){let n={size:"small"};return"object"==typeof e&&(n=i.extend(n,e)),"object"==typeof t&&(n=i.extend(n,t)),"string"==typeof t&&(n.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=i(this),e=t.data();if(e){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),t.spinStop(),t.append(s),J.init(this),e.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=R((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=i(this).data();t&&t.spinner&&(t.spinner.remove(),delete t.spinner)}))}),"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",alternativeName:"<aui-spinner>"});const Is=J("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||D(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var t={};return this.hasAttribute("img-src")&&(t["img-src"]=encodeURI(this.getAttribute("img-src"))),t.value=this.value,t.label=D(this.textContent),t}}});var Ms=n(973),Ns=n.n(Ms),Os=Ns().Collection.extend({initialize:function(t,e){e||(e={}),e.matcher&&(this.matcher=e.matcher),e.model&&(this.model=e.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=e.maxResults||5,this._queryData=e.queryData||{},this._queryParamKey=e.queryParamKey||"q",this._queryEndpoint=e.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,(0,de.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(t){var e,i;this.value=t,i=this.getFilteredResults(t),this.respond(t,i),t&&this._queryEndpoint&&!this.hasQueryCache(t)&&this.shouldGetMoreResults(i)&&(e=this.fetch(t),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always((()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})})),e.done(((e,i,n)=>{this.addQueryCache(t,e,n)})),e.done((()=>{t=this.value,i=this.getFilteredResults(t),this.respond(t,i)})))},getQueryData:function(t){var e=(0,de.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=(0,de.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return Ns().Collection.prototype.fetch.call(this,e)},respond:function(t,e){return this.trigger("respond",{query:t,results:e}),e},matcher:function(t,e){},getFilteredResults:function(t){var e=[];return t?(e=this.filter((function(e){return!!this.matcher(e,t)}),this),this._maxResults&&(e=(0,de.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,s=this.parse(e,i);n[t]=(0,de.pluck)(s,this._idAttribute)},hasQueryCache:function(t){return this.queryCache.hasOwnProperty(t)},findQueryCache:function(t){return this.queryCache[t]},shouldGetMoreResults:function(t){return t.length<this._maxResults},setMaxResults:function(t){this._maxResults=t,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});l("ProgressiveDataSet",Os);const Ls=Os,Ps=Ns().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});const Rs=function(){return{_suggestions:[],_activeIndex:-1,onChange:function(){},onHighlightChange:function(){},get:function(t){return this._suggestions[t]},set:function(t){var e=this._suggestions;return this._suggestions=t||[],this.onChange(e),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(t){if(t)for(var e=0;e<this._suggestions.length;e++)this._suggestions[e].id===t.id&&this.highlight(e);return this},highlight:function(t){return this._activeIndex=t,this.onHighlightChange(),this},highlightPrevious:function(){const t=this._activeIndex,e=0===t?this._suggestions.length-1:t-1;return this.highlight(e),this},highlightNext:function(){const t=this._activeIndex,e=t===this._suggestions.length-1?0:t+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}}};function $s(t,e){return t+"-"+e}function js(t){i(t).find(".aui-select-active").removeClass("aui-select-active")}const zs=function(t,e){const n={el:t,anchor:e,render:function(t,e,i,n){this.currListId=i;let s="";if(t.length){for(let r=0;r<t.length;r++){const a=t[r],o=r+e,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="${$s(i,o)}">${u}${l}${d}</li>`}e?this.el.querySelector("ul").innerHTML+=s:this.el.querySelector("ul").innerHTML=s}else e||(this.el.querySelector("ul").innerHTML=`<li role="option" class="aui-select-no-suggestions">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(t){js(this.el),i(this.el).find("#"+$s(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){!function(t){i(t.el).css("min-width",i(t.anchor).outerWidth())}(this),Mt(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new fn(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){js(this.el),Mt(this.el).hide(),function(t){t._auiAlignment&&t._auiAlignment.disable()}(this)},destroy:function(){this.hide(),function(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}(this),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};return n},Fs=Wt()('\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'),Hs=-1,Bs=-1,Us=50;function Ws(t){t._select.selectedIndex=Hs,function(t){t._input.removeAttribute("style"),i(t._input).removeClass("aui-select-has-inline-image")}(t)}function Vs(t){return t._suggestionModel.getNumberOfResults()}function Ys(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function qs(t){t._input.setAttribute("aria-expanded","false"),t._button.setAttribute("aria-expanded","false"),t._input.removeAttribute("aria-activedescendant"),sr(t,"")}function Ks(t){t._suggestionsView.hide(),qs(t)}function Qs(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function Gs(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){i(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function Js(t,e){if(e){var i,n=document.createElement("option"),s=t._select,r=e.get("value")||e.get("label"),a=(i=e.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,t._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}}function Zs(t){Js(t,t._suggestionModel.highlighted()),Gs(t),Ks(t)}function Xs(t){return new Ps(t.serialize())}function tr(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(Xs(n))}return e}function er(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function ir(t,e){return i.map(e,(function(t){return t.id})).indexOf(t)}function nr(t){t._progressiveDataSet=new Ls(tr(t),{model:Ps,matcher:Ys,queryEndpoint:t._queryEndpoint,maxResults:20}),t._isSync=!t._queryEndpoint,t._progressiveDataSet.on("activity",(function(){t._progressiveDataSet.activeQueryCount&&!t._isSync?(!function(t){t._button.isBusy()||(t._button.busy(),t._input.setAttribute("aria-busy","true"),t._dropdown.setAttribute("aria-busy","true"))}(t),Z(t).set("should-flag-new-suggestions",!1)):(!function(t){t._button.idle(),t._input.setAttribute("aria-busy","false"),t._dropdown.setAttribute("aria-busy","false")}(t),Z(t).set("should-flag-new-suggestions",!0))})),t._progressiveDataSet.on("respond",(function(e){if(e.query&&!t._input.value)return;if(Z(t).get("should-cancel-response"))return void(t._progressiveDataSet.activeQueryCount||Z(t).set("should-cancel-response",!1));e.query||(e.results=tr(t));var i=-1!==ir(t._input.value,e.results),n=!t._input.value;!t.hasAttribute("can-create-values")||i||n||e.results.push(function(t){var e=new Is;e.setAttribute("value",t._input.value);var i=Xs(e);return i.set("new-value",!0),i}(t));let s=ir(t.value,e.results);s=-1===s?0:s;const r=function(t,e){const i=t._suggestionModel.getNumberOfResults();return t._suggestionModel.set(),t._suggestionModel.set(e.results),i!==t._suggestionModel.getNumberOfResults()}(t,e),a=e.results[s];t._autoHighlight&&(t._suggestionModel.setHighlighted(a),setTimeout((function(){const e=er(t);null!=e?t._input.setAttribute("aria-activedescendant",e):t._input.removeAttribute("aria-activedescendant")}),Us)),t._input.setAttribute("aria-expanded","true"),t._button.setAttribute("aria-expanded","true"),!t._isSync&&r&&t._suggestionsView.getActive()&&Z(t).get("should-flag-new-suggestions")&&(t.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),t._suggestionsView.show()}))}function sr(t,e){clearTimeout(t.assistiveStatusTimerId),t.assistiveStatusTimerId=setTimeout((()=>{const i=t._assistiveStatus.innerText;e!==i&&(t._assistiveStatus.innerText=e)}),Us)}function rr(t){Qs(t,!0,t.value?"":t._input.value)}function ar(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&Z(t).set("should-cancel-response",!0)}function or(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function lr(t){ar(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==or(t);if(i||n)if(e)Ws(t);else{var s=or(t);void 0===s?Ws(t):t._input.value=s}}(t),function(t){t._suggestionModel.highlight(Bs)}(t),Ks(t)}const cr=J("aui-select",{template:Fs,created:function(t){t._listId=wn(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._assistiveStatus=t.querySelector(".aui-select-status.assistive"),t._suggestionsView=new zs(t._dropdown,t._input),t._suggestionModel=new Rs,t._suggestionModel.onChange=function(e){const i=[];t._suggestionModel._suggestions.forEach((function(t){e.some((e=>t.id===e.id))||i.push(t)}));const n=tr(t),s=ir(t.value,n),r=e.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;t._suggestionsView.render(i,e.length,t._listId,s),sr(t,r)},t._suggestionModel.onHighlightChange=function(){const e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e);const i=er(t);null!=i?t._input.setAttribute("aria-activedescendant",i):t._input.removeAttribute("aria-activedescendant")}},attached:function(t){J.init(t),nr(t),function(t){t._dropdown.id=t._listId,t.querySelector("button").setAttribute("aria-controls",t._listId)}(t),t._input.setAttribute("aria-controls",t._listId),function(t){i(t._dropdown).on("mouseover","li",(function(e){Vs(t)&&t._suggestionModel.highlight(i(e.target).index())}))}(t),function(t){let e=!1;i(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),i(t._dropdown).on("mousedown","li",(function(n){if(!Vs(t))return!1;t._suggestionModel.highlight(i(n.target).index()),Zs(t),i(t).closest(".aui-layer").length>0&&(e=!0)}))}(t),function(t){var e=t._datalist.querySelector("aui-option[selected]");e&&Js(t,Xs(e))}(t),function(t){var e=Vs(t)?0:Bs;t._suggestionModel.highlight(e),Ks(t)}(t),Gs(t)},detached:function(t){i(document).off("aui-close-layers-on-outer-click"),gn(t).then((()=>{Ks(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+Cs)},name(t,e){t.querySelector("select").setAttribute("name",e.newValue),t.querySelector("select").setAttribute("aria-label",`${e.newValue} list`),t.querySelector("button").setAttribute("aria-label",`${e.newValue} list`),t.querySelector('ul[role="listbox"]').setAttribute("aria-label",`${e.newValue} list`)},placeholder(t,e){t.querySelector("input").setAttribute("placeholder",e.newValue)},src(t,e){t._queryEndpoint=e.newValue}},events:{"blur input":function(t){lr(t)},"mousedown button":function(t){document.activeElement!==t._input||t._dropdown.hasAttribute("hidden")||Z(t).set("prevent-open-on-button-click",!0)},"click input":function(t){rr(t)},"click button":function(t){var e=Z(t);e.get("prevent-open-on-button-click")?e.set("prevent-open-on-button-click",!1):(Z(t).set("button-clicked-prevent-dropdown-hide",!0),t.focus())},input:function(t){t._input.value?Qs(t,!0):Z(t).get("button-clicked-prevent-dropdown-hide")?Z(t).set("button-clicked-prevent-dropdown-hide",!1):Ks(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===Q.ESCAPE)return ar(t),void qs(t);t._suggestionsView.isVisible()&&Vs(t)?e.keyCode===Q.ENTER?(ar(t),Zs(t),e.preventDefault()):e.keyCode===Q.TAB?(Zs(t),n=!0):e.keyCode===Q.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===Q.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==Q.UP&&e.keyCode!==Q.DOWN||(rr(t),e.preventDefault()),n=n||e.defaultPrevented,setTimeout((function(){t._input.value===i||n||t.dispatchEvent(new CustomEvent("input",{bubbles:!0}))}),0)}},prototype:{get value(){var t=this._select.options[this._select.selectedIndex];return t?t.value:""},set value(t){if(""===t)(n=this)._input.value="",n._select.innerHTML="";else if(t){var e=this._progressiveDataSet,i=e.findWhere({value:t})||e.findWhere({label:t});!i&&this.hasAttribute("can-create-values")&&(i=new Ps({value:t,label:t})),Js(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),lr(this),this},focus:function(){return this._input.focus(),rr(this),this}}});G("aui/select",cr),l("select",cr);const ur=cr,{entries:dr,setPrototypeOf:hr,isFrozen:pr,getPrototypeOf:fr,getOwnPropertyDescriptor:gr}=Object;let{freeze:mr,seal:vr,create:br}=Object,{apply:yr,construct:wr}="undefined"!=typeof Reflect&&Reflect;mr||(mr=function(t){return t}),vr||(vr=function(t){return t}),yr||(yr=function(t,e,i){return t.apply(e,i)}),wr||(wr=function(t,e){return new t(...e)});const _r=Rr(Array.prototype.forEach),xr=Rr(Array.prototype.lastIndexOf),Cr=Rr(Array.prototype.pop),Tr=Rr(Array.prototype.push),kr=Rr(Array.prototype.splice),Er=Rr(String.prototype.toLowerCase),Ar=Rr(String.prototype.toString),Sr=Rr(String.prototype.match),Dr=Rr(String.prototype.replace),Ir=Rr(String.prototype.indexOf),Mr=Rr(String.prototype.trim),Nr=Rr(Object.prototype.hasOwnProperty),Or=Rr(RegExp.prototype.test),Lr=(Pr=TypeError,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return wr(Pr,e)});var Pr;function Rr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return yr(t,e,n)}}function $r(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Er;hr&&hr(t,null);let n=e.length;for(;n--;){let s=e[n];if("string"==typeof s){const t=i(s);t!==s&&(pr(e)||(e[n]=t),s=t)}t[s]=!0}return t}function jr(t){for(let e=0;e<t.length;e++){Nr(t,e)||(t[e]=null)}return t}function zr(t){const e=br(null);for(const[i,n]of dr(t)){Nr(t,i)&&(Array.isArray(n)?e[i]=jr(n):n&&"object"==typeof n&&n.constructor===Object?e[i]=zr(n):e[i]=n)}return e}function Fr(t,e){for(;null!==t;){const i=gr(t,e);if(i){if(i.get)return Rr(i.get);if("function"==typeof i.value)return Rr(i.value)}t=fr(t)}return function(){return null}}const Hr=mr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Br=mr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ur=mr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wr=mr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Vr=mr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Yr=mr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qr=mr(["#text"]),Kr=mr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qr=mr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gr=mr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Jr=mr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zr=vr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xr=vr(/<%[\w\W]*|[\w\W]*%>/gm),ta=vr(/\$\{[\w\W]*/gm),ea=vr(/^data-[\-\w.\u00B7-\uFFFF]+$/),ia=vr(/^aria-[\-\w]+$/),na=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sa=vr(/^(?:\w+script|data):/i),ra=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),aa=vr(/^html$/i),oa=vr(/^[a-z][.\w]*(-[.\w]+)+$/i);var la=Object.freeze({__proto__:null,ARIA_ATTR:ia,ATTR_WHITESPACE:ra,CUSTOM_ELEMENT:oa,DATA_ATTR:ea,DOCTYPE_NAME:aa,ERB_EXPR:Xr,IS_ALLOWED_URI:na,IS_SCRIPT_OR_DATA:sa,MUSTACHE_EXPR:Zr,TMPLIT_EXPR:ta});const ca=1,ua=3,da=7,ha=8,pa=9,fa=function(){return"undefined"==typeof window?null:window};var ga=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fa();const i=e=>t(e);if(i.version="3.2.6",i.removed=[],!e||!e.document||e.document.nodeType!==pa||!e.Element)return i.isSupported=!1,i;let{document:n}=e;const s=n,r=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=e,g=c.prototype,m=Fr(g,"cloneNode"),v=Fr(g,"remove"),b=Fr(g,"nextSibling"),y=Fr(g,"childNodes"),w=Fr(g,"parentNode");if("function"==typeof o){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let _,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:k,getElementsByTagName:E}=n,{importNode:A}=s;let S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof dr&&"function"==typeof w&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:D,ERB_EXPR:I,TMPLIT_EXPR:M,DATA_ATTR:N,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=la;let{IS_ALLOWED_URI:$}=la,j=null;const z=$r({},[...Hr,...Br,...Ur,...Vr,...qr]);let F=null;const H=$r({},[...Kr,...Qr,...Gr,...Jr]);let B=Object.seal(br(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,W=null,V=!0,Y=!0,q=!1,K=!0,Q=!1,G=!0,J=!1,Z=!1,X=!1,tt=!1,et=!1,it=!1,nt=!0,st=!1,rt=!0,at=!1,ot={},lt=null;const ct=$r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ut=null;const dt=$r({},["audio","video","img","source","image","track"]);let ht=null;const pt=$r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let vt=mt,bt=!1,yt=null;const wt=$r({},[ft,gt,mt],Ar);let _t=$r({},["mi","mo","mn","ms","mtext"]),xt=$r({},["annotation-xml"]);const Ct=$r({},["title","style","font","a","script"]);let Tt=null;const kt=["application/xhtml+xml","text/html"];let Et=null,At=null;const St=n.createElement("form"),Dt=function(t){return t instanceof RegExp||t instanceof Function},It=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!At||At!==t){if(t&&"object"==typeof t||(t={}),t=zr(t),Tt=-1===kt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Et="application/xhtml+xml"===Tt?Ar:Er,j=Nr(t,"ALLOWED_TAGS")?$r({},t.ALLOWED_TAGS,Et):z,F=Nr(t,"ALLOWED_ATTR")?$r({},t.ALLOWED_ATTR,Et):H,yt=Nr(t,"ALLOWED_NAMESPACES")?$r({},t.ALLOWED_NAMESPACES,Ar):wt,ht=Nr(t,"ADD_URI_SAFE_ATTR")?$r(zr(pt),t.ADD_URI_SAFE_ATTR,Et):pt,ut=Nr(t,"ADD_DATA_URI_TAGS")?$r(zr(dt),t.ADD_DATA_URI_TAGS,Et):dt,lt=Nr(t,"FORBID_CONTENTS")?$r({},t.FORBID_CONTENTS,Et):ct,U=Nr(t,"FORBID_TAGS")?$r({},t.FORBID_TAGS,Et):zr({}),W=Nr(t,"FORBID_ATTR")?$r({},t.FORBID_ATTR,Et):zr({}),ot=!!Nr(t,"USE_PROFILES")&&t.USE_PROFILES,V=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,q=t.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Q=t.SAFE_FOR_TEMPLATES||!1,G=!1!==t.SAFE_FOR_XML,J=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,it=t.RETURN_TRUSTED_TYPE||!1,X=t.FORCE_BODY||!1,nt=!1!==t.SANITIZE_DOM,st=t.SANITIZE_NAMED_PROPS||!1,rt=!1!==t.KEEP_CONTENT,at=t.IN_PLACE||!1,$=t.ALLOWED_URI_REGEXP||na,vt=t.NAMESPACE||mt,_t=t.MATHML_TEXT_INTEGRATION_POINTS||_t,xt=t.HTML_INTEGRATION_POINTS||xt,B=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Dt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Dt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(Y=!1),et&&(tt=!0),ot&&(j=$r({},qr),F=[],!0===ot.html&&($r(j,Hr),$r(F,Kr)),!0===ot.svg&&($r(j,Br),$r(F,Qr),$r(F,Jr)),!0===ot.svgFilters&&($r(j,Ur),$r(F,Qr),$r(F,Jr)),!0===ot.mathMl&&($r(j,Vr),$r(F,Gr),$r(F,Jr))),t.ADD_TAGS&&(j===z&&(j=zr(j)),$r(j,t.ADD_TAGS,Et)),t.ADD_ATTR&&(F===H&&(F=zr(F)),$r(F,t.ADD_ATTR,Et)),t.ADD_URI_SAFE_ATTR&&$r(ht,t.ADD_URI_SAFE_ATTR,Et),t.FORBID_CONTENTS&&(lt===ct&&(lt=zr(lt)),$r(lt,t.FORBID_CONTENTS,Et)),rt&&(j["#text"]=!0),J&&$r(j,["html","head","body"]),j.table&&($r(j,["tbody"]),delete U.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=t.TRUSTED_TYPES_POLICY,x=_.createHTML("")}else void 0===_&&(_=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(i=e.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(f,r)),null!==_&&"string"==typeof x&&(x=_.createHTML(""));mr&&mr(t),At=t}},Mt=$r({},[...Br,...Ur,...Wr]),Nt=$r({},[...Vr,...Yr]),Ot=function(t){Tr(i.removed,{element:t});try{w(t).removeChild(t)}catch(e){v(t)}},Lt=function(t,e){try{Tr(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Tr(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{Ot(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Pt=function(t){let e=null,i=null;if(X)t="<remove></remove>"+t;else{const e=Sr(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===Tt&&vt===mt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const s=_?_.createHTML(t):t;if(vt===mt)try{e=(new p).parseFromString(s,Tt)}catch(t){}if(!e||!e.documentElement){e=C.createDocument(vt,"template",null);try{e.documentElement.innerHTML=bt?x:s}catch(t){}}const r=e.body||e.documentElement;return t&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),vt===mt?E.call(e,J?"html":"body")[0]:J?e.documentElement:r},Rt=function(t){return T.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},$t=function(t){return t instanceof h&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},jt=function(t){return"function"==typeof l&&t instanceof l};function zt(t,e,n){_r(t,(t=>{t.call(i,e,n,At)}))}const Ft=function(t){let e=null;if(zt(S.beforeSanitizeElements,t,null),$t(t))return Ot(t),!0;const n=Et(t.nodeName);if(zt(S.uponSanitizeElement,t,{tagName:n,allowedTags:j}),G&&t.hasChildNodes()&&!jt(t.firstElementChild)&&Or(/<[/\w!]/g,t.innerHTML)&&Or(/<[/\w!]/g,t.textContent))return Ot(t),!0;if(t.nodeType===da)return Ot(t),!0;if(G&&t.nodeType===ha&&Or(/<[/\w]/g,t.data))return Ot(t),!0;if(!j[n]||U[n]){if(!U[n]&&Bt(n)){if(B.tagNameCheck instanceof RegExp&&Or(B.tagNameCheck,n))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(n))return!1}if(rt&&!lt[n]){const e=w(t)||t.parentNode,i=y(t)||t.childNodes;if(i&&e){for(let n=i.length-1;n>=0;--n){const s=m(i[n],!0);s.__removalCount=(t.__removalCount||0)+1,e.insertBefore(s,b(t))}}}return Ot(t),!0}return t instanceof c&&!function(t){let e=w(t);e&&e.tagName||(e={namespaceURI:vt,tagName:"template"});const i=Er(t.tagName),n=Er(e.tagName);return!!yt[t.namespaceURI]&&(t.namespaceURI===gt?e.namespaceURI===mt?"svg"===i:e.namespaceURI===ft?"svg"===i&&("annotation-xml"===n||_t[n]):Boolean(Mt[i]):t.namespaceURI===ft?e.namespaceURI===mt?"math"===i:e.namespaceURI===gt?"math"===i&&xt[n]:Boolean(Nt[i]):t.namespaceURI===mt?!(e.namespaceURI===gt&&!xt[n])&&!(e.namespaceURI===ft&&!_t[n])&&!Nt[i]&&(Ct[i]||!Mt[i]):!("application/xhtml+xml"!==Tt||!yt[t.namespaceURI]))}(t)?(Ot(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Or(/<\/no(script|embed|frames)/i,t.innerHTML)?(Q&&t.nodeType===ua&&(e=t.textContent,_r([D,I,M],(t=>{e=Dr(e,t," ")})),t.textContent!==e&&(Tr(i.removed,{element:t.cloneNode()}),t.textContent=e)),zt(S.afterSanitizeElements,t,null),!1):(Ot(t),!0)},Ht=function(t,e,i){if(nt&&("id"===e||"name"===e)&&(i in n||i in St))return!1;if(Y&&!W[e]&&Or(N,e));else if(V&&Or(O,e));else if(!F[e]||W[e]){if(!(Bt(t)&&(B.tagNameCheck instanceof RegExp&&Or(B.tagNameCheck,t)||B.tagNameCheck instanceof Function&&B.tagNameCheck(t))&&(B.attributeNameCheck instanceof RegExp&&Or(B.attributeNameCheck,e)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(e))||"is"===e&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Or(B.tagNameCheck,i)||B.tagNameCheck instanceof Function&&B.tagNameCheck(i))))return!1}else if(ht[e]);else if(Or($,Dr(i,P,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Ir(i,"data:")||!ut[t]){if(q&&!Or(L,Dr(i,P,"")));else if(i)return!1}else;return!0},Bt=function(t){return"annotation-xml"!==t&&Sr(t,R)},Ut=function(t){zt(S.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||$t(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let s=e.length;for(;s--;){const r=e[s],{name:a,namespaceURI:o,value:l}=r,c=Et(a),u=l;let d="value"===a?u:Mr(u);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,zt(S.uponSanitizeAttribute,t,n),d=n.attrValue,!st||"id"!==c&&"name"!==c||(Lt(a,t),d="user-content-"+d),G&&Or(/((--!?|])>)|<\/(style|title)/i,d)){Lt(a,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Lt(a,t);continue}if(!K&&Or(/\/>/i,d)){Lt(a,t);continue}Q&&_r([D,I,M],(t=>{d=Dr(d,t," ")}));const h=Et(t.nodeName);if(Ht(h,c,d)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(o);else switch(f.getAttributeType(h,c)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==u)try{o?t.setAttributeNS(o,a,d):t.setAttribute(a,d),$t(t)?Ot(t):Cr(i.removed)}catch(e){Lt(a,t)}}else Lt(a,t)}zt(S.afterSanitizeAttributes,t,null)},Wt=function t(e){let i=null;const n=Rt(e);for(zt(S.beforeSanitizeShadowDOM,e,null);i=n.nextNode();)zt(S.uponSanitizeShadowNode,i,null),Ft(i),Ut(i),i.content instanceof a&&t(i.content);zt(S.afterSanitizeShadowDOM,e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,c=null;if(bt=!t,bt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!jt(t)){if("function"!=typeof t.toString)throw Lr("toString is not a function");if("string"!=typeof(t=t.toString()))throw Lr("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Z||It(e),i.removed=[],"string"==typeof t&&(at=!1),at){if(t.nodeName){const e=Et(t.nodeName);if(!j[e]||U[e])throw Lr("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)n=Pt("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),r.nodeType===ca&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!tt&&!Q&&!J&&-1===t.indexOf("<"))return _&&it?_.createHTML(t):t;if(n=Pt(t),!n)return tt?null:it?x:""}n&&X&&Ot(n.firstChild);const u=Rt(at?t:n);for(;o=u.nextNode();)Ft(o),Ut(o),o.content instanceof a&&Wt(o.content);if(at)return t;if(tt){if(et)for(c=k.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(F.shadowroot||F.shadowrootmode)&&(c=A.call(s,c,!0)),c}let d=J?n.outerHTML:n.innerHTML;return J&&j["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Or(aa,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Q&&_r([D,I,M],(t=>{d=Dr(d,t," ")})),_&&it?_.createHTML(d):d},i.setConfig=function(){It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},i.clearConfig=function(){At=null,Z=!1},i.isValidAttribute=function(t,e,i){At||It({});const n=Et(t),s=Et(e);return Ht(n,s,i)},i.addHook=function(t,e){"function"==typeof e&&Tr(S[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=xr(S[t],e);return-1===i?void 0:kr(S[t],i,1)[0]}return Cr(S[t])},i.removeHooks=function(t){S[t]=[]},i.removeAllHooks=function(){S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();const ma="aui-tooltip",va={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},ba="aui-tooltip",ya={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let wa;const _a=(t=!1)=>{const e=wa&&wa.get(0);e&&(e.classList.toggle("hidden",t),e.setAttribute("aria-hidden",t))};class xa{constructor(t,e){this.triggerElement=t,this.$triggerElement=i(this.triggerElement),this.options={...ya,...e},this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer(),this.observeTriggerRemoval()}destroy(){this.unbindHandlers(),this.hide(),this.restoreOriginalAttributes(),Ca.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,t.options.aria&&e.attr("aria-describedby",ma),null}))}restoreOriginalAttributes(){const t=this.$triggerElement;this.originalTitle&&t.attr("title",this.originalTitle),t.attr("aria-describedby")===ma&&t.removeAttr("aria-describedby")}observeTriggerRemoval(){const t=[];this.options.$delegationRoot&&this.options.$delegationRoot.get(0)&&t.push(this.options.$delegationRoot.get(0)),this.triggerElement&&t.push(this.triggerElement),this.triggerObservers=t.map((t=>{const e=t.parentElement;if(e){const i=new MutationObserver((()=>{!e.contains(t)&&this.destroy()}));return i.observe(e,{childList:!0,subtree:!1}),i}})).filter((t=>!!t))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(`.${ba}`,t):(this.triggerObservers.length>0&&this.triggerObservers.forEach((t=>t.disconnect())),this.$triggerElement.off(`.${ba}`))}initContainer(){(void 0===wa||wa.get(0)&&!wa.get(0).isConnected)&&(wa=i(`<div id="${ma}" class="aui-tooltip hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(wa))}buildTip(t){const e=this.options,i=wa.find(".aui-tooltip-content");return e.html?(e.sanitize&&(t=ga.sanitize(t)),i.html(t)):i.text(t),e.maxWidth&&i.css("max-width",e.maxWidth+"px"),wa}getTipTitle(){const t=this.options;let e=("function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"").call(this.triggerElement);return e&&e.trim().length?e:void 0}show(){const t=this.getTipTitle();if(!1===this.enabled||!t)return;wa&&t!==wa.text()&&this.hide();const e=this.triggerElement,n=va[this.options.gravity];if("function"==typeof this.options.suppress&&!0===this.options.suppress.call(e))return;const s=this.buildTip(t).get(0);this.showTooltip(),this.popperInstance=Xi(e,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on(`scroll.${ba}`,(()=>this.hide()))}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${ba}`)}showTooltip(){_a(!1)}hideTooltip(){_a(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Ca=new WeakMap,Ta=(t,e)=>{let i=Ca.get(t);return void 0===i&&(i=new xa(t,e),"object"==typeof t&&Ca.set(t,i)),i},ka=t=>t.map((t=>`${t}.${ba}`)).join(" "),Ea=ka(["mouseenter","focus"]),Aa=ka(["click","mouseleave","blur"]);let Sa,Da;i.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return Ta(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),e}const i=t||{},n=function(){clearTimeout(Da),clearTimeout(Sa)},s=function(){n();const t=Ta(this,i);Sa=setTimeout((()=>{n(),t.show(),wa&&(wa.off(`mouseenter.${ba}`),wa.off(`mouseleave.${ba}`),wa.on(`mouseenter.${ba}`,(()=>{n()})),wa.on(`mouseleave.${ba}`,(()=>{n(),r()})))}),300)},r=function(){n();const t=Ta(this,i);Da=setTimeout((()=>{t.hide()}),300)},a=function(t){"Escape"===t.code&&r()},o=i.live;return void 0!==o?(i.$delegationRoot=e,e.on(Ea,o,s),e.on(Aa,o,r),e.on("keyup",o,a)):(e.on(Ea,s),e.on(Aa,r),e.on("keyup",a)),e};function Ia(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}const Ma={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:Ia,computeEnumValue:function(t,e){const i=t=>t.toLowerCase()===e.toLowerCase(),n=null===e,s=!n&&!t.values.filter(i).length;return n?t.hasOwnProperty("missingDefault")?t.missingDefault:null:s?t.hasOwnProperty("invalidDefault")?t.invalidDefault:t.hasOwnProperty("missingDefault")?t.missingDefault:null:t.values.length?t.values.filter(i)[0]:null},setEnumAttribute:function(t,e,i){t.setAttribute(e.attribute,i)}};function Na(t){return t._input||(t._input=t.querySelector("input"))}function Oa(t){return t._spinner||(t._spinner=new ye)}function La(t,e){Na(e).removeAttribute(t)}function Pa(t,e,i){Na(e).setAttribute(t,i.newValue)}function Ra(t){return{removed:La.bind(this,t),fallback:Pa.bind(this,t)}}const $a={removed:function(t){La.call(this,"form",t),t._formId=null},fallback:function(t,e){Pa.call(this,"form",t,e),t._formId=e.newValue}},ja={removed:La.bind(void 0,"id"),fallback:function(t,e){const i=`${e.newValue}${Cs}`;Na(t).setAttribute("id",i)}},za={removed:function(t){La.call(this,"value",t),Na(t).value="on"},fallback:function(t,e){Pa.call(this,"value",t,e)}},Fa={removed:function(t){Na(t).checked=!1},fallback:function(t){Na(t).checked=!0}},Ha={removed:function(t){Na(t).removeAttribute("aria-label")},fallback:function(t,e){Na(t).setAttribute("aria-label",e.newValue)}};function Ba(t){Na(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===Q.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Na(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===Me)try{document.querySelector(":focus-within"),Me=!0}catch(t){Me=!1}return Me}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}const Ua=J("aui-toggle",{template:Wt()('<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(t){Na(t),Oa(t).setAttribute("size",he.SMALL.name),i(Na(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Ba(t),t.hasAttribute("checked")&&Na(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){xs(t).attributeExists("label")},events:{click:function(t,e){const i=Na(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}(t)),Ia(t,"checked",i.checked)}},attributes:{id:ja,checked:Fa,disabled:Ra("disabled"),form:$a,name:Ra("name"),value:za,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){Na(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){Na(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:Ha},prototype:{focus:function(){return Na(this).focus(),this},get checked(){return Na(this).checked},set checked(t){Na(this).checked!==t&&(Na(this).checked=t,Ia(this,"checked",t))},get disabled(){return Na(this).disabled},set disabled(t){return Ia(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return $a.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return Na(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return Na(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===Na(this).getAttribute("aria-busy")},set busy(t){const e=Na(this),n=Oa(this);var s,r;return Ia(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!t,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(t){t.disabled=r})),t}}}),Wa=Ua,Va=1e3;function Ya(t,e){ao(t)&&et(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),tt(t,e)}function qa(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let i={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};t._auiAlignment=new fn(t,e,i)}}function Ka(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Qa(t,e){var i=e.currentTarget;i&&(Ya(t,i),qa(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function Ga(t=0){return function(e){e.open&&!Mt(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){(function(t){return Z(t).get("mouse-inside")||t.contains(document.activeElement)})(e)||(e.open=!1),e._closingTimeout=null}),t))}}const Ja={click(t,e){t.open&&!Mt(t).isPersistent()?t.open=!1:(Ya(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:Qa,mouseleave:Ga(Va),focus:Qa,blur:Ga(0)};function Za(t){var e=t.currentTarget;Z(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function Xa(t){var e=t.currentTarget;Z(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function to(t){var e=t.currentTarget;"hover"===e.respondsTo&&Ga(Va)(e)}function eo(t){Z(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",Za),t.removeEventListener("mouseleave",Xa),t.removeEventListener("blur",to),"hover"===t.respondsTo&&(Z(t).set("mouse-inside",!1),t.addEventListener("mouseenter",Za),t.addEventListener("mouseleave",Xa),t.addEventListener("blur",to))}function io(t,e){return`${t}.nested-layer-${e}`}function no(t){return Mt(t).show(),!0===Mt(t).isVisible()}function so(t){return Mt(t).hide(),!1===Mt(t).isVisible()}function ro(t){return"hover"!==t.respondsTo}function ao(t){return"dialog"!==t.getAttribute("role")}function oo(t){t.__initialised||(Mt(t),i(t).on({[`${mt}show`]:function(t){const e=this;t.target===e&&(!function(t){let e=i(t);const n=t.id,s=t=>e.find(X(t.target)).length<1;i(document).on(io("aui-layer-show",n),(t=>{s(t)||e.attr("persistent","")})).on(io("aui-layer-hide",n),(t=>{s(t)||e.removeAttr("persistent")})).on(io("select2-opening",n),(()=>{e.attr("persistent","")})).on(io("select2-close",n),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(e),et(e,(function(t){ro(e)&&ft().enter(i(e),i(t)),qa(e,t),ao(e)&&t.setAttribute("aria-expanded","true")})))},[`${mt}hide`]:function(t){const e=this;var n;t.target===e&&(n=e.id,i(document).off(io("aui-layer-hide",n)).off(io("aui-layer-show",n)).off(io("select2-opening",n)).off(io("select2-close",n)),e.ownerDocument.body.contains(e)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(e):Ka(e),et(e,(function(t){ro(e)&&ft().exit(i(e)),ao(e)&&t.setAttribute("aria-expanded","false")})),tt(e,null))}}),t.__initialised=!0)}const lo={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},co=J("aui-inline-dialog",{prototype:{get open(){return Mt(this).isVisible()},set open(t){this.__propUpdate=!0,t?no(this):so(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){Ma.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=lo.attribute;return Ma.computeEnumValue(lo,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;Ma.setEnumAttribute(this,lo,t),e!==this.respondsTo&&eo(this)},message:function(t){var e,i,n;return i=t,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(e=this).respondsTo])&&n.indexOf(i.type)>-1&&Ja[i.type](e,i),this}},attributes:{open:function(t,e){if(oo(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){no(t)||Ia(t,"open",!1)}if("removed"===e.type){so(t)||Ia(t,"open",!0)}}},"responds-to":function(t,e){Ma.computeEnumValue(lo,e.oldValue)!==Ma.computeEnumValue(lo,e.newValue)&&eo(t)}},created:oo,attached:function(t){xs(t).attributeExists("id"),t.setAttribute("tabindex",0),ao(t)&&(t.setAttribute("role","group"),et(t,(function(e){e.setAttribute("aria-expanded",t.open)})),it(t,(function(t){t.setAttribute("aria-haspopup","true")}))),eo(t)},detached:function(t){gn(t).then((()=>{Ka(t),ao(t)&&it(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){i('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});G("aui/inline-dialog2",co),l("InlineDialog2",co);const uo=co;function ho(t){if(this.$el=i(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new ho(e)}))[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var e=this.$el.children(".aui-nav-selected");e.parents(".aui-nav > [aria-expanded=false]").add(e.filter("[aria-expanded=false]")).each((function(){po(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){po(i(this).siblings(".aui-nav")).toggle()})),n.each((function(){var t=i(this).parent("li[aria-expanded]"),e=i(this).find(".aui-icon"),n="true"===t.attr("aria-expanded");e.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}ho.prototype.isNested=function(){return 1===this.$treeParent.length},ho.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},ho.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},ho.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},ho.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const po=gt("navigation",ho),fo=J("aui-nav",{type:J.type.CLASSNAME,attached:function(t){new ho(t)},detached:function(t){i(t).removeData()}});l("navigation",po);const go=po,mo="aui-progress-indicator-after-update",vo="aui-progress-indicator-before-update",bo="transitionend webkitTransitionEnd";function yo(t,e,{currentProgress:n,value:s}){const r=i(t),a=i(e);"number"==typeof s&&s<=1&&s>=0&&(a.trigger(vo,[n,s]),r.one(bo,(function(){a.trigger(mo,[n,s])})),function(t,e,i){U(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(r,a,s))}function wo(t){var e=i(t).first(),n=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),U(e),n.css("width","")}const _o={indeterminate:!1,max:1,val:0};function xo(t){return(0,de.isNumber)(t)&&(0,de.isFinite)(t)&&!(0,de.isNaN)(t)}function Co(t,e=1){const i=parseFloat(t);return xo(i)?i:Number(e)}function To(t,e=1){return Number(parseFloat(t).toFixed(e))}function ko(t){const{val:e,max:i}=t,n=function(t){return t>0?t:_o.max}(i),s=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),r=To(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:To(100*r,2)}}function Eo(t){const{val:e,valAsFraction:i,max:n}=ko(t._data),s=t.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");t.indeterminate?(s.removeAttribute("aria-valuenow"),wo(s)):(s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuemax",n),yo(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function Ao(t,e){t._data.val=Co(e.newValue,e.oldValue||_o.val),Eo(t)}function So(t,e){t._data.max=Co(e.newValue,e.oldValue||_o.max),Eo(t)}const Do=J("aui-progressbar",{template(t){t._data.max=Co(t.getAttribute("max"),_o.max),t._data.val=Co(t.getAttribute("value"),_o.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:s}=ko(t._data),r=t._data.indeterminate?"":`data-value="${n}"`;t.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${e}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(t){Eo(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:_o.val,fallback:function(t,e){if(t._updating)return!1;Ao(t,e)}},max:{value:_o.max,fallback:function(t,e){if(t._updating)return!1;So(t,e)}}},prototype:{get _data(){return this.__data||(this._data=(0,de.defaults)({},_o))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,Eo(this)},get value(){const{val:t}=ko(this._data);return t},set value(t){if(!xo(t))return!1;const e={newValue:To(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,Ao(this,e)},get max(){const{max:t}=ko(this._data);return t},set max(t){if(!xo(t))return!1;const e={newValue:To(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,So(this,e)}}}),Io={update:R((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var n=i(t).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===e;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),yo(s,n,{currentProgress:o,value:e}),n}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:R(wo,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",Io);const Mo=Io;n(99);const No={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Oo(t,e){let n=Object.assign({},No,e);return t.find("th").each((function(t,e){const s=i(e);n.headers[t]={},s.hasClass("aui-table-column-unsortable")?n.headers[t].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[t].sorter="issue-key"))})),t.tablesorter(n)}let Lo={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){const e=t.split("-"),i=e[0],n=e[1],s="..........",r="000000";let a=(i+s).slice(0,10);return a+=(r+n).slice(-6),a},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(t,e,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(t,e,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each((function(){Oo(i(this))}))},setTableSortable:function(t,e){return Oo(t,e)}};i(Lo.setup),l("tablessortable",Lo);function Po(t,e=""){var n=i(t),s=e||!1;n.each((function(){var t=i(this);t.attr("id")||t.attr("id",wn(s))}))}l("_addID",Po);const Ro=Po;function $o(t){return(t=i(t)).prop("scrollWidth")>t.prop("clientWidth")}l("isClipped",$o);const jo=$o;var zo=window.skateTemplateHtml,Fo="_internal-aui-tabs-",Ho='.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])';function Bo(t){let e=i(t),n=String(e.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Uo(t){let e=Bo(t);return e?document.getElementById(e):null}var Wo={totalTabsWidth:function(t,e){var i=this.totalVisibleTabWidth(t),n=0;return e.find("li").each((function(t,e){n+=parseInt(e.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(t){var e=0;return t.each((function(t,n){e+=i(n).outerWidth()})),e},removeResponsiveDropdown:function(t,e){t.remove(),e.remove()},createResponsiveDropdownTrigger:function(t,e){var i=`<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-${e}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${e}"\n href="#aui-tabs-responsive-dropdown-${e}">...</a>\n </li>`;return t.append(i),t.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(t,e){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+e+'"><ul></ul></div>';return t.append(i),t.find("#aui-tabs-responsive-dropdown-"+e)},findNewVisibleTabs:function(t,e,n){function s(t,e,i){return t+e<=i}for(var r=0,a=0;s(r,n,e)&&a<t.length;a++){r+=i(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(t,e.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=i(t[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(a)},moveTabToResponsiveDropdown:function(t,e,i){var n=t.find("a");t.attr("data-aui-tab-width",t.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),t.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),e.find("ul").prepend(t)},moveInvisibleTabs:function(t,e,n){function s(t){return t>0}for(var r=0;s(e)&&r<t.length;r++){var a=i(t[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,n),e-=o}},moveTabOutOfDropdown:function(t,e){t.find("a").hasClass("aui-dropdown2-checked")&&(t.addClass("active-tab"),e.removeClass("active-tab")),t.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),e.before(t)}};function Vo(t){var e=i(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var n=Uo(e);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),e.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),e.hasClass("aui-tabs-responsive-item")){var o=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}e.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),e.closest(".tabs-menu").find("a").attr("aria-selected","false"),e.attr("aria-selected","true"),e.trigger("tabSelect",{tab:e,pane:s})}else m("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Yo(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function qo(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return Fo+(e||"")+(i&&"true"!==i?"-"+i:"")}function Ko(t){tl.change(i(t.target).closest("a")),t&&t.preventDefault()}function Qo(t){t.forEach((function(t,e){!function(t,e){var n=i(t),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Wo.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=Wo.createResponsiveDropdownTrigger(s,e),c=Wo.createResponsiveDropdown(n,e)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+e),o.attr("id","aui-tabs-responsive-trigger-"+e),o.attr("href","#aui-tabs-responsive-trigger-"+e),c.attr("id","aui-tabs-responsive-dropdown-"+e),d){var h=Wo.moveVisibleTabs(r.toArray(),n,a),p=Wo.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");Wo.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Ko),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Wo.moveTabOutOfDropdown(i(this),a)})),Wo.removeResponsiveDropdown(c,a))}(t,e)}))}function Go(){return i(Ho).toArray()}function Jo(t){var e=i(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var n=e.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each((function(){var t,e,n;e=i(t=this),n=Uo(e),Bo(t)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),n?(Ro(e),e.attr("role","tab"),i(n).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.attr("aria-selected","false")):g("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",t)})),n.on("click.aui-tabs","a",Ko),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(Xo)}(t)}}function Zo(){var t=i(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){Jo(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),s=t.get(e);if(Yo(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(qo(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&Vo(a)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function Xo(t){t.setAttribute("role","tabpanel")}var tl={setup:function(){!function(){const t=(0,de.debounce)(Qo,200);t(Go()),i(window).on("resize.aui-tabs",(()=>t(Go())))}(),Zo(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var t=i(this);t.attr("title")||jo(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof i?t:document.querySelector(t),n=i(e).first(),s=n.closest(".aui-tabs");Vo(n),Yo(s)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=Bo(t);i&&window.localStorage.setItem(qo(e),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(tl.setup);const el=J("aui-tabs",{created:function(t){i(t).addClass("aui-tabs horizontal-tabs"),J.init(t),Jo(t)},template:zo('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(t){var e=i(function(t){return t.querySelectorAll("aui-tabs-pane")}(this)).index(t);return e>-1&&tl.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[e].children[0]),this}}}),il=J("aui-tabs-tab",{extends:"li",created:function(t){i(t).addClass("menu-item")},template:zo('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),nl=J("aui-tabs-pane",{attached:function(t){var e=i(function(t){return i(t).closest("aui-tabs").get(0)}(t)),n=i(t),s=e.find("aui-tabs-pane").index(n),r=new il,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+t.id),zo.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:zo("<content></content>")});l("tabs",tl);const sl="_aui-form-notification-initialised",rl="aria-describedby",al="description",ol="errors",ll="data-aui-notification-",cl=ll+"wait",ul=ll+"info",dl=ll+"error",hl=[dl,ll+"success",cl,ul];function pl(t){fl(t)||(!function(t){t.addClass(sl),gl(t)}(t),bl(t))}function fl(t){return t.hasClass(sl)}function gl(t,e){if(e=e||ml(t),vl(t)===ul){t.parent().find(".description").length||t.after(function(t,e){const i=t.attr("id")||t.attr("name");if(e.length>1){let t=e.map((t=>`<li>${t}</li>`)).join("");return`<div class="description" id="${i}-${al}"><ul>${t}</ul></div>`}return`<div class="description" id="${i}-${al}">${e}</div>`}(t,e))}yl(t)}function ml(t){var e=vl(t),i=e?t.attr(e):"";return""===i?i:function(t){var e;try{e=JSON.parse(t)}catch(i){e=[t]}return e}(i)}function vl(t){let e;return hl.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function bl(t){const e=i(t);if(!fl(e))return;const n=vl(e);xl(e,n===cl);const s=ml(e);s&&n===dl?wl(e,s):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(dl)||e.parent().find(".error").remove()}function yl(t){const e=[],i=t.attr("id")||t.attr("name"),n=vl(t);ml(t)&&n===dl&&e.push(`${i}-${ol}`),_l(t,"description").length&&e.push(`${i}-${al}`);const s=function(t){const e={"aui-select":'input[type="text"][role="combobox"]'};for(let[i,n]of Object.entries(e))if(t.is(i)){const e=t.find(n);if(e.length)return e}return t}(t);s.attr(rl,e.length?e.join(" "):null)}function wl(t,e){let i=_l(t,"error");i.length>0&&i.remove(),t.after(function(t,e){const i=t.attr("id")||t.attr("name"),n=e.map((t=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification"></span>${t}</li>`)).join("");return`<div class="error" role="alert" id="${i}-${ol}"><ul>${n}</ul></div>`}(t,e)),yl(t)}function _l(t,e){return t.parent().find(`.${e}`)}function xl(t,e){e&&!function(t){return t.next("aui-spinner").length>0}(t)?t.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):t.parent().find("aui-spinner").remove()}const Cl=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});J("data-aui-notification-field",{attached:function(t){Cl(),pl(i(t))},attributes:function(){const t={};return hl.forEach((function(e){t[e]=bl})),t}(),type:J.type.ATTRIBUTE}),G("aui/form-notification");var Tl=["displayfield","watchfield","when","novalidate","state"],kl=[];var El={register:function(t,e){var n;if("string"==typeof t)n=t;else{var s=function(t){var e=!1;return t.some((function(t){var n=-1!==i.inArray(t,Tl);return n&&(e=t),n})),e}(t);if(s)return g('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var r={validatorFunction:e,validatorTrigger:n};return kl.push(r),r},validators:function(){return kl}};G("aui/form-validation/validator-register",El);const Al=El;function Sl(t){var e=t.el.value.length;let i=0===e;var n=parseInt(t.args("minlength"),10),s=parseInt(t.args("maxlength"),10);if(n&&s&&n===s&&!i&&e!==n){const e=Ll("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=Ll("minlength",t.args);t.invalidate(e)}else if(s&&e>s){const e=Ll("maxlength",t.args);t.invalidate(e)}else t.validate()}function Dl(t){return"password"===t.getAttribute("type")}function Il(t,e){var i=t.match(e);return!!i&&t===i[0]}function Ml(t){var e=Ll("pattern",t.args);Il(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function Nl(t){var e=Ll("required",t.args);t.el.value?t.validate():t.invalidate(e)}function Ol(t){var e=Ll("validnumber",t.args),i=parseInt(t.el.value,10);if(isNaN(i))t.invalidate(e);else{var n=t.args("min"),s=t.args("max");n&&i<parseInt(n,10)?t.invalidate(Ll("min",t.args)):s&&i>parseInt(s,10)?t.invalidate(Ll("max",t.args)):t.validate()}}function Ll(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:Pl[t];var s=i;i||(s=[e(t)]);var r,a=e(t+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}Al.register(["maxlength","minlength"],Sl),Al.register("[maxlength],[minlength]",Sl),Al.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,s=Ll("matchingfield",t.args,[e,n]);(Dl(t.el)||Dl(i))&&(s=Ll("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(s):t.validate()})),Al.register(["doesnotcontain"],(function(t){var e=Ll("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),Al.register(["pattern"],Ml),Al.register("[pattern]",Ml),Al.register(["required"],Nl),Al.register("[required]",Nl),Al.register(["min","max"],Ol),Al.register("[min],[max]",Ol),Al.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=Ll("dateformat",t.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=e.split(""),r="";s.forEach((function(t){var e=n.hasOwnProperty(t);r+=e?n[t]:t}));var a=new RegExp(r+"$","i");Il(t.el.value,a)?t.validate():t.invalidate(i)})),Al.register(["minchecked","maxchecked"],(function(t){var e=i(t.el).find(":checked").length,n=!t.args("minchecked")||e>=t.args("minchecked"),s=!t.args("maxchecked")||e<=t.args("maxchecked"),r=Ll("minchecked",t.args),a=Ll("maxchecked",t.args);n&&s?t.validate():n?s||t.invalidate(a):t.invalidate(r)}));var Pl={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 Rl="aui-validation-",$l="data-aui-notification-",jl="aui-validation-state",zl="invalid",Fl="valid",Hl="validating",Bl="unvalidated",Ul="_aui-form-validation-initialised",Wl="_aui-internal-field-state-changed";function Vl(t){(function(t){return t.hasClass(Ul)})(t)||(!function(t){t.addClass(Ul),gl(t)}(t),function(t){(function(t){var e,i=function(){t.trigger("aui-stop-typing")};t.on("keyup",(function(){clearTimeout(e),e=setTimeout(i,1500)}))})(t),function(t){var e=ql(t,"when"),i=ql(t,"watchfield"),n=i?t.add("#"+i):t;n.on(e,(function(){Yl(t)}))}(t)}(t),Gl(t,Bl))}function Yl(t){if(!ql(t,"novalidate"))return function(t){!function(t){Jl(Xl(t),"none")}(t);var e=function(t){var e=[];return Kl().forEach((function(i,n){var s=i.validatorTrigger;t.is(s)&&e.push(n)})),e}(t);Gl(t,Hl);var n=function(t,e){var n=[];return e.forEach((function(e){var s=Kl()[e].validatorFunction,r=new i.Deferred,a=function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){Gl(t,zl,i),e.reject()},args:Ql(t),el:t[0],$el:t};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"11.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(t,r);s(a),n.push(r)})),n}(t,e),s=i.when.apply(i,n);return s.done((function(){Gl(t,Fl)})),s}(t);Gl(t,Fl)}function ql(t,e){var i=t.attr("data-"+Rl+e);return i||(i={when:"change"}[e]),i}function Kl(){return Al.validators()}function Ql(t){return function(e){return t.attr("data-"+Rl+e)||t.attr(e)}}function Gl(t,e,n){if(t.attr("data-"+jl,e),t.attr("aria-invalid",!1),e!==Bl){t.trigger(i.Event(Wl));var s=Xl(t),r={};r[Hl]="wait",r[zl]="error",r[Fl]="success";var a=r[e];e===Hl?function(t){setTimeout((function(){tc(t)===Hl&&(Jl(t,"wait"),xl(t,!0))}),500)}(t):Jl(s,a,n),e===zl&&t.attr("aria-invalid",!0)}}function Jl(t,e,i){const n=function(t){return t.is("["+$l+"wait]")}(t);!function(t){Zl(t,"wait"),xl(t,!1),Zl(t,"success")}(t);var s,r;if(!("success"===e&&!n))if("none"===e)Zl(t,"error");else{const n=t.attr($l+e)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];t.attr($l+e,JSON.stringify(a)),"error"===e&&wl(t,a)}}function Zl(t,e){t.removeAttr($l+e),"error"===e&&(_l(t,e).remove(),yl(t))}function Xl(t){var e=ql(t,"displayfield");return void 0===e?t:i("#"+e)}function tc(t){return t.attr("data-"+jl)}function ec(t,e){e.preventDefault(),t.one(Wl,(function(){t.trigger("submit")}))}function ic(t,e){var i="[data-"+jl+"="+e+"]";return t.find(i)}i(document).on("submit",(function(t){var e=t.target,n=i(e),s=function(t){var e=t.find("."+Ul);return o=e,n=i.map(o,(function(t){return tc(i(t))})),s=-1!==n.indexOf(zl),r=-1!==n.indexOf(Bl),a=-1!==n.indexOf(Hl),s?zl:r?Bl:a?Hl:Fl;var n,s,r,a;var o}(n);if(s===Bl)ec(n,t),function(t){var e=ic(t,Bl);e.each((function(t,e){nc.validate(i(e))}))}(n);else if(s===Hl)ec(n,t);else if(s===zl)t.preventDefault(),function(t){var e=ic(t,zl).first();e.focus()}(n);else if(s===Fl){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&t.preventDefault()}}));const nc={register:Al.register,validate:function(t){Yl(t=i(t))}};J("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),Vl(i(t)),J.init(t)},type:J.type.ATTRIBUTE}),G("aui/form-validation",nc),l("formValidation",nc);var sc=R((function(t,e){var i,n;return function(){var s=arguments,r=this;return clearTimeout(i),i=setTimeout((function(){n=t.apply(r,s),r=s=null}),e),n}}),"AJS.debounce",{removeInVersion:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const rc=sc;l("debounce",sc);var ac=R((function(t,e){var i,n=null;return function(){var s=this,r=arguments;return null===n&&(i=t.apply(s,r)),clearTimeout(n),n=setTimeout((function(){n=s=r=null}),e),i}}),"AJS.debounceImmediate",{removeInVersion:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});l("debounceImmediate",ac);const oc=i(window);function lc(t){var e,n=this;this.element=t,this.$element=i(t),this.index=i("aui-header, .aui-header").index(t),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(e=i(n.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}lc.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=i(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=i(this).parent(),n=e.outerWidth(!0);t.totalWidth+=n,t.menuItems.push({$element:e,outerWidth:n})})),this.rightMostNavItemIndex=this.menuItems.length-1,oc.on("resize",this._resizeHandler=rc((function(){t.constructResponsiveDropdown()}),100));var e=this.$applicationLogo.find("img");0!==e.length&&(e.attr("data-aui-responsive-header-index",this.index),e.on("load",(function(){t.constructResponsiveDropdown()}))),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){oc.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var t,e=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(e>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),t=e-this.moreMenuWidth;for(var i=-1;t-this.menuItems[i+1].outerWidth>=0;)t-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var t=document.createElement("li"),e=document.createElement("aui-dropdown-menu");e.id=`aui-responsive-header-dropdown-${this.index}`,J.init(e);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,J.init(n),e.appendChild(n);var s=function(t){var e=document.createElement("a");return e.setAttribute("class","aui-dropdown2-trigger"),e.setAttribute("href","#"),e.id=t.id+"-trigger",e.setAttribute("aria-controls",t.id),e.innerHTML=I18n.getText("aui.words.more"),e}(e);return t.appendChild(s),t.appendChild(e),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(t):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(t),this.moreMenuWidth=i(t).outerWidth(!0),i(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+t,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}e.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=t}},moveToResponsiveDropdown:function(t){if(!(t<=0)){for(var e=Wt().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-t+1,r=n;r>=s;r--){var a=this.menuItems[r].$element,o=a.children("a");J.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const t=Array.from(o.get(0).classList).filter((t=>!t.startsWith("aui-")));l.setAttribute("extra-classes",t.join(" "))}J.init(l),Wt().wrap(l).textContent=o.text(),a.detach(),e.insertBefore(l,e.firstChild),this.element.dispatchEvent(new CustomEvent("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=t}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const cc=function(t){let e=t._header;return e instanceof lc||(e=new lc(t),e.init(),t._header=e),e};function uc(){i(".aui-header").each((function(){cc(this)}))}i(uc);const dc={};dc.setup=R(uc,"responsiveheader.setup",{removeInVersion:"11.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),l("responsiveheader",dc);const hc=J("aui-header-end",{type:J.type.ELEMENT,created:function(t){const e=t.parentElement;e&&e.classList.contains("aui-header")?cc(e):console.log("Could not async. initialise aui-header")}});var pc=n(253),fc=n.n(pc);const gc=({minDate:t,maxDate:e,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:e||n.attr("max"),minDate:t||n.attr("min"),nextText:">",onSelect:function(t){n.val(t),n.trigger("change"),r(),s&&s.call(this,t)},onChangeMonthYear:a,prevText:"<"}),mc=(t,e)=>{let n,s,r,a=!1;const o=i("body"),l=e=>{let n=i(e.target),r=n.closest(s).length||n.is(t),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||e.keyCode===Q.ESCAPE)return h(),void(a=!1);n.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:t})=>(n=(({horizontalAlignment:t,datePickerUUID:e})=>{const n=new uo;n.id=e;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${t}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(t),datePickerUUID:e}),r=t.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),t.off("focus click",u),t.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),t.on("focusout keydown",c)}}},vc=function(t){const e=t.getField(),n=t.getOptions(),s=t.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=mc(e,s),g=t=>{i(t.currentTarget).val()&&r.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==r)return t(e)},n=i((()=>{r.datepicker("destroy")}));t.show=l,t.hide=c,t.destroyPolyfill=()=>{h(),e.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&e.attr("placeholder",m),v&&e.prop("type",v),e.removeAttr("data-aui-dp-uuid"),n(),delete t.destroyPolyfill,delete t.show,delete t.hide},t.setDate=i((t=>{r.datepicker("setDate",t)})),t.getDate=i((()=>r.datepicker("getDate"))),t.setMin=i((t=>r.datepicker("option","minDate",t))),t.setMax=i((t=>r.datepicker("option","maxDate",t)))}n.languageCode in bc.prototype.localisations||(n.languageCode="");const y=bc.prototype.localisations;if(e.attr("aria-controls",s),void 0===r){void 0!==e.attr("step")&&f("WARNING: The date picker polyfill currently does not support the step attribute!");const s=gc({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:e,onSelect:n.onSelect,hide:t.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:t,popupContents:e,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(t),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),e.append(a)),r})({config:o,popupContents:a({$field:e}),getCalendarNode:d,hint:n.hint}),p(),e.on("propertychange keyup input paste",g),b=new MutationObserver((function(e){e.forEach((function(e){"min"===e.attributeName?t.setMin(e.target.getAttribute("min")):"max"===e.attributeName&&t.setMax(e.target.getAttribute("max"))}))})),b.observe(e.get(0),{attributes:!0})}if(e.on("focus click",o),e.attr("placeholder",n.placeholder),"text"!==e.prop("type")){e.prop("type","text");const t=e.attr("value");t&&e.val(t)}e.trigger("propertychange"),e.attr("data-aui-dp-uuid",s)};function bc(t,e){let n={};const s=wn("date-picker"),r=i(t),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!bc.prototype.browserSupportsDateField,e=!1!==n.overrideBrowserDefault;(t||e)&&vc(a)},reconfigure:t=>{n=i.extend(void 0,bc.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function yc(t,e){const n=i.extend({nextText:">",prevText:"<"},e),s=i(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const t=i("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(n.hint),s.append(t)}return s.reconfigure=t=>{s.datepicker("destroy"),s.datepicker(t)},s.destroy=()=>{s.datepicker("destroy")},s}bc.prototype.browserSupportsDateField=function(){if(void 0===Ie){var t=document.createElement("input");t.setAttribute("type","date"),Ie="date"===t.type}return Ie}(),bc.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:fc().W3C},bc.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")},"ajs.datepicker.localisations.year-suffix"===bc.prototype.localisations.yearSuffix&&(bc.prototype.localisations.yearSuffix="");const wc="aui-datepicker",_c=t=>function(e){let i=this.data(wc);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(wc,i)),i};i.fn.datePicker=_c(bc),l("DatePicker",bc),i.fn.calendarWidget=_c(yc),l("CalendarWidget",yc);const xc=bc;n(229),n(228),n(132),n(903);const Cc={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"},Tc=Ns().View,kc=Ns().View,Ec=Ns().View,Ac={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};n(682);const Sc={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"},Dc='<aui-spinner size="small"></aui-spinner>',Ic="aui-spinner";function Mc(t){0===t.find(Ic).length&&t.find(`.${Cc.STATUS}`).append(Dc)}function Nc(t){t.find(`.${Cc.STATUS} ${Ic}`).remove()}var Oc=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const Lc=Ns().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=i(this.el),this._event=Sc,this.classNames=Cc,this.dataKeys=Ac,this.columns=t.columns,this.isCreateRow=t.isCreateRow,this.allowReorder=t.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),t.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=t.model,this.model=new this._modelClass),this.fieldFocusSelector=t.fieldFocusSelector,this.on(this._event.CANCEL,(()=>{this.isCreateRow||(this.disabled=!0)})).on(this._event.SAVE,(t=>!this.disabled&&this.submit(t))).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()})).on(this._event.SUBMIT_STARTED,(()=>this._submitStarted())).on(this._event.SUBMIT_FINISHED,(()=>this._submitFinished()))},defaultColumnRenderer:function(t){return!1!==t.allowEdit?i("<input type='text' />").addClass("text").attr({name:t.name,value:t.value,"aria-label":t.ariaLabel}):t.value?document.createTextNode(t.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(t){27===t.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(t){return this.trigger(this._event.CANCEL),t.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(t){return this.hasFocus()||this.trigger(this._event.FOCUS,t.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(t){var e,i;return this.enable(),e=t?this.$el.find(this.fieldFocusSelector(t)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),e.focus().trigger("select"),this},disable:function(){var t,e;return Oc&&(e=this.$el.find(":submit")).length&&(t=i("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(e.attr("class")).val(e.val()).data(this.dataKeys.ENABLED_SUBMIT,e),e.replaceWith(t)),this.$el.addClass(this.classNames.DISABLED).find(":submit").prop("disabled",!0),this},enable:function(){var t,e;return Oc&&(e=(t=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&t.length&&t.replaceWith(e),this.$el.removeClass(this.classNames.DISABLED).find(":submit").prop("disabled",!1),this},showLoading:function(){return Mc(this.$el),this},hideLoading:function(){return Nc(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var t=this.$el;return t.serializeObject?t.serializeObject():t.serialize()},mapSubmitParams:function(t){return this.model.changedAttributes(t)},submit:function(t){var e,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,t):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(t,e,i){400===i.status&&(n.renderErrors(e.errors),n.trigger(n._event.VALIDATION_ERROR,e.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return i("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&i.each(t,(function(t,i){e.$el.find("[name='"+t+"']").closest("td").append(e.renderError(t,i))})),this},render:function(t){var e=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),i.each(this.columns,(function(n,s){var r,a,o=t.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+s.id,o),r=e.isCreateRow&&s.createView?new s.createView({model:e.model}).render(l[0]):s.editView?new s.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=i("<td />"),"object"==typeof r&&r.done?r.done((function(t){a.append(t)})):a.append(r),s.styleClass&&a.addClass(s.styleClass),a.appendTo(e.$el)})),this.$el.append(this.renderOperations(t.update,t.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,t.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(t){var e=i('<td class="aui-restfultable-operations" />');return t?e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(i(`<td class="${this.classNames.STATUS}" />`))}}),Pc=document||{},Rc=i(Pc);function $c(t,e){Rc.trigger(t,e)}function jc(t,e,n){i(e).trigger(t,n),$c(t,n),e.id&&$c(e.id+"-"+t,n)}const zc=t=>JSON.parse(t||"null");var Fc=Ns().Model.extend({sync:function(t,e,i){var n=this,s=i.error;return i.error=function(t){n._serverErrorHandler(t,this),s&&s.apply(this,arguments)},Ns().sync.apply(Ns(),arguments)},save:function(t,e){var i,n=this,s=(e=e||{}).error,r=e.success;e.error=function(t,e){var i=zc(e.responseText||e.data);s&&s.call(n,n,i,e)},this.isNew()?Ns().Model.prototype.save.call(this,t,e):t&&((i=new(Fc.extend({url:this.url()}))({id:this.id})).save=Ns().Model.prototype.save,e.success=function(t,e){n.clear().set(t.toJSON()),r&&r.call(n,n,e)},i.save(t,e))},destroy:function(t){t=t||{};var e=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:t.data||{},contentType:"application/json",success(i){e.collection&&e.collection.remove(e),t.success&&t.success.call(e,i)},error(i){e._serverErrorHandler(i,this),t.error&&t.error.call(e,i)}}),this},changedAttributes:function(t){var e={},n=this.toJSON();if(i.each(t,(function(t,s){n[t]?n[t]&&n[t]!==s&&("object"==typeof s&&(0,de.isEqual)(s,n[t])||(e[t]=s)):"string"==typeof s?""!==i.trim(s)&&(e[t]=s):i.isArray(s)?0!==s.length&&(e[t]=s):e[t]=s})),!(0,de.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var n;400!==t.status&&(n=i.parseJSON(t.responseText||t.data),jc(Sc.SERVER_ERROR,this,[n,t,e]))},fetch:function(t){t=t||{},this.clear(),Ns().Model.prototype.fetch.call(this,t)}});const Hc=Fc,Bc=Ns().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=Sc,this.classNames=Cc,this.dataKeys=Ac,this.columns=t.columns,this.allowEdit=t.allowEdit,this.allowDelete=t.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=t.index||0,this.deleteConfirmationCallback=t.deleteConfirmationCallback,this.allowReorder=t.allowReorder,this.$el=i(this.el),this.on(this._event.CANCEL,(()=>this.disabled=!0)).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>this.unfocus())).on(this._event.MODAL,(()=>this.$el.addClass(this.classNames.ACTIVE))).on(this._event.MODELESS,(()=>this.$el.removeClass(this.classNames.ACTIVE)))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(t){if(t.value)return document.createTextNode(t.value.toString())},sync:function(t){var e=this;return this.model.addExpand(t),this.showLoading(),this.model.save(t,{success:function(){e.hideLoading().render(),e.trigger(e._event.UPDATED)},error:function(){e.hideLoading()}}),this},refresh:function(t,e){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),t&&t.apply(this,arguments)},error:function(){i.hideLoading(),e&&e.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return Mc(this.$el),this},hideLoading:function(){return Nc(this.$el),this},edit:function(t){var e;return e=i(t.target).is("."+this.classNames.EDITABLE)?i(t.target).attr("data-field-name"):i(t.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(e){e.preventDefault(),t.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let t=this.deleteConfirmationCallback(this.model.toJSON());if(!t||!t.then)throw new Error("deleteConfirmationCallback needs to return a Promise");t.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var t=this,e=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),s=i(`<td class="${this.classNames.STATUS}" />`);return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,(function(n,s){var r,a=i("<td />"),o=e[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(t.$el),r&&i.trim(r)||(a.addClass(t.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)})),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,e),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var Uc=Ns().View.extend({initialize:function(t){var e=this;if(e.options=i.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=Sc,e.classNames=Cc,e.dataKeys=Ac,this.$table=i(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=i("<thead/>"),this.$theadRow=i("<tr />").appendTo(this.$thead),this.$tbody=i("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw new Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach((function(t){var n=i.isFunction(t.header)?t.header():t.header;void 0===n&&(g("You have not specified [header] for column ["+t.id+"]. Using id for now..."),n=t.id),e.$theadRow.append("<th>"+n+"</th>")})),e.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(t){e.focusedRow&&e.focusedRow.trigger(e._event.SAVE),t.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(t,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(e.classNames.MOVEABLE);return n.children().each((function(){var t=i(this),e=parseInt(0+t.css("border-left-width"),10),n=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+e+n;s.append(i("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))})),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(t,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(e.classNames.MOVEABLE).children().each((function(t){i(this).width(r.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),e.getRowFromElement(n.item[0]).trigger(e._event.MODAL)},stop:function(t,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(n.item[0]).trigger(e._event.MODELESS))},update:function(t,i){var n={row:e.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};e.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(t){return!i(t.target).is("."+e.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return e.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(t){void 0===e.options.addPosition&&"bottom"===e.options.createPosition||"bottom"===e.options.addPosition?e.addRow(t):e.addRow(t,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(e._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=i('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(t){e.getRows().forEach((function(i){i.model===t&&(i.hasFocus()&&e._createRow&&e._createRow.trigger(e._event.FOCUS),e.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;i.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):i.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,n=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var s=e.options.reverseOrder?n(t.nextItem):n(t.prevItem);i.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){t.row.hideLoading()},success:function(t){jc(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var i=zc(t.responseText||t.data);jc(e._event.SERVER_ERROR,e,[i,t,this])}}),t.row.showLoading()}},_createCollection:function(){var t=this;return new(this.options.Collection.extend({sort:function(e){if(e||(e={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=t.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(...e){return this.tableRows=t.getRows(),Ns().Collection.prototype.remove.apply(this,e),this.tableRows=void 0,this}}))([],{comparator:function(e){var i;return(this&&void 0!==this.tableRows?this.tableRows:t.getRows()).some((function(t,n){if(t.model.id===e.id)return i=n,!0})),i}})},populate:function(t){this.options.reverseOrder&&t.reverse(),this.hideGlobalLoading(),t&&t.length?(this._models.reset([],{silent:!0}),this.renderRows(t),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),jc(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">'+Dc+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(t,e){var i,n;if(!t.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(t));return n=new this.options.model(t),i=this._renderRow(n,e),this._models.add(n),this.removeNoEntriesMsg(),jc(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),jc(this._event.ROW_REMOVED,this,[t,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var t=2;return this.allowReorder&&++t,this.options.columns.length+t},getRowFromElement:function(t){return i(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var t=this,e=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var n=i(this).data(t.dataKeys.ROW_VIEW);n&&e.push(n)})),e},_renderRow:function(t,e){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:t,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(t){jc(this._event.EDIT_ROW,{},[this,s]),s.edit(this,t)})),i=n.render().$el,-1!==e&&("number"==typeof e&&0!==r.length?i.insertBefore(r[e]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var e=!1;return this.editRows.some((function(i){if(i.el===t.el)return e=!0,!0})),e},_applyFocusCoordinator:function(t){var e=this;return t.hasFocusBound||(t.hasFocusBound=!0,t.on(this._event.FOCUS,(function(){e.focusedRow&&e.focusedRow!==t&&e.focusedRow.trigger(e._event.BLUR),e.focusedRow=t,t instanceof Bc&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=i.inArray(t,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach((function(t){t.hasUpdates()||t.trigger(this._event.FINISHED_EDITING)}),this)},edit:function(t,e){var i=this,n=new this.options.views.editRow({el:t.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:t.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=t.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,(function(e,n){i._removeEditRow(this),this.off(),t.render().delegateEvents(),t.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()})).on(i._event.VALIDATION_ERROR,(function(){this.trigger(i._event.FOCUS)})).on(i._event.FINISHED_EDITING,(function(){i._removeEditRow(this),t.render().delegateEvents(),this.off()})).on(i._event.CANCEL,(function(){i._removeEditRow(this),this.off(),t.render().delegateEvents(),i._shiftFocusAfterEdit()})).on(i._event.BLUR,(function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)})),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,e),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(t=[]){var e=this._models.comparator,i=[];this._models.comparator=void 0;var n=t.map((t=>{var e=new this.options.model(t);return i.push(this._renderRow(e,-1).el),e}));return this._models.add(n,{silent:!0}),this._models.comparator=e,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(t){return{model:t.model||Hc,allowEdit:!0,views:{editRow:Lc,row:Bc},Collection:Ns().Collection.extend({url:t.resources.self,model:t.model||Hc}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});Uc.ClassNames=Cc,Uc.CustomCreateView=Tc,Uc.CustomEditView=kc,Uc.CustomReadView=Ec,Uc.DataKeys=Ac,Uc.EditRow=Lc,Uc.EntryModel=Hc,Uc.Events=Sc,Uc.Row=Bc,l("RestfulTable",Uc);const Wc=Uc;function Vc(t){return i(t).clone().removeAttr("id")}l("clone",Vc);const Yc=Vc;var qc=window.DocumentTouch;const Kc="ontouchstart"in window||qc&&document instanceof qc;function Qc(t,e,i,n){t.find(`[${n}]`).attr(n,((t,n)=>e===n?i:void 0))}function Gc(t,e){let n=i("<div></div>");n.append(t),n.find("[id]").each(((t,i)=>{const s=e(`${i.id}-`);!function(t,e,i){Qc(t,e,i,"aria-controls"),Qc(t,e,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Jc(t){return t.offset().top}function Zc(t){this.$el=i(t),this.$el.length&&(this.$body=i("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new iu,function(t){if(!i(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const n=i(e.target);ou(t,n)}))})(t),Kc&&function(t){if(window.matchMedia)return window.matchMedia(t).matches;var e=document.createElement("style");e.type="text/css",e.id="testMedia",e.innerText=`@media ${t} { #testMedia { width: 1px; } }`,document.head.appendChild(e);var i="1px"===window.getComputedStyle(e,null).width;return e.parentNode.removeChild(e),i}("only screen and (max-device-width:1024px)")&&i("body").addClass("aui-page-sidebar-touch");var e=null,n=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};i(window).on("scroll resize",n),n(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(i.Event(Xc+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),i(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var s=function(e){a(e)&&t.toggle()};function r(t){return t.keyCode===Q.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==Q.LEFT_SQUARE_BRACKET||t.shiftKey||t.ctrlKey||t.metaKey||(e=t.target,"value"in e||e.isContentEditable));var e}function o(t){return t.keyCode===Q.TAB&&t.shiftKey}function l(t,e){return t===e.find(":aui-tabbable")[0]}function c(t,e){return t===e.find(":aui-tabbable").last()[0]}function u(t){t.attr("persistent",""),t.find(":aui-tabbable").first().focus(),setTimeout((function(){t.removeAttr("persistent")}),100)}i(document).on("keypress",s),t._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip({...cu,live:t.collapsedTriggersSelector,suppress:function(){const e=i(this),n=!1===t.isCollapsed();return!0===ru(e)||n}}),t.$el.tooltip({...cu,aria:!1,live:t.toggleSelector,title:function(){return t.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}}),t.$el.on("keydown",t.collapsedTriggersSelector,(function(e){if(t.isCollapsed()){var n=e.target,s=su(n);if(!s)return;var a=i(s);r(e)&&s.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||r(t)&&c(t.target,a))&&(n.focus(),i(this).off("keydown"),au())})))}}))}(this),function(t){i(t.collapsedTriggersSelector).each((function(){var e=i(this);ou(t,e)}))}(this))}var Xc="_aui-internal-sidebar-";function tu(t){return i.map(t.split(" "),(function(t){return Xc+t})).join(" ")}function eu(){return document.querySelectorAll(Zc.prototype.inlineDialogSelector)}function iu(){this.inlineDialog=null}function nu(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function su(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function ru(t){return 0!==nu(t).length}function au(){var t=eu();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function ou(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),ru(e))){var n=document.createElement("aui-inline-dialog"),s=wn("sidebar-submenu");return e.attr("aria-controls",s),e.attr("data-aui-trigger",""),J.init(e),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),t.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(Zc.prototype.inlineDialogClass),document.body.appendChild(n),J.init(n),function(t,e,n){n.addEventListener("aui-layer-show",(function(s){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(s)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");e.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=lu;var n=t.is("a")?t.text():t.children(".aui-nav-heading").text(),s=i(e).find(".aui-navgroup-inner");s.children(".aui-nav-heading").attr("title",n).children("strong").text(n);var r=nu(t);function a(t){const e=Yc(t);return Gc(e,wn),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}a(r).appendTo(s)}(e,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,n),n}}Zc.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tu(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Zc.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tu(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Zc.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Zc.prototype.setTopPosition=function(t=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",t>Jc(this.$el)),this},Zc.prototype.setPosition=R(Zc.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"11.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Zc.prototype.setLeftPosition=function(t=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Zc.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:i.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:i.noop,wide:i.noop},e.expanded.narrow={narrow:i.noop,wide:function(t){t.$body.removeClass("aui-sidebar-collapsed"),t.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(t){t._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(t)?"narrow":"wide";return e[n][s][r](this),this},Zc.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=i.Event(Xc+"collapse-start",{isResponsive:t});return this.$el.trigger(e),e.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(Xc+"collapse-end",{isResponsive:t}))),this},Zc.prototype.collapse=function(){return this._collapse(!1)},Zc.prototype._expand=function(t,e){var n=i.Event(Xc+"expand-start",{isResponsive:e});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",s),this.$el.toggleClass("aui-sidebar-fly-out",s),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),i(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(i.Event(Xc+"expand-end",{isResponsive:e})),this},Zc.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Zc.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Zc.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Zc.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Zc.prototype.responsiveReflow=function(t,e){if(t){if(!this.isCollapsed()&&this.isViewportNarrow(e)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else e!==this._previousViewportWidth&&this.setCollapsedState(e)},Zc.prototype.reflow=function(t=window.pageYOffset,e=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=Jc(this.$el),a=null===this._previousViewportWidth;if(t!==this._previousScrollTop||e!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=t!==this._previousScrollTop&&(t<0||t+e>n);o||!a&&l||(this.setHeight(t,e,r),this.setTopPosition(t))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Zc.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},Zc.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Zc.prototype.collapsedTriggersSelector=[Zc.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Zc.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Zc.prototype.tooltipClassName="aui-sidebar-section-tooltip",Zc.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Zc.prototype.inlineDialogSelector="."+Zc.prototype.inlineDialogClass,iu.prototype.submenu=function(t){return du(),nu(t)},iu.prototype.hasSubmenu=function(t){return du(),ru(t)},iu.prototype.submenuHeadingHeight=function(){return du(),34},iu.prototype.isShowing=function(){return du(),Zc.prototype.isSubmenuVisible()},iu.prototype.show=function(t,e){du(),function(t){su(t).open=!0}(e)},iu.prototype.hide=function(){du(),au()},iu.prototype.inlineDialogShowHandler=function(){du()},iu.prototype.inlineDialogHideHandler=function(){du()},iu.prototype.moveSubmenuToInlineDialog=function(){du()},iu.prototype.restoreSubmenu=function(){du()},Zc.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(eu(),(function(t){return t.open}))},Zc.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const lu='<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 cu={gravity:"w",title:function(){var t=i(this);return t.is("a")||t.is("button")?t.attr("title")||t.find(".aui-nav-item-label").text()||t.data("tooltip"):t.children(".aui-nav").attr("title")||t.children(".aui-nav-heading").text()}};var uu=gt("sidebar",Zc);i((function(){uu(".aui-sidebar")}));var du=O("Sidebar.submenus",{removeInVersion:"11.0.0",sinceVersion:"5.8.0"});l("sidebar",uu);const hu=uu;n(841),n(581);const pu=2600;function fu(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===Q.ESCAPE&&n.is(":visible")&&l.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=i.extend({},t,arguments[3])),t=i.extend({},e,t);var n=i("<div></div>").addClass("aui-popup");t.id&&n.attr("id",t.id);var s=pu;i(".aui-dialog").each((function(){var t=i(this);s=t.css("z-index")>s?t.css("z-index"):s}));var r=function e(i,r){return t.width=i=i||t.width,t.height=r=r||t.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),e}(t.width,t.height);i("body").append(n),n.hide(),h(n);var a=i(".aui-blanket"),o=function(t,e){var n=i(t,e);return!!n.length&&(n.focus(),!0)},l={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&r(e,i),this.show()},show:function(){var e=function(){i(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),V(),0!==(a=i(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){n.is(":visible")&&l.hide()})),n.show(),fu.current=this,function(e){if(0===i(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",e))||o(n,i(".dialog-button-panel",e))||o(n,i(".dialog-page-menu",e))}}(n),i(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){i(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&Y();var e=document.activeElement;this.element.has(e).length&&e.blur(),i(document).trigger("hideLayer",["popup",this]),fu.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 gu=function(){function t(t,e,n,s){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<button></button>").html(e).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function e(t,e,n,s,r){t.buttonpanel||t.addButtonPanel(),r||(r="#"),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<a></a>").html(e).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function n(t,e){var i="left"==t?-1:1;return function(t){var n=this.page[e];if(this.id!=(1==i?n.length-1:0)){i*=t||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==e&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(t){return function(){this.page[t].splice(this.id,1);for(var e=0,i=this.page[t].length;e<i;e++)this.page[t][e].id=e;this.item.remove()}}t.prototype.moveUp=t.prototype.moveLeft=n("left","button"),t.prototype.moveDown=t.prototype.moveRight=n("right","button"),t.prototype.remove=s("button"),t.prototype.html=function(t){return this.item.html(t)},t.prototype.onclick=function(t){let e=this;if(void 0===t)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===t.call(this,e.page.dialog,e.page,i)},"function"==typeof t&&this.item.click(this._onclick)};var r=function(t,e,n,s,r){n instanceof i||(n=i(n)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=i("<button></button>").html(e).addClass("item-button"),r&&(this.button[0].id=r),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var a=t.panel.length,o=this;t.menu.append(this.item),t.body.append(this.body),t.panel[a]=this;var l=function(){var e;t.curtab+1&&((e=t.panel[t.curtab]).body.hide(),e.item.removeClass("selected"),"function"==typeof e.onblur&&e.onblur()),t.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof t.ontabchange&&t.ontabchange(o,e)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?t.menu.css("display","none"):t.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},r.prototype.setPadding=function(t){return isNaN(+t)||(this.body.css("padding",+t),this.padding=+t,this.page.recalcSize()),this};var a=function(t,e){this.dialog=t,this.id=t.page.length,this.element=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<ul></ul>").addClass("dialog-page-menu").css("height",t.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],e&&this.body.addClass(e),t.popup.element.append(this.element.append(this.menu).append(this.body)),t.page[t.page.length]=this};function o(t,e,n){var s={};+t||(t=(s=Object(t)).width,e=s.height,n=s.id),this.height=e||480,this.width=t||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=fu(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var t=this.header?62:0,e=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-t-e;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new r(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(t||"").addClass("dialog-title"),e&&this.header.addClass(e),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(e,i,n){return new t(this,e,i,n),this.recalcSize(),this},a.prototype.addLink=function(t,i,n,s){return new e(this,t,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(t){this.panel[t.id||t].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(t,e){return this.page[this.curpage].addHeader(t,e),this},o.prototype.addButton=function(t,e,i){return this.page[this.curpage].addButton(t,e,i),this},o.prototype.addLink=function(t,e,i,n){return this.page[this.curpage].addLink(t,e,i,n),this},o.prototype.addSubmit=function(t,e){return this.page[this.curpage].addButton(t,e,"button-panel-submit-button"),this},o.prototype.addCancel=function(t,e){return this.page[this.curpage].addLink(t,e,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(t,e,i,n){return this.page[this.curpage].addPanel(t,e,i,n),this},o.prototype.addPage=function(t){return new a(this,t),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(t){return this.page[this.curpage].hide(),this.curpage=t,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(t,e){var i=null==e?this.curpage:t;return null==e&&(e=t),this.page[i].panel[e]},o.prototype.getPage=function(t){return this.page[t]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(t,e){if(null!=e){var i=t.id||t;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===e?t:e)},o.prototype.show=function(){return this.popup.show(),k("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),k("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),k("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(t){var e=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(t+"").replace(r,(function(t,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&e.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&e.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&e.push(d[h][n][r]),"header"==n&&d[h].header&&e.push(d[h].header)}else e=e.concat(d)}));for(var a={length:e.length},o=e.length;o--;)for(var l in a[o]=e[o],e[o])l in a||function(t){a[t]=function(){for(var e=this.length;e--;)"function"==typeof this[e][t]&&this[e][t].apply(this[e],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var t=0,e=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:t||this.height});this.page[0].menu.height(t),this.height=t+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();gu=$(gu,"Dialog constructor",{alternativeName:"Dialog2"}),fu=$(fu,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",gu),l("popup",fu);const mu=!1;var vu=-1!==navigator.platform.indexOf("Mac"),bu=-1!==navigator.userAgent.indexOf("Safari"),yu=/^(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 wu=t=>{const e=t[0];if(e){const t=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",t,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};function _u(t){var e=[],n=i.Callbacks();function s(t){!fu.current&&n&&n.fire(t)}function r(t){t.preventDefault()}function a(t){(t&&t.split?i.trim(t).split(" "):[t]).forEach((function(t){!function(t){var n=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),s=t.match(yu);n?(i+=n[0],t=t.substring(n[0].length)):s?(e.push(i+s[0]),t=t.substring(s[0].length),i=""):(e.push(i+t[0]),t=t.substring(1),i="")}return e}(t.toString()),a=function(t){var e=t.length;for(;e--;)if(t[e].length>1&&"space"!==t[e])return!0;return!1}(n)?"keydown":"keypress";e.push(n),i(document).on(a,mu,n,s),i(document).on(a+" keyup",mu,n,r)}(t)}))}function o(t,e,i,n){var s="(",r=")";return n&&n.workaroundJaws&&(s="",r=""),i?e+=" "+s+I18n.getText("aui.keyboard.shortcut.type.x",t.shift()):(e=e.replace(/\)$/,""),e+=" "+I18n.getText("aui.keyboard.shortcut.or.x",t.shift())),t.forEach((function(t){e+=" "+I18n.getText("aui.keyboard.shortcut.then.x",t)})),e+=r}return a(t),_u.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(t){for(var n=i(t),s=n.attr("title")||"",r=e.slice(),a=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=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(t){return(0,de.isEqual)(g,t)}))||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}vu&&(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(e))},removeShortcutsFromTitle:function(t){var e=i(t),n=e.data("kbShortcutAppended");if(n){var s=e.attr("title");e.attr("title",s.replace(n,"")),e.attr("aria-label",s.replace(n,"")),e.removeData("kbShortcutAppended"),e.removeData("kbShortcutAppendedScreenReader"),e.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}_u.makeShortcut=function(t){var e=t.executor,n=t.bindKeys,s=t.addShortcutsToTitle,r=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return e.add((function(){const e=i(n);let s=e.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(t){t.keyCode===Q.ESCAPE&&s&&s.removeClass(r)})),s.length&&s.removeClass(r),s=t(s,e,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,n){var s;return n&&0===t.length?e.eq(0):(s=i.inArray(t.get(0),e))<e.length-1?(s+=1,e.eq(s)):n?e.eq(0):t})),moveToPrevItem:c((function(t,e,n){var s;return n&&0===t.length?e.filter(":last"):(s=i.inArray(t.get(0),e))>0?(s-=1,e.eq(s)):n?e.filter(":last"):t})),click:function(t){return l.push(t),s(t),e.add((function(){const e=i(t);wu(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),s(t),e.add((function(){var e=i(t)[0];e&&{a:!0,link:!0}[e.nodeName.toLowerCase()]&&(window.location.href=e.href)})),this},execute:function(t){var i=this;return e.add((function(){t.apply(i,arguments)})),this},evaluate:function(t){t.call(this)},moveToAndClick:function(t){return l.push(t),s(t),e.add((function(){const e=i(t);e.length>0&&(wu(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),s(t),e.add((function(e){var n=i(t);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&e.preventDefault())})),this},or:function(t){return n(t),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)r(l[t]);l=[]}}},_u.fromJSON=function(t,e){var n=[];return t&&i.each(t,(function(t,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(t){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 t=this;e&&vu&&(t=i.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var s=_u(t);s[r].apply(s,o),n.push(s)}))})),n},i(document).on("iframeAppended",(function(t,e){i(e).load((function(){i(e).contents().on("keyup keydown keypress",(function(t){bu&&"keypress"===t.type||i(t.target).is(":input")||i.event.trigger(t,arguments,document,!0)}))}))})),l("whenIType",_u);const xu=_u,{FocusManager:Cu,InlineDialog2:Tu,LayerManager:ku,ProgressiveDataSet:Eu,clone:Au,debounce:Su,debounceImmediate:Du,dim:Iu,escapeHtml:Mu,formValidation:Nu,id:Ou,isClipped:Lu,keyCode:Pu,layer:Ru,messages:$u,populateParameters:ju,params:zu,responsiveheader:Fu,select:Hu,tablessortable:Bu,tabs:Uu,undim:Wu,_addID:Vu}=window.AJS,{contextPath:Yu}=window.AJS})(),s})()));
104
+ !function(t){"use strict";t.extend({tablesorter:new function(){var e=this;function i(){var t=arguments[0],e=arguments.length>1?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function n(t,e){i(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function s(t){for(var e in t)return!1;return!0}function r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?t(n).attr(a.textAttribute)||n.textContent||n.innerText||t(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=e.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||t(n).text()||"",t.trim(l)}function a(t,n,s,a){for(var o,l=e.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(t,c=n[s].cells[a],a),t.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=e.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,t,c))return o;return e.getParserById("text")}function o(t){var s,r,o,l,c,u,d,h,p,f,g=t.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=e.getColumnData(t,g.headers,l),p=e.getParserById(e.getData(c,u,"extractor")),h=e.getParserById(e.getData(c,u,"sorter")),d="false"===e.getData(c,u,"parser"),g.empties[l]=(e.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top")).toLowerCase(),g.strings[l]=(e.getData(c,u,"string")||g.stringTo||"max").toLowerCase(),d&&(h=e.getParserById("no-parser")),p||(p=!1),h||(h=a(t,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,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&&e.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=t(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(e.css.cssHasChild),v.child[o]=t.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==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&&e.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=t(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=e.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);e.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||e.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(t){return/^d/i.test(t)||1===t}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=e.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===e.css.icon?e.css.icon:f.cssIcon+" "+e.css.icon)+'"></i>':"",f.$headers=t(s).find(f.selectorHeaders).each((function(i){a=t(this),r=e.getColumnData(s,f.headers,i,!0),f.headerContent[i]=t(this).html(),""!==f.headerTemplate&&(c=f.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,t(this).html()),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),t(this).html('<div class="'+e.css.headerIn+'">'+c+"</div>")),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(t(this).attr("data-column"),10),this.order=u(e.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=e.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(e.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(e.css.headerRow+" "+f.cssHeaderRow),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(t,e,i){var n=t.config;n.$table.find(n.selectorRemove).remove(),o(t),l(t),y(n.$table,e,i)}function p(i){var n,s,r,a=i.config;a.$headers.each((function(o,l){s=t(l),r=e.getColumnData(i,a.headers,o,!0),n="false"===e.getData(l,r,"sorter")||"false"===e.getData(l,r,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))}))}function f(i){var n,s,r,a=i.config,o=a.sortList,l=o.length,c=e.css.sortNone+" "+a.cssNone,u=[e.css.sortAsc+" "+a.cssAsc,e.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=t(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each((function(){var i=t(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],s=i.text()+": "+e.language[i.hasClass(e.css.sortAsc)?"sortAsc":i.hasClass(e.css.sortDesc)?"sortDesc":"sortNone"]+e.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(t,e){return t&&t[e]&&t[e].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout((function(){m(i,n,s)}),50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&t(this).is("."+e.css.sortDesc+",."+e.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=e.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(e.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(t){var i,r,a,o,l,c,u,d,h,p,f=0,m=t.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=t.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort((function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],t):e["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,t)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,t):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,t):e["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,t,m)),d)return d}return n[m.columns].order-s[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(e,i){var n=e[0];n.isUpdating&&e.trigger("updateComplete",n),t.isFunction(i)&&i(e[0])}function y(t,i,n){var s=t[0].config.sortList;!1!==i&&!t[0].isProcessing&&s.length?t.trigger("sorton",[s,function(){b(t,n)},!0]):(b(t,n),e.applyWidget(t[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(e,s){e.stopPropagation(),n.sortList=[],f(i),v(i),c(i),t.isFunction(s)&&s(i)})).bind("updateAll"+n.namespace,(function(t,s,r){t.stopPropagation(),i.isUpdating=!0,e.refreshWidgets(i,!0,!0),e.restoreHeaders(i),d(i),e.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(t,e,n){t.stopPropagation(),i.isUpdating=!0,p(i),h(i,e,n)})).bind("updateCell"+n.namespace,(function(e,s,o,l){e.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=t(s),g=p.index(t.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=t.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?r(i,s,h):n.extractors[h].format(r(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(e,l,c,u){if(e.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=t(l)).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(e,i){var n,s,r,a,o,l=e.config,c=i||l.sortList;l.sortList=[],t.each(c,(function(e,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===e?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=t.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),e.applyWidget(i),t.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(e,n,s){e.stopPropagation(),c(i,s),t.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(e,s){n.parsers&&n.parsers.length||o(i),l(i),t.isFunction(s)&&s(i)})).bind("applyWidgetId"+n.namespace,(function(t,s){t.stopPropagation(),e.getWidgetById(s).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(t,n){t.stopPropagation(),e.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(t,n,s){t.stopPropagation(),e.refreshWidgets(i,n,s)})).bind("destroy"+n.namespace,(function(t,n,s){t.stopPropagation(),e.destroy(i,n,s)})).bind("resetToLoadState"+n.namespace,(function(){e.refreshWidgets(i,!0,!0),n=t.extend(!0,e.defaults,n.originalSettings),i.hasInitialized=!1,e.setup(i,n)}))}e.version="2.17.8",e.parsers=[],e.widgets=[],e.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},e.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},e.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},e.log=i,e.benchmark=n,e.construct=function(i){return this.each((function(){var n=this,s=t.extend(!0,{},e.defaults,i);s.originalSettings=i,!n.hasInitialized&&e.buildTable&&"TABLE"!==this.tagName?e.buildTable(n,s):e.setup(n,s)}))},e.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var r=new RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`);var a,c=[];for(var u of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var h=s[u];h&&(a=h,!r.test(a))&&(c.push(u),i(`ERROR: ${u} must contain only valid CSS class names but is '${h}'`))}if(c.length>0)return s.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var p,g="",m=t(n),v=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,t.data(n,"tablesorter",s),s.debug&&t.data(n,"startoveralltimer",new Date),s.supportsDataObject=((p=t.fn.jquery.split("."))[0]=parseInt(p[0],10),p[0]>1||1===p[0]&&parseInt(p[1],10)>=4),s.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},s.emptyTo=s.emptyTo.toLowerCase(),s.stringTo=s.stringTo.toLowerCase(),/tablesorter\-/.test(m.attr("class"))||(g=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=m.addClass(e.css.table+" "+s.tableClass+g),s.$headers=m.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"),s.$tbodies=m.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(e){var i,n,s=e.config;s.widthFixed&&0===s.$table.find("colgroup").length&&(i=t("<colgroup>"),n=t(e).width(),t(e.tBodies).not("."+s.cssInfoBlock).find("tr:first").children(":visible").each((function(){i.append(t("<col>").css("width",parseInt(t(this).width()/n*1e3,10)/10+"%"))})),s.$table.prepend(i))}(n),o(n),s.totalRows=0,s.delayInit||l(n),e.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==m.data().sortlist?s.sortList=m.data().sortlist:v&&m.metadata()&&m.metadata().sortlist&&(s.sortList=m.metadata().sortlist),e.applyWidget(n,!0),s.sortList.length>0?m.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&e.applyWidget(n,!1)),s.showProcessing&&m.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,(function(t){clearTimeout(s.processTimer),e.isProcessing(n),"sortBegin"===t.type&&(s.processTimer=setTimeout((function(){e.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&e.benchmark("Overall initialization time",t.data(n,"startoveralltimer")),m.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},e.getColumnData=function(e,i,n,s){if(null!=i){var r,a=(e=t(e)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},e.computeColumnIndex=function(e){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<e.length;i++)for(l=e[i].cells,n=0;n<l.length;n++){for(o=l[n],a=t(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},e.isProcessing=function(i,n,s){var r=(i=t(i))[0].config,a=s||i.find("."+e.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&e.isValueInArray(parseFloat(t(this).attr("data-column")),r.sortList)>=0}))),i.add(a).addClass(e.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(e.css.processing+" "+r.cssProcessing)},e.processTbody=function(e,i,n){var s;if(e=t(e)[0],n)return e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=t.fn.detach?i.detach():i.remove();s=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),e.isProcessing=!1},e.clearTableBody=function(e){t(e)[0].config.$tbodies.children().detach()},e.bindEvents=function(e,i,n){var r,a=(e=t(e)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(e),c=t.fn.closest?t(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:t(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(e,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},e.restoreHeaders=function(i){var n=t(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){t(this).find("."+e.css.headerIn).length&&t(this).html(n.headerContent[i])}))},e.destroy=function(i,n,s){if((i=t(i)[0]).hasInitialized){e.refreshWidgets(i,!0,!0);var r=t(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+e.css.headerRow).removeClass(e.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&t.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([e.css.header,a.cssHeader,a.cssAsc,a.cssDesc,e.css.sortAsc,e.css.sortDesc,e.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),e.restoreHeaders(i),r.toggleClass(e.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},e.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},e.sortNatural=function(t,i){if(t===i)return 0;var n,s,r,a,o,l,c,u,d=e.regex;if(d.hex.test(i)){if((s=parseInt(t.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},e.sortNaturalAsc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:e.sortNatural(t,i)},e.sortNaturalDesc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:e.sortNatural(i,t)},e.sortText=function(t,e){return t>e?1:t<e?-1:0},e.getTextValue=function(t,e,i){if(i){var n,s=t?t.length:0,r=i+e;for(n=0;n<s;n++)r+=t.charCodeAt(n);return e*r}return 0},e.sortNumericAsc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),t-i)},e.sortNumericDesc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),i-t)},e.sortNumeric=function(t,e){return t-e},e.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},e.replaceAccents=function(t){var i,n="[",s=e.characterEquivalents;if(!e.characterRegex){for(i in e.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],e.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));e.characterRegex=new RegExp(n+"]")}if(e.characterRegex.test(t))for(i in s)"string"==typeof i&&(t=t.replace(e.characterRegexArray[i],i));return t},e.isValueInArray=function(t,e){var i,n=e.length;for(i=0;i<n;i++)if(e[i][0]===t)return i;return-1},e.addParser=function(t){var i,n=e.parsers.length,s=!0;for(i=0;i<n;i++)e.parsers[i].id.toLowerCase()===t.id.toLowerCase()&&(s=!1);s&&e.parsers.push(t)},e.getParserById=function(t){if("false"==t)return!1;var i,n=e.parsers.length;for(i=0;i<n;i++)if(e.parsers[i].id.toLowerCase()===t.toString().toLowerCase())return e.parsers[i];return!1},e.addWidget=function(t){e.widgets.push(t)},e.hasWidget=function(e,i){return(e=t(e)).length&&e[0].config&&e[0].config.widgetInit[i]||!1},e.getWidgetById=function(t){var i,n,s=e.widgets.length;for(i=0;i<s;i++)if((n=e.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===t.toLowerCase())return n},e.applyWidget=function(i,s){var r,a,o,l=(i=t(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=t.grep(l.widgets,(function(e,i){return t.inArray(e,l.widgets)===i})),t.each(l.widgets||[],(function(t,i){(o=e.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[t]=o)})),u.sort((function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1})),t.each(u,(function(e,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=t.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))}))),setTimeout((function(){i.isApplyingWidgets=!1}),0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},e.refreshWidgets=function(n,s,r){var a,o=(n=t(n)[0]).config,l=o.widgets,c=e.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||t.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&e.applyWidget(n,s)},e.getData=function(e,i,n){var s,r,a="",o=t(e);return o.length?(s=!!t.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),t.trim(a)):""},e.formatFloat=function(e,i){return"string"!=typeof e||""===e?e:(e=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(e),isNaN(n)?t.trim(e):n);var n},e.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),e.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=t.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var n,s=t?t.split("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return t?e.formatFloat(r,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},parsed:!0,type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,n,s){if(t){var r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||e.getData(a,e.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return t(n).metadata()[r]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u=new RegExp(n.cssChildRow,"i"),d=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<d.length;c++)a=0,d.eq(c).children("tr:visible").not(n.selectorRemove).each((function(){r=t(this),u.test(this.className)||a++,o=a%2==0,r.removeClass(s.zebra[o?1:0]).addClass(s.zebra[o?0:1])}));n.debug&&e.benchmark("Applying Zebra widget",l)},remove:function(e,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=t.tablesorter.processTbody(e,a.eq(s),!0)).children().removeClass(o),t.tablesorter.processTbody(e,r,!1)}})}(jQuery)},682:()=>{jQuery.fn.serializeObject=function(){var t={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each((function(){""!==this.name&&(null===this.value&&(this.value=""),t[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)})),this.find("input:radio:checked").each((function(){t[this.name]=this.value})),this.find("select[multiple]").each((function(){var e=jQuery(this),i=e.val();e.data("aui-ss")?t[this.name]=i?i[0]:"":t[this.name]=null!==i?i:[]})),t}},687:e=>{"use strict";e.exports=t},171:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0});var n="1.13.7",s="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g||Function("return this")()||{},r=Array.prototype,a=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,l=r.push,c=r.slice,u=a.toString,d=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,f=Array.isArray,g=Object.keys,m=Object.create,v=h&&ArrayBuffer.isView,b=isNaN,y=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function C(t,e){return e=null==e?t.length-1:+e,function(){for(var i=Math.max(arguments.length-e,0),n=Array(i),s=0;s<i;s++)n[s]=arguments[s+e];switch(e){case 0:return t.call(this,n);case 1:return t.call(this,arguments[0],n);case 2:return t.call(this,arguments[0],arguments[1],n)}var r=Array(e+1);for(s=0;s<e;s++)r[s]=arguments[s];return r[e]=n,t.apply(this,r)}}function T(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function k(t){return null===t}function E(t){return void 0===t}function A(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)}function S(t){return!(!t||1!==t.nodeType)}function D(t){var e="[object "+t+"]";return function(t){return u.call(t)===e}}var I=D("String"),M=D("Number"),N=D("Date"),O=D("RegExp"),L=D("Error"),P=D("Symbol"),R=D("ArrayBuffer"),$=D("Function"),j=s.document&&s.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof j&&($=function(t){return"function"==typeof t||!1});var z=$,F=D("Object"),H=p&&(!/\[native code\]/.test(String(DataView))||F(new DataView(new ArrayBuffer(8)))),B="undefined"!=typeof Map&&F(new Map),U=D("DataView");var W=H?function(t){return null!=t&&z(t.getInt8)&&R(t.buffer)}:U,V=f||D("Array");function Y(t,e){return null!=t&&d.call(t,e)}var q=D("Arguments");!function(){q(arguments)||(q=function(t){return Y(t,"callee")})}();var K=q;function Q(t){return!P(t)&&y(t)&&!isNaN(parseFloat(t))}function G(t){return M(t)&&b(t)}function J(t){return function(){return t}}function Z(t){return function(e){var i=t(e);return"number"==typeof i&&i>=0&&i<=x}}function X(t){return function(e){return null==e?void 0:e[t]}}var tt=X("byteLength"),et=Z(tt),it=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var nt=h?function(t){return v?v(t)&&!W(t):et(t)&&it.test(u.call(t))}:J(!1),st=X("length");function rt(t,e){e=function(t){for(var e={},i=t.length,n=0;n<i;++n)e[t[n]]=!0;return{contains:function(t){return!0===e[t]},push:function(i){return e[i]=!0,t.push(i)}}}(e);var i=_.length,n=t.constructor,s=z(n)&&n.prototype||a,r="constructor";for(Y(t,r)&&!e.contains(r)&&e.push(r);i--;)(r=_[i])in t&&t[r]!==s[r]&&!e.contains(r)&&e.push(r)}function at(t){if(!T(t))return[];if(g)return g(t);var e=[];for(var i in t)Y(t,i)&&e.push(i);return w&&rt(t,e),e}function ot(t){if(null==t)return!0;var e=st(t);return"number"==typeof e&&(V(t)||I(t)||K(t))?0===e:0===st(at(t))}function lt(t,e){var i=at(e),n=i.length;if(null==t)return!n;for(var s=Object(t),r=0;r<n;r++){var a=i[r];if(e[a]!==s[a]||!(a in s))return!1}return!0}function ct(t){return t instanceof ct?t:this instanceof ct?void(this._wrapped=t):new ct(t)}function ut(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,tt(t))}ct.VERSION=n,ct.prototype.value=function(){return this._wrapped},ct.prototype.valueOf=ct.prototype.toJSON=ct.prototype.value,ct.prototype.toString=function(){return String(this._wrapped)};var dt="[object DataView]";function ht(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var s=typeof t;return("function"===s||"object"===s||"object"==typeof e)&&pt(t,e,i,n)}function pt(t,e,i,n){t instanceof ct&&(t=t._wrapped),e instanceof ct&&(e=e._wrapped);var s=u.call(t);if(s!==u.call(e))return!1;if(H&&"[object Object]"==s&&W(t)){if(!W(e))return!1;s=dt}switch(s){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return o.valueOf.call(t)===o.valueOf.call(e);case"[object ArrayBuffer]":case dt:return pt(ut(t),ut(e),i,n)}var r="[object Array]"===s;if(!r&&nt(t)){if(tt(t)!==tt(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,l=e.constructor;if(a!==l&&!(z(a)&&a instanceof a&&z(l)&&l instanceof l)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var c=(i=i||[]).length;c--;)if(i[c]===t)return n[c]===e;if(i.push(t),n.push(e),r){if((c=t.length)!==e.length)return!1;for(;c--;)if(!ht(t[c],e[c],i,n))return!1}else{var d,h=at(t);if(c=h.length,at(e).length!==c)return!1;for(;c--;)if(!Y(e,d=h[c])||!ht(t[d],e[d],i,n))return!1}return i.pop(),n.pop(),!0}function ft(t,e){return ht(t,e)}function gt(t){if(!T(t))return[];var e=[];for(var i in t)e.push(i);return w&&rt(t,e),e}function mt(t){var e=st(t);return function(i){if(null==i)return!1;var n=gt(i);if(st(n))return!1;for(var s=0;s<e;s++)if(!z(i[t[s]]))return!1;return t!==_t||!z(i[vt])}}var vt="forEach",bt=["clear","delete"],yt=["get","has","set"],wt=bt.concat(vt,yt),_t=bt.concat(yt),xt=["add"].concat(bt,vt,"has"),Ct=B?mt(wt):D("Map"),Tt=B?mt(_t):D("WeakMap"),kt=B?mt(xt):D("Set"),Et=D("WeakSet");function At(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=t[e[s]];return n}function St(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=[e[s],t[e[s]]];return n}function Dt(t){for(var e={},i=at(t),n=0,s=i.length;n<s;n++)e[t[i[n]]]=i[n];return e}function It(t){var e=[];for(var i in t)z(t[i])&&e.push(i);return e.sort()}function Mt(t,e){return function(i){var n=arguments.length;if(e&&(i=Object(i)),n<2||null==i)return i;for(var s=1;s<n;s++)for(var r=arguments[s],a=t(r),o=a.length,l=0;l<o;l++){var c=a[l];e&&void 0!==i[c]||(i[c]=r[c])}return i}}var Nt=Mt(gt),Ot=Mt(at),Lt=Mt(gt,!0);function Pt(t){if(!T(t))return{};if(m)return m(t);var e=function(){};e.prototype=t;var i=new e;return e.prototype=null,i}function Rt(t,e){var i=Pt(t);return e&&Ot(i,e),i}function $t(t){return T(t)?V(t)?t.slice():Nt({},t):t}function jt(t,e){return e(t),t}function zt(t){return V(t)?t:[t]}function Ft(t){return ct.toPath(t)}function Ht(t,e){for(var i=e.length,n=0;n<i;n++){if(null==t)return;t=t[e[n]]}return i?t:void 0}function Bt(t,e,i){var n=Ht(t,Ft(e));return E(n)?i:n}function Ut(t,e){for(var i=(e=Ft(e)).length,n=0;n<i;n++){var s=e[n];if(!Y(t,s))return!1;t=t[s]}return!!i}function Wt(t){return t}function Vt(t){return t=Ot({},t),function(e){return lt(e,t)}}function Yt(t){return t=Ft(t),function(e){return Ht(e,t)}}function qt(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 3:return function(i,n,s){return t.call(e,i,n,s)};case 4:return function(i,n,s,r){return t.call(e,i,n,s,r)}}return function(){return t.apply(e,arguments)}}function Kt(t,e,i){return null==t?Wt:z(t)?qt(t,e,i):T(t)&&!V(t)?Vt(t):Yt(t)}function Qt(t,e){return Kt(t,e,1/0)}function Gt(t,e,i){return ct.iteratee!==Qt?ct.iteratee(t,e):Kt(t,e,i)}function Jt(t,e,i){e=Gt(e,i);for(var n=at(t),s=n.length,r={},a=0;a<s;a++){var o=n[a];r[o]=e(t[o],o,t)}return r}function Zt(){}function Xt(t){return null==t?Zt:function(e){return Bt(t,e)}}function te(t,e,i){var n=Array(Math.max(0,t));e=qt(e,i,1);for(var s=0;s<t;s++)n[s]=e(s);return n}function ee(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ct.toPath=zt,ct.iteratee=Qt;var ie=Date.now||function(){return(new Date).getTime()};function ne(t){var e=function(e){return t[e]},i="(?:"+at(t).join("|")+")",n=RegExp(i),s=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(s,e):t}}var se={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},re=ne(se),ae=ne(Dt(se)),oe=ct.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},le=/(.)^/,ce={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ue=/\\|'|\r|\n|\u2028|\u2029/g;function de(t){return"\\"+ce[t]}var he=/^\s*(\w|\$)+\s*$/;function pe(t,e,i){!e&&i&&(e=i),e=Lt({},e,ct.templateSettings);var n=RegExp([(e.escape||le).source,(e.interpolate||le).source,(e.evaluate||le).source].join("|")+"|$","g"),s=0,r="__p+='";t.replace(n,(function(e,i,n,a,o){return r+=t.slice(s,o).replace(ue,de),s=o+e.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?r+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),e})),r+="';\n";var a,o=e.variable;if(o){if(!he.test(o))throw new Error("variable is not a bare identifier: "+o)}else r="with(obj||{}){\n"+r+"}\n",o="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{a=new Function(o,"_",r)}catch(t){throw t.source=r,t}var l=function(t){return a.call(this,t,ct)};return l.source="function("+o+"){\n"+r+"}",l}function fe(t,e,i){var n=(e=Ft(e)).length;if(!n)return z(i)?i.call(t):i;for(var s=0;s<n;s++){var r=null==t?void 0:t[e[s]];void 0===r&&(r=i,s=n),t=z(r)?r.call(t):r}return t}var ge=0;function me(t){var e=++ge+"";return t?t+e:e}function ve(t){var e=ct(t);return e._chain=!0,e}function be(t,e,i,n,s){if(!(n instanceof e))return t.apply(i,s);var r=Pt(t.prototype),a=t.apply(r,s);return T(a)?a:r}var ye=C((function(t,e){var i=ye.placeholder,n=function(){for(var s=0,r=e.length,a=Array(r),o=0;o<r;o++)a[o]=e[o]===i?arguments[s++]:e[o];for(;s<arguments.length;)a.push(arguments[s++]);return be(t,n,this,this,a)};return n}));ye.placeholder=ct;var we=C((function(t,e,i){if(!z(t))throw new TypeError("Bind must be called on a function");var n=C((function(s){return be(t,n,e,this,i.concat(s))}));return n})),_e=Z(st);function xe(t,e,i,n){if(n=n||[],e||0===e){if(e<=0)return n.concat(t)}else e=1/0;for(var s=n.length,r=0,a=st(t);r<a;r++){var o=t[r];if(_e(o)&&(V(o)||K(o)))if(e>1)xe(o,e-1,i,n),s=n.length;else for(var l=0,c=o.length;l<c;)n[s++]=o[l++];else i||(n[s++]=o)}return n}var Ce=C((function(t,e){var i=(e=xe(e,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var n=e[i];t[n]=we(t[n],t)}return t}));function Te(t,e){var i=function(n){var s=i.cache,r=""+(e?e.apply(this,arguments):n);return Y(s,r)||(s[r]=t.apply(this,arguments)),s[r]};return i.cache={},i}var ke=C((function(t,e,i){return setTimeout((function(){return t.apply(null,i)}),e)})),Ee=ye(ke,ct,1);function Ae(t,e,i){var n,s,r,a,o=0;i||(i={});var l=function(){o=!1===i.leading?0:ie(),n=null,a=t.apply(s,r),n||(s=r=null)},c=function(){var c=ie();o||!1!==i.leading||(o=c);var u=e-(c-o);return s=this,r=arguments,u<=0||u>e?(n&&(clearTimeout(n),n=null),o=c,a=t.apply(s,r),n||(s=r=null)):n||!1===i.trailing||(n=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(n),o=0,n=s=r=null},c}function Se(t,e,i){var n,s,r,a,o,l=function(){var c=ie()-s;e>c?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(o,r)),n||(r=o=null))},c=C((function(c){return o=this,r=c,s=ie(),n||(n=setTimeout(l,e),i&&(a=t.apply(o,r))),a}));return c.cancel=function(){clearTimeout(n),n=r=o=null},c}function De(t,e){return ye(e,t)}function Ie(t){return function(){return!t.apply(this,arguments)}}function Me(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}}function Ne(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Oe(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}}var Le=ye(Oe,2);function Pe(t,e,i){e=Gt(e,i);for(var n,s=at(t),r=0,a=s.length;r<a;r++)if(e(t[n=s[r]],n,t))return n}function Re(t){return function(e,i,n){i=Gt(i,n);for(var s=st(e),r=t>0?0:s-1;r>=0&&r<s;r+=t)if(i(e[r],r,e))return r;return-1}}var $e=Re(1),je=Re(-1);function ze(t,e,i,n){for(var s=(i=Gt(i,n,1))(e),r=0,a=st(t);r<a;){var o=Math.floor((r+a)/2);i(t[o])<s?r=o+1:a=o}return r}function Fe(t,e,i){return function(n,s,r){var a=0,o=st(n);if("number"==typeof r)t>0?a=r>=0?r:Math.max(r+o,a):o=r>=0?Math.min(r+1,o):r+o+1;else if(i&&r&&o)return n[r=i(n,s)]===s?r:-1;if(s!=s)return(r=e(c.call(n,a,o),G))>=0?r+a:-1;for(r=t>0?a:o-1;r>=0&&r<o;r+=t)if(n[r]===s)return r;return-1}}var He=Fe(1,$e,ze),Be=Fe(-1,je);function Ue(t,e,i){var n=(_e(t)?$e:Pe)(t,e,i);if(void 0!==n&&-1!==n)return t[n]}function We(t,e){return Ue(t,Vt(e))}function Ve(t,e,i){var n,s;if(e=qt(e,i),_e(t))for(n=0,s=t.length;n<s;n++)e(t[n],n,t);else{var r=at(t);for(n=0,s=r.length;n<s;n++)e(t[r[n]],r[n],t)}return t}function Ye(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=Array(s),a=0;a<s;a++){var o=n?n[a]:a;r[a]=e(t[o],o,t)}return r}function qe(t){return function(e,i,n,s){var r=arguments.length>=3;return function(e,i,n,s){var r=!_e(e)&&at(e),a=(r||e).length,o=t>0?0:a-1;for(s||(n=e[r?r[o]:o],o+=t);o>=0&&o<a;o+=t){var l=r?r[o]:o;n=i(n,e[l],l,e)}return n}(e,qt(i,s,4),n,r)}}var Ke=qe(1),Qe=qe(-1);function Ge(t,e,i){var n=[];return e=Gt(e,i),Ve(t,(function(t,i,s){e(t,i,s)&&n.push(t)})),n}function Je(t,e,i){return Ge(t,Ie(Gt(e)),i)}function Ze(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(!e(t[a],a,t))return!1}return!0}function Xe(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(e(t[a],a,t))return!0}return!1}function ti(t,e,i,n){return _e(t)||(t=At(t)),("number"!=typeof i||n)&&(i=0),He(t,e,i)>=0}var ei=C((function(t,e,i){var n,s;return z(e)?s=e:(e=Ft(e),n=e.slice(0,-1),e=e[e.length-1]),Ye(t,(function(t){var r=s;if(!r){if(n&&n.length&&(t=Ht(t,n)),null==t)return;r=t[e]}return null==r?r:r.apply(t,i)}))}));function ii(t,e){return Ye(t,Yt(e))}function ni(t,e){return Ge(t,Vt(e))}function si(t,e,i){var n,s,r=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:At(t)).length;o<l;o++)null!=(n=t[o])&&n>r&&(r=n);else e=Gt(e,i),Ve(t,(function(t,i,n){((s=e(t,i,n))>a||s===-1/0&&r===-1/0)&&(r=t,a=s)}));return r}function ri(t,e,i){var n,s,r=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:At(t)).length;o<l;o++)null!=(n=t[o])&&n<r&&(r=n);else e=Gt(e,i),Ve(t,(function(t,i,n){((s=e(t,i,n))<a||s===1/0&&r===1/0)&&(r=t,a=s)}));return r}var ai=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function oi(t){return t?V(t)?c.call(t):I(t)?t.match(ai):_e(t)?Ye(t,Wt):At(t):[]}function li(t,e,i){if(null==e||i)return _e(t)||(t=At(t)),t[ee(t.length-1)];var n=oi(t),s=st(n);e=Math.max(Math.min(e,s),0);for(var r=s-1,a=0;a<e;a++){var o=ee(a,r),l=n[a];n[a]=n[o],n[o]=l}return n.slice(0,e)}function ci(t){return li(t,1/0)}function ui(t,e,i){var n=0;return e=Gt(e,i),ii(Ye(t,(function(t,i,s){return{value:t,index:n++,criteria:e(t,i,s)}})).sort((function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index})),"value")}function di(t,e){return function(i,n,s){var r=e?[[],[]]:{};return n=Gt(n,s),Ve(i,(function(e,s){var a=n(e,s,i);t(r,e,a)})),r}}var hi=di((function(t,e,i){Y(t,i)?t[i].push(e):t[i]=[e]})),pi=di((function(t,e,i){t[i]=e})),fi=di((function(t,e,i){Y(t,i)?t[i]++:t[i]=1})),gi=di((function(t,e,i){t[i?0:1].push(e)}),!0);function mi(t){return null==t?0:_e(t)?t.length:at(t).length}function vi(t,e,i){return e in i}var bi=C((function(t,e){var i={},n=e[0];if(null==t)return i;z(n)?(e.length>1&&(n=qt(n,e[1])),e=gt(t)):(n=vi,e=xe(e,!1,!1),t=Object(t));for(var s=0,r=e.length;s<r;s++){var a=e[s],o=t[a];n(o,a,t)&&(i[a]=o)}return i})),yi=C((function(t,e){var i,n=e[0];return z(n)?(n=Ie(n),e.length>1&&(i=e[1])):(e=Ye(xe(e,!1,!1),String),n=function(t,i){return!ti(e,i)}),bi(t,n,i)}));function wi(t,e,i){return c.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))}function _i(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[0]:wi(t,t.length-e)}function xi(t,e,i){return c.call(t,null==e||i?1:e)}function Ci(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[t.length-1]:xi(t,Math.max(0,t.length-e))}function Ti(t){return Ge(t,Boolean)}function ki(t,e){return xe(t,e,!1)}var Ei=C((function(t,e){return e=xe(e,!0,!0),Ge(t,(function(t){return!ti(e,t)}))})),Ai=C((function(t,e){return Ei(t,e)}));function Si(t,e,i,n){A(e)||(n=i,i=e,e=!1),null!=i&&(i=Gt(i,n));for(var s=[],r=[],a=0,o=st(t);a<o;a++){var l=t[a],c=i?i(l,a,t):l;e&&!i?(a&&r===c||s.push(l),r=c):i?ti(r,c)||(r.push(c),s.push(l)):ti(s,l)||s.push(l)}return s}var Di=C((function(t){return Si(xe(t,!0,!0))}));function Ii(t){for(var e=[],i=arguments.length,n=0,s=st(t);n<s;n++){var r=t[n];if(!ti(e,r)){var a;for(a=1;a<i&&ti(arguments[a],r);a++);a===i&&e.push(r)}}return e}function Mi(t){for(var e=t&&si(t,st).length||0,i=Array(e),n=0;n<e;n++)i[n]=ii(t,n);return i}var Ni=C(Mi);function Oi(t,e){for(var i={},n=0,s=st(t);n<s;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i}function Li(t,e,i){null==e&&(e=t||0,t=0),i||(i=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/i),0),s=Array(n),r=0;r<n;r++,t+=i)s[r]=t;return s}function Pi(t,e){if(null==e||e<1)return[];for(var i=[],n=0,s=t.length;n<s;)i.push(c.call(t,n,n+=e));return i}function Ri(t,e){return t._chain?ct(e).chain():e}function $i(t){return Ve(It(t),(function(e){var i=ct[e]=t[e];ct.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),Ri(this,i.apply(ct,t))}})),ct}Ve(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=r[t];ct.prototype[t]=function(){var i=this._wrapped;return null!=i&&(e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0]),Ri(this,i)}})),Ve(["concat","join","slice"],(function(t){var e=r[t];ct.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Ri(this,t)}}));var ji=$i({__proto__:null,VERSION:n,restArguments:C,isObject:T,isNull:k,isUndefined:E,isBoolean:A,isElement:S,isString:I,isNumber:M,isDate:N,isRegExp:O,isError:L,isSymbol:P,isArrayBuffer:R,isDataView:W,isArray:V,isFunction:z,isArguments:K,isFinite:Q,isNaN:G,isTypedArray:nt,isEmpty:ot,isMatch:lt,isEqual:ft,isMap:Ct,isWeakMap:Tt,isSet:kt,isWeakSet:Et,keys:at,allKeys:gt,values:At,pairs:St,invert:Dt,functions:It,methods:It,extend:Nt,extendOwn:Ot,assign:Ot,defaults:Lt,create:Rt,clone:$t,tap:jt,get:Bt,has:Ut,mapObject:Jt,identity:Wt,constant:J,noop:Zt,toPath:zt,property:Yt,propertyOf:Xt,matcher:Vt,matches:Vt,times:te,random:ee,now:ie,escape:re,unescape:ae,templateSettings:oe,template:pe,result:fe,uniqueId:me,chain:ve,iteratee:Qt,partial:ye,bind:we,bindAll:Ce,memoize:Te,delay:ke,defer:Ee,throttle:Ae,debounce:Se,wrap:De,negate:Ie,compose:Me,after:Ne,before:Oe,once:Le,findKey:Pe,findIndex:$e,findLastIndex:je,sortedIndex:ze,indexOf:He,lastIndexOf:Be,find:Ue,detect:Ue,findWhere:We,each:Ve,forEach:Ve,map:Ye,collect:Ye,reduce:Ke,foldl:Ke,inject:Ke,reduceRight:Qe,foldr:Qe,filter:Ge,select:Ge,reject:Je,every:Ze,all:Ze,some:Xe,any:Xe,contains:ti,includes:ti,include:ti,invoke:ei,pluck:ii,where:ni,max:si,min:ri,shuffle:ci,sample:li,sortBy:ui,groupBy:hi,indexBy:pi,countBy:fi,partition:gi,toArray:oi,size:mi,pick:bi,omit:yi,first:_i,head:_i,take:_i,initial:wi,last:Ci,rest:xi,tail:xi,drop:xi,compact:Ti,flatten:ki,without:Ai,uniq:Si,unique:Si,union:Di,intersection:Ii,difference:Ei,unzip:Mi,transpose:Mi,zip:Ni,object:Oi,range:Li,chunk:Pi,mixin:$i,default:ct});ji._=ji,e.VERSION=n,e._=ji,e._escape=re,e._unescape=ae,e.after=Ne,e.allKeys=gt,e.before=Oe,e.bind=we,e.bindAll=Ce,e.chain=ve,e.chunk=Pi,e.clone=$t,e.compact=Ti,e.compose=Me,e.constant=J,e.contains=ti,e.countBy=fi,e.create=Rt,e.debounce=Se,e.defaults=Lt,e.defer=Ee,e.delay=ke,e.difference=Ei,e.each=Ve,e.every=Ze,e.extend=Nt,e.extendOwn=Ot,e.filter=Ge,e.find=Ue,e.findIndex=$e,e.findKey=Pe,e.findLastIndex=je,e.findWhere=We,e.first=_i,e.flatten=ki,e.functions=It,e.get=Bt,e.groupBy=hi,e.has=Ut,e.identity=Wt,e.indexBy=pi,e.indexOf=He,e.initial=wi,e.intersection=Ii,e.invert=Dt,e.invoke=ei,e.isArguments=K,e.isArray=V,e.isArrayBuffer=R,e.isBoolean=A,e.isDataView=W,e.isDate=N,e.isElement=S,e.isEmpty=ot,e.isEqual=ft,e.isError=L,e.isFinite=Q,e.isFunction=z,e.isMap=Ct,e.isMatch=lt,e.isNaN=G,e.isNull=k,e.isNumber=M,e.isObject=T,e.isRegExp=O,e.isSet=kt,e.isString=I,e.isSymbol=P,e.isTypedArray=nt,e.isUndefined=E,e.isWeakMap=Tt,e.isWeakSet=Et,e.iteratee=Qt,e.keys=at,e.last=Ci,e.lastIndexOf=Be,e.map=Ye,e.mapObject=Jt,e.matcher=Vt,e.max=si,e.memoize=Te,e.min=ri,e.mixin=$i,e.negate=Ie,e.noop=Zt,e.now=ie,e.object=Oi,e.omit=yi,e.once=Le,e.pairs=St,e.partial=ye,e.partition=gi,e.pick=bi,e.pluck=ii,e.property=Yt,e.propertyOf=Xt,e.random=ee,e.range=Li,e.reduce=Ke,e.reduceRight=Qe,e.reject=Je,e.rest=xi,e.restArguments=C,e.result=fe,e.sample=li,e.shuffle=ci,e.size=mi,e.some=Xe,e.sortBy=ui,e.sortedIndex=ze,e.tap=jt,e.template=pe,e.templateSettings=oe,e.throttle=Ae,e.times=te,e.toArray=oi,e.toPath=zt,e.union=Di,e.uniq=Si,e.uniqueId=me,e.unzip=Mi,e.values=At,e.where=ni,e.without=Ai,e.wrap=De,e.zip=Ni},126:(t,e,i)=>{var n=i(171);t.exports=n._}},i={};function n(t){var s=i[t];if(void 0!==s)return s.exports;var r=i[t]={exports:{}};return e[t].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.r(s),n.d(s,{$:()=>Rt,AvatarBadged:()=>Bt,AvatarEl:()=>Jt,AvatarGroupEl:()=>le,CalendarWidget:()=>yc,DatePicker:()=>xc,DropdownEl:()=>Xn,FancyFileInput:()=>_s,FocusManager:()=>Cu,Header:()=>hc,I18n:()=>I18n,InlineDialog2:()=>Tu,InlineDialogEl:()=>uo,ItemButtonEl:()=>Qn,ItemCheckboxEl:()=>Gn,ItemLinkEl:()=>Kn,ItemRadioEl:()=>Jn,LabelEl:()=>ks,LayerManager:()=>ku,MessageEl:()=>ds,NavigationEl:()=>fo,ProgressBarEl:()=>Do,ProgressiveDataSet:()=>Eu,RestfulTable:()=>Wc,SectionEl:()=>Zn,SelectEl:()=>ur,SpinnerEl:()=>ye,TabContainerEl:()=>el,TabItemEl:()=>il,TabPaneEl:()=>nl,ToggleEl:()=>Wa,_addID:()=>Vu,banner:()=>ue,bind:()=>C,clone:()=>Au,contextPath:()=>Yu,debounce:()=>Su,debounceImmediate:()=>Du,dialog2:()=>De,dim:()=>Iu,error:()=>m,escapeHtml:()=>Mu,flag:()=>ys,formValidation:()=>Nu,format:()=>b,id:()=>Ou,isClipped:()=>Lu,keyCode:()=>Pu,layer:()=>Ru,log:()=>f,messages:()=>$u,navigation:()=>go,params:()=>zu,populateParameters:()=>ju,progressBars:()=>Mo,responsiveheader:()=>Fu,select:()=>Hu,sidebar:()=>hu,tablessortable:()=>Bu,tabs:()=>Uu,toInit:()=>jt,trigger:()=>k,unbind:()=>T,undim:()=>Wu,version:()=>w,warn:()=>g,whenIType:()=>xu});var t=n(687),e=n.n(t);const i=window.jQuery||window.Zepto||e(),r="AJS",a="I18n";function o(){"object"!=typeof window[r]&&(window[r]={})}function l(t,e){return o(),window[r][t]=e}var c=n(714),u=n.n(c);function d(t){let i;return{type:u().type.CLASSNAME,attached:function(n){!function(t,e){let i=!1;if(e((()=>{i=!0})),i)return;const n=new MutationObserver((t=>{(function(t){for(const e of t)if("childList"===e.type)return!0;return!1})(t)&&e((()=>n.disconnect()))}));n.observe(t,{childList:!0})}(n,(s=>{i=s;const r=e()(`input[type=${t}]`,n);r.each((function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)}));r.length>0&&i()}))},detached:function(t){e()(".aui-form-glyph",t).remove(),i&&i()}}}function h(t,e){var n=i(t);return void 0===e&&(e=!0),n.each((function(){this.disabled=!e}))}function p(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],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 t=i(this).siblings(".field-help");t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden")}))}));var f=p("log"),g=p("warn"),m=p("error");function v(t){var e=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(e,a){var o,l="";if(o=e.match(i))l=a.length>++e?a[e]:"";else if(o=e.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=e.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,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 "'+e+'" from message "'+t+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=v.apply(null,b)}}return l},o=function(t){for(var e=!1,i=-1,n=0,s=0;s<t.length;s++){var r=t.charAt(s);if("'"==r&&(e=!e),!e)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(t.substring(0,s+1)),a.push(t.substring(0,i)),a.push(t.substring(i+1,s)),a}}return null};return function(t){var i=arguments,n="";if(!t)return n;for(var s=o(t);s;)t=t.substring(s[0].length),n+=s[1].replace(e,""),n+=a(s[2],i),s=o(t);return n+=t.replace(e,"")}.apply(null,arguments)}l("error",m),l("log",f),l("warn",g),l("format",v);const b=v;var y="10.0.3";l("version",y);const w=y,_=!1,x=i(window);function C(t,e,i){try{return"function"==typeof i?x.on(t,_,e,i):x.on(t,_,e)}catch(t){f("error while binding: ",t.message)}}function T(t,e){try{return x.off(t,e)}catch(t){f("error while unbinding: ",t.message)}}function k(t,e){try{return x.trigger(t,e)}catch(t){f("error while triggering: "+t.message)}}l("bind",C),l("trigger",k),l("unbind",T);const E={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},A=new RegExp(`[${Object.keys(E).join("")}]`,"g");function S(t){return t.replace(A,(t=>E[t]))}l("escapeHtml",S);const D=S,I=Object.prototype.hasOwnProperty,M=[];function N(...t){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,t)}const O=(t,e)=>L(t,e);function L(t,e){if("function"==typeof t)return t;let i=!1;return e=e??{},function(n){let s=function(t){const e=new Error;let i=e.stack??e.stacktrace;return i=i?.replace(/^Error\n/,"")??"",i.split("\n")[t+2]}(n||1)??"";if(!i||!M.includes(s)){M.push(s),i=!0;let n="DEPRECATED "+(e.deprecationType??"")+"- "+(((r=t)?(r=""+r).charAt(0).toUpperCase()+r.substring(1):"")+" has been deprecated")+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion??"a future release")+".";e.alternativeName&&(n+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(n+=" "+e.extraInfo),s=""===s?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+String(s),e.extraObject?(n+="\n",N(n,e.extraObject,s)):N(n,s)}var r}}function P(t,e){let i=t.options?.displayName;i=i?" ("+i+")":"";const n=Object.assign({deprecationType:"CSS",extraObject:e},t.options);L("'"+t.selector+"' pattern"+i,n)()}function R(t,e,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=L(e||t.name||"this function",i);return function(...e){return n(),t.apply(this,e)}}function $(t,e,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=R(t,e,i);return n.prototype=t.prototype,Object.assign(n,t),n}function j(t,e,i){if("function"==typeof t[e]){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=i.displayName??e;t[e]=R(t[e],n,i)}else!function(t,e,i){let n=t[e];(i=i??{}).deprecationType=i.deprecationType??"JS";const s=L(i.displayName??e,i);Object.defineProperty(t,e,{get:function(){return s(),n},set:function(t){return n=t,s(),t}})}(t,e,i)}function z(t){return function(e){const i={selector:e,options:t},n=document.querySelectorAll(e);for(const t of n)P(i,t);!function(t){if(H.push(t),void 0===B){B=new MutationObserver((function(t){t.forEach((function(t){const e=t.addedNodes;for(const t of e)1===t.nodeType&&H.forEach(F(t))}))}));const t={childList:!0,subtree:!0};B.observe(document,t)}}(i)}}function F(t){return function(e){var i,n;i=t,n=e.selector,i instanceof Element&&i.matches(n)&&P(e,t)}}const H=[];let B;function U(t){t=t.jquery?t[0]:t,window.getComputedStyle(t,null).getPropertyValue("left")}var W;function V(t,e){W||(W=document.body),!0===t&&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"),e&&V.$dim.css({zIndex:e}),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:R,construct:$,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(z(e))},prop:j,obj:function(t,e,i){i=i??{};for(const n in t)I.call(t,n)&&(i.deprecationType=i.deprecationType??"JS",i.displayName=e+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,j(t,n,Object.assign({},i)))},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(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e}const J=u().noConflict();const Z=function(t){return{set:function(e,i){void 0===t._state&&(t._state={}),t._state[e]=i},get:function(e){if(t._state)return t._state[e]}}};function X(t){return Z(t).get("last-trigger")||nt(t)[0]}function tt(t,e){var i=e&&e.nodeType&&1===e.nodeType;return Z(t).set("last-trigger",!!i&&e)}function et(t,e){var i=X(t);i&&e(i)}function it(t,e){return Array.prototype.forEach.call(nt(t),e)}function nt(t){const e=window.frames,i=`[aria-controls="${t.id}"]`;let n=[],s=!1;for(let t=0;t<e.length;t++)try{let s=e[t].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(t){s=!0}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&g([`No triggers found for element (${t.id}) in iframes from the same origin.`,"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function st(t){return document.getElementById(t.getAttribute("aria-controls"))}function rt(t){return"true"!==t.getAttribute("aria-disabled")}function at(t,e){if(rt(t)){var i=st(t);i&&i.message&&i.message(e)}}const ot={click(t,e){(function(t,e){var n=i(e).closest("a[href]",t);return!!n.length&&n[0]!==t})(t,e.target)||(at(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==Q.ENTER&&i!==Q.SPACE||(e.preventDefault(),e.type="click",ot.click(t,e))},mouseenter(t,e){at(t,e)},mouseleave(t,e){at(t,e)},focus(t,e){at(t,e)},blur(t,e){(function(t,e){let n=e.relatedTarget;return n||(n=document.activeElement),i(st(t)).find(n).length>0})(t,e)||at(t,e)}};Object.keys(ot).forEach((function(t){const e=ot[t];i(document).on(`${t}.aui-trigger`,"[data-aui-trigger]",(function(i){e(i.currentTarget,function(t,e){const{target:i,currentTarget:n,relatedTarget:s}=t,{keyCode:r,which:a}=t;return{type:e,data:"keydown"===e?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>t.preventDefault()}}(i,t))}))})),J("data-aui-trigger",{type:J.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return rt(this)}}}),G("aui/trigger"),function(){function t(t){return"visible"===i.css(t,"visibility")&&i(t).is(":visible")}function e(e,n){var s=e.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=e.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=e.href||n;return(l?!e.disabled:c?u:n)&&t(e)}i.extend(i.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(i.attr(t,"tabindex"))),"aui-tabbable":function(t){var n=i.attr(t,"tabindex"),s=isNaN(n);return(s||n>=0)&&e(t,!s)}})}();var lt="_aui-focus-restore";function ct(t){return t.is(".aui-dialog2")||t.is('[aui-focus-trap="true"]')}function ut(){this._focusTrapStack=[],this._handler}function dt(t,e){if(0===t.length)return;if(e.keyCode!==Q.TAB)return;const n=e.shiftKey?-1:1,s=e.target,r=t[t.length-1],a=r.find(":aui-tabbable");if(!a.length&&ct(r)&&(r.trigger("focus"),e.preventDefault()),!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let t;if(t=i(s).closest(".aui-layer"),!t.length){t=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(s)}if(t.length){const e=t.find(":aui-tabbable"),i=e.index(s)+n;if(!(i<0||i>=e.length))return;{const e=X(t.get(0));l=a.index(e)}}}l=l>-1?function(t,e,i,n){function s(t){return(t+i)%n.length}let r=s(e);if("radio"===t.type&&t.name)for(;n.eq(r).attr("name")===t.name&&r!==e;)r=s(r);if(r!==e&&"radio"===n.eq(r).attr("type")){const t=n.eq(r).attr("name"),e=n.filter((function(){return"radio"===this.type&&this.name===t})),s=e.filter(":checked");let a;a=s.length>0?s.first():i>0?e.first():e.last(),r=n.index(a)}return r}(s,l,n,a):0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),e.preventDefault())}let ht;function pt(){return ht||(ht=new ut),ht}ut.defaultFocusSelector=":aui-tabbable",ut.prototype.enter=function(t,e){if(function(t,e=document.activeElement){t.data(lt,e)}(t,e),"false"!==t.attr("data-aui-focus")){var n=t.attr("data-aui-focus-selector")||ut.defaultFocusSelector;(t.is(n)?t:t.find(n)).first().trigger("focus")}ct(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=dt.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ut.prototype.exit=function(t){ct(t)&&(this._focusTrapStack.splice(this._focusTrapStack.indexOf(t),1),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){e.blur();var n=function(t){return i(t.data(lt))}(t);n.length&&(t.removeData(lt),n.trigger("focus"))}},pt.global=pt(),l("FocusManager",pt);const ft=pt;function gt(t,e){var n="_aui-widget-"+t;return function(t,s){var r,a;i.isPlainObject(t)?a=t:(r=t,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new e(l,a||{})).$el).data(n,o),o}}const mt="_aui-internal-layer-",vt="_aui-internal-layer-global-";var bt=i(document);function yt(t,e,i,n){!function(t,e){var i=window.getComputedStyle(t).transitionProperty;return!!i&&i.indexOf(e)>-1}(t,e)?i.call(t):t.addEventListener("transitionend",(function s(r){e===r.propertyName&&(i.call(t),n&&t.removeEventListener("transitionend",s))}))}function wt(t,e,n){var s=i.Event(mt+e),r=i.Event(vt+e),a=new CustomEvent("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new CustomEvent("aui-"+n,{bubbles:!0,cancelable:!0});return t.trigger(s),t.trigger(r,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function _t(t){this.$el=i(t||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function xt(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}_t.prototype={below:function(){return Dt.global.item(Dt.global.indexOf(this.$el)-1)},above:function(){return Dt.global.item(Dt.global.indexOf(this.$el)+1)},changeSize:function(t,e){return this.$el.css("width",t),this.$el.css("height","content"===e?"":e),this},on:function(t,e){return this.$el.on(mt+t,e),this},off:function(t,e){return this.$el.off(mt+t,e),this},show:function(){return this.isVisible()||Dt.global.indexOf(this.$el)>-1?this:wt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Dt.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const t=this;return yt(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),Dt.global.popUntil(this.$el,!0),this},isVisible:function(){return!0===this.$el.data("_aui-layer-shown")},remove:function(){this.hide(),this.$el.remove(),this.$el=null,this.el=null},isBlanketed:function(){return"true"===this.el.dataset.auiBlanketed},isPersistent:function(){var t=xt(this.el,"modal"),e=this.el.hasAttribute("persistent");return"true"===t||e},getDOMContainer:function(){let t=xt(this.el,"dom-container");return t&&(t=document.querySelector(t)||document.body),t},_hideLayer:function(t){return!(t&&!wt(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&ft.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(mt+"hide"),this.$el.trigger(vt+"hide",[this.$el]),!0)},_showLayer:function(t){let e=this.getDOMContainer();if(this.isBlanketed()||e){let t=e||"body";this.$el.parent().is(t)||this.$el.appendTo(t)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",t),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&ft.global.enter(this.$el),this.$el.trigger(mt+"show"),this.$el.trigger(vt+"show",[this.$el])}};var Ct=gt("layer",_t);function Tt(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function kt(t,e){return Tt(t,(function(t){return t[0]===e[0]}))}function Et(t){return Tt(t,(function(t){return Ct(t).isBlanketed()}))}function At(t,e){var i=Et(t);e!==i&&(i>-1?V(!1,t[i].css("z-index")-20):Y())}function St(t,e,i,n=!0){if(e<0)return[!1,null];for(var s,r=t.length-1;r>=e;r--){s=t[r];var a=Ct(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];t.splice(r,1)}}return[!0,s]}function Dt(){this._stack=[]}function It(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return Dt.global.indexOf(e)>-1}Ct.on=function(t,e,i){return bt.on(vt+t,e,i),this},Ct.off=function(t,e,i){return bt.off(vt+t,e,i),this},Dt.prototype={push:function(t){var e=t instanceof i?t:i(t);if(kt(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var n=Ct(e),s=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return n._showLayer(s),n.isBlanketed()&&V(!1,s-20),this._stack.push(e),this},popLayersBeside:function(t){const e=i(t).get(0);if(!function(t){return!!X(t)}(e)){var n=Et(this._stack);return void St(this._stack,++n,!1)}const s=function(t){var e=X(t);if(e)return i(e).closest(".aui-layer").get(0)}(e);if(s){let t=this.indexOf(s);St(this._stack,++t,!1)}else St(this._stack,0,!1)},indexOf:function(t){return kt(this._stack,i(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=Ct(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=kt(this._stack,n);if(s<0)return null;for(s--;s>=0;){e=this._stack[s];var r=Ct(e);if(!r.isPersistent()||r.isBlanketed())return e;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=kt(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){e=this._stack[s];var r=Ct(e);if(!r.isPersistent()&&!r.isBlanketed())return e;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},getTopOpenLayer:function(){return this._stack.slice().reverse().find((t=>t.attr("open")))||null},popUntil:function(t,e=!1){var n=t instanceof i?t:i(t),s=kt(this._stack,n);if(-1===s)return null;const r=Et(this._stack),a=Ct(n),[o,l]=St(this._stack,s+1,a.isBlanketed(),e);return o&&a._hideLayer(e)?(this._stack.splice(s,1),At(this._stack,r),n):l},popTopIfNonPersistent:function(t=!1){var e=this.getTopLayer(),i=Ct(e);return!e||i.isPersistent()?null:this.popUntil(e,t)},popUntilTopBlanketed:function(t=!1){var e=Et(this._stack);if(e<0)return null;var i=this._stack[e];if(Ct(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=kt(this._stack,n);return St(this._stack,s,!0,t),n}return null}return St(this._stack,e,!0),At(this._stack,e),i},popUntilTopPersistent:function(t=!1){var e=Dt.global.getTopLayer();if(e){var i,n=Et(this._stack),s=Ct(e);if(s.isPersistent()){if(s.isBlanketed())return;if(e=Dt.global.getNextLowerNonPersistentOrBlanketedLayer(e),s=Ct(e),!e||s.isPersistent())return;i=kt(this._stack,e),St(this._stack,i,!0,t),At(this._stack,n)}else i=kt(this._stack,e),St(this._stack,i,!0,t),At(this._stack,n)}}},bt.on("keydown",(function(t){t.keyCode===Q.ESCAPE&&(Dt.global.popUntilTopPersistent(!0),t.preventDefault())})),bt.on("click",".aui-blanket",(function(t){Dt.global.popUntilTopBlanketed(!0)&&t.preventDefault()})),bt.on("click",(function(t){var e=i(t.target);if(!e.closest(".aui-blanket").length){var n=e.closest("[aria-controls]"),s=e.closest(".aui-layer");if(!s.length&&!It(n)){const e=i.Event("aui-close-layers-on-outer-click");return bt.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void Dt.global.hideAll()}if(!It(n)&&s.length){var r=Dt.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&Ct(r).hide()}}})),Dt.global=new Dt,Ct.Manager=Dt,l("layer",Ct);const Mt=Ct;l("LayerManager",Mt.Manager);Mt.Manager;const Nt={sinceVersion:"9.0.0",removeInVersion:"11.0.0"},Ot=l("params",new Proxy({},{get:function(t,e){return O("AJS.params",Nt)(),t[e]}}));const Lt=R((function(t){t||(t=Ot),i(".parameters input").each((function(){var e=this.value,n=this.title||this.id;i(this).hasClass("list")?t[n]?t[n].push(e):t[n]=[e]:t[n]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"11.0.0"});l("populateParameters",Lt);const Pt=Lt;i((function(){var t=i("body");t.data("auiVersion")||t.attr("data-aui-version",w),Pt()})),l("$",i);const Rt=i;function $t(t){return i.when(i.ready).then((function(){setTimeout((function(){try{t.call(this,i)}catch(e){m("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}l("toInit",$t);const jt=$t;n(547);const zt={keys:{"aui.landmarks.site":"Site","aui.landmarks.sidebar":"Sidebar","aui.landmarks.page":"Page","aui.landmarks.main":"Main","aui.header.home.link":"Go to home page","aui.dropdown.async.error":"Error loading dropdown","aui.dropdown.async.loading":"Loading dropdown","aui.words.expand":"Expand","aui.words.collapse":"Collapse","aui.words.add":"Add","aui.words.update":"Update","aui.words.delete":"Delete","aui.words.remove":"Remove","aui.words.cancel":"Cancel","aui.words.loading":"Loading","aui.words.close":"Close","aui.enter.value":"Enter value","aui.words.more":"More","aui.words.moreitem":"More…","aui.keyboard.shortcut.type.x":"Type ''{0}''","aui.keyboard.shortcut.then.x":"then ''{0}''","aui.keyboard.shortcut.or.x":"OR ''{0}''","aui.sidebar.expand.tooltip":"Expand sidebar ( [ )","aui.sidebar.collapse.tooltip":"Collapse sidebar ( [ )","aui.validation.message.maxlength":"Must be fewer than or equal to {0} characters","aui.validation.message.minlength":"Must be greater than or equal to {0} characters","aui.validation.message.exactlength":"Must be exactly {0} characters","aui.validation.message.matchingfield":"{0} and {1} do not match.","aui.validation.message.matchingfield-novalue":"These fields do not match.","aui.validation.message.doesnotcontain":"Do not include the phrase {0} in this field","aui.validation.message.pattern":"This field does not match the required format","aui.validation.message.required":"This is a required field","aui.validation.message.validnumber":"Please enter a valid number","aui.validation.message.min":"Enter a value greater than or equal to {0}","aui.validation.message.max":"Enter a value less than or equal to {0}","aui.validation.message.dateformat":"Enter a valid date","aui.validation.message.minchecked":"Tick at least {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.validation.message.maxchecked":"Tick at most {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.select.no.suggestions":"No suggestions","aui.select.number.suggestions":"Found {0,choice,0#0 options|1#1 option|1<{0,number} options}.","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","aui.messagecomponent.error.label":"Error","aui.messagecomponent.warning.label":"Warning","aui.messagecomponent.info.label":"Information","aui.messagecomponent.confirmation.label":"Confirmation","aui.messagecomponent.change.label":"Change","ajs.datepicker.localisations.day-names.sunday":"Sunday","ajs.datepicker.localisations.day-names.monday":"Monday","ajs.datepicker.localisations.day-names.tuesday":"Tuesday","ajs.datepicker.localisations.day-names.wednesday":"Wednesday","ajs.datepicker.localisations.day-names.thursday":"Thursday","ajs.datepicker.localisations.day-names.friday":"Friday","ajs.datepicker.localisations.day-names.saturday":"Saturday","ajs.datepicker.localisations.day-names-min.sunday":"Sun","ajs.datepicker.localisations.day-names-min.monday":"Mon","ajs.datepicker.localisations.day-names-min.tuesday":"Tue","ajs.datepicker.localisations.day-names-min.wednesday":"Wed","ajs.datepicker.localisations.day-names-min.thursday":"Thu","ajs.datepicker.localisations.day-names-min.friday":"Fri","ajs.datepicker.localisations.day-names-min.saturday":"Sat","ajs.datepicker.localisations.first-day":0,"ajs.datepicker.localisations.is-RTL":!1,"ajs.datepicker.localisations.month-names.january":"January","ajs.datepicker.localisations.month-names.february":"February","ajs.datepicker.localisations.month-names.march":"March","ajs.datepicker.localisations.month-names.april":"April","ajs.datepicker.localisations.month-names.may":"May","ajs.datepicker.localisations.month-names.june":"June","ajs.datepicker.localisations.month-names.july":"July","ajs.datepicker.localisations.month-names.august":"August","ajs.datepicker.localisations.month-names.september":"September","ajs.datepicker.localisations.month-names.october":"October","ajs.datepicker.localisations.month-names.november":"November","ajs.datepicker.localisations.month-names.december":"December","ajs.datepicker.localisations.show-month-after-year":!1,"ajs.datepicker.localisations.year-suffix":"","aui.flag.default-aria-label.info":"New information message","aui.flag.default-aria-label.success":"New confirmation message","aui.flag.default-aria-label.warning":"New warning message","aui.flag.default-aria-label.error":"New error message"},getText:function(t,...e){return Object.prototype.hasOwnProperty.call(this.keys,t)?b.apply(null,[this.keys[t]].concat(e)):t}},I18n=function(t){o(),"object"!=typeof window[r][a]&&(window[r][a]={});const e=window[r][a];for(const i in t)void 0===e[i]&&(e[i]=t[i]);return e}(zt),Ft="bottom-end",Ht=["top-start","top-end","bottom-start","bottom-end"],Bt=J("aui-avatar-badged",{attributes:{placement:{value:Ft,fallback(t,{newValue:e,oldValue:i}){((t,e,i)=>{const n=Ht.includes(e)?e:Ft;i&&t.classList.remove(`aui-avatar-badged-${i}`),t.classList.add(`aui-avatar-badged-${n}`)})(t,e,i)}}},created:function(t){t.classList.add("aui-avatar-badged")}});var Ut=n(2),Wt=n.n(Ut);const Vt=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Yt=(t,e)=>t.querySelector(e),qt=(t,e,i)=>{const n=Yt(t,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${e}`)},Kt=t=>{if(t.hasAttribute("src"))Gt(t,t.getAttribute("src"));else{const e=(t=>"project"===t.getAttribute("type")?"project":"user")(t),i=Vt.get(e);Gt(t,i)}},Qt=(t,e,i)=>Yt(t,"img").setAttribute(e,i),Gt=(t,e)=>Qt(t,"src",e),Jt=J("aui-avatar",{template:Wt()("\n <span class='aui-avatar'>\n <span class='aui-avatar-inner'>\n <img />\n </span>\n <content></content>\n </span>\n "),attributes:{size(t,{newValue:e,oldValue:i}){qt(t,e,i)},type(t,{newValue:e,oldValue:i}){qt(t,e,i),Kt(t)},src(t,{newValue:e}){Gt(t,e)},alt:{value:"",fallback(t,{newValue:e}){((t,e)=>{Qt(t,"alt",e)})(t,e)}},title(t,{newValue:e}){((t,e)=>{Qt(t,"title",e)})(t,e)}},created:function(t){t.className="aui-avatar",Kt(t),(t=>null!==t.querySelector("aui-avatar-badged"))(t)&&t.setAttribute("role","img")}}),Zt="medium",Xt={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128},te=(t,e)=>{const i=t.querySelectorAll("aui-avatar"),n=[...i].slice(4);se(i,e);const s=t.querySelector(".aui-avatar-group-dropdown");if(s&&s.remove(),0===n.length)return;const r=ee(e,n);t.appendChild(r)},ee=(t,e)=>{const i=document.createElement("div"),n=ie(`+${e.length}`),s=ne();return e.forEach((t=>{s.append(t)})),i.classList.add("aui-avatar-group-dropdown"),i.style.left=re(t,4.2),i.appendChild(n),i.appendChild(s),i},ie=t=>{const e=document.createElement("button");return e.classList.add("aui-avatar-group-dropdown-button","aui-avatar-inner"),e.innerText=t,e.setAttribute("aria-expanded",!1),e.setAttribute("aria-haspopup","dialog"),e},ne=()=>{const t=document.createElement("div");return t.classList.add("aui-avatar-group-dropdown-menu"),t},se=(t,e)=>{t.forEach(((t,i)=>{const n=i>=4;t.classList.add(n?"aui-avatar-group-dropdown-item":"aui-avatar-group-item"),n?t.setAttribute("size","medium"):(t.setAttribute("size",e),t.style.left=re(e,i),t.style.zIndex=""+(5-i))}))},re=(t,e)=>{const i=Xt[t];return`${(i-.25*i)*e}px`};document.addEventListener("click",(t=>{const e=t.target.matches(".aui-avatar-group-dropdown-button"),i=t.target.closest(".aui-avatar-group-dropdown");(e||null===i)&&(e&&(i.classList.contains("aui-avatar-group-dropdown-show")?ae(i):oe(i)),document.querySelectorAll(".aui-avatar-group-dropdown-show").forEach((t=>{t!==i&&ae(t)})))})),document.addEventListener("keydown",(t=>{if("Escape"!==t.key)return;const e=document.querySelector(".aui-avatar-group-dropdown-show");e&&ae(e)}));const ae=t=>{const e=t.querySelector(".aui-avatar-group-dropdown-button");t.classList.remove("aui-avatar-group-dropdown-show"),e.setAttribute("aria-expanded","false")},oe=t=>{const e=t.querySelector(".aui-avatar-group-dropdown-button");t.classList.add("aui-avatar-group-dropdown-show"),e.setAttribute("aria-expanded","true")},le=J("aui-avatar-group",{attributes:{size:{value:Zt,fallback(t,{newValue:e,oldValue:i}){const n=(s=e,Object.keys(Xt).includes(s)?s:Zt);var s;((t,e,i)=>{i&&t.classList.remove(`aui-avatar-group-${i}`),t.classList.add(`aui-avatar-group-${e}`)})(t,n,i),J.init(t),te(t,n)}}},created(t){t.classList.add("aui-avatar-group")}});new MutationObserver((function(t){t.forEach((function(t){const e=t.target;((t,e)=>t.removedNodes.length>0&&e.classList.contains("aui-avatar-group")&&t.removedNodes[0].classList.contains("aui-avatar-group-item"))(t,e)&&te(e,e.getAttribute("size")),((t,e)=>t.addedNodes.length>0&&e.classList.contains("aui-avatar-group")&&t.addedNodes[0].classList.contains("aui-avatar"))(t,e)&&setTimeout((()=>{te(e,e.getAttribute("size"))}),0)}))})).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});function ce(t){const e=document.getElementById("header");if(!e)throw new Error('Unable to find the application header. Please ensure that an element with the ID "header" is present in the DOM');const i=function({body:t="",type:e="error"}){const i=document.createElement("div");i.className=`aui-banner aui-banner-${e}`,i.setAttribute("role","alert"),i.innerHTML=t;const n=document.createElement("div");return n.innerText=`${e}`,n.classList.add("assistive"),i.prepend(n),i}(t);return function(t,e){e.prepend(t),U(t)}(i,e),function(t){const e=t.querySelectorAll(".aui-banner[hidden]"),i=O("Banner [hidden] attribute",{removeInVersion:"11.0.0",sinceVersion:"9.8.0",deprecationType:"ATTRIBUTE",extraInfo:"The hidden attribute on the banner is no longer effective. Future banner function calls won't remove banners with this attribute."});e.forEach((function(t){i(),t.remove()}))}(e),i}G("aui/banner",ce),l("banner",ce);const ue=ce;var de=n(126);const he={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},pe={filled:!1,size:he.MEDIUM.name},fe="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.",ge=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:fe}),me=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:fe});function ve(t){let e=he.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();const i=Object.keys(he).map((t=>t.toLowerCase()));i.indexOf(t)>-1&&(e=t)}return e}function be(t){const{px:e,radius:i}=(0,de.find)(he,(e=>e.name===t._data.size))||he.MEDIUM;!function(t,e,i){const n=t.querySelector("svg"),s=t.querySelector("circle");n.setAttribute("size",e),n.setAttribute("height",e),n.setAttribute("width",e),n.setAttribute("viewBox",`0 0 ${e} ${e}`);const r=e/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(t,e,i),t._data.filled?function(t,e){const i=t.parentNode;if(i&&1===i.nodeType){const n=t.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+e/2;t.querySelector("svg").style.top=r-a+"px"}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}const ye=J("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',be(t)},attached(t){be(t)},attributes:{filled:{created:function(t){ge(),t._data.filled=!0,be(t)},removed:function(t){t._data.filled=!1,be(t)}},size(t,e){t._data.size=ve(e.newValue),be(t)}},prototype:{get _data(){return this.__data||(this._data=(0,de.defaults)({},pe))},set _data(t){return this.__data=t},set filled(t){me(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=ve(t);this.setAttribute("size",e)}}});function we(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function _e(t){return"INPUT"===t.nodeName}J("aui-button",{type:J.type.CLASSNAME,created:function(t){t._spinner=new ye,t._spinner.setAttribute("size",he.SMALL.name)},prototype:{busy:function(){return _e(this)||we(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 _e(this)||!we(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 _e(this)?(g("It is not valid to call isBusy() on an input button."),!1):we(this)}}}),G("aui/button");const xe="aui-close-button",Ce=`.${xe}`,Te=`<button type="button" class="${xe}" aria-label="${I18n.getText("aui.words.close")}">`,ke={"aui-focus":"false","aui-blanketed":"true"};function Ee(t){var e;this._handlers=new WeakMap,this.$el=i(t||`\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 ${Te}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),this.$header=this.$el.find(".aui-dialog2-header"),this.$content=this.$el.find(".aui-dialog2-content"),this.$footer=this.$el.find(".aui-dialog2-footer"),e=this.$el,i.each(ke,(function(t,i){const n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}Ee.prototype.on=function(t,e){const i=this.$el;if(!this._handlers.get(e)){const n=function(t){t.target===i.get(0)&&e.apply(this,arguments)};Mt(i).on(t,n),this._handlers.set(e,n)}return this},Ee.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(Mt(i).off(t,n),this._handlers.delete(e)),this},Ee.prototype.show=function(){return Mt(this.$el).show(),this},Ee.prototype.hide=function(){return Mt(this.$el).hide(),this},Ee.prototype.remove=function(){return Mt(this.$el).remove(),this},Ee.prototype.isVisible=function(){return Mt(this.$el).isVisible()};var Ae=gt("dialog2",Ee),Se=new Set;Ae.on=function(t,e){return Se.has(e)||(Mt.on(t,".aui-dialog2",e),Se.add(e)),this},Ae.off=function(t,e){return Se.has(e)&&(Mt.off(t,".aui-dialog2",e),Se.delete(e)),this},i(document).on("click keydown",`.aui-dialog2-header ${Ce}`,(function(t){("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE)&&(t.preventDefault(),Ae(i(t.target).closest(".aui-dialog2")).hide())})),Ae.on("show",(function(t,e){!function(t){const e=t.querySelector(Ce);e&&(O(`Dialog2 [${Ce}]`,{removeInVersion:"11.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"})(),e.setAttribute("tabindex","0"));t.setAttribute("tabindex","-1");const i=t.hasAttribute("data-aui-focus-selector");i&&O("Dialog2 [data-aui-focus-selector] attribute",{removeInVersion:"11.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=t.querySelector("[autofocus]");if(n)return document.activeElement.blur(),void setTimeout((()=>n.focus()),0);if(i){const e=t.querySelector(i);if(e)return e.blur(),void setTimeout((()=>e.focus()),0)}const s=[...t.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter((t=>!t.hasAttribute("disabled")&&!t.getAttribute("aria-hidden")));if(s.length){let t=s.shift();return t.classList.contains(xe)&&(t=s.shift()),void(t&&(t.blur(),setTimeout((()=>t.focus()),0)))}t.focus()}(e[0])})),Ae.on("hide",(function(t,e){const i=Mt(e);e.data("aui-remove-on-hide")&&i.remove()})),G("aui/dialog2",Ae),l("dialog2",Ae);const De=Ae;var Ie,Me,Ne=navigator.userAgent.toLowerCase(),Oe=(/msie/.test(Ne),/windows nt 5.1/.test(Ne),/windows nt 6.0/.test(Ne),/windows nt 6.1/.test(Ne),/mac os x/.test(Ne));function Le(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Pe(t){return t instanceof Le(t).Element||t instanceof Element}function Re(t){return t instanceof Le(t).HTMLElement||t instanceof HTMLElement}function $e(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Le(t).ShadowRoot||t instanceof ShadowRoot)}var je=Math.max,ze=Math.min,Fe=Math.round;function He(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Be(){return!/^((?!chrome|android).)*safari/i.test(He())}function Ue(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,r=1;e&&Re(t)&&(s=t.offsetWidth>0&&Fe(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Fe(n.height)/t.offsetHeight||1);var a=(Pe(t)?Le(t):window).visualViewport,o=!Be()&&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 We(t){var e=Le(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ve(t){return t?(t.nodeName||"").toLowerCase():null}function Ye(t){return((Pe(t)?t.ownerDocument:t.document)||window.document).documentElement}function qe(t){return Ue(Ye(t)).left+We(t).scrollLeft}function Ke(t){return Le(t).getComputedStyle(t)}function Qe(t){var e=Ke(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ge(t,e,i){void 0===i&&(i=!1);var n,s,r=Re(e),a=Re(e)&&function(t){var e=t.getBoundingClientRect(),i=Fe(e.width)/t.offsetWidth||1,n=Fe(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),o=Ye(e),l=Ue(t,a,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!i)&&(("body"!==Ve(e)||Qe(o))&&(c=(n=e)!==Le(n)&&Re(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:We(n)),Re(e)?((u=Ue(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):o&&(u.x=qe(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Je(t){var e=Ue(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Ze(t){return"html"===Ve(t)?t:t.assignedSlot||t.parentNode||($e(t)?t.host:null)||Ye(t)}function Xe(t){return["html","body","#document"].indexOf(Ve(t))>=0?t.ownerDocument.body:Re(t)&&Qe(t)?t:Xe(Ze(t))}function ti(t,e){var i;void 0===e&&(e=[]);var n=Xe(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),r=Le(n),a=s?[r].concat(r.visualViewport||[],Qe(n)?n:[]):n,o=e.concat(a);return s?o:o.concat(ti(Ze(a)))}function ei(t){return["table","td","th"].indexOf(Ve(t))>=0}function ii(t){return Re(t)&&"fixed"!==Ke(t).position?t.offsetParent:null}function ni(t){for(var e=Le(t),i=ii(t);i&&ei(i)&&"static"===Ke(i).position;)i=ii(i);return i&&("html"===Ve(i)||"body"===Ve(i)&&"static"===Ke(i).position)?e:i||function(t){var e=/firefox/i.test(He());if(/Trident/i.test(He())&&Re(t)&&"fixed"===Ke(t).position)return null;var i=Ze(t);for($e(i)&&(i=i.host);Re(i)&&["html","body"].indexOf(Ve(i))<0;){var n=Ke(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}var si="top",ri="bottom",ai="right",oi="left",li="auto",ci=[si,ri,ai,oi],ui="start",di="end",hi="clippingParents",pi="viewport",fi="popper",gi="reference",mi=ci.reduce((function(t,e){return t.concat([e+"-"+ui,e+"-"+di])}),[]),vi=[].concat(ci,[li]).reduce((function(t,e){return t.concat([e,e+"-"+ui,e+"-"+di])}),[]),bi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yi(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}function wi(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&$e(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _i(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xi(t,e,i){return e===pi?_i(function(t,e){var i=Le(t),n=Ye(t),s=i.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=Be();(c||!c&&"fixed"===e)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+qe(t),y:l}}(t,i)):Pe(e)?function(t,e){var i=Ue(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):_i(function(t){var e,i=Ye(t),n=We(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=je(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=je(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+qe(t),l=-n.scrollTop;return"rtl"===Ke(s||i).direction&&(o+=je(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}(Ye(t)))}function Ci(t,e,i,n){var s="clippingParents"===e?function(t){var e=ti(Ze(t)),i=["absolute","fixed"].indexOf(Ke(t).position)>=0&&Re(t)?ni(t):t;return Pe(i)?e.filter((function(t){return Pe(t)&&wi(t,i)&&"body"!==Ve(t)})):[]}(t):[].concat(e),r=[].concat(s,[i]),a=r[0],o=r.reduce((function(e,i){var s=xi(t,i,n);return e.top=je(s.top,e.top),e.right=ze(s.right,e.right),e.bottom=ze(s.bottom,e.bottom),e.left=je(s.left,e.left),e}),xi(t,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 Ti(t){return t.split("-")[0]}function ki(t){return t.split("-")[1]}function Ei(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ai(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Ti(s):null,a=s?ki(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case si:e={x:o,y:i.y-n.height};break;case ri:e={x:o,y:i.y+i.height};break;case ai:e={x:i.x+i.width,y:l};break;case oi:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?Ei(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ui:e[c]=e[c]-(i[u]/2-n[u]/2);break;case di:e[c]=e[c]+(i[u]/2-n[u]/2)}}return e}function Si(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Di(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function Ii(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.strategy,a=void 0===r?t.strategy:r,o=i.boundary,l=void 0===o?hi:o,c=i.rootBoundary,u=void 0===c?pi:c,d=i.elementContext,h=void 0===d?fi:d,p=i.altBoundary,f=void 0!==p&&p,g=i.padding,m=void 0===g?0:g,v=Si("number"!=typeof m?m:Di(m,ci)),b=h===fi?gi:fi,y=t.rects.popper,w=t.elements[f?b:h],_=Ci(Pe(w)?w:w.contextElement||Ye(t.elements.popper),l,u,a),x=Ue(t.elements.reference),C=Ai({reference:x,element:y,strategy:"absolute",placement:s}),T=_i(Object.assign({},y,C)),k=h===fi?T:x,E={top:_.top-k.top+v.top,bottom:k.bottom-_.bottom+v.bottom,left:_.left-k.left+v.left,right:k.right-_.right+v.right},A=t.modifiersData.offset;if(h===fi&&A){var S=A[s];Object.keys(E).forEach((function(t){var e=[ai,ri].indexOf(t)>=0?1:-1,i=[si,ri].indexOf(t)>=0?"y":"x";E[t]+=S[i]*e}))}return E}var Mi={placement:"bottom",modifiers:[],strategy:"absolute"};function Ni(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Oi(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?Mi:s;return function(t,e,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mi,r),modifiersData:{},elements:{reference:t,popper:e},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:Pe(t)?ti(t):t.contextElement?ti(t.contextElement):[],popper:ti(e)};var a,c,h=function(t){var e=yi(t);return bi.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((a=[].concat(n,o.options.modifiers),c=a.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return o.orderedModifiers=h.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:o,name:e,instance:u,options:n}),a=function(){};l.push(r||a)}})),u.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(Ni(e,i)){o.rects={reference:Ge(e,ni(i),"fixed"===o.options.strategy),popper:Je(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(o)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(s())}))}))),a}),destroy:function(){d(),c=!0}};if(!Ni(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var Li={passive:!0};const Pi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=Le(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,Li)})),o&&l.addEventListener("resize",i.update,Li),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Li)})),o&&l.removeEventListener("resize",i.update,Li)}},data:{}};const Ri={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Ai({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var $i={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ji(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.variation,a=t.offsets,o=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.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=oi,w=si,_=window;if(c){var x=ni(i),C="clientHeight",T="clientWidth";if(x===Le(i)&&"static"!==Ke(x=Ye(i)).position&&"absolute"===o&&(C="scrollHeight",T="scrollWidth"),s===si||(s===oi||s===ai)&&r===di)w=ri,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===oi||(s===si||s===ri)&&r===di)y=ai,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[T])-n.width,p*=l?1:-1}var k,E=Object.assign({position:o},c&&$i),A=!0===u?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Fe(i*s)/s||0,y:Fe(n*s)/s||0}}({x:p,y:g},Le(i)):{x:p,y:g};return p=A.x,g=A.y,l?Object.assign({},E,((k={})[w]=b?"0":"",k[y]=v?"0":"",k.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},E,((e={})[w]=b?g+"px":"",e[y]=v?p+"px":"",e.transform="",e))}const zi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o=i.roundOffsets,l=void 0===o||o,c={placement:Ti(e.placement),variation:ki(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ji(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ji(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};const Fi={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Re(s)&&Ve(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Re(n)&&Ve(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};const Hi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,a=vi.reduce((function(t,i){return t[i]=function(t,e,i){var n=Ti(t),s=[oi,si].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},e,{placement:t})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[oi,ai].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,e.rects,r),t}),{}),o=a[e.placement],l=o.x,c=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}};var Bi={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(t){return t.replace(/left|right|bottom|top/g,(function(t){return Bi[t]}))}var Wi={start:"end",end:"start"};function Vi(t){return t.replace(/start|end/g,(function(t){return Wi[t]}))}const Yi={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=Ti(m),b=l||(v===m||!f?[Ui(m)]:function(t){if(Ti(t)===li)return[];var e=Ui(t);return[Vi(t),e,Vi(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Ti(i)===li?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?vi:l,u=ki(n),d=u?o?mi:mi.filter((function(t){return ki(t)===u})):ci,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,i){return e[i]=Ii(t,{placement:i,boundary:s,rootBoundary:r,padding:a})[Ti(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,T=y[0],k=0;k<y.length;k++){var E=y[k],A=Ti(E),S=ki(E)===ui,D=[si,ri].indexOf(A)>=0,I=D?"width":"height",M=Ii(e,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=D?S?ai:oi:S?ri:si;w[I]>_[I]&&(N=Ui(N));var O=Ui(N),L=[];if(r&&L.push(M[A]<=0),o&&L.push(M[N]<=0,M[O]<=0),L.every((function(t){return t}))){T=E,C=!1;break}x.set(E,L)}if(C)for(var P=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},R=f?3:1;R>0;R--){if("break"===P(R))break}e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qi(t,e,i){return je(t,ze(e,i))}const Ki={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Ii(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Ti(e.placement),b=ki(e.placement),y=!b,w=Ei(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,k="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,E="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(x){if(r){var D,I="y"===w?si:oi,M="y"===w?ri:ai,N="y"===w?"height":"width",O=x[w],L=O+m[I],P=O-m[M],R=p?-T[N]/2:0,$=b===ui?C[N]:T[N],j=b===ui?-T[N]:-C[N],z=e.elements.arrow,F=p&&z?Je(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[I],U=H[M],W=qi(0,C[N],F[N]),V=y?C[N]/2-R-W-B-E.mainAxis:$-W-B-E.mainAxis,Y=y?-C[N]/2+R+W+U+E.mainAxis:j+W+U+E.mainAxis,q=e.elements.arrow&&ni(e.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(D=null==A?void 0:A[w])?D:0,G=O+Y-Q,J=qi(p?ze(L,O+V-Q-K):L,O,p?je(P,G):P);x[w]=J,S[w]=J-O}if(o){var Z,X="x"===w?si:oi,tt="x"===w?ri:ai,et=x[_],it="y"===_?"height":"width",nt=et+m[X],st=et-m[tt],rt=-1!==[si,oi].indexOf(v),at=null!=(Z=null==A?void 0:A[_])?Z:0,ot=rt?nt:et-C[it]-T[it]-at+E.altAxis,lt=rt?et+C[it]+T[it]-at-E.altAxis:st,ct=p&&rt?function(t,e,i){var n=qi(t,e,i);return n>i?i:n}(ot,et,lt):qi(p?ot:nt,et,p?lt:st);x[_]=ct,S[_]=ct-et}e.modifiersData[n]=S}},requiresIfExists:["offset"]};const Qi={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,o=Ti(i.placement),l=Ei(o),c=[oi,ai].indexOf(o)>=0?"height":"width";if(r&&a){var u=function(t,e){return Si("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Di(t,ci))}(s.padding,i),d=Je(r),h="y"===l?si:oi,p="y"===l?ri:ai,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],g=a[l]-i.rects.reference[l],m=ni(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=qi(y,_,w),C=l;i.modifiersData[n]=((e={})[C]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&wi(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gi(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ji(t){return[si,ai,ri,oi].some((function(e){return t[e]>=0}))}const Zi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,a=Ii(e,{elementContext:"reference"}),o=Ii(e,{altBoundary:!0}),l=Gi(a,n),c=Gi(o,s,r),u=Ji(l),d=Ji(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Xi=Oi({defaultModifiers:[Pi,Ri,zi,Fi,Hi,Yi,Ki,Qi,Zi]});const tn="alignment",en="right middle",nn="alignment-container",sn="aui-alignment-side-",rn="aui-alignment-snap-",an={"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 on(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function ln(t){return on(t,tn)||en}function cn(t){let[e,i]=ln(t).split(" ");return{side:e,snap:i}}function un(t){let e=function(t){let e=on(t,nn)||window;return"string"==typeof e&&(e=document.querySelector(e)),e}(t),i="left";if(e&&e!==window&&e!==document||(e=document.documentElement),e&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE){let n=e.getBoundingClientRect();t.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function dn(t,e){const i=cn(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=ln(t);return an[e]||"right"}(t):(i.snap=un(e),n="submenu"===i.side?an[("right"===i.snap?"left":"right")+" top"]:an[`${i.side} ${i.snap}`]),n}const hn={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function pn(t,e,i={}){const n=cn(t),s=dn(t,e),r=hn[s.split("-")[0]],a=e.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a?"document":i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document"}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains("aui-alignment-use-gpu")}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:t})=>{t.elements.popper&&t.elements.popper.setAttribute("x-placement",t.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return i.enabled&&i.fn(),t}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={fn:i.onEvents}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),t}}];a&&e.ownerDocument!=t.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(t){const e=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(t,e)=>t+e,s=t=>t.map(parseFloat).filter(Boolean).reduce(n,0),r=s([e.top,i.paddingTop,i.borderTop]),o=s([e.left,i.paddingLeft,i.borderLeft]);return t.offsets.reference.left+=o,t.offsets.reference.top+=r,t.offsets.popper.left+=o,t.offsets.popper.top+=r,t}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=Xi(e,t,l),function(t,e,i){const n=sn+e,s=rn+i;t.classList.contains(n)||t.classList.add(n),t.classList.contains(s)||t.classList.add(s)}(t,n.side,n.snap)}pn.prototype={destroy(){return this.popper.destroy(),this},changeTarget(t){const e=t.jquery?t[0]:t;return e&&e!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=e,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};const fn=pn;function gn(t){let e=new i.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),12):e.reject(),e.promise()}var mn,vn,bn=0;function yn(t){if(mn=bn+++"",vn=t?t+mn:"aui-uid-"+mn,document.getElementById(vn)){if(vn=vn+"-"+(new Date).getTime(),document.getElementById(vn))throw new Error('Timestamped fallback ID "'+vn+'" exists.');return vn}return vn}l("id",yn);const wn=yn;function _n(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function xn(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}var Cn="unloaded",Tn="loading",kn="error",En="success";function An(t,e){Z(t).set("loading-state",En),t.innerHTML=function(t){return t.map((function(t){var e=t.items.map((function(t){function e(e){return t[e]?`${e} ="true"`:""}function i(e){return t[e]?`${e}="${t[e]}"`:""}var n="aui-item-"+t.type;return`<${n} ${i("for")} ${i("href")} ${e("interactive")}\n ${e("checked")} ${e("disabled")} ${e("hidden")} ${i("data-value")} ${i("item-id")}>\n ${D(t.content)}\n </${n}>`})).join("");function i(e){return t[e]?`${e}="${t[e]}"`:""}return`<aui-section ${i("label")} ${i("aria-label")}>\n ${e}\n </aui-section>`})).join("\n")}(e),J.init(t)}function Sn(t){Z(t).set("loading-state",kn),Z(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Dn(t){t.src&&Z(t).get("loading-state")!==Tn&&(!function(t){Z(t).set("loading-state",Tn),Z(t).set("hasErrorBeenShown",!1),et(t,(function(t){t.setAttribute("aria-busy","true")})),t.innerHTML=`\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(t),i.ajax(t.src).done((function(e,i,n){200===n.status?An(t,e):Sn(t)})).fail((function(){Sn(t)})).always((function(){!function(t){et(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function In(t,e){return i(t).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(e).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Mn(t){return In(t,(()=>!0))}function Nn(t){return In(t,((t,e)=>!_n(e)))}function On(t){Mn(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||_n(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Ln(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Pn(t,e){var n=e&&e.hasSubmenu&&e.hasSubmenu(),s="submenu auto"===t.getAttribute("data-aui-alignment");!n&&s&&function(t){var e=i(t),n=e.data("previous-data-aui-alignment");n?t.setAttribute("data-aui-alignment",n):t.removeAttribute("data-aui-alignment");e.removeData("previous-data-aui-alignment"),e.data("had-data-aui-alignment-static")||t.removeAttribute("data-aui-alignment-static");e.removeData("had-data-aui-alignment-static")}(t);var r=t.hasAttribute("data-aui-alignment");n&&!s?(!function(t){var e=i(t);t.hasAttribute("data-aui-alignment")&&e.data("previous-data-aui-alignment",t.getAttribute("data-aui-alignment"));e.data("had-data-aui-alignment-static",t.hasAttribute("data-aui-alignment-static"))}(t),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):r||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),Ln(t),t._auiAlignment=new fn(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(J.init(this),O("Dropdown2 lazy initialisation",{removeInVersion:"11.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=i(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const n=e.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&e.is(".aui-dropdown2-trigger")&&(s.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const r=n.find(":focus");r.length&&e.is(".aui-dropdown2-trigger")&&r.blur()}));var Rn=!1;function $n(){Rn=!0}function jn(t){Mt(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=i(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(`.${t}`).addClass(`aui-dropdown2-${t}`)}))}(t),On(t),i(t).trigger("aui-dropdown2-show"),et(t,(function(e){xn(e,!0),t._returnTo=function(t,e){var i=e.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||t.parentNode}(t,e)})))})),t.addEventListener("aui-layer-hide",(function(e){t===e.target&&(i(t).trigger("aui-dropdown2-hide"),t._auiAlignment&&t._auiAlignment.destroy(),t._returnTo&&t.parentNode&&t.parentNode!==t._returnTo&&t._returnTo.appendChild(t),t.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Mn(t).removeClass("active aui-dropdown2-active"),et(t,(function(t){var e;xn(t,!1),e=!0===Rn,Rn=!1,e&&t.focus()})),delete t.isSubmenu)}))}function zn(t){var e=i(t);function n(e){return i(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){n(e.target)&&(e.keyCode===Q.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===Q.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===Q.LEFT?t.isSubmenu&&($n(),t.hide(),e.preventDefault()):e.keyCode===Q.ESCAPE?$n():e.keyCode===Q.TAB&&($n(),t.hideAll(!1)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!n(e.target))return;const s=e.currentTarget,r=e.keyCode,a=r===Q.ENTER,o=r===Q.SPACE;a&&i(s).is("a[href], button")||"click"!==e.type&&!a&&!o||function(e){const i=e.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void e.preventDefault();e.currentTarget.hasSubmenu&&e.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive")||t.hideAll(!0)}(e)})),e.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!n(e.target))return;let s=i(Mt(t).above()).get(0);for(;s&&s.isDropdown&&s!==t;){const t=s.getAttribute("id"),n=e.target.getAttribute("aria-controls"),r=Mt(s).above();n!==t&&Mt(s).hide(),s=i(r).get(0)}}))}function Fn(t){t.classList.add("aui-dropdown2"),t.setAttribute("tabindex","-1"),t.hasAttribute("data-container")&&(t.setAttribute("data-aui-alignment-container",t.getAttribute("data-container")),t.removeAttribute("data-container")),jn(t),zn(t),i(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),i(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}i(window).on("resize",(0,de.debounce)((function(){i(".aui-dropdown2").each((function(t,e){J.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var Hn={toggle:function(t){this.isVisible()?this.hide():this.show(t)},show:function(t){const e=this;return et(e,(t=>{xn(t,!1)})),t&&t.currentTarget&&t.currentTarget.classList.contains("aui-dropdown2-trigger")&&tt(e,t.currentTarget),Mt(e).show(),et(e,(function(t){xn(t,!0),Pn(e,t)})),setTimeout((()=>function(t,e={}){if(e&&e.type&&-1===e.type.indexOf("mouse")){const i=e.type.indexOf("key")>-1;if(t.isSubmenu)t.focusItem(0);else if(i)if(e.keyCode===Q.UP){const e=Nn(t);e&&e.length&&t.focusItem(e.length-1)}else t.focusItem(0);else t.focus()}}(e,t)),0),this},hide:function(){return Mt(this).hide(),this},hideAll:function(t=!0){const e=function(t){let e=Mt(t);for(;;){const t=e.below();if(!t)break;if(!t.get(0).isDropdown)break;e=Mt(t)}return e}(this);return e.isVisible()?(e.hide(),t&&et(e.el,(t=>{setTimeout((()=>{t.focus()}),0),tt(e.el,null)})),this):this},focusNext:function(){var t,e=Nn(this),i=document.activeElement;e.last()[0]!==i?(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1))):this.focusItem(0)},focusPrevious:function(){var t,e=Nn(this),i=document.activeElement;e.first()[0]!==i?(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1))):this.focusItem(e.length-1)},focusItem:function(t){const e=Nn(this);"number"==typeof t&&(t=e.get(t));const n=i(t);n.focus(),e.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return Mt(this).isVisible()},isDropdown:!0},Bn={created:function(t){var e=t.children[0];e.setAttribute("aria-disabled","true"),e.classList.add("disabled","aui-dropdown2-disabled")},removed:function(t){var e=t.children[0];e.setAttribute("aria-disabled","false"),e.classList.remove("disabled","aui-dropdown2-disabled")}},Un={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Wn={created:function(t){var e=t.children[0];e.classList.add("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!0),t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))},removed:function(t){var e=t.children[0];e.classList.remove("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!1),t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}},Vn={created:function(t){Bn.created(t)},removed:function(t){Bn.removed(t)}},Yn=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const qn=function(t=""){return t.split(" ").map((t=>t.trim())).filter((t=>t))},Kn=J("aui-item-link",{template:Wt()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Bn,interactive:Un,hidden:Vn,href:Yn("href"),"item-id":Yn("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),i(e).addClass("aui-dropdown2-sub-trigger")},updated:function(t){t.children[0].setAttribute("aria-controls",t.getAttribute("for"))},removed:function(t){var e=t.children[0];e.removeAttribute("aria-controls"),i(e).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...qn(e.oldValue)),e.newValue&&i.classList.add(...qn(e.newValue))},"data-value":Yn("data-value")}}),Qn=J("aui-item-button",{template:Wt()('<button class="aui-button"><content></content></button>'),attributes:{disabled:Bn,"item-id":Yn("id"),"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...qn(e.oldValue)),e.newValue&&i.classList.add(...qn(e.newValue))},"data-value":Yn("data-value")}}),[Gn,Jn]=["checkbox","radio"].map((t=>J(`aui-item-${t}`,{template:Wt()(`<span role="menuitem${t}" class="aui-dropdown2-${t}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Yn("id"),disabled:Bn,interactive:Un,checked:Wn,hidden:Vn,"data-value":Yn("data-value")}}))),Zn=J("aui-section",{template:Wt()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(t,e){const i=wn();var n=t.children[0],s=t.children[1];n.textContent=e.newValue,n.id=i,s.setAttribute("aria-labelledby",i)},"aria-label":{fallback:function(t,e){t.children[1].setAttribute("aria-label",e.newValue)},removed:function(t){t.children[1].removeAttribute("aria-label")}}},created:function(t){t.classList.add("aui-dropdown2-section")}}),Xn=J("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",Mt(t),Z(t).set("loading-state",Cn),J.init(t)},detached:function(t){gn(t).then((()=>Ln(t)))},attributes:{src:{}},prototype:Hn,events:{"aui-layer-show":function(t){var e=Z(t).get("loading-state")===Cn,i=Z(t).get("hasErrorBeenShown");(e||i)&&Dn(t),Z(t).get("loading-state")===kn&&Z(t).set("hasErrorBeenShown",!0)}}});J("aui-dropdown2",{type:J.type.CLASSNAME,created:Fn,prototype:Hn}),J("data-aui-dropdown2",{type:J.type.ATTRIBUTE,created:Fn,prototype:Hn}),J("aui-dropdown2-trigger",{type:J.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==t)return;if(n.preventDefault(),!t.isEnabled())return;const r=document.getElementById(e);if(!r)return void m('Could not find a dropdown with id "'+e+'" in the DOM.');const a=i(t);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=t.hasSubmenu(),r}e||(e=t.getAttribute("aria-owns"),e?(t.removeAttribute("aria-owns"),t.setAttribute("aria-controls",e)):m('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),t.setAttribute("aria-haspopup",!0),t.setAttribute("aria-expanded",!1),"A"===t.nodeName&&!t.href&&t.setAttribute("href",`#${e}`),i(t).on("aui-button-invoke",n).on("click",n).on("keydown",(function(e){if(e.currentTarget!==t)return;const i=e.keyCode===Q.ENTER||e.keyCode===Q.SPACE,s=e.keyCode===Q.RIGHT&&t.hasSubmenu(),r=(e.keyCode===Q.UP||e.keyCode===Q.DOWN)&&!t.hasSubmenu();i?n(e):(r||s)&&n(e,document.activeElement===t)})).on("mouseenter",(function(i){if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const n=document.getElementById(e);if(n)return function(t){var e=Z(t).get("loading-state")===Cn,i=Z(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Dn(t)}(n),t.hasSubmenu()&&(n.show(i),n.isSubmenu=t.hasSubmenu()),n;m('Could not find a dropdown with id "'+e+'" in the DOM.')}))},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),J("aui-dropdown2-sub-trigger",{type:J.type.CLASSNAME,created:function(t){t.classList.add("aui-dropdown2-trigger"),J.init(t)}}),["checkbox","radio"].map((t=>J(`aui-dropdown2-${t}`,{type:J.type.CLASSNAME,created:function(e){const i="true"===e.getAttribute("aria-checked")||e.classList.contains("checked")||e.classList.contains("aui-dropdown2-checked");e.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",i),e.setAttribute("tabindex","0"),Oe&&e.setAttribute("role",`menuitem${t}`)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&this.parentNode.removeAttribute("checked"),i(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));const ts={"aria-expanded":O("Expander [aria-expanded] attribute",{removeInVersion:"11.0.0",sinceVersion:"9.9.0",deprecationType:"ARIA ATTRIBUTE",extraInfo:'The "aria-expanded" attribute will no longer act as an indicator for the expander if it needs to be expanded. Please update the expander in accordance with AUI guidelines.'}),"replace-selector":O("Expander [data-replace-selector] attribute",{removeInVersion:"11.0.0",sinceVersion:"9.9.0",deprecationType:"DATA ATTRIBUTE",extraInfo:'The attribute "data-replace-selector" will no longer have any functionality. It is recommended to update the expander following AUI guidelines.'}),"short-content":O("Expander [.aui-expander-short-content]",{removeInVersion:"11.0.0",sinceVersion:"9.9.0",deprecationType:"EXPANDER CLASS (PATTERN)"})},es=t=>{const e=i(`#${t.attr("aria-controls")}`),n=e.parent().is(t),s=n?t.find(".aui-expander-short-content"):null;return e.attr("aria-expanded")&&(ts["aria-expanded"](),"true"===e.attr("aria-expanded")&&e.addClass("expanded"),e.removeAttr("aria-expanded")),{$content:e,isTriggerParent:n,$shortContent:s,isExpanded:e.hasClass("expanded"),height:e.css("min-height"),isCollapsible:!1!==t.data("collapsible"),textReplacement:t.attr("data-replace-text")}};const is=(t,e)=>{if(!e)return;const i=t.data("replace-selector");if(i){ts["replace-selector"]();const n=t.find(i);return t.attr("data-replace-text",n.text()),void n.text(e)}const n=t.find(":not(:has(*)):first"),s=n.length?n:t;t.attr("data-replace-text",s.text()),s.text(e)},ns={"aui-expander-invoke":function(t){const e=i(t.currentTarget),{isCollapsible:n,isExpanded:s}=es(e);s&&n?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){!function(t){const{$content:e,isTriggerParent:i,$shortContent:n,textReplacement:s}=es(t);t.attr("aria-expanded","true"),e.addClass("expanded"),e.prop("hidden",!1),is(t,s),i&&n.hide(),t.trigger("aui-expander-expanded")}(i(t.currentTarget))},"aui-expander-collapse":function(t){!function(t){const{$content:e,isTriggerParent:i,$shortContent:n,textReplacement:s}=es(t);is(t,s),t.attr("aria-expanded","false"),e.removeClass("expanded"),i&&n.show(),0===e.outerHeight()&&e.prop("hidden",!0),t.trigger("aui-expander-collapsed")}(i(t.currentTarget))},"click.aui-expander":function(t){i(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};i(document).on(ns,".aui-expander-trigger"),i(document).ready((function(){i(".aui-expander-trigger").each((function(){!function(t){const{$content:e,isTriggerParent:i,isExpanded:n}=es(t);t.data("replace-selector")&&ts["replace-selector"](),e.attr("aria-expanded")&&(ts["aria-expanded"](),"true"===e.attr("aria-expanded")&&e.addClass("expanded"),e.removeAttr("aria-expanded")),(i?t.find(".aui-expander-short-content"):null)&&ts["short-content"](),0===e.outerHeight()&&!n&&e.prop("hidden",!0),t.attr("aria-expanded",n?"true":"false")}(i(this))}))}));const ss=500,rs=5e3,as=100;function os(t,e,n){i(t||".aui-message.aui-remove-on-hide").each((function(){cs(i(this),e,n)}))}function ls(t){i(t||"div.aui-message.closeable").each((function(){const t=i(this),e=t.find(Ce),n=e.length>0?e.first():i(Te);var s;t.addClass("closeable"),t.append(n),(s=t).unbind("click.aui-message").unbind("keydown.aui-message"),s.on("click.aui-message",Ce,(function(t){i(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Ce,(function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(i(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function cs(t,e,n){e=void 0!==e?e:rs,n=void 0!==n?n:ss,i(t||"div.aui-message.fadeout").each((function(){const t=i(this);let s=!1,r=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(n,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(as,1)}function l(){return!s&&!r}t.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}const us={setup:function(){os(),ls(),cs()},makeRemoveOnHide:os,makeCloseable:ls,makeFadeout:cs,createMessage:function(t){this[t]=function(e,n){n||(n=e,e="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function(t,e){const{id:n,closeable:s,removeOnHide:r,fadeout:a,title:o,body:l}=t,c=function(t,e){const{a11yTypeLabel:i}=t;if(""===i)return"";if(null!=i)return i;if(null==i)switch(e){case"error":return I18n.getText("aui.messagecomponent.error.label");case"warning":return I18n.getText("aui.messagecomponent.warning.label");case"info":return I18n.getText("aui.messagecomponent.info.label");case"confirmation":return I18n.getText("aui.messagecomponent.confirmation.label");case"change":return I18n.getText("aui.messagecomponent.change.label");case"generic":case"success":case"hint":return"";default:throw Error(`Provide \`a11yTypeLabel\` for AUI message of custom type ${e}`)}}(t,e),u=c?`<strong hidden>${c}: </strong>`:"",d=n?`${n}-title`:"",h=o?`<p class="title" ${d?`id="${d}" aria-hidden="true"`:""}>${u}<strong>${D(o)}</strong></p>`:"",p=`<div class="aui-message" role="note" ${d?`aria-labelledby="${d}"`:""}>${h}</div>`,f=i(p).append(i.parseHTML(l||"")).addClass(r?"aui-remove-on-hide":"").addClass(s?"closeable":"").addClass(a?"fadeout":"").addClass(`aui-message-${e}`);n&&(/[#'".\s]/g.test(n)?g("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):f.attr("id",n));return f}(n,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(s,n.insert,e),n.removeOnHide&&(console.warn&&console.warn("Use of AUI Message `removeOnHide` is deprecated due to accessibility reasons and will be removed in AUI 11.0.0."),os(s,n.delay,n.duration)),n.closeable&&ls(s),n.fadeout&&(console.warn&&console.warn("Use of AUI Message `fadeout` is deprecated due to accessibility reasons and will be removed in AUI 11.0.0."),cs(s,n.delay,n.duration)),s}}};i.fn.closeMessage=function(){const t=i(this);t.hasClass("aui-message")&&(t.hasClass("closeable")||t.hasClass("aui-remove-on-hide"))&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),i(document).trigger("aui-message-close",[this]))},us.createMessage("generic"),us.createMessage("error"),us.createMessage("warning"),us.createMessage("info"),us.createMessage("confirmation"),us.createMessage("change"),us.createMessage("success"),us.createMessage("hint");const ds=J("aui-message",{created:function(t){const e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",us[i](t,{body:e,id:t.getAttribute("id"),a11yTypeLabel:t.getAttribute("a11yTypeLabel"),removeOnHide:t.getAttribute("removeOnHide"),closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")}),t.setAttribute("role","none")}});i((function(){us.setup()})),j(us,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html'}),j(us,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"makeRemoveOnHide",{extraInfo:"Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"makeFadeout",{extraInfo:"Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),l("messages",us);const hs='a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls], summary, [tabindex^="0"], [tabindex^="1"], [tabindex^="2"], [tabindex^="3"], [tabindex^="4"], [tabindex^="5"], [tabindex^="6"], [tabindex^="7"], [tabindex^="8"], [tabindex^="9"]',ps="aui-flag-container",fs={body:"",close:"manual",title:"",type:"info",duration:8e3,ariaLive:"polite"};function gs(t){const e=(0,de.defaults)(t,fs);e.title=(e.title||"").toString().trim();const n=function({body:t,title:e,close:n,type:s,ariaLive:r,ariaLabel:a,ariaDescription:o}){const l=`<div class="aui-message">${e?`<p class="title"><strong>${D(e)}</strong></p>`:""}</div>`;a||(a=function(t){switch(t){case"success":return I18n.getText("aui.flag.default-aria-label.success");case"warning":return I18n.getText("aui.flag.default-aria-label.warning");case"error":return I18n.getText("aui.flag.default-aria-label.error");default:return I18n.getText("aui.flag.default-aria-label.info")}}(s));o||(o="");const c=i(l).append(i.parseHTML(t||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`),u=c.find(hs).length>0,d=u?"alertdialog":"alert";return i('<div class="aui-flag"></div>').attr({"aria-label":D(a),"aria-hidden":"false","aria-live":D(r),role:d,...u?{"data-aui-focus-selector":hs.split(", ").map((t=>`.aui-message ${t}`)).join(", "),"data-aui-focus":"true"}:{},...o?{"aria-description":D(o)}:{}}).append(c)}(e);return function(t){const e=t[0];e.close=function(){vs(t)}}(n),"auto"===e.close?(ms(n),"alert"===n.attr("role")&&function(t,e){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),e)}(n,e.duration)):"manual"===e.close&&ms(n),function(){const t=bs();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else i("body").prepend('<div id="'+ps+'"></div>')}(),function(t){const e=bs();t.appendTo(e),U(t),t.removeAttr("hidden").attr("open","")}(n),setTimeout((function(){"alertdialog"===n.attr("role")&&ft.global.enter(n)}),0),n.get(0)}function ms(t){const e=i(Te);return e.on("click",(function(){vs(t)})),e.on("keypress",(function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(vs(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function vs(t){const e=t.get(0);return"alertdialog"===t.attr("role")&&ft.global.exit(t),e.removeAttribute("open"),e.setAttribute("inert",""),e.setAttribute("aria-hidden",!0),e.style.display="none",e.dispatchEvent(new CustomEvent("aui-flag-close",{bubbles:!0})),e}function bs(){return document.getElementById(ps)}G("aui/flag",gs),l("flag",gs);const ys=gs;var ws=n(722);const _s=n.n(ws)();const xs=function(t){function e(e){return n((function(){return t.hasAttribute(e)}),e+" wasn't defined")}function i(i){if(!e(i))return!1;var s=t.getAttribute(i);return n((function(){return document.getElementById(s)}),'an element with id set to "'+s+'" was not found')}function n(e,i){return!!e()||(t?m(i,t):m(i),!1)}return{attributeExists:e,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},Cs="-input";function Ts(t){return t.querySelector("label")}const ks=J("aui-label",{template:Wt()("<label><content></content></label>"),created:function(t){t._label=Ts(t)},attached:function(t){xs(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?Ts(t).setAttribute("for",`${e.newValue}${Cs}`):Ts(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?Ts(t).setAttribute("form",e.newValue):Ts(t).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(t,e){t.disabled&&e.preventDefault()}}});n(217);const Es=i.fn.select2,As="aui-select2-container",Ss="aui-select2-drop aui-dropdown2",Ds="aui.select2DropdownLayer";i.fn.auiSelect2=function(t){let e;if(i.isPlainObject(t)){const n=i.extend({},t),s=n.hasAvatar?" aui-has-avatar":"";n.containerCssClass=As+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=Ss+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),e=Array.prototype.slice.call(arguments,1),e.unshift(n)}else e=arguments.length?arguments:[{containerCssClass:As,dropdownCssClass:Ss}];const n=e[0];if(n.ajax&&n.ajax.params&&n.ajax.params.error){let t=n.ajax.params.error;Array.isArray(t)||(t=[t]);let e=n.ajax.transport;e||(e=Es.ajaxDefaults.transport);const i=function(...i){return i[0].error=[i[0].error,...t],e(...i)};n.ajax.transport=i}const s=Es.apply(this,e),r=this,a=n.searchLabel;return r.on("select2-open",(function(){const t=i(this),e=t.select2("dropdown");let s=t.data(Ds);s||(s=Mt(),t.data(Ds,s)),s.show(),e.css("z-index",s.$el.css("z-index")),i("#select2-drop-mask").css("z-index",s.$el.css("z-index")),n.multiple||t.attr("multiple")||a&&e.find(".select2-search label").text(a)})),r.on("select2-close",(function(){const t=i(this),e=t.data(Ds);e?e.hide():AJS.warn("Warning! AUI: `select2-close` event handler could not discover the layer linked with the Select2 dropdown.","This may be happening when there are many instances of Select2 created on the same DOM element.","Consider checking your code as this can negatively affect performance."),t.removeData("was-ariadescribedby-cleared")})),r.on("select2-loaded",(function(){const t=i(this),e=t.data("was-ariadescribedby-cleared");if(n.multiple||t.attr("multiple")||e)return;t.select2("dropdown").find(".select2-search .select2-input").attr("aria-activedescendant",""),t.data("was-ariadescribedby-cleared",!0)})),r.on("select2-focus",(function(){const t=i(this),e=t.parent().find(".select2-container");if(n.multiple||t.attr("multiple"))return void(a&&e.find(".select2-search-field label").text(a));const s=e.find("label");if(s.attr("id"))return;const r=e.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=R((function(t,e){let n={size:"small"};return"object"==typeof e&&(n=i.extend(n,e)),"object"==typeof t&&(n=i.extend(n,t)),"string"==typeof t&&(n.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=i(this),e=t.data();if(e){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),t.spinStop(),t.append(s),J.init(this),e.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=R((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=i(this).data();t&&t.spinner&&(t.spinner.remove(),delete t.spinner)}))}),"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",alternativeName:"<aui-spinner>"});const Is=J("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||D(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var t={};return this.hasAttribute("img-src")&&(t["img-src"]=encodeURI(this.getAttribute("img-src"))),t.value=this.value,t.label=D(this.textContent),t}}});var Ms=n(973),Ns=n.n(Ms),Os=Ns().Collection.extend({initialize:function(t,e){e||(e={}),e.matcher&&(this.matcher=e.matcher),e.model&&(this.model=e.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=e.maxResults||5,this._queryData=e.queryData||{},this._queryParamKey=e.queryParamKey||"q",this._queryEndpoint=e.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,(0,de.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(t){var e,i;this.value=t,i=this.getFilteredResults(t),this.respond(t,i),t&&this._queryEndpoint&&!this.hasQueryCache(t)&&this.shouldGetMoreResults(i)&&(e=this.fetch(t),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always((()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})})),e.done(((e,i,n)=>{this.addQueryCache(t,e,n)})),e.done((()=>{t=this.value,i=this.getFilteredResults(t),this.respond(t,i)})))},getQueryData:function(t){var e=(0,de.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=(0,de.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return Ns().Collection.prototype.fetch.call(this,e)},respond:function(t,e){return this.trigger("respond",{query:t,results:e}),e},matcher:function(t,e){},getFilteredResults:function(t){var e=[];return t?(e=this.filter((function(e){return!!this.matcher(e,t)}),this),this._maxResults&&(e=(0,de.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,s=this.parse(e,i);n[t]=(0,de.pluck)(s,this._idAttribute)},hasQueryCache:function(t){return this.queryCache.hasOwnProperty(t)},findQueryCache:function(t){return this.queryCache[t]},shouldGetMoreResults:function(t){return t.length<this._maxResults},setMaxResults:function(t){this._maxResults=t,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});l("ProgressiveDataSet",Os);const Ls=Os,Ps=Ns().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});const Rs=function(){return{_suggestions:[],_activeIndex:-1,onChange:function(){},onHighlightChange:function(){},get:function(t){return this._suggestions[t]},set:function(t){var e=this._suggestions;return this._suggestions=t||[],this.onChange(e),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(t){if(t)for(var e=0;e<this._suggestions.length;e++)this._suggestions[e].id===t.id&&this.highlight(e);return this},highlight:function(t){return this._activeIndex=t,this.onHighlightChange(),this},highlightPrevious:function(){const t=this._activeIndex,e=0===t?this._suggestions.length-1:t-1;return this.highlight(e),this},highlightNext:function(){const t=this._activeIndex,e=t===this._suggestions.length-1?0:t+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}}};function $s(t,e){return t+"-"+e}function js(t){i(t).find(".aui-select-active").removeClass("aui-select-active")}const zs=function(t,e){const n={el:t,anchor:e,render:function(t,e,i,n){this.currListId=i;let s="";if(t.length){for(let r=0;r<t.length;r++){const a=t[r],o=r+e,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="${$s(i,o)}">${u}${l}${d}</li>`}e?this.el.querySelector("ul").innerHTML+=s:this.el.querySelector("ul").innerHTML=s}else e||(this.el.querySelector("ul").innerHTML=`<li role="option" class="aui-select-no-suggestions">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(t){js(this.el),i(this.el).find("#"+$s(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){!function(t){i(t.el).css("min-width",i(t.anchor).outerWidth())}(this),Mt(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new fn(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){js(this.el),Mt(this.el).hide(),function(t){t._auiAlignment&&t._auiAlignment.disable()}(this)},destroy:function(){this.hide(),function(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}(this),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};return n},Fs=Wt()('\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'),Hs=-1,Bs=-1,Us=50;function Ws(t){t._select.selectedIndex=Hs,function(t){t._input.removeAttribute("style"),i(t._input).removeClass("aui-select-has-inline-image")}(t)}function Vs(t){return t._suggestionModel.getNumberOfResults()}function Ys(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function qs(t){t._input.setAttribute("aria-expanded","false"),t._button.setAttribute("aria-expanded","false"),t._input.removeAttribute("aria-activedescendant"),sr(t,"")}function Ks(t){t._suggestionsView.hide(),qs(t)}function Qs(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function Gs(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){i(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function Js(t,e){if(e){var i,n=document.createElement("option"),s=t._select,r=e.get("value")||e.get("label"),a=(i=e.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,t._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}}function Zs(t){Js(t,t._suggestionModel.highlighted()),Gs(t),Ks(t)}function Xs(t){return new Ps(t.serialize())}function tr(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(Xs(n))}return e}function er(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function ir(t,e){return i.map(e,(function(t){return t.id})).indexOf(t)}function nr(t){t._progressiveDataSet=new Ls(tr(t),{model:Ps,matcher:Ys,queryEndpoint:t._queryEndpoint,maxResults:20}),t._isSync=!t._queryEndpoint,t._progressiveDataSet.on("activity",(function(){t._progressiveDataSet.activeQueryCount&&!t._isSync?(!function(t){t._button.isBusy()||(t._button.busy(),t._input.setAttribute("aria-busy","true"),t._dropdown.setAttribute("aria-busy","true"))}(t),Z(t).set("should-flag-new-suggestions",!1)):(!function(t){t._button.idle(),t._input.setAttribute("aria-busy","false"),t._dropdown.setAttribute("aria-busy","false")}(t),Z(t).set("should-flag-new-suggestions",!0))})),t._progressiveDataSet.on("respond",(function(e){if(e.query&&!t._input.value)return;if(Z(t).get("should-cancel-response"))return void(t._progressiveDataSet.activeQueryCount||Z(t).set("should-cancel-response",!1));e.query||(e.results=tr(t));var i=-1!==ir(t._input.value,e.results),n=!t._input.value;!t.hasAttribute("can-create-values")||i||n||e.results.push(function(t){var e=new Is;e.setAttribute("value",t._input.value);var i=Xs(e);return i.set("new-value",!0),i}(t));let s=ir(t.value,e.results);s=-1===s?0:s;const r=function(t,e){const i=t._suggestionModel.getNumberOfResults();return t._suggestionModel.set(),t._suggestionModel.set(e.results),i!==t._suggestionModel.getNumberOfResults()}(t,e),a=e.results[s];t._autoHighlight&&(t._suggestionModel.setHighlighted(a),setTimeout((function(){const e=er(t);null!=e?t._input.setAttribute("aria-activedescendant",e):t._input.removeAttribute("aria-activedescendant")}),Us)),t._input.setAttribute("aria-expanded","true"),t._button.setAttribute("aria-expanded","true"),!t._isSync&&r&&t._suggestionsView.getActive()&&Z(t).get("should-flag-new-suggestions")&&(t.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),t._suggestionsView.show()}))}function sr(t,e){clearTimeout(t.assistiveStatusTimerId),t.assistiveStatusTimerId=setTimeout((()=>{const i=t._assistiveStatus.innerText;e!==i&&(t._assistiveStatus.innerText=e)}),Us)}function rr(t){Qs(t,!0,t.value?"":t._input.value)}function ar(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&Z(t).set("should-cancel-response",!0)}function or(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function lr(t){ar(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==or(t);if(i||n)if(e)Ws(t);else{var s=or(t);void 0===s?Ws(t):t._input.value=s}}(t),function(t){t._suggestionModel.highlight(Bs)}(t),Ks(t)}const cr=J("aui-select",{template:Fs,created:function(t){t._listId=wn(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._assistiveStatus=t.querySelector(".aui-select-status.assistive"),t._suggestionsView=new zs(t._dropdown,t._input),t._suggestionModel=new Rs,t._suggestionModel.onChange=function(e){const i=[];t._suggestionModel._suggestions.forEach((function(t){e.some((e=>t.id===e.id))||i.push(t)}));const n=tr(t),s=ir(t.value,n),r=e.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;t._suggestionsView.render(i,e.length,t._listId,s),sr(t,r)},t._suggestionModel.onHighlightChange=function(){const e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e);const i=er(t);null!=i?t._input.setAttribute("aria-activedescendant",i):t._input.removeAttribute("aria-activedescendant")}},attached:function(t){J.init(t),nr(t),function(t){t._dropdown.id=t._listId,t.querySelector("button").setAttribute("aria-controls",t._listId)}(t),t._input.setAttribute("aria-controls",t._listId),function(t){i(t._dropdown).on("mouseover","li",(function(e){Vs(t)&&t._suggestionModel.highlight(i(e.target).index())}))}(t),function(t){let e=!1;i(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),i(t._dropdown).on("mousedown","li",(function(n){if(!Vs(t))return!1;t._suggestionModel.highlight(i(n.target).index()),Zs(t),i(t).closest(".aui-layer").length>0&&(e=!0)}))}(t),function(t){var e=t._datalist.querySelector("aui-option[selected]");e&&Js(t,Xs(e))}(t),function(t){var e=Vs(t)?0:Bs;t._suggestionModel.highlight(e),Ks(t)}(t),Gs(t)},detached:function(t){i(document).off("aui-close-layers-on-outer-click"),gn(t).then((()=>{Ks(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+Cs)},name(t,e){t.querySelector("select").setAttribute("name",e.newValue),t.querySelector("select").setAttribute("aria-label",`${e.newValue} list`),t.querySelector("button").setAttribute("aria-label",`${e.newValue} list`),t.querySelector('ul[role="listbox"]').setAttribute("aria-label",`${e.newValue} list`)},placeholder(t,e){t.querySelector("input").setAttribute("placeholder",e.newValue)},src(t,e){t._queryEndpoint=e.newValue}},events:{"blur input":function(t){lr(t)},"mousedown button":function(t){document.activeElement!==t._input||t._dropdown.hasAttribute("hidden")||Z(t).set("prevent-open-on-button-click",!0)},"click input":function(t){rr(t)},"click button":function(t){var e=Z(t);e.get("prevent-open-on-button-click")?e.set("prevent-open-on-button-click",!1):(Z(t).set("button-clicked-prevent-dropdown-hide",!0),t.focus())},input:function(t){t._input.value?Qs(t,!0):Z(t).get("button-clicked-prevent-dropdown-hide")?Z(t).set("button-clicked-prevent-dropdown-hide",!1):Ks(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===Q.ESCAPE)return ar(t),void qs(t);t._suggestionsView.isVisible()&&Vs(t)?e.keyCode===Q.ENTER?(ar(t),Zs(t),e.preventDefault()):e.keyCode===Q.TAB?(Zs(t),n=!0):e.keyCode===Q.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===Q.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==Q.UP&&e.keyCode!==Q.DOWN||(rr(t),e.preventDefault()),n=n||e.defaultPrevented,setTimeout((function(){t._input.value===i||n||t.dispatchEvent(new CustomEvent("input",{bubbles:!0}))}),0)}},prototype:{get value(){var t=this._select.options[this._select.selectedIndex];return t?t.value:""},set value(t){if(""===t)(n=this)._input.value="",n._select.innerHTML="";else if(t){var e=this._progressiveDataSet,i=e.findWhere({value:t})||e.findWhere({label:t});!i&&this.hasAttribute("can-create-values")&&(i=new Ps({value:t,label:t})),Js(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),lr(this),this},focus:function(){return this._input.focus(),rr(this),this}}});G("aui/select",cr),l("select",cr);const ur=cr,{entries:dr,setPrototypeOf:hr,isFrozen:pr,getPrototypeOf:fr,getOwnPropertyDescriptor:gr}=Object;let{freeze:mr,seal:vr,create:br}=Object,{apply:yr,construct:wr}="undefined"!=typeof Reflect&&Reflect;mr||(mr=function(t){return t}),vr||(vr=function(t){return t}),yr||(yr=function(t,e,i){return t.apply(e,i)}),wr||(wr=function(t,e){return new t(...e)});const _r=Rr(Array.prototype.forEach),xr=Rr(Array.prototype.lastIndexOf),Cr=Rr(Array.prototype.pop),Tr=Rr(Array.prototype.push),kr=Rr(Array.prototype.splice),Er=Rr(String.prototype.toLowerCase),Ar=Rr(String.prototype.toString),Sr=Rr(String.prototype.match),Dr=Rr(String.prototype.replace),Ir=Rr(String.prototype.indexOf),Mr=Rr(String.prototype.trim),Nr=Rr(Object.prototype.hasOwnProperty),Or=Rr(RegExp.prototype.test),Lr=(Pr=TypeError,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return wr(Pr,e)});var Pr;function Rr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return yr(t,e,n)}}function $r(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Er;hr&&hr(t,null);let n=e.length;for(;n--;){let s=e[n];if("string"==typeof s){const t=i(s);t!==s&&(pr(e)||(e[n]=t),s=t)}t[s]=!0}return t}function jr(t){for(let e=0;e<t.length;e++){Nr(t,e)||(t[e]=null)}return t}function zr(t){const e=br(null);for(const[i,n]of dr(t)){Nr(t,i)&&(Array.isArray(n)?e[i]=jr(n):n&&"object"==typeof n&&n.constructor===Object?e[i]=zr(n):e[i]=n)}return e}function Fr(t,e){for(;null!==t;){const i=gr(t,e);if(i){if(i.get)return Rr(i.get);if("function"==typeof i.value)return Rr(i.value)}t=fr(t)}return function(){return null}}const Hr=mr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Br=mr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ur=mr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wr=mr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Vr=mr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Yr=mr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qr=mr(["#text"]),Kr=mr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qr=mr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gr=mr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Jr=mr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zr=vr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xr=vr(/<%[\w\W]*|[\w\W]*%>/gm),ta=vr(/\$\{[\w\W]*/gm),ea=vr(/^data-[\-\w.\u00B7-\uFFFF]+$/),ia=vr(/^aria-[\-\w]+$/),na=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sa=vr(/^(?:\w+script|data):/i),ra=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),aa=vr(/^html$/i),oa=vr(/^[a-z][.\w]*(-[.\w]+)+$/i);var la=Object.freeze({__proto__:null,ARIA_ATTR:ia,ATTR_WHITESPACE:ra,CUSTOM_ELEMENT:oa,DATA_ATTR:ea,DOCTYPE_NAME:aa,ERB_EXPR:Xr,IS_ALLOWED_URI:na,IS_SCRIPT_OR_DATA:sa,MUSTACHE_EXPR:Zr,TMPLIT_EXPR:ta});const ca=1,ua=3,da=7,ha=8,pa=9,fa=function(){return"undefined"==typeof window?null:window};var ga=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fa();const i=e=>t(e);if(i.version="3.2.6",i.removed=[],!e||!e.document||e.document.nodeType!==pa||!e.Element)return i.isSupported=!1,i;let{document:n}=e;const s=n,r=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=e,g=c.prototype,m=Fr(g,"cloneNode"),v=Fr(g,"remove"),b=Fr(g,"nextSibling"),y=Fr(g,"childNodes"),w=Fr(g,"parentNode");if("function"==typeof o){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let _,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:k,getElementsByTagName:E}=n,{importNode:A}=s;let S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof dr&&"function"==typeof w&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:D,ERB_EXPR:I,TMPLIT_EXPR:M,DATA_ATTR:N,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=la;let{IS_ALLOWED_URI:$}=la,j=null;const z=$r({},[...Hr,...Br,...Ur,...Vr,...qr]);let F=null;const H=$r({},[...Kr,...Qr,...Gr,...Jr]);let B=Object.seal(br(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,W=null,V=!0,Y=!0,q=!1,K=!0,Q=!1,G=!0,J=!1,Z=!1,X=!1,tt=!1,et=!1,it=!1,nt=!0,st=!1,rt=!0,at=!1,ot={},lt=null;const ct=$r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ut=null;const dt=$r({},["audio","video","img","source","image","track"]);let ht=null;const pt=$r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let vt=mt,bt=!1,yt=null;const wt=$r({},[ft,gt,mt],Ar);let _t=$r({},["mi","mo","mn","ms","mtext"]),xt=$r({},["annotation-xml"]);const Ct=$r({},["title","style","font","a","script"]);let Tt=null;const kt=["application/xhtml+xml","text/html"];let Et=null,At=null;const St=n.createElement("form"),Dt=function(t){return t instanceof RegExp||t instanceof Function},It=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!At||At!==t){if(t&&"object"==typeof t||(t={}),t=zr(t),Tt=-1===kt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Et="application/xhtml+xml"===Tt?Ar:Er,j=Nr(t,"ALLOWED_TAGS")?$r({},t.ALLOWED_TAGS,Et):z,F=Nr(t,"ALLOWED_ATTR")?$r({},t.ALLOWED_ATTR,Et):H,yt=Nr(t,"ALLOWED_NAMESPACES")?$r({},t.ALLOWED_NAMESPACES,Ar):wt,ht=Nr(t,"ADD_URI_SAFE_ATTR")?$r(zr(pt),t.ADD_URI_SAFE_ATTR,Et):pt,ut=Nr(t,"ADD_DATA_URI_TAGS")?$r(zr(dt),t.ADD_DATA_URI_TAGS,Et):dt,lt=Nr(t,"FORBID_CONTENTS")?$r({},t.FORBID_CONTENTS,Et):ct,U=Nr(t,"FORBID_TAGS")?$r({},t.FORBID_TAGS,Et):zr({}),W=Nr(t,"FORBID_ATTR")?$r({},t.FORBID_ATTR,Et):zr({}),ot=!!Nr(t,"USE_PROFILES")&&t.USE_PROFILES,V=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,q=t.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Q=t.SAFE_FOR_TEMPLATES||!1,G=!1!==t.SAFE_FOR_XML,J=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,it=t.RETURN_TRUSTED_TYPE||!1,X=t.FORCE_BODY||!1,nt=!1!==t.SANITIZE_DOM,st=t.SANITIZE_NAMED_PROPS||!1,rt=!1!==t.KEEP_CONTENT,at=t.IN_PLACE||!1,$=t.ALLOWED_URI_REGEXP||na,vt=t.NAMESPACE||mt,_t=t.MATHML_TEXT_INTEGRATION_POINTS||_t,xt=t.HTML_INTEGRATION_POINTS||xt,B=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Dt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Dt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(Y=!1),et&&(tt=!0),ot&&(j=$r({},qr),F=[],!0===ot.html&&($r(j,Hr),$r(F,Kr)),!0===ot.svg&&($r(j,Br),$r(F,Qr),$r(F,Jr)),!0===ot.svgFilters&&($r(j,Ur),$r(F,Qr),$r(F,Jr)),!0===ot.mathMl&&($r(j,Vr),$r(F,Gr),$r(F,Jr))),t.ADD_TAGS&&(j===z&&(j=zr(j)),$r(j,t.ADD_TAGS,Et)),t.ADD_ATTR&&(F===H&&(F=zr(F)),$r(F,t.ADD_ATTR,Et)),t.ADD_URI_SAFE_ATTR&&$r(ht,t.ADD_URI_SAFE_ATTR,Et),t.FORBID_CONTENTS&&(lt===ct&&(lt=zr(lt)),$r(lt,t.FORBID_CONTENTS,Et)),rt&&(j["#text"]=!0),J&&$r(j,["html","head","body"]),j.table&&($r(j,["tbody"]),delete U.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=t.TRUSTED_TYPES_POLICY,x=_.createHTML("")}else void 0===_&&(_=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(i=e.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(f,r)),null!==_&&"string"==typeof x&&(x=_.createHTML(""));mr&&mr(t),At=t}},Mt=$r({},[...Br,...Ur,...Wr]),Nt=$r({},[...Vr,...Yr]),Ot=function(t){Tr(i.removed,{element:t});try{w(t).removeChild(t)}catch(e){v(t)}},Lt=function(t,e){try{Tr(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Tr(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{Ot(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Pt=function(t){let e=null,i=null;if(X)t="<remove></remove>"+t;else{const e=Sr(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===Tt&&vt===mt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const s=_?_.createHTML(t):t;if(vt===mt)try{e=(new p).parseFromString(s,Tt)}catch(t){}if(!e||!e.documentElement){e=C.createDocument(vt,"template",null);try{e.documentElement.innerHTML=bt?x:s}catch(t){}}const r=e.body||e.documentElement;return t&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),vt===mt?E.call(e,J?"html":"body")[0]:J?e.documentElement:r},Rt=function(t){return T.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},$t=function(t){return t instanceof h&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},jt=function(t){return"function"==typeof l&&t instanceof l};function zt(t,e,n){_r(t,(t=>{t.call(i,e,n,At)}))}const Ft=function(t){let e=null;if(zt(S.beforeSanitizeElements,t,null),$t(t))return Ot(t),!0;const n=Et(t.nodeName);if(zt(S.uponSanitizeElement,t,{tagName:n,allowedTags:j}),G&&t.hasChildNodes()&&!jt(t.firstElementChild)&&Or(/<[/\w!]/g,t.innerHTML)&&Or(/<[/\w!]/g,t.textContent))return Ot(t),!0;if(t.nodeType===da)return Ot(t),!0;if(G&&t.nodeType===ha&&Or(/<[/\w]/g,t.data))return Ot(t),!0;if(!j[n]||U[n]){if(!U[n]&&Bt(n)){if(B.tagNameCheck instanceof RegExp&&Or(B.tagNameCheck,n))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(n))return!1}if(rt&&!lt[n]){const e=w(t)||t.parentNode,i=y(t)||t.childNodes;if(i&&e){for(let n=i.length-1;n>=0;--n){const s=m(i[n],!0);s.__removalCount=(t.__removalCount||0)+1,e.insertBefore(s,b(t))}}}return Ot(t),!0}return t instanceof c&&!function(t){let e=w(t);e&&e.tagName||(e={namespaceURI:vt,tagName:"template"});const i=Er(t.tagName),n=Er(e.tagName);return!!yt[t.namespaceURI]&&(t.namespaceURI===gt?e.namespaceURI===mt?"svg"===i:e.namespaceURI===ft?"svg"===i&&("annotation-xml"===n||_t[n]):Boolean(Mt[i]):t.namespaceURI===ft?e.namespaceURI===mt?"math"===i:e.namespaceURI===gt?"math"===i&&xt[n]:Boolean(Nt[i]):t.namespaceURI===mt?!(e.namespaceURI===gt&&!xt[n])&&!(e.namespaceURI===ft&&!_t[n])&&!Nt[i]&&(Ct[i]||!Mt[i]):!("application/xhtml+xml"!==Tt||!yt[t.namespaceURI]))}(t)?(Ot(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Or(/<\/no(script|embed|frames)/i,t.innerHTML)?(Q&&t.nodeType===ua&&(e=t.textContent,_r([D,I,M],(t=>{e=Dr(e,t," ")})),t.textContent!==e&&(Tr(i.removed,{element:t.cloneNode()}),t.textContent=e)),zt(S.afterSanitizeElements,t,null),!1):(Ot(t),!0)},Ht=function(t,e,i){if(nt&&("id"===e||"name"===e)&&(i in n||i in St))return!1;if(Y&&!W[e]&&Or(N,e));else if(V&&Or(O,e));else if(!F[e]||W[e]){if(!(Bt(t)&&(B.tagNameCheck instanceof RegExp&&Or(B.tagNameCheck,t)||B.tagNameCheck instanceof Function&&B.tagNameCheck(t))&&(B.attributeNameCheck instanceof RegExp&&Or(B.attributeNameCheck,e)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(e))||"is"===e&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Or(B.tagNameCheck,i)||B.tagNameCheck instanceof Function&&B.tagNameCheck(i))))return!1}else if(ht[e]);else if(Or($,Dr(i,P,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Ir(i,"data:")||!ut[t]){if(q&&!Or(L,Dr(i,P,"")));else if(i)return!1}else;return!0},Bt=function(t){return"annotation-xml"!==t&&Sr(t,R)},Ut=function(t){zt(S.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||$t(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let s=e.length;for(;s--;){const r=e[s],{name:a,namespaceURI:o,value:l}=r,c=Et(a),u=l;let d="value"===a?u:Mr(u);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,zt(S.uponSanitizeAttribute,t,n),d=n.attrValue,!st||"id"!==c&&"name"!==c||(Lt(a,t),d="user-content-"+d),G&&Or(/((--!?|])>)|<\/(style|title)/i,d)){Lt(a,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Lt(a,t);continue}if(!K&&Or(/\/>/i,d)){Lt(a,t);continue}Q&&_r([D,I,M],(t=>{d=Dr(d,t," ")}));const h=Et(t.nodeName);if(Ht(h,c,d)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(o);else switch(f.getAttributeType(h,c)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==u)try{o?t.setAttributeNS(o,a,d):t.setAttribute(a,d),$t(t)?Ot(t):Cr(i.removed)}catch(e){Lt(a,t)}}else Lt(a,t)}zt(S.afterSanitizeAttributes,t,null)},Wt=function t(e){let i=null;const n=Rt(e);for(zt(S.beforeSanitizeShadowDOM,e,null);i=n.nextNode();)zt(S.uponSanitizeShadowNode,i,null),Ft(i),Ut(i),i.content instanceof a&&t(i.content);zt(S.afterSanitizeShadowDOM,e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,c=null;if(bt=!t,bt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!jt(t)){if("function"!=typeof t.toString)throw Lr("toString is not a function");if("string"!=typeof(t=t.toString()))throw Lr("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Z||It(e),i.removed=[],"string"==typeof t&&(at=!1),at){if(t.nodeName){const e=Et(t.nodeName);if(!j[e]||U[e])throw Lr("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)n=Pt("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),r.nodeType===ca&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!tt&&!Q&&!J&&-1===t.indexOf("<"))return _&&it?_.createHTML(t):t;if(n=Pt(t),!n)return tt?null:it?x:""}n&&X&&Ot(n.firstChild);const u=Rt(at?t:n);for(;o=u.nextNode();)Ft(o),Ut(o),o.content instanceof a&&Wt(o.content);if(at)return t;if(tt){if(et)for(c=k.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(F.shadowroot||F.shadowrootmode)&&(c=A.call(s,c,!0)),c}let d=J?n.outerHTML:n.innerHTML;return J&&j["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Or(aa,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Q&&_r([D,I,M],(t=>{d=Dr(d,t," ")})),_&&it?_.createHTML(d):d},i.setConfig=function(){It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},i.clearConfig=function(){At=null,Z=!1},i.isValidAttribute=function(t,e,i){At||It({});const n=Et(t),s=Et(e);return Ht(n,s,i)},i.addHook=function(t,e){"function"==typeof e&&Tr(S[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=xr(S[t],e);return-1===i?void 0:kr(S[t],i,1)[0]}return Cr(S[t])},i.removeHooks=function(t){S[t]=[]},i.removeAllHooks=function(){S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();const ma="aui-tooltip",va={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},ba="aui-tooltip",ya={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let wa;const _a=(t=!1)=>{const e=wa&&wa.get(0);e&&(e.classList.toggle("hidden",t),e.setAttribute("aria-hidden",t))};class xa{constructor(t,e){this.triggerElement=t,this.$triggerElement=i(this.triggerElement),this.options={...ya,...e},this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer(),this.observeTriggerRemoval()}destroy(){this.unbindHandlers(),this.hide(),this.restoreOriginalAttributes(),Ca.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,t.options.aria&&e.attr("aria-describedby",ma),null}))}restoreOriginalAttributes(){const t=this.$triggerElement;this.originalTitle&&t.attr("title",this.originalTitle),t.attr("aria-describedby")===ma&&t.removeAttr("aria-describedby")}observeTriggerRemoval(){const t=[];this.options.$delegationRoot&&this.options.$delegationRoot.get(0)&&t.push(this.options.$delegationRoot.get(0)),this.triggerElement&&t.push(this.triggerElement),this.triggerObservers=t.map((t=>{const e=t.parentElement;if(e){const i=new MutationObserver((()=>{!e.contains(t)&&this.destroy()}));return i.observe(e,{childList:!0,subtree:!1}),i}})).filter((t=>!!t))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(`.${ba}`,t):(this.triggerObservers.length>0&&this.triggerObservers.forEach((t=>t.disconnect())),this.$triggerElement.off(`.${ba}`))}initContainer(){(void 0===wa||wa.get(0)&&!wa.get(0).isConnected)&&(wa=i(`<div id="${ma}" class="aui-tooltip hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(wa))}buildTip(t){const e=this.options,i=wa.find(".aui-tooltip-content");return e.html?(e.sanitize&&(t=ga.sanitize(t)),i.html(t)):i.text(t),e.maxWidth&&i.css("max-width",e.maxWidth+"px"),wa}getTipTitle(){const t=this.options;let e=("function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"").call(this.triggerElement);return e&&e.trim().length?e:void 0}show(){const t=this.getTipTitle();if(!1===this.enabled||!t)return;wa&&t!==wa.text()&&this.hide();const e=this.triggerElement,n=va[this.options.gravity];if("function"==typeof this.options.suppress&&!0===this.options.suppress.call(e))return;const s=this.buildTip(t).get(0);this.showTooltip(),this.popperInstance=Xi(e,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on(`scroll.${ba}`,(()=>this.hide()))}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${ba}`)}showTooltip(){_a(!1)}hideTooltip(){_a(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Ca=new WeakMap,Ta=(t,e)=>{let i=Ca.get(t);return void 0===i&&(i=new xa(t,e),"object"==typeof t&&Ca.set(t,i)),i},ka=t=>t.map((t=>`${t}.${ba}`)).join(" "),Ea=ka(["mouseenter","focus"]),Aa=ka(["click","mouseleave","blur"]);let Sa,Da;i.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return Ta(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),e}const i=t||{},n=function(){clearTimeout(Da),clearTimeout(Sa)},s=function(){n();const t=Ta(this,i);Sa=setTimeout((()=>{n(),t.show(),wa&&(wa.off(`mouseenter.${ba}`),wa.off(`mouseleave.${ba}`),wa.on(`mouseenter.${ba}`,(()=>{n()})),wa.on(`mouseleave.${ba}`,(()=>{n(),r()})))}),300)},r=function(){n();const t=Ta(this,i);Da=setTimeout((()=>{t.hide()}),300)},a=function(t){"Escape"===t.code&&r()},o=i.live;return void 0!==o?(i.$delegationRoot=e,e.on(Ea,o,s),e.on(Aa,o,r),e.on("keyup",o,a)):(e.on(Ea,s),e.on(Aa,r),e.on("keyup",a)),e};function Ia(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}const Ma={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:Ia,computeEnumValue:function(t,e){const i=t=>t.toLowerCase()===e.toLowerCase(),n=null===e,s=!n&&!t.values.filter(i).length;return n?t.hasOwnProperty("missingDefault")?t.missingDefault:null:s?t.hasOwnProperty("invalidDefault")?t.invalidDefault:t.hasOwnProperty("missingDefault")?t.missingDefault:null:t.values.length?t.values.filter(i)[0]:null},setEnumAttribute:function(t,e,i){t.setAttribute(e.attribute,i)}};function Na(t){return t._input||(t._input=t.querySelector("input"))}function Oa(t){return t._spinner||(t._spinner=new ye)}function La(t,e){Na(e).removeAttribute(t)}function Pa(t,e,i){Na(e).setAttribute(t,i.newValue)}function Ra(t){return{removed:La.bind(this,t),fallback:Pa.bind(this,t)}}const $a={removed:function(t){La.call(this,"form",t),t._formId=null},fallback:function(t,e){Pa.call(this,"form",t,e),t._formId=e.newValue}},ja={removed:La.bind(void 0,"id"),fallback:function(t,e){const i=`${e.newValue}${Cs}`;Na(t).setAttribute("id",i)}},za={removed:function(t){La.call(this,"value",t),Na(t).value="on"},fallback:function(t,e){Pa.call(this,"value",t,e)}},Fa={removed:function(t){Na(t).checked=!1},fallback:function(t){Na(t).checked=!0}},Ha={removed:function(t){Na(t).removeAttribute("aria-label")},fallback:function(t,e){Na(t).setAttribute("aria-label",e.newValue)}};function Ba(t){Na(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===Q.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Na(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===Me)try{document.querySelector(":focus-within"),Me=!0}catch(t){Me=!1}return Me}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}const Ua=J("aui-toggle",{template:Wt()('<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(t){Na(t),Oa(t).setAttribute("size",he.SMALL.name),i(Na(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Ba(t),t.hasAttribute("checked")&&Na(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){xs(t).attributeExists("label")},events:{click:function(t,e){const i=Na(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}(t)),Ia(t,"checked",i.checked)}},attributes:{id:ja,checked:Fa,disabled:Ra("disabled"),form:$a,name:Ra("name"),value:za,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){Na(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){Na(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:Ha},prototype:{focus:function(){return Na(this).focus(),this},get checked(){return Na(this).checked},set checked(t){Na(this).checked!==t&&(Na(this).checked=t,Ia(this,"checked",t))},get disabled(){return Na(this).disabled},set disabled(t){return Ia(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return $a.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return Na(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return Na(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===Na(this).getAttribute("aria-busy")},set busy(t){const e=Na(this),n=Oa(this);var s,r;return Ia(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!t,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(t){t.disabled=r})),t}}}),Wa=Ua,Va=1e3;function Ya(t,e){ao(t)&&et(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),tt(t,e)}function qa(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let i={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};t._auiAlignment=new fn(t,e,i)}}function Ka(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Qa(t,e){var i=e.currentTarget;i&&(Ya(t,i),qa(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function Ga(t=0){return function(e){e.open&&!Mt(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){(function(t){return Z(t).get("mouse-inside")||t.contains(document.activeElement)})(e)||(e.open=!1),e._closingTimeout=null}),t))}}const Ja={click(t,e){t.open&&!Mt(t).isPersistent()?t.open=!1:(Ya(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:Qa,mouseleave:Ga(Va),focus:Qa,blur:Ga(0)};function Za(t){var e=t.currentTarget;Z(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function Xa(t){var e=t.currentTarget;Z(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function to(t){var e=t.currentTarget;"hover"===e.respondsTo&&Ga(Va)(e)}function eo(t){Z(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",Za),t.removeEventListener("mouseleave",Xa),t.removeEventListener("blur",to),"hover"===t.respondsTo&&(Z(t).set("mouse-inside",!1),t.addEventListener("mouseenter",Za),t.addEventListener("mouseleave",Xa),t.addEventListener("blur",to))}function io(t,e){return`${t}.nested-layer-${e}`}function no(t){return Mt(t).show(),!0===Mt(t).isVisible()}function so(t){return Mt(t).hide(),!1===Mt(t).isVisible()}function ro(t){return"hover"!==t.respondsTo}function ao(t){return"dialog"!==t.getAttribute("role")}function oo(t){t.__initialised||(Mt(t),i(t).on({[`${mt}show`]:function(t){const e=this;t.target===e&&(!function(t){let e=i(t);const n=t.id,s=t=>e.find(X(t.target)).length<1;i(document).on(io("aui-layer-show",n),(t=>{s(t)||e.attr("persistent","")})).on(io("aui-layer-hide",n),(t=>{s(t)||e.removeAttr("persistent")})).on(io("select2-opening",n),(()=>{e.attr("persistent","")})).on(io("select2-close",n),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(e),et(e,(function(t){ro(e)&&ft().enter(i(e),i(t)),qa(e,t),ao(e)&&t.setAttribute("aria-expanded","true")})))},[`${mt}hide`]:function(t){const e=this;var n;t.target===e&&(n=e.id,i(document).off(io("aui-layer-hide",n)).off(io("aui-layer-show",n)).off(io("select2-opening",n)).off(io("select2-close",n)),e.ownerDocument.body.contains(e)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(e):Ka(e),et(e,(function(t){ro(e)&&ft().exit(i(e)),ao(e)&&t.setAttribute("aria-expanded","false")})),tt(e,null))}}),t.__initialised=!0)}const lo={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},co=J("aui-inline-dialog",{prototype:{get open(){return Mt(this).isVisible()},set open(t){this.__propUpdate=!0,t?no(this):so(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){Ma.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=lo.attribute;return Ma.computeEnumValue(lo,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;Ma.setEnumAttribute(this,lo,t),e!==this.respondsTo&&eo(this)},message:function(t){var e,i,n;return i=t,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(e=this).respondsTo])&&n.indexOf(i.type)>-1&&Ja[i.type](e,i),this}},attributes:{open:function(t,e){if(oo(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){no(t)||Ia(t,"open",!1)}if("removed"===e.type){so(t)||Ia(t,"open",!0)}}},"responds-to":function(t,e){Ma.computeEnumValue(lo,e.oldValue)!==Ma.computeEnumValue(lo,e.newValue)&&eo(t)}},created:oo,attached:function(t){xs(t).attributeExists("id"),t.setAttribute("tabindex",0),ao(t)&&(t.setAttribute("role","group"),et(t,(function(e){e.setAttribute("aria-expanded",t.open)})),it(t,(function(t){t.setAttribute("aria-haspopup","true")}))),eo(t)},detached:function(t){gn(t).then((()=>{Ka(t),ao(t)&&it(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){i('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});G("aui/inline-dialog2",co),l("InlineDialog2",co);const uo=co;function ho(t){if(this.$el=i(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new ho(e)}))[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var e=this.$el.children(".aui-nav-selected");e.parents(".aui-nav > [aria-expanded=false]").add(e.filter("[aria-expanded=false]")).each((function(){po(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){po(i(this).siblings(".aui-nav")).toggle()})),n.each((function(){var t=i(this).parent("li[aria-expanded]"),e=i(this).find(".aui-icon"),n="true"===t.attr("aria-expanded");e.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}ho.prototype.isNested=function(){return 1===this.$treeParent.length},ho.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},ho.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},ho.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},ho.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const po=gt("navigation",ho),fo=J("aui-nav",{type:J.type.CLASSNAME,attached:function(t){new ho(t)},detached:function(t){i(t).removeData()}});l("navigation",po);const go=po,mo="aui-progress-indicator-after-update",vo="aui-progress-indicator-before-update",bo="transitionend webkitTransitionEnd";function yo(t,e,{currentProgress:n,value:s}){const r=i(t),a=i(e);"number"==typeof s&&s<=1&&s>=0&&(a.trigger(vo,[n,s]),r.one(bo,(function(){a.trigger(mo,[n,s])})),function(t,e,i){U(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(r,a,s))}function wo(t){var e=i(t).first(),n=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),U(e),n.css("width","")}const _o={indeterminate:!1,max:1,val:0};function xo(t){return(0,de.isNumber)(t)&&(0,de.isFinite)(t)&&!(0,de.isNaN)(t)}function Co(t,e=1){const i=parseFloat(t);return xo(i)?i:Number(e)}function To(t,e=1){return Number(parseFloat(t).toFixed(e))}function ko(t){const{val:e,max:i}=t,n=function(t){return t>0?t:_o.max}(i),s=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),r=To(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:To(100*r,2)}}function Eo(t){const{val:e,valAsFraction:i,max:n}=ko(t._data),s=t.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");t.indeterminate?(s.removeAttribute("aria-valuenow"),wo(s)):(s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuemax",n),yo(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function Ao(t,e){t._data.val=Co(e.newValue,e.oldValue||_o.val),Eo(t)}function So(t,e){t._data.max=Co(e.newValue,e.oldValue||_o.max),Eo(t)}const Do=J("aui-progressbar",{template(t){t._data.max=Co(t.getAttribute("max"),_o.max),t._data.val=Co(t.getAttribute("value"),_o.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:s}=ko(t._data),r=t._data.indeterminate?"":`data-value="${n}"`;t.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${e}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(t){Eo(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:_o.val,fallback:function(t,e){if(t._updating)return!1;Ao(t,e)}},max:{value:_o.max,fallback:function(t,e){if(t._updating)return!1;So(t,e)}}},prototype:{get _data(){return this.__data||(this._data=(0,de.defaults)({},_o))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,Eo(this)},get value(){const{val:t}=ko(this._data);return t},set value(t){if(!xo(t))return!1;const e={newValue:To(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,Ao(this,e)},get max(){const{max:t}=ko(this._data);return t},set max(t){if(!xo(t))return!1;const e={newValue:To(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,So(this,e)}}}),Io={update:R((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var n=i(t).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===e;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),yo(s,n,{currentProgress:o,value:e}),n}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:R(wo,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",Io);const Mo=Io;n(99);const No={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Oo(t,e){let n=Object.assign({},No,e);return t.find("th").each((function(t,e){const s=i(e);n.headers[t]={},s.hasClass("aui-table-column-unsortable")?n.headers[t].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[t].sorter="issue-key"))})),t.tablesorter(n)}let Lo={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){const e=t.split("-"),i=e[0],n=e[1],s="..........",r="000000";let a=(i+s).slice(0,10);return a+=(r+n).slice(-6),a},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(t,e,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(t,e,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each((function(){Oo(i(this))}))},setTableSortable:function(t,e){return Oo(t,e)}};i(Lo.setup),l("tablessortable",Lo);function Po(t,e=""){var n=i(t),s=e||!1;n.each((function(){var t=i(this);t.attr("id")||t.attr("id",wn(s))}))}l("_addID",Po);const Ro=Po;function $o(t){return(t=i(t)).prop("scrollWidth")>t.prop("clientWidth")}l("isClipped",$o);const jo=$o;var zo=window.skateTemplateHtml,Fo="_internal-aui-tabs-",Ho='.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])';function Bo(t){let e=i(t),n=String(e.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Uo(t){let e=Bo(t);return e?document.getElementById(e):null}var Wo={totalTabsWidth:function(t,e){var i=this.totalVisibleTabWidth(t),n=0;return e.find("li").each((function(t,e){n+=parseInt(e.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(t){var e=0;return t.each((function(t,n){e+=i(n).outerWidth()})),e},removeResponsiveDropdown:function(t,e){t.remove(),e.remove()},createResponsiveDropdownTrigger:function(t,e){var i=`<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-${e}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${e}"\n href="#aui-tabs-responsive-dropdown-${e}">...</a>\n </li>`;return t.append(i),t.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(t,e){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+e+'"><ul></ul></div>';return t.append(i),t.find("#aui-tabs-responsive-dropdown-"+e)},findNewVisibleTabs:function(t,e,n){function s(t,e,i){return t+e<=i}for(var r=0,a=0;s(r,n,e)&&a<t.length;a++){r+=i(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(t,e.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=i(t[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(a)},moveTabToResponsiveDropdown:function(t,e,i){var n=t.find("a");t.attr("data-aui-tab-width",t.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),t.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),e.find("ul").prepend(t)},moveInvisibleTabs:function(t,e,n){function s(t){return t>0}for(var r=0;s(e)&&r<t.length;r++){var a=i(t[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,n),e-=o}},moveTabOutOfDropdown:function(t,e){t.find("a").hasClass("aui-dropdown2-checked")&&(t.addClass("active-tab"),e.removeClass("active-tab")),t.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),e.before(t)}};function Vo(t){var e=i(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var n=Uo(e);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),e.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),e.hasClass("aui-tabs-responsive-item")){var o=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}e.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),e.closest(".tabs-menu").find("a").attr("aria-selected","false"),e.attr("aria-selected","true"),e.trigger("tabSelect",{tab:e,pane:s})}else m("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Yo(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function qo(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return Fo+(e||"")+(i&&"true"!==i?"-"+i:"")}function Ko(t){tl.change(i(t.target).closest("a")),t&&t.preventDefault()}function Qo(t){t.forEach((function(t,e){!function(t,e){var n=i(t),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Wo.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=Wo.createResponsiveDropdownTrigger(s,e),c=Wo.createResponsiveDropdown(n,e)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+e),o.attr("id","aui-tabs-responsive-trigger-"+e),o.attr("href","#aui-tabs-responsive-trigger-"+e),c.attr("id","aui-tabs-responsive-dropdown-"+e),d){var h=Wo.moveVisibleTabs(r.toArray(),n,a),p=Wo.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");Wo.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Ko),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Wo.moveTabOutOfDropdown(i(this),a)})),Wo.removeResponsiveDropdown(c,a))}(t,e)}))}function Go(){return i(Ho).toArray()}function Jo(t){var e=i(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var n=e.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each((function(){var t,e,n;e=i(t=this),n=Uo(e),Bo(t)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),n?(Ro(e),e.attr("role","tab"),i(n).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.attr("aria-selected","false")):g("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",t)})),n.on("click.aui-tabs","a",Ko),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(Xo)}(t)}}function Zo(){var t=i(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){Jo(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),s=t.get(e);if(Yo(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(qo(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&Vo(a)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function Xo(t){t.setAttribute("role","tabpanel")}var tl={setup:function(){!function(){const t=(0,de.debounce)(Qo,200);t(Go()),i(window).on("resize.aui-tabs",(()=>t(Go())))}(),Zo(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var t=i(this);t.attr("title")||jo(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof i?t:document.querySelector(t),n=i(e).first(),s=n.closest(".aui-tabs");Vo(n),Yo(s)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=Bo(t);i&&window.localStorage.setItem(qo(e),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(tl.setup);const el=J("aui-tabs",{created:function(t){i(t).addClass("aui-tabs horizontal-tabs"),J.init(t),Jo(t)},template:zo('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(t){var e=i(function(t){return t.querySelectorAll("aui-tabs-pane")}(this)).index(t);return e>-1&&tl.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[e].children[0]),this}}}),il=J("aui-tabs-tab",{extends:"li",created:function(t){i(t).addClass("menu-item")},template:zo('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),nl=J("aui-tabs-pane",{attached:function(t){var e=i(function(t){return i(t).closest("aui-tabs").get(0)}(t)),n=i(t),s=e.find("aui-tabs-pane").index(n),r=new il,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+t.id),zo.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:zo("<content></content>")});l("tabs",tl);const sl="_aui-form-notification-initialised",rl="aria-describedby",al="description",ol="errors",ll="data-aui-notification-",cl=ll+"wait",ul=ll+"info",dl=ll+"error",hl=[dl,ll+"success",cl,ul];function pl(t){fl(t)||(!function(t){t.addClass(sl),gl(t)}(t),bl(t))}function fl(t){return t.hasClass(sl)}function gl(t,e){if(e=e||ml(t),vl(t)===ul){t.parent().find(".description").length||t.after(function(t,e){const i=t.attr("id")||t.attr("name");if(e.length>1){let t=e.map((t=>`<li>${t}</li>`)).join("");return`<div class="description" id="${i}-${al}"><ul>${t}</ul></div>`}return`<div class="description" id="${i}-${al}">${e}</div>`}(t,e))}yl(t)}function ml(t){var e=vl(t),i=e?t.attr(e):"";return""===i?i:function(t){var e;try{e=JSON.parse(t)}catch(i){e=[t]}return e}(i)}function vl(t){let e;return hl.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function bl(t){const e=i(t);if(!fl(e))return;const n=vl(e);xl(e,n===cl);const s=ml(e);s&&n===dl?wl(e,s):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(dl)||e.parent().find(".error").remove()}function yl(t){const e=[],i=t.attr("id")||t.attr("name"),n=vl(t);ml(t)&&n===dl&&e.push(`${i}-${ol}`),_l(t,"description").length&&e.push(`${i}-${al}`);const s=function(t){const e={"aui-select":'input[type="text"][role="combobox"]'};for(let[i,n]of Object.entries(e))if(t.is(i)){const e=t.find(n);if(e.length)return e}return t}(t);s.attr(rl,e.length?e.join(" "):null)}function wl(t,e){let i=_l(t,"error");i.length>0&&i.remove(),t.after(function(t,e){const i=t.attr("id")||t.attr("name"),n=e.map((t=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification"></span>${t}</li>`)).join("");return`<div class="error" role="alert" id="${i}-${ol}"><ul>${n}</ul></div>`}(t,e)),yl(t)}function _l(t,e){return t.parent().find(`.${e}`)}function xl(t,e){e&&!function(t){return t.next("aui-spinner").length>0}(t)?t.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):t.parent().find("aui-spinner").remove()}const Cl=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});J("data-aui-notification-field",{attached:function(t){Cl(),pl(i(t))},attributes:function(){const t={};return hl.forEach((function(e){t[e]=bl})),t}(),type:J.type.ATTRIBUTE}),G("aui/form-notification");var Tl=["displayfield","watchfield","when","novalidate","state"],kl=[];var El={register:function(t,e){var n;if("string"==typeof t)n=t;else{var s=function(t){var e=!1;return t.some((function(t){var n=-1!==i.inArray(t,Tl);return n&&(e=t),n})),e}(t);if(s)return g('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var r={validatorFunction:e,validatorTrigger:n};return kl.push(r),r},validators:function(){return kl}};G("aui/form-validation/validator-register",El);const Al=El;function Sl(t){var e=t.el.value.length;let i=0===e;var n=parseInt(t.args("minlength"),10),s=parseInt(t.args("maxlength"),10);if(n&&s&&n===s&&!i&&e!==n){const e=Ll("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=Ll("minlength",t.args);t.invalidate(e)}else if(s&&e>s){const e=Ll("maxlength",t.args);t.invalidate(e)}else t.validate()}function Dl(t){return"password"===t.getAttribute("type")}function Il(t,e){var i=t.match(e);return!!i&&t===i[0]}function Ml(t){var e=Ll("pattern",t.args);Il(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function Nl(t){var e=Ll("required",t.args);t.el.value?t.validate():t.invalidate(e)}function Ol(t){var e=Ll("validnumber",t.args),i=parseInt(t.el.value,10);if(isNaN(i))t.invalidate(e);else{var n=t.args("min"),s=t.args("max");n&&i<parseInt(n,10)?t.invalidate(Ll("min",t.args)):s&&i>parseInt(s,10)?t.invalidate(Ll("max",t.args)):t.validate()}}function Ll(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:Pl[t];var s=i;i||(s=[e(t)]);var r,a=e(t+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}Al.register(["maxlength","minlength"],Sl),Al.register("[maxlength],[minlength]",Sl),Al.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,s=Ll("matchingfield",t.args,[e,n]);(Dl(t.el)||Dl(i))&&(s=Ll("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(s):t.validate()})),Al.register(["doesnotcontain"],(function(t){var e=Ll("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),Al.register(["pattern"],Ml),Al.register("[pattern]",Ml),Al.register(["required"],Nl),Al.register("[required]",Nl),Al.register(["min","max"],Ol),Al.register("[min],[max]",Ol),Al.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=Ll("dateformat",t.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=e.split(""),r="";s.forEach((function(t){var e=n.hasOwnProperty(t);r+=e?n[t]:t}));var a=new RegExp(r+"$","i");Il(t.el.value,a)?t.validate():t.invalidate(i)})),Al.register(["minchecked","maxchecked"],(function(t){var e=i(t.el).find(":checked").length,n=!t.args("minchecked")||e>=t.args("minchecked"),s=!t.args("maxchecked")||e<=t.args("maxchecked"),r=Ll("minchecked",t.args),a=Ll("maxchecked",t.args);n&&s?t.validate():n?s||t.invalidate(a):t.invalidate(r)}));var Pl={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 Rl="aui-validation-",$l="data-aui-notification-",jl="aui-validation-state",zl="invalid",Fl="valid",Hl="validating",Bl="unvalidated",Ul="_aui-form-validation-initialised",Wl="_aui-internal-field-state-changed";function Vl(t){(function(t){return t.hasClass(Ul)})(t)||(!function(t){t.addClass(Ul),gl(t)}(t),function(t){(function(t){var e,i=function(){t.trigger("aui-stop-typing")};t.on("keyup",(function(){clearTimeout(e),e=setTimeout(i,1500)}))})(t),function(t){var e=ql(t,"when"),i=ql(t,"watchfield"),n=i?t.add("#"+i):t;n.on(e,(function(){Yl(t)}))}(t)}(t),Gl(t,Bl))}function Yl(t){if(!ql(t,"novalidate"))return function(t){!function(t){Jl(Xl(t),"none")}(t);var e=function(t){var e=[];return Kl().forEach((function(i,n){var s=i.validatorTrigger;t.is(s)&&e.push(n)})),e}(t);Gl(t,Hl);var n=function(t,e){var n=[];return e.forEach((function(e){var s=Kl()[e].validatorFunction,r=new i.Deferred,a=function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){Gl(t,zl,i),e.reject()},args:Ql(t),el:t[0],$el:t};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"11.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(t,r);s(a),n.push(r)})),n}(t,e),s=i.when.apply(i,n);return s.done((function(){Gl(t,Fl)})),s}(t);Gl(t,Fl)}function ql(t,e){var i=t.attr("data-"+Rl+e);return i||(i={when:"change"}[e]),i}function Kl(){return Al.validators()}function Ql(t){return function(e){return t.attr("data-"+Rl+e)||t.attr(e)}}function Gl(t,e,n){if(t.attr("data-"+jl,e),t.attr("aria-invalid",!1),e!==Bl){t.trigger(i.Event(Wl));var s=Xl(t),r={};r[Hl]="wait",r[zl]="error",r[Fl]="success";var a=r[e];e===Hl?function(t){setTimeout((function(){tc(t)===Hl&&(Jl(t,"wait"),xl(t,!0))}),500)}(t):Jl(s,a,n),e===zl&&t.attr("aria-invalid",!0)}}function Jl(t,e,i){const n=function(t){return t.is("["+$l+"wait]")}(t);!function(t){Zl(t,"wait"),xl(t,!1),Zl(t,"success")}(t);var s,r;if(!("success"===e&&!n))if("none"===e)Zl(t,"error");else{const n=t.attr($l+e)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];t.attr($l+e,JSON.stringify(a)),"error"===e&&wl(t,a)}}function Zl(t,e){t.removeAttr($l+e),"error"===e&&(_l(t,e).remove(),yl(t))}function Xl(t){var e=ql(t,"displayfield");return void 0===e?t:i("#"+e)}function tc(t){return t.attr("data-"+jl)}function ec(t,e){e.preventDefault(),t.one(Wl,(function(){t.trigger("submit")}))}function ic(t,e){var i="[data-"+jl+"="+e+"]";return t.find(i)}i(document).on("submit",(function(t){var e=t.target,n=i(e),s=function(t){var e=t.find("."+Ul);return o=e,n=i.map(o,(function(t){return tc(i(t))})),s=-1!==n.indexOf(zl),r=-1!==n.indexOf(Bl),a=-1!==n.indexOf(Hl),s?zl:r?Bl:a?Hl:Fl;var n,s,r,a;var o}(n);if(s===Bl)ec(n,t),function(t){var e=ic(t,Bl);e.each((function(t,e){nc.validate(i(e))}))}(n);else if(s===Hl)ec(n,t);else if(s===zl)t.preventDefault(),function(t){var e=ic(t,zl).first();e.focus()}(n);else if(s===Fl){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&t.preventDefault()}}));const nc={register:Al.register,validate:function(t){Yl(t=i(t))}};J("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),Vl(i(t)),J.init(t)},type:J.type.ATTRIBUTE}),G("aui/form-validation",nc),l("formValidation",nc);var sc=R((function(t,e){var i,n;return function(){var s=arguments,r=this;return clearTimeout(i),i=setTimeout((function(){n=t.apply(r,s),r=s=null}),e),n}}),"AJS.debounce",{removeInVersion:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const rc=sc;l("debounce",sc);var ac=R((function(t,e){var i,n=null;return function(){var s=this,r=arguments;return null===n&&(i=t.apply(s,r)),clearTimeout(n),n=setTimeout((function(){n=s=r=null}),e),i}}),"AJS.debounceImmediate",{removeInVersion:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});l("debounceImmediate",ac);const oc=i(window);function lc(t){var e,n=this;this.element=t,this.$element=i(t),this.index=i("aui-header, .aui-header").index(t),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(e=i(n.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}lc.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=i(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=i(this).parent(),n=e.outerWidth(!0);t.totalWidth+=n,t.menuItems.push({$element:e,outerWidth:n})})),this.rightMostNavItemIndex=this.menuItems.length-1,oc.on("resize",this._resizeHandler=rc((function(){t.constructResponsiveDropdown()}),100));var e=this.$applicationLogo.find("img");0!==e.length&&(e.attr("data-aui-responsive-header-index",this.index),e.on("load",(function(){t.constructResponsiveDropdown()}))),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){oc.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var t,e=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(e>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),t=e-this.moreMenuWidth;for(var i=-1;t-this.menuItems[i+1].outerWidth>=0;)t-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var t=document.createElement("li"),e=document.createElement("aui-dropdown-menu");e.id=`aui-responsive-header-dropdown-${this.index}`,J.init(e);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,J.init(n),e.appendChild(n);var s=function(t){var e=document.createElement("a");return e.setAttribute("class","aui-dropdown2-trigger"),e.setAttribute("href","#"),e.id=t.id+"-trigger",e.setAttribute("aria-controls",t.id),e.innerHTML=I18n.getText("aui.words.more"),e}(e);return t.appendChild(s),t.appendChild(e),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(t):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(t),this.moreMenuWidth=i(t).outerWidth(!0),i(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+t,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}e.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=t}},moveToResponsiveDropdown:function(t){if(!(t<=0)){for(var e=Wt().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-t+1,r=n;r>=s;r--){var a=this.menuItems[r].$element,o=a.children("a");J.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const t=Array.from(o.get(0).classList).filter((t=>!t.startsWith("aui-")));l.setAttribute("extra-classes",t.join(" "))}J.init(l),Wt().wrap(l).textContent=o.text(),a.detach(),e.insertBefore(l,e.firstChild),this.element.dispatchEvent(new CustomEvent("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=t}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const cc=function(t){let e=t._header;return e instanceof lc||(e=new lc(t),e.init(),t._header=e),e};function uc(){i(".aui-header").each((function(){cc(this)}))}i(uc);const dc={};dc.setup=R(uc,"responsiveheader.setup",{removeInVersion:"11.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),l("responsiveheader",dc);const hc=J("aui-header-end",{type:J.type.ELEMENT,created:function(t){const e=t.parentElement;e&&e.classList.contains("aui-header")?cc(e):console.log("Could not async. initialise aui-header")}});var pc=n(253),fc=n.n(pc);const gc=({minDate:t,maxDate:e,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:e||n.attr("max"),minDate:t||n.attr("min"),nextText:">",onSelect:function(t){n.val(t),n.trigger("change"),r(),s&&s.call(this,t)},onChangeMonthYear:a,prevText:"<"}),mc=(t,e)=>{let n,s,r,a=!1;const o=i("body"),l=e=>{let n=i(e.target),r=n.closest(s).length||n.is(t),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||e.keyCode===Q.ESCAPE)return h(),void(a=!1);n.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:t})=>(n=(({horizontalAlignment:t,datePickerUUID:e})=>{const n=new uo;n.id=e;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${t}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(t),datePickerUUID:e}),r=t.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),t.off("focus click",u),t.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),t.on("focusout keydown",c)}}},vc=function(t){const e=t.getField(),n=t.getOptions(),s=t.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=mc(e,s),g=t=>{i(t.currentTarget).val()&&r.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==r)return t(e)},n=i((()=>{r.datepicker("destroy")}));t.show=l,t.hide=c,t.destroyPolyfill=()=>{h(),e.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&e.attr("placeholder",m),v&&e.prop("type",v),e.removeAttr("data-aui-dp-uuid"),n(),delete t.destroyPolyfill,delete t.show,delete t.hide},t.setDate=i((t=>{r.datepicker("setDate",t)})),t.getDate=i((()=>r.datepicker("getDate"))),t.setMin=i((t=>r.datepicker("option","minDate",t))),t.setMax=i((t=>r.datepicker("option","maxDate",t)))}n.languageCode in bc.prototype.localisations||(n.languageCode="");const y=bc.prototype.localisations;if(e.attr("aria-controls",s),void 0===r){void 0!==e.attr("step")&&f("WARNING: The date picker polyfill currently does not support the step attribute!");const s=gc({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:e,onSelect:n.onSelect,hide:t.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:t,popupContents:e,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(t),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),e.append(a)),r})({config:o,popupContents:a({$field:e}),getCalendarNode:d,hint:n.hint}),p(),e.on("propertychange keyup input paste",g),b=new MutationObserver((function(e){e.forEach((function(e){"min"===e.attributeName?t.setMin(e.target.getAttribute("min")):"max"===e.attributeName&&t.setMax(e.target.getAttribute("max"))}))})),b.observe(e.get(0),{attributes:!0})}if(e.on("focus click",o),e.attr("placeholder",n.placeholder),"text"!==e.prop("type")){e.prop("type","text");const t=e.attr("value");t&&e.val(t)}e.trigger("propertychange"),e.attr("data-aui-dp-uuid",s)};function bc(t,e){let n={};const s=wn("date-picker"),r=i(t),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!bc.prototype.browserSupportsDateField,e=!1!==n.overrideBrowserDefault;(t||e)&&vc(a)},reconfigure:t=>{n=i.extend(void 0,bc.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function yc(t,e){const n=i.extend({nextText:">",prevText:"<"},e),s=i(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const t=i("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(n.hint),s.append(t)}return s.reconfigure=t=>{s.datepicker("destroy"),s.datepicker(t)},s.destroy=()=>{s.datepicker("destroy")},s}bc.prototype.browserSupportsDateField=function(){if(void 0===Ie){var t=document.createElement("input");t.setAttribute("type","date"),Ie="date"===t.type}return Ie}(),bc.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:fc().W3C},bc.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")},"ajs.datepicker.localisations.year-suffix"===bc.prototype.localisations.yearSuffix&&(bc.prototype.localisations.yearSuffix="");const wc="aui-datepicker",_c=t=>function(e){let i=this.data(wc);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(wc,i)),i};i.fn.datePicker=_c(bc),l("DatePicker",bc),i.fn.calendarWidget=_c(yc),l("CalendarWidget",yc);const xc=bc;n(229),n(228),n(132),n(903);const Cc={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"},Tc=Ns().View,kc=Ns().View,Ec=Ns().View,Ac={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};n(682);const Sc={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"},Dc='<aui-spinner size="small"></aui-spinner>',Ic="aui-spinner";function Mc(t){0===t.find(Ic).length&&t.find(`.${Cc.STATUS}`).append(Dc)}function Nc(t){t.find(`.${Cc.STATUS} ${Ic}`).remove()}var Oc=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const Lc=Ns().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=i(this.el),this._event=Sc,this.classNames=Cc,this.dataKeys=Ac,this.columns=t.columns,this.isCreateRow=t.isCreateRow,this.allowReorder=t.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),t.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=t.model,this.model=new this._modelClass),this.fieldFocusSelector=t.fieldFocusSelector,this.on(this._event.CANCEL,(()=>{this.isCreateRow||(this.disabled=!0)})).on(this._event.SAVE,(t=>!this.disabled&&this.submit(t))).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()})).on(this._event.SUBMIT_STARTED,(()=>this._submitStarted())).on(this._event.SUBMIT_FINISHED,(()=>this._submitFinished()))},defaultColumnRenderer:function(t){return!1!==t.allowEdit?i("<input type='text' />").addClass("text").attr({name:t.name,value:t.value,"aria-label":t.ariaLabel}):t.value?document.createTextNode(t.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(t){27===t.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(t){return this.trigger(this._event.CANCEL),t.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(t){return this.hasFocus()||this.trigger(this._event.FOCUS,t.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(t){var e,i;return this.enable(),e=t?this.$el.find(this.fieldFocusSelector(t)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),e.focus().trigger("select"),this},disable:function(){var t,e;return Oc&&(e=this.$el.find(":submit")).length&&(t=i("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(e.attr("class")).val(e.val()).data(this.dataKeys.ENABLED_SUBMIT,e),e.replaceWith(t)),this.$el.addClass(this.classNames.DISABLED).find(":submit").prop("disabled",!0),this},enable:function(){var t,e;return Oc&&(e=(t=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&t.length&&t.replaceWith(e),this.$el.removeClass(this.classNames.DISABLED).find(":submit").prop("disabled",!1),this},showLoading:function(){return Mc(this.$el),this},hideLoading:function(){return Nc(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var t=this.$el;return t.serializeObject?t.serializeObject():t.serialize()},mapSubmitParams:function(t){return this.model.changedAttributes(t)},submit:function(t){var e,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,t):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(t,e,i){400===i.status&&(n.renderErrors(e.errors),n.trigger(n._event.VALIDATION_ERROR,e.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return i("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&i.each(t,(function(t,i){e.$el.find("[name='"+t+"']").closest("td").append(e.renderError(t,i))})),this},render:function(t){var e=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),i.each(this.columns,(function(n,s){var r,a,o=t.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+s.id,o),r=e.isCreateRow&&s.createView?new s.createView({model:e.model}).render(l[0]):s.editView?new s.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=i("<td />"),"object"==typeof r&&r.done?r.done((function(t){a.append(t)})):a.append(r),s.styleClass&&a.addClass(s.styleClass),a.appendTo(e.$el)})),this.$el.append(this.renderOperations(t.update,t.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,t.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(t){var e=i('<td class="aui-restfultable-operations" />');return t?e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(i(`<td class="${this.classNames.STATUS}" />`))}}),Pc=document||{},Rc=i(Pc);function $c(t,e){Rc.trigger(t,e)}function jc(t,e,n){i(e).trigger(t,n),$c(t,n),e.id&&$c(e.id+"-"+t,n)}const zc=t=>JSON.parse(t||"null");var Fc=Ns().Model.extend({sync:function(t,e,i){var n=this,s=i.error;return i.error=function(t){n._serverErrorHandler(t,this),s&&s.apply(this,arguments)},Ns().sync.apply(Ns(),arguments)},save:function(t,e){var i,n=this,s=(e=e||{}).error,r=e.success;e.error=function(t,e){var i=zc(e.responseText||e.data);s&&s.call(n,n,i,e)},this.isNew()?Ns().Model.prototype.save.call(this,t,e):t&&((i=new(Fc.extend({url:this.url()}))({id:this.id})).save=Ns().Model.prototype.save,e.success=function(t,e){n.clear().set(t.toJSON()),r&&r.call(n,n,e)},i.save(t,e))},destroy:function(t){t=t||{};var e=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:t.data||{},contentType:"application/json",success(i){e.collection&&e.collection.remove(e),t.success&&t.success.call(e,i)},error(i){e._serverErrorHandler(i,this),t.error&&t.error.call(e,i)}}),this},changedAttributes:function(t){var e={},n=this.toJSON();if(i.each(t,(function(t,s){n[t]?n[t]&&n[t]!==s&&("object"==typeof s&&(0,de.isEqual)(s,n[t])||(e[t]=s)):"string"==typeof s?""!==i.trim(s)&&(e[t]=s):i.isArray(s)?0!==s.length&&(e[t]=s):e[t]=s})),!(0,de.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var n;400!==t.status&&(n=i.parseJSON(t.responseText||t.data),jc(Sc.SERVER_ERROR,this,[n,t,e]))},fetch:function(t){t=t||{},this.clear(),Ns().Model.prototype.fetch.call(this,t)}});const Hc=Fc,Bc=Ns().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=Sc,this.classNames=Cc,this.dataKeys=Ac,this.columns=t.columns,this.allowEdit=t.allowEdit,this.allowDelete=t.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=t.index||0,this.deleteConfirmationCallback=t.deleteConfirmationCallback,this.allowReorder=t.allowReorder,this.$el=i(this.el),this.on(this._event.CANCEL,(()=>this.disabled=!0)).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>this.unfocus())).on(this._event.MODAL,(()=>this.$el.addClass(this.classNames.ACTIVE))).on(this._event.MODELESS,(()=>this.$el.removeClass(this.classNames.ACTIVE)))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(t){if(t.value)return document.createTextNode(t.value.toString())},sync:function(t){var e=this;return this.model.addExpand(t),this.showLoading(),this.model.save(t,{success:function(){e.hideLoading().render(),e.trigger(e._event.UPDATED)},error:function(){e.hideLoading()}}),this},refresh:function(t,e){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),t&&t.apply(this,arguments)},error:function(){i.hideLoading(),e&&e.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return Mc(this.$el),this},hideLoading:function(){return Nc(this.$el),this},edit:function(t){var e;return e=i(t.target).is("."+this.classNames.EDITABLE)?i(t.target).attr("data-field-name"):i(t.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(e){e.preventDefault(),t.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let t=this.deleteConfirmationCallback(this.model.toJSON());if(!t||!t.then)throw new Error("deleteConfirmationCallback needs to return a Promise");t.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var t=this,e=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),s=i(`<td class="${this.classNames.STATUS}" />`);return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,(function(n,s){var r,a=i("<td />"),o=e[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(t.$el),r&&i.trim(r)||(a.addClass(t.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)})),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,e),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var Uc=Ns().View.extend({initialize:function(t){var e=this;if(e.options=i.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=Sc,e.classNames=Cc,e.dataKeys=Ac,this.$table=i(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=i("<thead/>"),this.$theadRow=i("<tr />").appendTo(this.$thead),this.$tbody=i("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw new Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach((function(t){var n=i.isFunction(t.header)?t.header():t.header;void 0===n&&(g("You have not specified [header] for column ["+t.id+"]. Using id for now..."),n=t.id),e.$theadRow.append("<th>"+n+"</th>")})),e.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(t){e.focusedRow&&e.focusedRow.trigger(e._event.SAVE),t.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(t,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(e.classNames.MOVEABLE);return n.children().each((function(){var t=i(this),e=parseInt(0+t.css("border-left-width"),10),n=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+e+n;s.append(i("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))})),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(t,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(e.classNames.MOVEABLE).children().each((function(t){i(this).width(r.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),e.getRowFromElement(n.item[0]).trigger(e._event.MODAL)},stop:function(t,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(n.item[0]).trigger(e._event.MODELESS))},update:function(t,i){var n={row:e.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};e.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(t){return!i(t.target).is("."+e.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return e.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(t){void 0===e.options.addPosition&&"bottom"===e.options.createPosition||"bottom"===e.options.addPosition?e.addRow(t):e.addRow(t,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(e._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=i('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(t){e.getRows().forEach((function(i){i.model===t&&(i.hasFocus()&&e._createRow&&e._createRow.trigger(e._event.FOCUS),e.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;i.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):i.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,n=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var s=e.options.reverseOrder?n(t.nextItem):n(t.prevItem);i.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){t.row.hideLoading()},success:function(t){jc(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var i=zc(t.responseText||t.data);jc(e._event.SERVER_ERROR,e,[i,t,this])}}),t.row.showLoading()}},_createCollection:function(){var t=this;return new(this.options.Collection.extend({sort:function(e){if(e||(e={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=t.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(...e){return this.tableRows=t.getRows(),Ns().Collection.prototype.remove.apply(this,e),this.tableRows=void 0,this}}))([],{comparator:function(e){var i;return(this&&void 0!==this.tableRows?this.tableRows:t.getRows()).some((function(t,n){if(t.model.id===e.id)return i=n,!0})),i}})},populate:function(t){this.options.reverseOrder&&t.reverse(),this.hideGlobalLoading(),t&&t.length?(this._models.reset([],{silent:!0}),this.renderRows(t),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),jc(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">'+Dc+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(t,e){var i,n;if(!t.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(t));return n=new this.options.model(t),i=this._renderRow(n,e),this._models.add(n),this.removeNoEntriesMsg(),jc(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),jc(this._event.ROW_REMOVED,this,[t,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var t=2;return this.allowReorder&&++t,this.options.columns.length+t},getRowFromElement:function(t){return i(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var t=this,e=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var n=i(this).data(t.dataKeys.ROW_VIEW);n&&e.push(n)})),e},_renderRow:function(t,e){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:t,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(t){jc(this._event.EDIT_ROW,{},[this,s]),s.edit(this,t)})),i=n.render().$el,-1!==e&&("number"==typeof e&&0!==r.length?i.insertBefore(r[e]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var e=!1;return this.editRows.some((function(i){if(i.el===t.el)return e=!0,!0})),e},_applyFocusCoordinator:function(t){var e=this;return t.hasFocusBound||(t.hasFocusBound=!0,t.on(this._event.FOCUS,(function(){e.focusedRow&&e.focusedRow!==t&&e.focusedRow.trigger(e._event.BLUR),e.focusedRow=t,t instanceof Bc&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=i.inArray(t,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach((function(t){t.hasUpdates()||t.trigger(this._event.FINISHED_EDITING)}),this)},edit:function(t,e){var i=this,n=new this.options.views.editRow({el:t.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:t.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=t.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,(function(e,n){i._removeEditRow(this),this.off(),t.render().delegateEvents(),t.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()})).on(i._event.VALIDATION_ERROR,(function(){this.trigger(i._event.FOCUS)})).on(i._event.FINISHED_EDITING,(function(){i._removeEditRow(this),t.render().delegateEvents(),this.off()})).on(i._event.CANCEL,(function(){i._removeEditRow(this),this.off(),t.render().delegateEvents(),i._shiftFocusAfterEdit()})).on(i._event.BLUR,(function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)})),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,e),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(t=[]){var e=this._models.comparator,i=[];this._models.comparator=void 0;var n=t.map((t=>{var e=new this.options.model(t);return i.push(this._renderRow(e,-1).el),e}));return this._models.add(n,{silent:!0}),this._models.comparator=e,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(t){return{model:t.model||Hc,allowEdit:!0,views:{editRow:Lc,row:Bc},Collection:Ns().Collection.extend({url:t.resources.self,model:t.model||Hc}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});Uc.ClassNames=Cc,Uc.CustomCreateView=Tc,Uc.CustomEditView=kc,Uc.CustomReadView=Ec,Uc.DataKeys=Ac,Uc.EditRow=Lc,Uc.EntryModel=Hc,Uc.Events=Sc,Uc.Row=Bc,l("RestfulTable",Uc);const Wc=Uc;function Vc(t){return i(t).clone().removeAttr("id")}l("clone",Vc);const Yc=Vc;var qc=window.DocumentTouch;const Kc="ontouchstart"in window||qc&&document instanceof qc;function Qc(t,e,i,n){t.find(`[${n}]`).attr(n,((t,n)=>e===n?i:void 0))}function Gc(t,e){let n=i("<div></div>");n.append(t),n.find("[id]").each(((t,i)=>{const s=e(`${i.id}-`);!function(t,e,i){Qc(t,e,i,"aria-controls"),Qc(t,e,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Jc(t){return t.offset().top}function Zc(t){this.$el=i(t),this.$el.length&&(this.$body=i("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new iu,function(t){if(!i(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const n=i(e.target);ou(t,n)}))})(t),Kc&&function(t){if(window.matchMedia)return window.matchMedia(t).matches;var e=document.createElement("style");e.type="text/css",e.id="testMedia",e.innerText=`@media ${t} { #testMedia { width: 1px; } }`,document.head.appendChild(e);var i="1px"===window.getComputedStyle(e,null).width;return e.parentNode.removeChild(e),i}("only screen and (max-device-width:1024px)")&&i("body").addClass("aui-page-sidebar-touch");var e=null,n=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};i(window).on("scroll resize",n),n(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(i.Event(Xc+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),i(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var s=function(e){a(e)&&t.toggle()};function r(t){return t.keyCode===Q.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==Q.LEFT_SQUARE_BRACKET||t.shiftKey||t.ctrlKey||t.metaKey||(e=t.target,"value"in e||e.isContentEditable));var e}function o(t){return t.keyCode===Q.TAB&&t.shiftKey}function l(t,e){return t===e.find(":aui-tabbable")[0]}function c(t,e){return t===e.find(":aui-tabbable").last()[0]}function u(t){t.attr("persistent",""),t.find(":aui-tabbable").first().focus(),setTimeout((function(){t.removeAttr("persistent")}),100)}i(document).on("keypress",s),t._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip({...cu,live:t.collapsedTriggersSelector,suppress:function(){const e=i(this),n=!1===t.isCollapsed();return!0===ru(e)||n}}),t.$el.tooltip({...cu,aria:!1,live:t.toggleSelector,title:function(){return t.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}}),t.$el.on("keydown",t.collapsedTriggersSelector,(function(e){if(t.isCollapsed()){var n=e.target,s=su(n);if(!s)return;var a=i(s);r(e)&&s.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||r(t)&&c(t.target,a))&&(n.focus(),i(this).off("keydown"),au())})))}}))}(this),function(t){i(t.collapsedTriggersSelector).each((function(){var e=i(this);ou(t,e)}))}(this))}var Xc="_aui-internal-sidebar-";function tu(t){return i.map(t.split(" "),(function(t){return Xc+t})).join(" ")}function eu(){return document.querySelectorAll(Zc.prototype.inlineDialogSelector)}function iu(){this.inlineDialog=null}function nu(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function su(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function ru(t){return 0!==nu(t).length}function au(){var t=eu();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function ou(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),ru(e))){var n=document.createElement("aui-inline-dialog"),s=wn("sidebar-submenu");return e.attr("aria-controls",s),e.attr("data-aui-trigger",""),J.init(e),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),t.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(Zc.prototype.inlineDialogClass),document.body.appendChild(n),J.init(n),function(t,e,n){n.addEventListener("aui-layer-show",(function(s){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(s)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");e.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=lu;var n=t.is("a")?t.text():t.children(".aui-nav-heading").text(),s=i(e).find(".aui-navgroup-inner");s.children(".aui-nav-heading").attr("title",n).children("strong").text(n);var r=nu(t);function a(t){const e=Yc(t);return Gc(e,wn),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}a(r).appendTo(s)}(e,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,n),n}}Zc.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tu(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Zc.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tu(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Zc.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Zc.prototype.setTopPosition=function(t=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",t>Jc(this.$el)),this},Zc.prototype.setPosition=R(Zc.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"11.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Zc.prototype.setLeftPosition=function(t=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Zc.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:i.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:i.noop,wide:i.noop},e.expanded.narrow={narrow:i.noop,wide:function(t){t.$body.removeClass("aui-sidebar-collapsed"),t.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(t){t._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(t)?"narrow":"wide";return e[n][s][r](this),this},Zc.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=i.Event(Xc+"collapse-start",{isResponsive:t});return this.$el.trigger(e),e.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(Xc+"collapse-end",{isResponsive:t}))),this},Zc.prototype.collapse=function(){return this._collapse(!1)},Zc.prototype._expand=function(t,e){var n=i.Event(Xc+"expand-start",{isResponsive:e});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",s),this.$el.toggleClass("aui-sidebar-fly-out",s),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),i(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(i.Event(Xc+"expand-end",{isResponsive:e})),this},Zc.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Zc.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Zc.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Zc.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Zc.prototype.responsiveReflow=function(t,e){if(t){if(!this.isCollapsed()&&this.isViewportNarrow(e)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else e!==this._previousViewportWidth&&this.setCollapsedState(e)},Zc.prototype.reflow=function(t=window.pageYOffset,e=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=Jc(this.$el),a=null===this._previousViewportWidth;if(t!==this._previousScrollTop||e!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=t!==this._previousScrollTop&&(t<0||t+e>n);o||!a&&l||(this.setHeight(t,e,r),this.setTopPosition(t))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Zc.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},Zc.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Zc.prototype.collapsedTriggersSelector=[Zc.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Zc.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Zc.prototype.tooltipClassName="aui-sidebar-section-tooltip",Zc.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Zc.prototype.inlineDialogSelector="."+Zc.prototype.inlineDialogClass,iu.prototype.submenu=function(t){return du(),nu(t)},iu.prototype.hasSubmenu=function(t){return du(),ru(t)},iu.prototype.submenuHeadingHeight=function(){return du(),34},iu.prototype.isShowing=function(){return du(),Zc.prototype.isSubmenuVisible()},iu.prototype.show=function(t,e){du(),function(t){su(t).open=!0}(e)},iu.prototype.hide=function(){du(),au()},iu.prototype.inlineDialogShowHandler=function(){du()},iu.prototype.inlineDialogHideHandler=function(){du()},iu.prototype.moveSubmenuToInlineDialog=function(){du()},iu.prototype.restoreSubmenu=function(){du()},Zc.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(eu(),(function(t){return t.open}))},Zc.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const lu='<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 cu={gravity:"w",title:function(){var t=i(this);return t.is("a")||t.is("button")?t.attr("title")||t.find(".aui-nav-item-label").text()||t.data("tooltip"):t.children(".aui-nav").attr("title")||t.children(".aui-nav-heading").text()}};var uu=gt("sidebar",Zc);i((function(){uu(".aui-sidebar")}));var du=O("Sidebar.submenus",{removeInVersion:"11.0.0",sinceVersion:"5.8.0"});l("sidebar",uu);const hu=uu;n(841),n(581);const pu=2600;function fu(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===Q.ESCAPE&&n.is(":visible")&&l.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=i.extend({},t,arguments[3])),t=i.extend({},e,t);var n=i("<div></div>").addClass("aui-popup");t.id&&n.attr("id",t.id);var s=pu;i(".aui-dialog").each((function(){var t=i(this);s=t.css("z-index")>s?t.css("z-index"):s}));var r=function e(i,r){return t.width=i=i||t.width,t.height=r=r||t.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),e}(t.width,t.height);i("body").append(n),n.hide(),h(n);var a=i(".aui-blanket"),o=function(t,e){var n=i(t,e);return!!n.length&&(n.focus(),!0)},l={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&r(e,i),this.show()},show:function(){var e=function(){i(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),V(),0!==(a=i(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){n.is(":visible")&&l.hide()})),n.show(),fu.current=this,function(e){if(0===i(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",e))||o(n,i(".dialog-button-panel",e))||o(n,i(".dialog-page-menu",e))}}(n),i(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){i(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&Y();var e=document.activeElement;this.element.has(e).length&&e.blur(),i(document).trigger("hideLayer",["popup",this]),fu.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 gu=function(){function t(t,e,n,s){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<button></button>").html(e).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function e(t,e,n,s,r){t.buttonpanel||t.addButtonPanel(),r||(r="#"),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<a></a>").html(e).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function n(t,e){var i="left"==t?-1:1;return function(t){var n=this.page[e];if(this.id!=(1==i?n.length-1:0)){i*=t||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==e&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(t){return function(){this.page[t].splice(this.id,1);for(var e=0,i=this.page[t].length;e<i;e++)this.page[t][e].id=e;this.item.remove()}}t.prototype.moveUp=t.prototype.moveLeft=n("left","button"),t.prototype.moveDown=t.prototype.moveRight=n("right","button"),t.prototype.remove=s("button"),t.prototype.html=function(t){return this.item.html(t)},t.prototype.onclick=function(t){let e=this;if(void 0===t)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===t.call(this,e.page.dialog,e.page,i)},"function"==typeof t&&this.item.click(this._onclick)};var r=function(t,e,n,s,r){n instanceof i||(n=i(n)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=i("<button></button>").html(e).addClass("item-button"),r&&(this.button[0].id=r),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var a=t.panel.length,o=this;t.menu.append(this.item),t.body.append(this.body),t.panel[a]=this;var l=function(){var e;t.curtab+1&&((e=t.panel[t.curtab]).body.hide(),e.item.removeClass("selected"),"function"==typeof e.onblur&&e.onblur()),t.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof t.ontabchange&&t.ontabchange(o,e)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?t.menu.css("display","none"):t.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},r.prototype.setPadding=function(t){return isNaN(+t)||(this.body.css("padding",+t),this.padding=+t,this.page.recalcSize()),this};var a=function(t,e){this.dialog=t,this.id=t.page.length,this.element=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<ul></ul>").addClass("dialog-page-menu").css("height",t.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],e&&this.body.addClass(e),t.popup.element.append(this.element.append(this.menu).append(this.body)),t.page[t.page.length]=this};function o(t,e,n){var s={};+t||(t=(s=Object(t)).width,e=s.height,n=s.id),this.height=e||480,this.width=t||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=fu(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var t=this.header?62:0,e=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-t-e;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new r(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(t||"").addClass("dialog-title"),e&&this.header.addClass(e),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(e,i,n){return new t(this,e,i,n),this.recalcSize(),this},a.prototype.addLink=function(t,i,n,s){return new e(this,t,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(t){this.panel[t.id||t].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(t,e){return this.page[this.curpage].addHeader(t,e),this},o.prototype.addButton=function(t,e,i){return this.page[this.curpage].addButton(t,e,i),this},o.prototype.addLink=function(t,e,i,n){return this.page[this.curpage].addLink(t,e,i,n),this},o.prototype.addSubmit=function(t,e){return this.page[this.curpage].addButton(t,e,"button-panel-submit-button"),this},o.prototype.addCancel=function(t,e){return this.page[this.curpage].addLink(t,e,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(t,e,i,n){return this.page[this.curpage].addPanel(t,e,i,n),this},o.prototype.addPage=function(t){return new a(this,t),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(t){return this.page[this.curpage].hide(),this.curpage=t,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(t,e){var i=null==e?this.curpage:t;return null==e&&(e=t),this.page[i].panel[e]},o.prototype.getPage=function(t){return this.page[t]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(t,e){if(null!=e){var i=t.id||t;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===e?t:e)},o.prototype.show=function(){return this.popup.show(),k("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),k("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),k("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(t){var e=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(t+"").replace(r,(function(t,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&e.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&e.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&e.push(d[h][n][r]),"header"==n&&d[h].header&&e.push(d[h].header)}else e=e.concat(d)}));for(var a={length:e.length},o=e.length;o--;)for(var l in a[o]=e[o],e[o])l in a||function(t){a[t]=function(){for(var e=this.length;e--;)"function"==typeof this[e][t]&&this[e][t].apply(this[e],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var t=0,e=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:t||this.height});this.page[0].menu.height(t),this.height=t+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();gu=$(gu,"Dialog constructor",{alternativeName:"Dialog2"}),fu=$(fu,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",gu),l("popup",fu);const mu=!1;var vu=-1!==navigator.platform.indexOf("Mac"),bu=-1!==navigator.userAgent.indexOf("Safari"),yu=/^(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 wu=t=>{const e=t[0];if(e){const t=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",t,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};function _u(t){var e=[],n=i.Callbacks();function s(t){!fu.current&&n&&n.fire(t)}function r(t){t.preventDefault()}function a(t){(t&&t.split?i.trim(t).split(" "):[t]).forEach((function(t){!function(t){var n=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),s=t.match(yu);n?(i+=n[0],t=t.substring(n[0].length)):s?(e.push(i+s[0]),t=t.substring(s[0].length),i=""):(e.push(i+t[0]),t=t.substring(1),i="")}return e}(t.toString()),a=function(t){var e=t.length;for(;e--;)if(t[e].length>1&&"space"!==t[e])return!0;return!1}(n)?"keydown":"keypress";e.push(n),i(document).on(a,mu,n,s),i(document).on(a+" keyup",mu,n,r)}(t)}))}function o(t,e,i,n){var s="(",r=")";return n&&n.workaroundJaws&&(s="",r=""),i?e+=" "+s+I18n.getText("aui.keyboard.shortcut.type.x",t.shift()):(e=e.replace(/\)$/,""),e+=" "+I18n.getText("aui.keyboard.shortcut.or.x",t.shift())),t.forEach((function(t){e+=" "+I18n.getText("aui.keyboard.shortcut.then.x",t)})),e+=r}return a(t),_u.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(t){for(var n=i(t),s=n.attr("title")||"",r=e.slice(),a=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=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(t){return(0,de.isEqual)(g,t)}))||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}vu&&(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(e))},removeShortcutsFromTitle:function(t){var e=i(t),n=e.data("kbShortcutAppended");if(n){var s=e.attr("title");e.attr("title",s.replace(n,"")),e.attr("aria-label",s.replace(n,"")),e.removeData("kbShortcutAppended"),e.removeData("kbShortcutAppendedScreenReader"),e.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}_u.makeShortcut=function(t){var e=t.executor,n=t.bindKeys,s=t.addShortcutsToTitle,r=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return e.add((function(){const e=i(n);let s=e.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(t){t.keyCode===Q.ESCAPE&&s&&s.removeClass(r)})),s.length&&s.removeClass(r),s=t(s,e,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,n){var s;return n&&0===t.length?e.eq(0):(s=i.inArray(t.get(0),e))<e.length-1?(s+=1,e.eq(s)):n?e.eq(0):t})),moveToPrevItem:c((function(t,e,n){var s;return n&&0===t.length?e.filter(":last"):(s=i.inArray(t.get(0),e))>0?(s-=1,e.eq(s)):n?e.filter(":last"):t})),click:function(t){return l.push(t),s(t),e.add((function(){const e=i(t);wu(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),s(t),e.add((function(){var e=i(t)[0];e&&{a:!0,link:!0}[e.nodeName.toLowerCase()]&&(window.location.href=e.href)})),this},execute:function(t){var i=this;return e.add((function(){t.apply(i,arguments)})),this},evaluate:function(t){t.call(this)},moveToAndClick:function(t){return l.push(t),s(t),e.add((function(){const e=i(t);e.length>0&&(wu(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),s(t),e.add((function(e){var n=i(t);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&e.preventDefault())})),this},or:function(t){return n(t),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)r(l[t]);l=[]}}},_u.fromJSON=function(t,e){var n=[];return t&&i.each(t,(function(t,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(t){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 t=this;e&&vu&&(t=i.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var s=_u(t);s[r].apply(s,o),n.push(s)}))})),n},i(document).on("iframeAppended",(function(t,e){i(e).load((function(){i(e).contents().on("keyup keydown keypress",(function(t){bu&&"keypress"===t.type||i(t.target).is(":input")||i.event.trigger(t,arguments,document,!0)}))}))})),l("whenIType",_u);const xu=_u,{FocusManager:Cu,InlineDialog2:Tu,LayerManager:ku,ProgressiveDataSet:Eu,clone:Au,debounce:Su,debounceImmediate:Du,dim:Iu,escapeHtml:Mu,formValidation:Nu,id:Ou,isClipped:Lu,keyCode:Pu,layer:Ru,messages:$u,populateParameters:ju,params:zu,responsiveheader:Fu,select:Hu,tablessortable:Bu,tabs:Uu,undim:Wu,_addID:Vu}=window.AJS,{contextPath:Yu}=window.AJS})(),s})()));
105
105
  //# sourceMappingURL=aui-prototyping.js.map