@luigi-project/core-modular 0.0.4-dev.202604130057 → 0.0.4-dev.202604150058

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/luigi.js CHANGED
@@ -1,30 +1,30 @@
1
- class Om{constructor(n){this.$subscribers=new Set,this.$value=n}set(n){this.$value=n,this.$subscribers.forEach(r=>{r(n)})}update(n){this.set(n(this.$value))}subscribe(n){return this.$subscribers.add(n),n(this.$value),()=>{this.$subscribers.delete(n)}}}function ic(i){return i.$value}function ns(i){return new Om(i)}var Ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Br={exports:{}};var $m=Br.exports,Dl;function Um(){return Dl||(Dl=1,(function(i,n){(function(){var r,a="4.18.1",u=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",g="Invalid `variable` option passed into `_.template`",p="Invalid `imports` option passed into `_.template`",_="__lodash_hash_undefined__",T=500,A="__lodash_placeholder__",E=1,y=2,I=4,O=1,k=2,G=1,re=2,Oe=4,be=8,Qe=16,Pe=32,Je=64,Ce=128,Te=256,ve=512,ye=30,$="...",Zt=800,St=16,$e=1,En=2,L=3,ot=1/0,ae=9007199254740991,ke=17976931348623157e292,Jt=NaN,Lt=4294967295,qc=Lt-1,zc=Lt>>>1,Kc=[["ary",Ce],["bind",G],["bindKey",re],["curry",be],["curryRight",Qe],["flip",ve],["partial",Pe],["partialRight",Je],["rearg",Te]],Hn="[object Arguments]",ri="[object Array]",Yc="[object AsyncFunction]",Er="[object Boolean]",Cr="[object Date]",Xc="[object DOMException]",ii="[object Error]",si="[object Function]",no="[object GeneratorFunction]",wt="[object Map]",Tr="[object Number]",Zc="[object Null]",kt="[object Object]",ro="[object Promise]",Jc="[object Proxy]",yr="[object RegExp]",Et="[object Set]",Ar="[object String]",ai="[object Symbol]",jc="[object Undefined]",Rr="[object WeakMap]",ef="[object WeakSet]",br="[object ArrayBuffer]",Vn="[object DataView]",cs="[object Float32Array]",fs="[object Float64Array]",hs="[object Int8Array]",gs="[object Int16Array]",ds="[object Int32Array]",ps="[object Uint8Array]",_s="[object Uint8ClampedArray]",vs="[object Uint16Array]",ms="[object Uint32Array]",tf=/\b__p \+= '';/g,nf=/\b(__p \+=) '' \+/g,rf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,io=/&(?:amp|lt|gt|quot|#39);/g,so=/[&<>"']/g,sf=RegExp(io.source),af=RegExp(so.source),of=/<%-([\s\S]+?)%>/g,uf=/<%([\s\S]+?)%>/g,ao=/<%=([\s\S]+?)%>/g,lf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cf=/^\w*$/,ff=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ss=/[\\^$.*+?()[\]{}|]/g,hf=RegExp(Ss.source),ws=/^\s+/,gf=/\s/,df=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pf=/\{\n\/\* \[wrapped with (.+)\] \*/,_f=/,? & /,vf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oo=/[()=,{}\[\]\/\s]/,mf=/\\(\\)?/g,Sf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uo=/\w*$/,wf=/^[-+]0x[0-9a-f]+$/i,Ef=/^0b[01]+$/i,Cf=/^\[object .+?Constructor\]$/,Tf=/^0o[0-7]+$/i,yf=/^(?:0|[1-9]\d*)$/,Af=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oi=/($^)/,Rf=/['\n\r\u2028\u2029\\]/g,ui="\\ud800-\\udfff",bf="\\u0300-\\u036f",Pf="\\ufe20-\\ufe2f",If="\\u20d0-\\u20ff",lo=bf+Pf+If,co="\\u2700-\\u27bf",fo="a-z\\xdf-\\xf6\\xf8-\\xff",xf="\\xac\\xb1\\xd7\\xf7",Lf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nf="\\u2000-\\u206f",Of=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ho="A-Z\\xc0-\\xd6\\xd8-\\xde",go="\\ufe0e\\ufe0f",po=xf+Lf+Nf+Of,Es="['’]",$f="["+ui+"]",_o="["+po+"]",li="["+lo+"]",vo="\\d+",Uf="["+co+"]",mo="["+fo+"]",So="[^"+ui+po+vo+co+fo+ho+"]",Cs="\\ud83c[\\udffb-\\udfff]",Df="(?:"+li+"|"+Cs+")",wo="[^"+ui+"]",Ts="(?:\\ud83c[\\udde6-\\uddff]){2}",ys="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="["+ho+"]",Eo="\\u200d",Co="(?:"+mo+"|"+So+")",Mf="(?:"+Bn+"|"+So+")",To="(?:"+Es+"(?:d|ll|m|re|s|t|ve))?",yo="(?:"+Es+"(?:D|LL|M|RE|S|T|VE))?",Ao=Df+"?",Ro="["+go+"]?",Ff="(?:"+Eo+"(?:"+[wo,Ts,ys].join("|")+")"+Ro+Ao+")*",kf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bo=Ro+Ao+Ff,Hf="(?:"+[Uf,Ts,ys].join("|")+")"+bo,Vf="(?:"+[wo+li+"?",li,Ts,ys,$f].join("|")+")",Bf=RegExp(Es,"g"),Gf=RegExp(li,"g"),As=RegExp(Cs+"(?="+Cs+")|"+Vf+bo,"g"),Qf=RegExp([Bn+"?"+mo+"+"+To+"(?="+[_o,Bn,"$"].join("|")+")",Mf+"+"+yo+"(?="+[_o,Bn+Co,"$"].join("|")+")",Bn+"?"+Co+"+"+To,Bn+"+"+yo,Wf,kf,vo,Hf].join("|"),"g"),qf=RegExp("["+Eo+ui+lo+go+"]"),zf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yf=-1,ce={};ce[cs]=ce[fs]=ce[hs]=ce[gs]=ce[ds]=ce[ps]=ce[_s]=ce[vs]=ce[ms]=!0,ce[Hn]=ce[ri]=ce[br]=ce[Er]=ce[Vn]=ce[Cr]=ce[ii]=ce[si]=ce[wt]=ce[Tr]=ce[kt]=ce[yr]=ce[Et]=ce[Ar]=ce[Rr]=!1;var le={};le[Hn]=le[ri]=le[br]=le[Vn]=le[Er]=le[Cr]=le[cs]=le[fs]=le[hs]=le[gs]=le[ds]=le[wt]=le[Tr]=le[kt]=le[yr]=le[Et]=le[Ar]=le[ai]=le[ps]=le[_s]=le[vs]=le[ms]=!0,le[ii]=le[si]=le[Rr]=!1;var Xf={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jf={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},eh=parseFloat,th=parseInt,Po=typeof Ki=="object"&&Ki&&Ki.Object===Object&&Ki,nh=typeof self=="object"&&self&&self.Object===Object&&self,Ie=Po||nh||Function("return this")(),Rs=n&&!n.nodeType&&n,Cn=Rs&&!0&&i&&!i.nodeType&&i,Io=Cn&&Cn.exports===Rs,bs=Io&&Po.process,ut=(function(){try{var S=Cn&&Cn.require&&Cn.require("util").types;return S||bs&&bs.binding&&bs.binding("util")}catch{}})(),xo=ut&&ut.isArrayBuffer,Lo=ut&&ut.isDate,No=ut&&ut.isMap,Oo=ut&&ut.isRegExp,$o=ut&&ut.isSet,Uo=ut&&ut.isTypedArray;function je(S,R,C){switch(C.length){case 0:return S.call(R);case 1:return S.call(R,C[0]);case 2:return S.call(R,C[0],C[1]);case 3:return S.call(R,C[0],C[1],C[2])}return S.apply(R,C)}function rh(S,R,C,D){for(var Q=-1,ne=S==null?0:S.length;++Q<ne;){var me=S[Q];R(D,me,C(me),S)}return D}function et(S,R){for(var C=-1,D=S==null?0:S.length;++C<D&&R(S[C],C,S)!==!1;);return S}function ih(S,R){for(var C=S==null?0:S.length;C--&&R(S[C],C,S)!==!1;);return S}function Do(S,R){for(var C=-1,D=S==null?0:S.length;++C<D;)if(!R(S[C],C,S))return!1;return!0}function jt(S,R){for(var C=-1,D=S==null?0:S.length,Q=0,ne=[];++C<D;){var me=S[C];R(me,C,S)&&(ne[Q++]=me)}return ne}function ci(S,R){var C=S==null?0:S.length;return!!C&&Gn(S,R,0)>-1}function Ps(S,R,C){for(var D=-1,Q=S==null?0:S.length;++D<Q;)if(C(R,S[D]))return!0;return!1}function fe(S,R){for(var C=-1,D=S==null?0:S.length,Q=Array(D);++C<D;)Q[C]=R(S[C],C,S);return Q}function en(S,R){for(var C=-1,D=R.length,Q=S.length;++C<D;)S[Q+C]=R[C];return S}function Is(S,R,C,D){var Q=-1,ne=S==null?0:S.length;for(D&&ne&&(C=S[++Q]);++Q<ne;)C=R(C,S[Q],Q,S);return C}function sh(S,R,C,D){var Q=S==null?0:S.length;for(D&&Q&&(C=S[--Q]);Q--;)C=R(C,S[Q],Q,S);return C}function xs(S,R){for(var C=-1,D=S==null?0:S.length;++C<D;)if(R(S[C],C,S))return!0;return!1}var ah=Ls("length");function oh(S){return S.split("")}function uh(S){return S.match(vf)||[]}function Mo(S,R,C){var D;return C(S,function(Q,ne,me){if(R(Q,ne,me))return D=ne,!1}),D}function fi(S,R,C,D){for(var Q=S.length,ne=C+(D?1:-1);D?ne--:++ne<Q;)if(R(S[ne],ne,S))return ne;return-1}function Gn(S,R,C){return R===R?wh(S,R,C):fi(S,Fo,C)}function lh(S,R,C,D){for(var Q=C-1,ne=S.length;++Q<ne;)if(D(S[Q],R))return Q;return-1}function Fo(S){return S!==S}function ko(S,R){var C=S==null?0:S.length;return C?Os(S,R)/C:Jt}function Ls(S){return function(R){return R==null?r:R[S]}}function Ns(S){return function(R){return S==null?r:S[R]}}function Wo(S,R,C,D,Q){return Q(S,function(ne,me,ue){C=D?(D=!1,ne):R(C,ne,me,ue)}),C}function ch(S,R){var C=S.length;for(S.sort(R);C--;)S[C]=S[C].value;return S}function Os(S,R){for(var C,D=-1,Q=S.length;++D<Q;){var ne=R(S[D]);ne!==r&&(C=C===r?ne:C+ne)}return C}function $s(S,R){for(var C=-1,D=Array(S);++C<S;)D[C]=R(C);return D}function fh(S,R){return fe(R,function(C){return[C,S[C]]})}function Ho(S){return S&&S.slice(0,Qo(S)+1).replace(ws,"")}function tt(S){return function(R){return S(R)}}function Us(S,R){return fe(R,function(C){return S[C]})}function Pr(S,R){return S.has(R)}function Vo(S,R){for(var C=-1,D=S.length;++C<D&&Gn(R,S[C],0)>-1;);return C}function Bo(S,R){for(var C=S.length;C--&&Gn(R,S[C],0)>-1;);return C}function hh(S,R){for(var C=S.length,D=0;C--;)S[C]===R&&++D;return D}var gh=Ns(Xf),dh=Ns(Zf);function ph(S){return"\\"+jf[S]}function _h(S,R){return S==null?r:S[R]}function Qn(S){return qf.test(S)}function vh(S){return zf.test(S)}function mh(S){for(var R,C=[];!(R=S.next()).done;)C.push(R.value);return C}function Ds(S){var R=-1,C=Array(S.size);return S.forEach(function(D,Q){C[++R]=[Q,D]}),C}function Go(S,R){return function(C){return S(R(C))}}function tn(S,R){for(var C=-1,D=S.length,Q=0,ne=[];++C<D;){var me=S[C];(me===R||me===A)&&(S[C]=A,ne[Q++]=C)}return ne}function hi(S){var R=-1,C=Array(S.size);return S.forEach(function(D){C[++R]=D}),C}function Sh(S){var R=-1,C=Array(S.size);return S.forEach(function(D){C[++R]=[D,D]}),C}function wh(S,R,C){for(var D=C-1,Q=S.length;++D<Q;)if(S[D]===R)return D;return-1}function Eh(S,R,C){for(var D=C+1;D--;)if(S[D]===R)return D;return D}function qn(S){return Qn(S)?Th(S):ah(S)}function Ct(S){return Qn(S)?yh(S):oh(S)}function Qo(S){for(var R=S.length;R--&&gf.test(S.charAt(R)););return R}var Ch=Ns(Jf);function Th(S){for(var R=As.lastIndex=0;As.test(S);)++R;return R}function yh(S){return S.match(As)||[]}function Ah(S){return S.match(Qf)||[]}var Rh=(function S(R){R=R==null?Ie:zn.defaults(Ie.Object(),R,zn.pick(Ie,Kf));var C=R.Array,D=R.Date,Q=R.Error,ne=R.Function,me=R.Math,ue=R.Object,Ms=R.RegExp,bh=R.String,lt=R.TypeError,gi=C.prototype,Ph=ne.prototype,Kn=ue.prototype,di=R["__core-js_shared__"],pi=Ph.toString,ie=Kn.hasOwnProperty,Ih=0,qo=(function(){var e=/[^.]+$/.exec(di&&di.keys&&di.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),_i=Kn.toString,xh=pi.call(ue),Lh=Ie._,Nh=Ms("^"+pi.call(ie).replace(Ss,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vi=Io?R.Buffer:r,nn=R.Symbol,mi=R.Uint8Array,zo=vi?vi.allocUnsafe:r,Si=Go(ue.getPrototypeOf,ue),Ko=ue.create,Yo=Kn.propertyIsEnumerable,wi=gi.splice,Xo=nn?nn.isConcatSpreadable:r,Ir=nn?nn.iterator:r,Tn=nn?nn.toStringTag:r,Ei=(function(){try{var e=Pn(ue,"defineProperty");return e({},"",{}),e}catch{}})(),Oh=R.clearTimeout!==Ie.clearTimeout&&R.clearTimeout,$h=D&&D.now!==Ie.Date.now&&D.now,Uh=R.setTimeout!==Ie.setTimeout&&R.setTimeout,Ci=me.ceil,Ti=me.floor,Fs=ue.getOwnPropertySymbols,Dh=vi?vi.isBuffer:r,Zo=R.isFinite,Mh=gi.join,Fh=Go(ue.keys,ue),Se=me.max,Ue=me.min,kh=D.now,Wh=R.parseInt,Jo=me.random,Hh=gi.reverse,ks=Pn(R,"DataView"),xr=Pn(R,"Map"),Ws=Pn(R,"Promise"),Yn=Pn(R,"Set"),Lr=Pn(R,"WeakMap"),Nr=Pn(ue,"create"),yi=Lr&&new Lr,Xn={},Vh=In(ks),Bh=In(xr),Gh=In(Ws),Qh=In(Yn),qh=In(Lr),Ai=nn?nn.prototype:r,Or=Ai?Ai.valueOf:r,jo=Ai?Ai.toString:r;function h(e){if(ge(e)&&!z(e)&&!(e instanceof j)){if(e instanceof ct)return e;if(ie.call(e,"__wrapped__"))return el(e)}return new ct(e)}var Zn=(function(){function e(){}return function(t){if(!he(t))return{};if(Ko)return Ko(t);e.prototype=t;var s=new e;return e.prototype=r,s}})();function Ri(){}function ct(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}h.templateSettings={escape:of,evaluate:uf,interpolate:ao,variable:"",imports:{_:h}},h.prototype=Ri.prototype,h.prototype.constructor=h,ct.prototype=Zn(Ri.prototype),ct.prototype.constructor=ct;function j(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Lt,this.__views__=[]}function zh(){var e=new j(this.__wrapped__);return e.__actions__=qe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qe(this.__views__),e}function Kh(){if(this.__filtered__){var e=new j(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Yh(){var e=this.__wrapped__.value(),t=this.__dir__,s=z(e),o=t<0,f=s?e.length:0,d=od(0,f,this.__views__),v=d.start,m=d.end,w=m-v,b=o?m:v-1,P=this.__iteratees__,x=P.length,U=0,M=Ue(w,this.__takeCount__);if(!s||!o&&f==w&&M==w)return Tu(e,this.__actions__);var B=[];e:for(;w--&&U<M;){b+=t;for(var Y=-1,H=e[b];++Y<x;){var Z=P[Y],ee=Z.iteratee,it=Z.type,Ve=ee(H);if(it==En)H=Ve;else if(!Ve){if(it==$e)continue e;break e}}B[U++]=H}return B}j.prototype=Zn(Ri.prototype),j.prototype.constructor=j;function yn(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function Xh(){this.__data__=Nr?Nr(null):{},this.size=0}function Zh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Jh(e){var t=this.__data__;if(Nr){var s=t[e];return s===_?r:s}return ie.call(t,e)?t[e]:r}function jh(e){var t=this.__data__;return Nr?t[e]!==r:ie.call(t,e)}function eg(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=Nr&&t===r?_:t,this}yn.prototype.clear=Xh,yn.prototype.delete=Zh,yn.prototype.get=Jh,yn.prototype.has=jh,yn.prototype.set=eg;function Wt(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function tg(){this.__data__=[],this.size=0}function ng(e){var t=this.__data__,s=bi(t,e);if(s<0)return!1;var o=t.length-1;return s==o?t.pop():wi.call(t,s,1),--this.size,!0}function rg(e){var t=this.__data__,s=bi(t,e);return s<0?r:t[s][1]}function ig(e){return bi(this.__data__,e)>-1}function sg(e,t){var s=this.__data__,o=bi(s,e);return o<0?(++this.size,s.push([e,t])):s[o][1]=t,this}Wt.prototype.clear=tg,Wt.prototype.delete=ng,Wt.prototype.get=rg,Wt.prototype.has=ig,Wt.prototype.set=sg;function Ht(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function ag(){this.size=0,this.__data__={hash:new yn,map:new(xr||Wt),string:new yn}}function og(e){var t=ki(this,e).delete(e);return this.size-=t?1:0,t}function ug(e){return ki(this,e).get(e)}function lg(e){return ki(this,e).has(e)}function cg(e,t){var s=ki(this,e),o=s.size;return s.set(e,t),this.size+=s.size==o?0:1,this}Ht.prototype.clear=ag,Ht.prototype.delete=og,Ht.prototype.get=ug,Ht.prototype.has=lg,Ht.prototype.set=cg;function An(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new Ht;++t<s;)this.add(e[t])}function fg(e){return this.__data__.set(e,_),this}function hg(e){return this.__data__.has(e)}An.prototype.add=An.prototype.push=fg,An.prototype.has=hg;function Tt(e){var t=this.__data__=new Wt(e);this.size=t.size}function gg(){this.__data__=new Wt,this.size=0}function dg(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function pg(e){return this.__data__.get(e)}function _g(e){return this.__data__.has(e)}function vg(e,t){var s=this.__data__;if(s instanceof Wt){var o=s.__data__;if(!xr||o.length<u-1)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new Ht(o)}return s.set(e,t),this.size=s.size,this}Tt.prototype.clear=gg,Tt.prototype.delete=dg,Tt.prototype.get=pg,Tt.prototype.has=_g,Tt.prototype.set=vg;function eu(e,t){var s=z(e),o=!s&&xn(e),f=!s&&!o&&un(e),d=!s&&!o&&!f&&tr(e),v=s||o||f||d,m=v?$s(e.length,bh):[],w=m.length;for(var b in e)(t||ie.call(e,b))&&!(v&&(b=="length"||f&&(b=="offset"||b=="parent")||d&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Gt(b,w)))&&m.push(b);return m}function tu(e){var t=e.length;return t?e[Zs(0,t-1)]:r}function mg(e,t){return Wi(qe(e),Rn(t,0,e.length))}function Sg(e){return Wi(qe(e))}function Hs(e,t,s){(s!==r&&!At(e[t],s)||s===r&&!(t in e))&&Nt(e,t,s)}function $r(e,t,s){var o=e[t];(!(ie.call(e,t)&&At(o,s))||s===r&&!(t in e))&&Nt(e,t,s)}function bi(e,t){for(var s=e.length;s--;)if(At(e[s][0],t))return s;return-1}function wg(e,t,s,o){return rn(e,function(f,d,v){t(o,f,s(f),v)}),o}function nu(e,t){return e&&$t(t,Ae(t),e)}function Eg(e,t){return e&&$t(t,Ke(t),e)}function Nt(e,t,s){t=="__proto__"&&Ei?Ei(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}function Vs(e,t){for(var s=-1,o=t.length,f=C(o),d=e==null;++s<o;)f[s]=d?r:Ta(e,t[s]);return f}function Rn(e,t,s){return e===e&&(s!==r&&(e=e<=s?e:s),t!==r&&(e=e>=t?e:t)),e}function ft(e,t,s,o,f,d){var v,m=t&E,w=t&y,b=t&I;if(s&&(v=f?s(e,o,f,d):s(e)),v!==r)return v;if(!he(e))return e;var P=z(e);if(P){if(v=ld(e),!m)return qe(e,v)}else{var x=De(e),U=x==si||x==no;if(un(e))return Ru(e,m);if(x==kt||x==Hn||U&&!f){if(v=w||U?{}:Qu(e),!m)return w?Jg(e,Eg(v,e)):Zg(e,nu(v,e))}else{if(!le[x])return f?e:{};v=cd(e,x,m)}}d||(d=new Tt);var M=d.get(e);if(M)return M;d.set(e,v),wl(e)?e.forEach(function(H){v.add(ft(H,t,s,H,e,d))}):ml(e)&&e.forEach(function(H,Z){v.set(Z,ft(H,t,s,Z,e,d))});var B=b?w?ua:oa:w?Ke:Ae,Y=P?r:B(e);return et(Y||e,function(H,Z){Y&&(Z=H,H=e[Z]),$r(v,Z,ft(H,t,s,Z,e,d))}),v}function Cg(e){var t=Ae(e);return function(s){return ru(s,e,t)}}function ru(e,t,s){var o=s.length;if(e==null)return!o;for(e=ue(e);o--;){var f=s[o],d=t[f],v=e[f];if(v===r&&!(f in e)||!d(v))return!1}return!0}function iu(e,t,s){if(typeof e!="function")throw new lt(l);return Hr(function(){e.apply(r,s)},t)}function Ur(e,t,s,o){var f=-1,d=ci,v=!0,m=e.length,w=[],b=t.length;if(!m)return w;s&&(t=fe(t,tt(s))),o?(d=Ps,v=!1):t.length>=u&&(d=Pr,v=!1,t=new An(t));e:for(;++f<m;){var P=e[f],x=s==null?P:s(P);if(P=o||P!==0?P:0,v&&x===x){for(var U=b;U--;)if(t[U]===x)continue e;w.push(P)}else d(t,x,o)||w.push(P)}return w}var rn=Lu(Ot),su=Lu(Gs,!0);function Tg(e,t){var s=!0;return rn(e,function(o,f,d){return s=!!t(o,f,d),s}),s}function Pi(e,t,s){for(var o=-1,f=e.length;++o<f;){var d=e[o],v=t(d);if(v!=null&&(m===r?v===v&&!rt(v):s(v,m)))var m=v,w=d}return w}function yg(e,t,s,o){var f=e.length;for(s=K(s),s<0&&(s=-s>f?0:f+s),o=o===r||o>f?f:K(o),o<0&&(o+=f),o=s>o?0:Cl(o);s<o;)e[s++]=t;return e}function au(e,t){var s=[];return rn(e,function(o,f,d){t(o,f,d)&&s.push(o)}),s}function xe(e,t,s,o,f){var d=-1,v=e.length;for(s||(s=hd),f||(f=[]);++d<v;){var m=e[d];t>0&&s(m)?t>1?xe(m,t-1,s,o,f):en(f,m):o||(f[f.length]=m)}return f}var Bs=Nu(),ou=Nu(!0);function Ot(e,t){return e&&Bs(e,t,Ae)}function Gs(e,t){return e&&ou(e,t,Ae)}function Ii(e,t){return jt(t,function(s){return Qt(e[s])})}function bn(e,t){t=an(t,e);for(var s=0,o=t.length;e!=null&&s<o;)e=e[yt(t[s++])];return s&&s==o?e:r}function uu(e,t,s){var o=t(e);return z(e)?o:en(o,s(e))}function We(e){return e==null?e===r?jc:Zc:Tn&&Tn in ue(e)?ad(e):Sd(e)}function Qs(e,t){return e>t}function Ag(e,t){return e!=null&&ie.call(e,t)}function Rg(e,t){return e!=null&&t in ue(e)}function bg(e,t,s){return e>=Ue(t,s)&&e<Se(t,s)}function qs(e,t,s){for(var o=s?Ps:ci,f=e[0].length,d=e.length,v=d,m=C(d),w=1/0,b=[];v--;){var P=e[v];v&&t&&(P=fe(P,tt(t))),w=Ue(P.length,w),m[v]=!s&&(t||f>=120&&P.length>=120)?new An(v&&P):r}P=e[0];var x=-1,U=m[0];e:for(;++x<f&&b.length<w;){var M=P[x],B=t?t(M):M;if(M=s||M!==0?M:0,!(U?Pr(U,B):o(b,B,s))){for(v=d;--v;){var Y=m[v];if(!(Y?Pr(Y,B):o(e[v],B,s)))continue e}U&&U.push(B),b.push(M)}}return b}function Pg(e,t,s,o){return Ot(e,function(f,d,v){t(o,s(f),d,v)}),o}function Dr(e,t,s){t=an(t,e),e=Yu(e,t);var o=e==null?e:e[yt(gt(t))];return o==null?r:je(o,e,s)}function lu(e){return ge(e)&&We(e)==Hn}function Ig(e){return ge(e)&&We(e)==br}function xg(e){return ge(e)&&We(e)==Cr}function Mr(e,t,s,o,f){return e===t?!0:e==null||t==null||!ge(e)&&!ge(t)?e!==e&&t!==t:Lg(e,t,s,o,Mr,f)}function Lg(e,t,s,o,f,d){var v=z(e),m=z(t),w=v?ri:De(e),b=m?ri:De(t);w=w==Hn?kt:w,b=b==Hn?kt:b;var P=w==kt,x=b==kt,U=w==b;if(U&&un(e)){if(!un(t))return!1;v=!0,P=!1}if(U&&!P)return d||(d=new Tt),v||tr(e)?Vu(e,t,s,o,f,d):id(e,t,w,s,o,f,d);if(!(s&O)){var M=P&&ie.call(e,"__wrapped__"),B=x&&ie.call(t,"__wrapped__");if(M||B){var Y=M?e.value():e,H=B?t.value():t;return d||(d=new Tt),f(Y,H,s,o,d)}}return U?(d||(d=new Tt),sd(e,t,s,o,f,d)):!1}function Ng(e){return ge(e)&&De(e)==wt}function zs(e,t,s,o){var f=s.length,d=f,v=!o;if(e==null)return!d;for(e=ue(e);f--;){var m=s[f];if(v&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++f<d;){m=s[f];var w=m[0],b=e[w],P=m[1];if(v&&m[2]){if(b===r&&!(w in e))return!1}else{var x=new Tt;if(o)var U=o(b,P,w,e,t,x);if(!(U===r?Mr(P,b,O|k,o,x):U))return!1}}return!0}function cu(e){if(!he(e)||dd(e))return!1;var t=Qt(e)?Nh:Cf;return t.test(In(e))}function Og(e){return ge(e)&&We(e)==yr}function $g(e){return ge(e)&&De(e)==Et}function Ug(e){return ge(e)&&qi(e.length)&&!!ce[We(e)]}function fu(e){return typeof e=="function"?e:e==null?Ye:typeof e=="object"?z(e)?du(e[0],e[1]):gu(e):$l(e)}function Ks(e){if(!Wr(e))return Fh(e);var t=[];for(var s in ue(e))ie.call(e,s)&&s!="constructor"&&t.push(s);return t}function Dg(e){if(!he(e))return md(e);var t=Wr(e),s=[];for(var o in e)o=="constructor"&&(t||!ie.call(e,o))||s.push(o);return s}function Ys(e,t){return e<t}function hu(e,t){var s=-1,o=ze(e)?C(e.length):[];return rn(e,function(f,d,v){o[++s]=t(f,d,v)}),o}function gu(e){var t=ca(e);return t.length==1&&t[0][2]?zu(t[0][0],t[0][1]):function(s){return s===e||zs(s,e,t)}}function du(e,t){return ha(e)&&qu(t)?zu(yt(e),t):function(s){var o=Ta(s,e);return o===r&&o===t?ya(s,e):Mr(t,o,O|k)}}function xi(e,t,s,o,f){e!==t&&Bs(t,function(d,v){if(f||(f=new Tt),he(d))Mg(e,t,v,s,xi,o,f);else{var m=o?o(da(e,v),d,v+"",e,t,f):r;m===r&&(m=d),Hs(e,v,m)}},Ke)}function Mg(e,t,s,o,f,d,v){var m=da(e,s),w=da(t,s),b=v.get(w);if(b){Hs(e,s,b);return}var P=d?d(m,w,s+"",e,t,v):r,x=P===r;if(x){var U=z(w),M=!U&&un(w),B=!U&&!M&&tr(w);P=w,U||M||B?z(m)?P=m:pe(m)?P=qe(m):M?(x=!1,P=Ru(w,!0)):B?(x=!1,P=bu(w,!0)):P=[]:Vr(w)||xn(w)?(P=m,xn(m)?P=Tl(m):(!he(m)||Qt(m))&&(P=Qu(w))):x=!1}x&&(v.set(w,P),f(P,w,o,d,v),v.delete(w)),Hs(e,s,P)}function pu(e,t){var s=e.length;if(s)return t+=t<0?s:0,Gt(t,s)?e[t]:r}function _u(e,t,s){t.length?t=fe(t,function(d){return z(d)?function(v){return bn(v,d.length===1?d[0]:d)}:d}):t=[Ye];var o=-1;t=fe(t,tt(V()));var f=hu(e,function(d,v,m){var w=fe(t,function(b){return b(d)});return{criteria:w,index:++o,value:d}});return ch(f,function(d,v){return Xg(d,v,s)})}function Fg(e,t){return vu(e,t,function(s,o){return ya(e,o)})}function vu(e,t,s){for(var o=-1,f=t.length,d={};++o<f;){var v=t[o],m=bn(e,v);s(m,v)&&Fr(d,an(v,e),m)}return d}function kg(e){return function(t){return bn(t,e)}}function Xs(e,t,s,o){var f=o?lh:Gn,d=-1,v=t.length,m=e;for(e===t&&(t=qe(t)),s&&(m=fe(e,tt(s)));++d<v;)for(var w=0,b=t[d],P=s?s(b):b;(w=f(m,P,w,o))>-1;)m!==e&&wi.call(m,w,1),wi.call(e,w,1);return e}function mu(e,t){for(var s=e?t.length:0,o=s-1;s--;){var f=t[s];if(s==o||f!==d){var d=f;Gt(f)?wi.call(e,f,1):ea(e,f)}}return e}function Zs(e,t){return e+Ti(Jo()*(t-e+1))}function Wg(e,t,s,o){for(var f=-1,d=Se(Ci((t-e)/(s||1)),0),v=C(d);d--;)v[o?d:++f]=e,e+=s;return v}function Js(e,t){var s="";if(!e||t<1||t>ae)return s;do t%2&&(s+=e),t=Ti(t/2),t&&(e+=e);while(t);return s}function X(e,t){return pa(Ku(e,t,Ye),e+"")}function Hg(e){return tu(nr(e))}function Vg(e,t){var s=nr(e);return Wi(s,Rn(t,0,s.length))}function Fr(e,t,s,o){if(!he(e))return e;t=an(t,e);for(var f=-1,d=t.length,v=d-1,m=e;m!=null&&++f<d;){var w=yt(t[f]),b=s;if(w==="__proto__"||w==="constructor"||w==="prototype")return e;if(f!=v){var P=m[w];b=o?o(P,w,m):r,b===r&&(b=he(P)?P:Gt(t[f+1])?[]:{})}$r(m,w,b),m=m[w]}return e}var Su=yi?function(e,t){return yi.set(e,t),e}:Ye,Bg=Ei?function(e,t){return Ei(e,"toString",{configurable:!0,enumerable:!1,value:Ra(t),writable:!0})}:Ye;function Gg(e){return Wi(nr(e))}function ht(e,t,s){var o=-1,f=e.length;t<0&&(t=-t>f?0:f+t),s=s>f?f:s,s<0&&(s+=f),f=t>s?0:s-t>>>0,t>>>=0;for(var d=C(f);++o<f;)d[o]=e[o+t];return d}function Qg(e,t){var s;return rn(e,function(o,f,d){return s=t(o,f,d),!s}),!!s}function Li(e,t,s){var o=0,f=e==null?o:e.length;if(typeof t=="number"&&t===t&&f<=zc){for(;o<f;){var d=o+f>>>1,v=e[d];v!==null&&!rt(v)&&(s?v<=t:v<t)?o=d+1:f=d}return f}return js(e,t,Ye,s)}function js(e,t,s,o){var f=0,d=e==null?0:e.length;if(d===0)return 0;t=s(t);for(var v=t!==t,m=t===null,w=rt(t),b=t===r;f<d;){var P=Ti((f+d)/2),x=s(e[P]),U=x!==r,M=x===null,B=x===x,Y=rt(x);if(v)var H=o||B;else b?H=B&&(o||U):m?H=B&&U&&(o||!M):w?H=B&&U&&!M&&(o||!Y):M||Y?H=!1:H=o?x<=t:x<t;H?f=P+1:d=P}return Ue(d,qc)}function wu(e,t){for(var s=-1,o=e.length,f=0,d=[];++s<o;){var v=e[s],m=t?t(v):v;if(!s||!At(m,w)){var w=m;d[f++]=v===0?0:v}}return d}function Eu(e){return typeof e=="number"?e:rt(e)?Jt:+e}function nt(e){if(typeof e=="string")return e;if(z(e))return fe(e,nt)+"";if(rt(e))return jo?jo.call(e):"";var t=e+"";return t=="0"&&1/e==-ot?"-0":t}function sn(e,t,s){var o=-1,f=ci,d=e.length,v=!0,m=[],w=m;if(s)v=!1,f=Ps;else if(d>=u){var b=t?null:nd(e);if(b)return hi(b);v=!1,f=Pr,w=new An}else w=t?[]:m;e:for(;++o<d;){var P=e[o],x=t?t(P):P;if(P=s||P!==0?P:0,v&&x===x){for(var U=w.length;U--;)if(w[U]===x)continue e;t&&w.push(x),m.push(P)}else f(w,x,s)||(w!==m&&w.push(x),m.push(P))}return m}function ea(e,t){t=an(t,e);var s=-1,o=t.length;if(!o)return!0;for(;++s<o;){var f=yt(t[s]);if(f==="__proto__"&&!ie.call(e,"__proto__")||(f==="constructor"||f==="prototype")&&s<o-1)return!1}var d=Yu(e,t);return d==null||delete d[yt(gt(t))]}function Cu(e,t,s,o){return Fr(e,t,s(bn(e,t)),o)}function Ni(e,t,s,o){for(var f=e.length,d=o?f:-1;(o?d--:++d<f)&&t(e[d],d,e););return s?ht(e,o?0:d,o?d+1:f):ht(e,o?d+1:0,o?f:d)}function Tu(e,t){var s=e;return s instanceof j&&(s=s.value()),Is(t,function(o,f){return f.func.apply(f.thisArg,en([o],f.args))},s)}function ta(e,t,s){var o=e.length;if(o<2)return o?sn(e[0]):[];for(var f=-1,d=C(o);++f<o;)for(var v=e[f],m=-1;++m<o;)m!=f&&(d[f]=Ur(d[f]||v,e[m],t,s));return sn(xe(d,1),t,s)}function yu(e,t,s){for(var o=-1,f=e.length,d=t.length,v={};++o<f;){var m=o<d?t[o]:r;s(v,e[o],m)}return v}function na(e){return pe(e)?e:[]}function ra(e){return typeof e=="function"?e:Ye}function an(e,t){return z(e)?e:ha(e,t)?[e]:ju(se(e))}var qg=X;function on(e,t,s){var o=e.length;return s=s===r?o:s,!t&&s>=o?e:ht(e,t,s)}var Au=Oh||function(e){return Ie.clearTimeout(e)};function Ru(e,t){if(t)return e.slice();var s=e.length,o=zo?zo(s):new e.constructor(s);return e.copy(o),o}function ia(e){var t=new e.constructor(e.byteLength);return new mi(t).set(new mi(e)),t}function zg(e,t){var s=t?ia(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function Kg(e){var t=new e.constructor(e.source,uo.exec(e));return t.lastIndex=e.lastIndex,t}function Yg(e){return Or?ue(Or.call(e)):{}}function bu(e,t){var s=t?ia(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Pu(e,t){if(e!==t){var s=e!==r,o=e===null,f=e===e,d=rt(e),v=t!==r,m=t===null,w=t===t,b=rt(t);if(!m&&!b&&!d&&e>t||d&&v&&w&&!m&&!b||o&&v&&w||!s&&w||!f)return 1;if(!o&&!d&&!b&&e<t||b&&s&&f&&!o&&!d||m&&s&&f||!v&&f||!w)return-1}return 0}function Xg(e,t,s){for(var o=-1,f=e.criteria,d=t.criteria,v=f.length,m=s.length;++o<v;){var w=Pu(f[o],d[o]);if(w){if(o>=m)return w;var b=s[o];return w*(b=="desc"?-1:1)}}return e.index-t.index}function Iu(e,t,s,o){for(var f=-1,d=e.length,v=s.length,m=-1,w=t.length,b=Se(d-v,0),P=C(w+b),x=!o;++m<w;)P[m]=t[m];for(;++f<v;)(x||f<d)&&(P[s[f]]=e[f]);for(;b--;)P[m++]=e[f++];return P}function xu(e,t,s,o){for(var f=-1,d=e.length,v=-1,m=s.length,w=-1,b=t.length,P=Se(d-m,0),x=C(P+b),U=!o;++f<P;)x[f]=e[f];for(var M=f;++w<b;)x[M+w]=t[w];for(;++v<m;)(U||f<d)&&(x[M+s[v]]=e[f++]);return x}function qe(e,t){var s=-1,o=e.length;for(t||(t=C(o));++s<o;)t[s]=e[s];return t}function $t(e,t,s,o){var f=!s;s||(s={});for(var d=-1,v=t.length;++d<v;){var m=t[d],w=o?o(s[m],e[m],m,s,e):r;w===r&&(w=e[m]),f?Nt(s,m,w):$r(s,m,w)}return s}function Zg(e,t){return $t(e,fa(e),t)}function Jg(e,t){return $t(e,Bu(e),t)}function Oi(e,t){return function(s,o){var f=z(s)?rh:wg,d=t?t():{};return f(s,e,V(o,2),d)}}function Jn(e){return X(function(t,s){var o=-1,f=s.length,d=f>1?s[f-1]:r,v=f>2?s[2]:r;for(d=e.length>3&&typeof d=="function"?(f--,d):r,v&&He(s[0],s[1],v)&&(d=f<3?r:d,f=1),t=ue(t);++o<f;){var m=s[o];m&&e(t,m,o,d)}return t})}function Lu(e,t){return function(s,o){if(s==null)return s;if(!ze(s))return e(s,o);for(var f=s.length,d=t?f:-1,v=ue(s);(t?d--:++d<f)&&o(v[d],d,v)!==!1;);return s}}function Nu(e){return function(t,s,o){for(var f=-1,d=ue(t),v=o(t),m=v.length;m--;){var w=v[e?m:++f];if(s(d[w],w,d)===!1)break}return t}}function jg(e,t,s){var o=t&G,f=kr(e);function d(){var v=this&&this!==Ie&&this instanceof d?f:e;return v.apply(o?s:this,arguments)}return d}function Ou(e){return function(t){t=se(t);var s=Qn(t)?Ct(t):r,o=s?s[0]:t.charAt(0),f=s?on(s,1).join(""):t.slice(1);return o[e]()+f}}function jn(e){return function(t){return Is(Nl(Ll(t).replace(Bf,"")),e,"")}}function kr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var s=Zn(e.prototype),o=e.apply(s,t);return he(o)?o:s}}function ed(e,t,s){var o=kr(e);function f(){for(var d=arguments.length,v=C(d),m=d,w=er(f);m--;)v[m]=arguments[m];var b=d<3&&v[0]!==w&&v[d-1]!==w?[]:tn(v,w);if(d-=b.length,d<s)return Fu(e,t,$i,f.placeholder,r,v,b,r,r,s-d);var P=this&&this!==Ie&&this instanceof f?o:e;return je(P,this,v)}return f}function $u(e){return function(t,s,o){var f=ue(t);if(!ze(t)){var d=V(s,3);t=Ae(t),s=function(m){return d(f[m],m,f)}}var v=e(t,s,o);return v>-1?f[d?t[v]:v]:r}}function Uu(e){return Bt(function(t){var s=t.length,o=s,f=ct.prototype.thru;for(e&&t.reverse();o--;){var d=t[o];if(typeof d!="function")throw new lt(l);if(f&&!v&&Fi(d)=="wrapper")var v=new ct([],!0)}for(o=v?o:s;++o<s;){d=t[o];var m=Fi(d),w=m=="wrapper"?la(d):r;w&&ga(w[0])&&w[1]==(Ce|be|Pe|Te)&&!w[4].length&&w[9]==1?v=v[Fi(w[0])].apply(v,w[3]):v=d.length==1&&ga(d)?v[m]():v.thru(d)}return function(){var b=arguments,P=b[0];if(v&&b.length==1&&z(P))return v.plant(P).value();for(var x=0,U=s?t[x].apply(this,b):P;++x<s;)U=t[x].call(this,U);return U}})}function $i(e,t,s,o,f,d,v,m,w,b){var P=t&Ce,x=t&G,U=t&re,M=t&(be|Qe),B=t&ve,Y=U?r:kr(e);function H(){for(var Z=arguments.length,ee=C(Z),it=Z;it--;)ee[it]=arguments[it];if(M)var Ve=er(H),st=hh(ee,Ve);if(o&&(ee=Iu(ee,o,f,M)),d&&(ee=xu(ee,d,v,M)),Z-=st,M&&Z<b){var _e=tn(ee,Ve);return Fu(e,t,$i,H.placeholder,s,ee,_e,m,w,b-Z)}var Rt=x?s:this,zt=U?Rt[e]:e;return Z=ee.length,m?ee=wd(ee,m):B&&Z>1&&ee.reverse(),P&&w<Z&&(ee.length=w),this&&this!==Ie&&this instanceof H&&(zt=Y||kr(zt)),zt.apply(Rt,ee)}return H}function Du(e,t){return function(s,o){return Pg(s,e,t(o),{})}}function Ui(e,t){return function(s,o){var f;if(s===r&&o===r)return t;if(s!==r&&(f=s),o!==r){if(f===r)return o;typeof s=="string"||typeof o=="string"?(s=nt(s),o=nt(o)):(s=Eu(s),o=Eu(o)),f=e(s,o)}return f}}function sa(e){return Bt(function(t){return t=fe(t,tt(V())),X(function(s){var o=this;return e(t,function(f){return je(f,o,s)})})})}function Di(e,t){t=t===r?" ":nt(t);var s=t.length;if(s<2)return s?Js(t,e):t;var o=Js(t,Ci(e/qn(t)));return Qn(t)?on(Ct(o),0,e).join(""):o.slice(0,e)}function td(e,t,s,o){var f=t&G,d=kr(e);function v(){for(var m=-1,w=arguments.length,b=-1,P=o.length,x=C(P+w),U=this&&this!==Ie&&this instanceof v?d:e;++b<P;)x[b]=o[b];for(;w--;)x[b++]=arguments[++m];return je(U,f?s:this,x)}return v}function Mu(e){return function(t,s,o){return o&&typeof o!="number"&&He(t,s,o)&&(s=o=r),t=qt(t),s===r?(s=t,t=0):s=qt(s),o=o===r?t<s?1:-1:qt(o),Wg(t,s,o,e)}}function Mi(e){return function(t,s){return typeof t=="string"&&typeof s=="string"||(t=dt(t),s=dt(s)),e(t,s)}}function Fu(e,t,s,o,f,d,v,m,w,b){var P=t&be,x=P?v:r,U=P?r:v,M=P?d:r,B=P?r:d;t|=P?Pe:Je,t&=~(P?Je:Pe),t&Oe||(t&=-4);var Y=[e,t,f,M,x,B,U,m,w,b],H=s.apply(r,Y);return ga(e)&&Xu(H,Y),H.placeholder=o,Zu(H,e,t)}function aa(e){var t=me[e];return function(s,o){if(s=dt(s),o=o==null?0:Ue(K(o),292),o&&Zo(s)){var f=(se(s)+"e").split("e"),d=t(f[0]+"e"+(+f[1]+o));return f=(se(d)+"e").split("e"),+(f[0]+"e"+(+f[1]-o))}return t(s)}}var nd=Yn&&1/hi(new Yn([,-0]))[1]==ot?function(e){return new Yn(e)}:Ia;function ku(e){return function(t){var s=De(t);return s==wt?Ds(t):s==Et?Sh(t):fh(t,e(t))}}function Vt(e,t,s,o,f,d,v,m){var w=t&re;if(!w&&typeof e!="function")throw new lt(l);var b=o?o.length:0;if(b||(t&=-97,o=f=r),v=v===r?v:Se(K(v),0),m=m===r?m:K(m),b-=f?f.length:0,t&Je){var P=o,x=f;o=f=r}var U=w?r:la(e),M=[e,t,s,o,f,P,x,d,v,m];if(U&&vd(M,U),e=M[0],t=M[1],s=M[2],o=M[3],f=M[4],m=M[9]=M[9]===r?w?0:e.length:Se(M[9]-b,0),!m&&t&(be|Qe)&&(t&=-25),!t||t==G)var B=jg(e,t,s);else t==be||t==Qe?B=ed(e,t,m):(t==Pe||t==(G|Pe))&&!f.length?B=td(e,t,s,o):B=$i.apply(r,M);var Y=U?Su:Xu;return Zu(Y(B,M),e,t)}function Wu(e,t,s,o){return e===r||At(e,Kn[s])&&!ie.call(o,s)?t:e}function Hu(e,t,s,o,f,d){return he(e)&&he(t)&&(d.set(t,e),xi(e,t,r,Hu,d),d.delete(t)),e}function rd(e){return Vr(e)?r:e}function Vu(e,t,s,o,f,d){var v=s&O,m=e.length,w=t.length;if(m!=w&&!(v&&w>m))return!1;var b=d.get(e),P=d.get(t);if(b&&P)return b==t&&P==e;var x=-1,U=!0,M=s&k?new An:r;for(d.set(e,t),d.set(t,e);++x<m;){var B=e[x],Y=t[x];if(o)var H=v?o(Y,B,x,t,e,d):o(B,Y,x,e,t,d);if(H!==r){if(H)continue;U=!1;break}if(M){if(!xs(t,function(Z,ee){if(!Pr(M,ee)&&(B===Z||f(B,Z,s,o,d)))return M.push(ee)})){U=!1;break}}else if(!(B===Y||f(B,Y,s,o,d))){U=!1;break}}return d.delete(e),d.delete(t),U}function id(e,t,s,o,f,d,v){switch(s){case Vn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case br:return!(e.byteLength!=t.byteLength||!d(new mi(e),new mi(t)));case Er:case Cr:case Tr:return At(+e,+t);case ii:return e.name==t.name&&e.message==t.message;case yr:case Ar:return e==t+"";case wt:var m=Ds;case Et:var w=o&O;if(m||(m=hi),e.size!=t.size&&!w)return!1;var b=v.get(e);if(b)return b==t;o|=k,v.set(e,t);var P=Vu(m(e),m(t),o,f,d,v);return v.delete(e),P;case ai:if(Or)return Or.call(e)==Or.call(t)}return!1}function sd(e,t,s,o,f,d){var v=s&O,m=oa(e),w=m.length,b=oa(t),P=b.length;if(w!=P&&!v)return!1;for(var x=w;x--;){var U=m[x];if(!(v?U in t:ie.call(t,U)))return!1}var M=d.get(e),B=d.get(t);if(M&&B)return M==t&&B==e;var Y=!0;d.set(e,t),d.set(t,e);for(var H=v;++x<w;){U=m[x];var Z=e[U],ee=t[U];if(o)var it=v?o(ee,Z,U,t,e,d):o(Z,ee,U,e,t,d);if(!(it===r?Z===ee||f(Z,ee,s,o,d):it)){Y=!1;break}H||(H=U=="constructor")}if(Y&&!H){var Ve=e.constructor,st=t.constructor;Ve!=st&&"constructor"in e&&"constructor"in t&&!(typeof Ve=="function"&&Ve instanceof Ve&&typeof st=="function"&&st instanceof st)&&(Y=!1)}return d.delete(e),d.delete(t),Y}function Bt(e){return pa(Ku(e,r,rl),e+"")}function oa(e){return uu(e,Ae,fa)}function ua(e){return uu(e,Ke,Bu)}var la=yi?function(e){return yi.get(e)}:Ia;function Fi(e){for(var t=e.name+"",s=Xn[t],o=ie.call(Xn,t)?s.length:0;o--;){var f=s[o],d=f.func;if(d==null||d==e)return f.name}return t}function er(e){var t=ie.call(h,"placeholder")?h:e;return t.placeholder}function V(){var e=h.iteratee||ba;return e=e===ba?fu:e,arguments.length?e(arguments[0],arguments[1]):e}function ki(e,t){var s=e.__data__;return gd(t)?s[typeof t=="string"?"string":"hash"]:s.map}function ca(e){for(var t=Ae(e),s=t.length;s--;){var o=t[s],f=e[o];t[s]=[o,f,qu(f)]}return t}function Pn(e,t){var s=_h(e,t);return cu(s)?s:r}function ad(e){var t=ie.call(e,Tn),s=e[Tn];try{e[Tn]=r;var o=!0}catch{}var f=_i.call(e);return o&&(t?e[Tn]=s:delete e[Tn]),f}var fa=Fs?function(e){return e==null?[]:(e=ue(e),jt(Fs(e),function(t){return Yo.call(e,t)}))}:xa,Bu=Fs?function(e){for(var t=[];e;)en(t,fa(e)),e=Si(e);return t}:xa,De=We;(ks&&De(new ks(new ArrayBuffer(1)))!=Vn||xr&&De(new xr)!=wt||Ws&&De(Ws.resolve())!=ro||Yn&&De(new Yn)!=Et||Lr&&De(new Lr)!=Rr)&&(De=function(e){var t=We(e),s=t==kt?e.constructor:r,o=s?In(s):"";if(o)switch(o){case Vh:return Vn;case Bh:return wt;case Gh:return ro;case Qh:return Et;case qh:return Rr}return t});function od(e,t,s){for(var o=-1,f=s.length;++o<f;){var d=s[o],v=d.size;switch(d.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=Ue(t,e+v);break;case"takeRight":e=Se(e,t-v);break}}return{start:e,end:t}}function ud(e){var t=e.match(pf);return t?t[1].split(_f):[]}function Gu(e,t,s){t=an(t,e);for(var o=-1,f=t.length,d=!1;++o<f;){var v=yt(t[o]);if(!(d=e!=null&&s(e,v)))break;e=e[v]}return d||++o!=f?d:(f=e==null?0:e.length,!!f&&qi(f)&&Gt(v,f)&&(z(e)||xn(e)))}function ld(e){var t=e.length,s=new e.constructor(t);return t&&typeof e[0]=="string"&&ie.call(e,"index")&&(s.index=e.index,s.input=e.input),s}function Qu(e){return typeof e.constructor=="function"&&!Wr(e)?Zn(Si(e)):{}}function cd(e,t,s){var o=e.constructor;switch(t){case br:return ia(e);case Er:case Cr:return new o(+e);case Vn:return zg(e,s);case cs:case fs:case hs:case gs:case ds:case ps:case _s:case vs:case ms:return bu(e,s);case wt:return new o;case Tr:case Ar:return new o(e);case yr:return Kg(e);case Et:return new o;case ai:return Yg(e)}}function fd(e,t){var s=t.length;if(!s)return e;var o=s-1;return t[o]=(s>1?"& ":"")+t[o],t=t.join(s>2?", ":" "),e.replace(df,`{
1
+ class Um{constructor(n){this.$subscribers=new Set,this.$value=n}set(n){this.$value=n,this.$subscribers.forEach(r=>{r(n)})}update(n){this.set(n(this.$value))}subscribe(n){return this.$subscribers.add(n),n(this.$value),()=>{this.$subscribers.delete(n)}}}function ic(i){return i.$value}function ns(i){return new Um(i)}var Ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Br={exports:{}};var Om=Br.exports,Dl;function $m(){return Dl||(Dl=1,(function(i,n){(function(){var r,a="4.18.1",u=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",g="Invalid `variable` option passed into `_.template`",p="Invalid `imports` option passed into `_.template`",_="__lodash_hash_undefined__",y=500,T="__lodash_placeholder__",E=1,R=2,P=4,N=1,H=2,G=1,re=2,Ue=4,Pe=8,Qe=16,Ie=32,Je=64,Te=128,ye=256,ve=512,Re=30,O="...",Zt=800,St=16,Oe=1,En=2,L=3,ot=1/0,ae=9007199254740991,ke=17976931348623157e292,Jt=NaN,Lt=4294967295,qc=Lt-1,zc=Lt>>>1,Kc=[["ary",Te],["bind",G],["bindKey",re],["curry",Pe],["curryRight",Qe],["flip",ve],["partial",Ie],["partialRight",Je],["rearg",ye]],Vn="[object Arguments]",ri="[object Array]",Yc="[object AsyncFunction]",Er="[object Boolean]",Cr="[object Date]",Xc="[object DOMException]",ii="[object Error]",si="[object Function]",no="[object GeneratorFunction]",wt="[object Map]",Tr="[object Number]",Zc="[object Null]",kt="[object Object]",ro="[object Promise]",Jc="[object Proxy]",yr="[object RegExp]",Et="[object Set]",Rr="[object String]",ai="[object Symbol]",jc="[object Undefined]",Ar="[object WeakMap]",eh="[object WeakSet]",br="[object ArrayBuffer]",Bn="[object DataView]",cs="[object Float32Array]",hs="[object Float64Array]",fs="[object Int8Array]",gs="[object Int16Array]",ds="[object Int32Array]",ps="[object Uint8Array]",_s="[object Uint8ClampedArray]",vs="[object Uint16Array]",ms="[object Uint32Array]",th=/\b__p \+= '';/g,nh=/\b(__p \+=) '' \+/g,rh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,io=/&(?:amp|lt|gt|quot|#39);/g,so=/[&<>"']/g,ih=RegExp(io.source),sh=RegExp(so.source),ah=/<%-([\s\S]+?)%>/g,oh=/<%([\s\S]+?)%>/g,ao=/<%=([\s\S]+?)%>/g,uh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lh=/^\w*$/,ch=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ss=/[\\^$.*+?()[\]{}|]/g,hh=RegExp(Ss.source),ws=/^\s+/,fh=/\s/,gh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,dh=/\{\n\/\* \[wrapped with (.+)\] \*/,ph=/,? & /,_h=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oo=/[()=,{}\[\]\/\s]/,vh=/\\(\\)?/g,mh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uo=/\w*$/,Sh=/^[-+]0x[0-9a-f]+$/i,wh=/^0b[01]+$/i,Eh=/^\[object .+?Constructor\]$/,Ch=/^0o[0-7]+$/i,Th=/^(?:0|[1-9]\d*)$/,yh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oi=/($^)/,Rh=/['\n\r\u2028\u2029\\]/g,ui="\\ud800-\\udfff",Ah="\\u0300-\\u036f",bh="\\ufe20-\\ufe2f",Ph="\\u20d0-\\u20ff",lo=Ah+bh+Ph,co="\\u2700-\\u27bf",ho="a-z\\xdf-\\xf6\\xf8-\\xff",Ih="\\xac\\xb1\\xd7\\xf7",xh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lh="\\u2000-\\u206f",Nh=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fo="A-Z\\xc0-\\xd6\\xd8-\\xde",go="\\ufe0e\\ufe0f",po=Ih+xh+Lh+Nh,Es="['’]",Uh="["+ui+"]",_o="["+po+"]",li="["+lo+"]",vo="\\d+",Oh="["+co+"]",mo="["+ho+"]",So="[^"+ui+po+vo+co+ho+fo+"]",Cs="\\ud83c[\\udffb-\\udfff]",$h="(?:"+li+"|"+Cs+")",wo="[^"+ui+"]",Ts="(?:\\ud83c[\\udde6-\\uddff]){2}",ys="[\\ud800-\\udbff][\\udc00-\\udfff]",Gn="["+fo+"]",Eo="\\u200d",Co="(?:"+mo+"|"+So+")",Dh="(?:"+Gn+"|"+So+")",To="(?:"+Es+"(?:d|ll|m|re|s|t|ve))?",yo="(?:"+Es+"(?:D|LL|M|RE|S|T|VE))?",Ro=$h+"?",Ao="["+go+"]?",Mh="(?:"+Eo+"(?:"+[wo,Ts,ys].join("|")+")"+Ao+Ro+")*",Fh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bo=Ao+Ro+Mh,Hh="(?:"+[Oh,Ts,ys].join("|")+")"+bo,Wh="(?:"+[wo+li+"?",li,Ts,ys,Uh].join("|")+")",Vh=RegExp(Es,"g"),Bh=RegExp(li,"g"),Rs=RegExp(Cs+"(?="+Cs+")|"+Wh+bo,"g"),Gh=RegExp([Gn+"?"+mo+"+"+To+"(?="+[_o,Gn,"$"].join("|")+")",Dh+"+"+yo+"(?="+[_o,Gn+Co,"$"].join("|")+")",Gn+"?"+Co+"+"+To,Gn+"+"+yo,kh,Fh,vo,Hh].join("|"),"g"),Qh=RegExp("["+Eo+ui+lo+go+"]"),qh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kh=-1,ce={};ce[cs]=ce[hs]=ce[fs]=ce[gs]=ce[ds]=ce[ps]=ce[_s]=ce[vs]=ce[ms]=!0,ce[Vn]=ce[ri]=ce[br]=ce[Er]=ce[Bn]=ce[Cr]=ce[ii]=ce[si]=ce[wt]=ce[Tr]=ce[kt]=ce[yr]=ce[Et]=ce[Rr]=ce[Ar]=!1;var le={};le[Vn]=le[ri]=le[br]=le[Bn]=le[Er]=le[Cr]=le[cs]=le[hs]=le[fs]=le[gs]=le[ds]=le[wt]=le[Tr]=le[kt]=le[yr]=le[Et]=le[Rr]=le[ai]=le[ps]=le[_s]=le[vs]=le[ms]=!0,le[ii]=le[si]=le[Ar]=!1;var Yh={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Xh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Zh={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Jh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jh=parseFloat,ef=parseInt,Po=typeof Ki=="object"&&Ki&&Ki.Object===Object&&Ki,tf=typeof self=="object"&&self&&self.Object===Object&&self,xe=Po||tf||Function("return this")(),As=n&&!n.nodeType&&n,Cn=As&&!0&&i&&!i.nodeType&&i,Io=Cn&&Cn.exports===As,bs=Io&&Po.process,ut=(function(){try{var S=Cn&&Cn.require&&Cn.require("util").types;return S||bs&&bs.binding&&bs.binding("util")}catch{}})(),xo=ut&&ut.isArrayBuffer,Lo=ut&&ut.isDate,No=ut&&ut.isMap,Uo=ut&&ut.isRegExp,Oo=ut&&ut.isSet,$o=ut&&ut.isTypedArray;function je(S,A,C){switch(C.length){case 0:return S.call(A);case 1:return S.call(A,C[0]);case 2:return S.call(A,C[0],C[1]);case 3:return S.call(A,C[0],C[1],C[2])}return S.apply(A,C)}function nf(S,A,C,M){for(var Q=-1,ne=S==null?0:S.length;++Q<ne;){var me=S[Q];A(M,me,C(me),S)}return M}function et(S,A){for(var C=-1,M=S==null?0:S.length;++C<M&&A(S[C],C,S)!==!1;);return S}function rf(S,A){for(var C=S==null?0:S.length;C--&&A(S[C],C,S)!==!1;);return S}function Do(S,A){for(var C=-1,M=S==null?0:S.length;++C<M;)if(!A(S[C],C,S))return!1;return!0}function jt(S,A){for(var C=-1,M=S==null?0:S.length,Q=0,ne=[];++C<M;){var me=S[C];A(me,C,S)&&(ne[Q++]=me)}return ne}function ci(S,A){var C=S==null?0:S.length;return!!C&&Qn(S,A,0)>-1}function Ps(S,A,C){for(var M=-1,Q=S==null?0:S.length;++M<Q;)if(C(A,S[M]))return!0;return!1}function he(S,A){for(var C=-1,M=S==null?0:S.length,Q=Array(M);++C<M;)Q[C]=A(S[C],C,S);return Q}function en(S,A){for(var C=-1,M=A.length,Q=S.length;++C<M;)S[Q+C]=A[C];return S}function Is(S,A,C,M){var Q=-1,ne=S==null?0:S.length;for(M&&ne&&(C=S[++Q]);++Q<ne;)C=A(C,S[Q],Q,S);return C}function sf(S,A,C,M){var Q=S==null?0:S.length;for(M&&Q&&(C=S[--Q]);Q--;)C=A(C,S[Q],Q,S);return C}function xs(S,A){for(var C=-1,M=S==null?0:S.length;++C<M;)if(A(S[C],C,S))return!0;return!1}var af=Ls("length");function of(S){return S.split("")}function uf(S){return S.match(_h)||[]}function Mo(S,A,C){var M;return C(S,function(Q,ne,me){if(A(Q,ne,me))return M=ne,!1}),M}function hi(S,A,C,M){for(var Q=S.length,ne=C+(M?1:-1);M?ne--:++ne<Q;)if(A(S[ne],ne,S))return ne;return-1}function Qn(S,A,C){return A===A?wf(S,A,C):hi(S,Fo,C)}function lf(S,A,C,M){for(var Q=C-1,ne=S.length;++Q<ne;)if(M(S[Q],A))return Q;return-1}function Fo(S){return S!==S}function ko(S,A){var C=S==null?0:S.length;return C?Us(S,A)/C:Jt}function Ls(S){return function(A){return A==null?r:A[S]}}function Ns(S){return function(A){return S==null?r:S[A]}}function Ho(S,A,C,M,Q){return Q(S,function(ne,me,ue){C=M?(M=!1,ne):A(C,ne,me,ue)}),C}function cf(S,A){var C=S.length;for(S.sort(A);C--;)S[C]=S[C].value;return S}function Us(S,A){for(var C,M=-1,Q=S.length;++M<Q;){var ne=A(S[M]);ne!==r&&(C=C===r?ne:C+ne)}return C}function Os(S,A){for(var C=-1,M=Array(S);++C<S;)M[C]=A(C);return M}function hf(S,A){return he(A,function(C){return[C,S[C]]})}function Wo(S){return S&&S.slice(0,Qo(S)+1).replace(ws,"")}function tt(S){return function(A){return S(A)}}function $s(S,A){return he(A,function(C){return S[C]})}function Pr(S,A){return S.has(A)}function Vo(S,A){for(var C=-1,M=S.length;++C<M&&Qn(A,S[C],0)>-1;);return C}function Bo(S,A){for(var C=S.length;C--&&Qn(A,S[C],0)>-1;);return C}function ff(S,A){for(var C=S.length,M=0;C--;)S[C]===A&&++M;return M}var gf=Ns(Yh),df=Ns(Xh);function pf(S){return"\\"+Jh[S]}function _f(S,A){return S==null?r:S[A]}function qn(S){return Qh.test(S)}function vf(S){return qh.test(S)}function mf(S){for(var A,C=[];!(A=S.next()).done;)C.push(A.value);return C}function Ds(S){var A=-1,C=Array(S.size);return S.forEach(function(M,Q){C[++A]=[Q,M]}),C}function Go(S,A){return function(C){return S(A(C))}}function tn(S,A){for(var C=-1,M=S.length,Q=0,ne=[];++C<M;){var me=S[C];(me===A||me===T)&&(S[C]=T,ne[Q++]=C)}return ne}function fi(S){var A=-1,C=Array(S.size);return S.forEach(function(M){C[++A]=M}),C}function Sf(S){var A=-1,C=Array(S.size);return S.forEach(function(M){C[++A]=[M,M]}),C}function wf(S,A,C){for(var M=C-1,Q=S.length;++M<Q;)if(S[M]===A)return M;return-1}function Ef(S,A,C){for(var M=C+1;M--;)if(S[M]===A)return M;return M}function zn(S){return qn(S)?Tf(S):af(S)}function Ct(S){return qn(S)?yf(S):of(S)}function Qo(S){for(var A=S.length;A--&&fh.test(S.charAt(A)););return A}var Cf=Ns(Zh);function Tf(S){for(var A=Rs.lastIndex=0;Rs.test(S);)++A;return A}function yf(S){return S.match(Rs)||[]}function Rf(S){return S.match(Gh)||[]}var Af=(function S(A){A=A==null?xe:Kn.defaults(xe.Object(),A,Kn.pick(xe,zh));var C=A.Array,M=A.Date,Q=A.Error,ne=A.Function,me=A.Math,ue=A.Object,Ms=A.RegExp,bf=A.String,lt=A.TypeError,gi=C.prototype,Pf=ne.prototype,Yn=ue.prototype,di=A["__core-js_shared__"],pi=Pf.toString,ie=Yn.hasOwnProperty,If=0,qo=(function(){var e=/[^.]+$/.exec(di&&di.keys&&di.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),_i=Yn.toString,xf=pi.call(ue),Lf=xe._,Nf=Ms("^"+pi.call(ie).replace(Ss,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vi=Io?A.Buffer:r,nn=A.Symbol,mi=A.Uint8Array,zo=vi?vi.allocUnsafe:r,Si=Go(ue.getPrototypeOf,ue),Ko=ue.create,Yo=Yn.propertyIsEnumerable,wi=gi.splice,Xo=nn?nn.isConcatSpreadable:r,Ir=nn?nn.iterator:r,Tn=nn?nn.toStringTag:r,Ei=(function(){try{var e=Pn(ue,"defineProperty");return e({},"",{}),e}catch{}})(),Uf=A.clearTimeout!==xe.clearTimeout&&A.clearTimeout,Of=M&&M.now!==xe.Date.now&&M.now,$f=A.setTimeout!==xe.setTimeout&&A.setTimeout,Ci=me.ceil,Ti=me.floor,Fs=ue.getOwnPropertySymbols,Df=vi?vi.isBuffer:r,Zo=A.isFinite,Mf=gi.join,Ff=Go(ue.keys,ue),Se=me.max,$e=me.min,kf=M.now,Hf=A.parseInt,Jo=me.random,Wf=gi.reverse,ks=Pn(A,"DataView"),xr=Pn(A,"Map"),Hs=Pn(A,"Promise"),Xn=Pn(A,"Set"),Lr=Pn(A,"WeakMap"),Nr=Pn(ue,"create"),yi=Lr&&new Lr,Zn={},Vf=In(ks),Bf=In(xr),Gf=In(Hs),Qf=In(Xn),qf=In(Lr),Ri=nn?nn.prototype:r,Ur=Ri?Ri.valueOf:r,jo=Ri?Ri.toString:r;function f(e){if(ge(e)&&!z(e)&&!(e instanceof j)){if(e instanceof ct)return e;if(ie.call(e,"__wrapped__"))return el(e)}return new ct(e)}var Jn=(function(){function e(){}return function(t){if(!fe(t))return{};if(Ko)return Ko(t);e.prototype=t;var s=new e;return e.prototype=r,s}})();function Ai(){}function ct(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}f.templateSettings={escape:ah,evaluate:oh,interpolate:ao,variable:"",imports:{_:f}},f.prototype=Ai.prototype,f.prototype.constructor=f,ct.prototype=Jn(Ai.prototype),ct.prototype.constructor=ct;function j(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Lt,this.__views__=[]}function zf(){var e=new j(this.__wrapped__);return e.__actions__=qe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qe(this.__views__),e}function Kf(){if(this.__filtered__){var e=new j(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Yf(){var e=this.__wrapped__.value(),t=this.__dir__,s=z(e),o=t<0,h=s?e.length:0,d=od(0,h,this.__views__),v=d.start,m=d.end,w=m-v,b=o?m:v-1,I=this.__iteratees__,x=I.length,$=0,k=$e(w,this.__takeCount__);if(!s||!o&&h==w&&k==w)return Tu(e,this.__actions__);var B=[];e:for(;w--&&$<k;){b+=t;for(var Y=-1,W=e[b];++Y<x;){var Z=I[Y],ee=Z.iteratee,it=Z.type,Ve=ee(W);if(it==En)W=Ve;else if(!Ve){if(it==Oe)continue e;break e}}B[$++]=W}return B}j.prototype=Jn(Ai.prototype),j.prototype.constructor=j;function yn(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function Xf(){this.__data__=Nr?Nr(null):{},this.size=0}function Zf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Jf(e){var t=this.__data__;if(Nr){var s=t[e];return s===_?r:s}return ie.call(t,e)?t[e]:r}function jf(e){var t=this.__data__;return Nr?t[e]!==r:ie.call(t,e)}function eg(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=Nr&&t===r?_:t,this}yn.prototype.clear=Xf,yn.prototype.delete=Zf,yn.prototype.get=Jf,yn.prototype.has=jf,yn.prototype.set=eg;function Ht(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function tg(){this.__data__=[],this.size=0}function ng(e){var t=this.__data__,s=bi(t,e);if(s<0)return!1;var o=t.length-1;return s==o?t.pop():wi.call(t,s,1),--this.size,!0}function rg(e){var t=this.__data__,s=bi(t,e);return s<0?r:t[s][1]}function ig(e){return bi(this.__data__,e)>-1}function sg(e,t){var s=this.__data__,o=bi(s,e);return o<0?(++this.size,s.push([e,t])):s[o][1]=t,this}Ht.prototype.clear=tg,Ht.prototype.delete=ng,Ht.prototype.get=rg,Ht.prototype.has=ig,Ht.prototype.set=sg;function Wt(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function ag(){this.size=0,this.__data__={hash:new yn,map:new(xr||Ht),string:new yn}}function og(e){var t=ki(this,e).delete(e);return this.size-=t?1:0,t}function ug(e){return ki(this,e).get(e)}function lg(e){return ki(this,e).has(e)}function cg(e,t){var s=ki(this,e),o=s.size;return s.set(e,t),this.size+=s.size==o?0:1,this}Wt.prototype.clear=ag,Wt.prototype.delete=og,Wt.prototype.get=ug,Wt.prototype.has=lg,Wt.prototype.set=cg;function Rn(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new Wt;++t<s;)this.add(e[t])}function hg(e){return this.__data__.set(e,_),this}function fg(e){return this.__data__.has(e)}Rn.prototype.add=Rn.prototype.push=hg,Rn.prototype.has=fg;function Tt(e){var t=this.__data__=new Ht(e);this.size=t.size}function gg(){this.__data__=new Ht,this.size=0}function dg(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function pg(e){return this.__data__.get(e)}function _g(e){return this.__data__.has(e)}function vg(e,t){var s=this.__data__;if(s instanceof Ht){var o=s.__data__;if(!xr||o.length<u-1)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new Wt(o)}return s.set(e,t),this.size=s.size,this}Tt.prototype.clear=gg,Tt.prototype.delete=dg,Tt.prototype.get=pg,Tt.prototype.has=_g,Tt.prototype.set=vg;function eu(e,t){var s=z(e),o=!s&&xn(e),h=!s&&!o&&un(e),d=!s&&!o&&!h&&nr(e),v=s||o||h||d,m=v?Os(e.length,bf):[],w=m.length;for(var b in e)(t||ie.call(e,b))&&!(v&&(b=="length"||h&&(b=="offset"||b=="parent")||d&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Gt(b,w)))&&m.push(b);return m}function tu(e){var t=e.length;return t?e[Zs(0,t-1)]:r}function mg(e,t){return Hi(qe(e),An(t,0,e.length))}function Sg(e){return Hi(qe(e))}function Ws(e,t,s){(s!==r&&!Rt(e[t],s)||s===r&&!(t in e))&&Nt(e,t,s)}function Or(e,t,s){var o=e[t];(!(ie.call(e,t)&&Rt(o,s))||s===r&&!(t in e))&&Nt(e,t,s)}function bi(e,t){for(var s=e.length;s--;)if(Rt(e[s][0],t))return s;return-1}function wg(e,t,s,o){return rn(e,function(h,d,v){t(o,h,s(h),v)}),o}function nu(e,t){return e&&Ot(t,Ae(t),e)}function Eg(e,t){return e&&Ot(t,Ke(t),e)}function Nt(e,t,s){t=="__proto__"&&Ei?Ei(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}function Vs(e,t){for(var s=-1,o=t.length,h=C(o),d=e==null;++s<o;)h[s]=d?r:Ta(e,t[s]);return h}function An(e,t,s){return e===e&&(s!==r&&(e=e<=s?e:s),t!==r&&(e=e>=t?e:t)),e}function ht(e,t,s,o,h,d){var v,m=t&E,w=t&R,b=t&P;if(s&&(v=h?s(e,o,h,d):s(e)),v!==r)return v;if(!fe(e))return e;var I=z(e);if(I){if(v=ld(e),!m)return qe(e,v)}else{var x=De(e),$=x==si||x==no;if(un(e))return Au(e,m);if(x==kt||x==Vn||$&&!h){if(v=w||$?{}:Qu(e),!m)return w?Jg(e,Eg(v,e)):Zg(e,nu(v,e))}else{if(!le[x])return h?e:{};v=cd(e,x,m)}}d||(d=new Tt);var k=d.get(e);if(k)return k;d.set(e,v),wl(e)?e.forEach(function(W){v.add(ht(W,t,s,W,e,d))}):ml(e)&&e.forEach(function(W,Z){v.set(Z,ht(W,t,s,Z,e,d))});var B=b?w?ua:oa:w?Ke:Ae,Y=I?r:B(e);return et(Y||e,function(W,Z){Y&&(Z=W,W=e[Z]),Or(v,Z,ht(W,t,s,Z,e,d))}),v}function Cg(e){var t=Ae(e);return function(s){return ru(s,e,t)}}function ru(e,t,s){var o=s.length;if(e==null)return!o;for(e=ue(e);o--;){var h=s[o],d=t[h],v=e[h];if(v===r&&!(h in e)||!d(v))return!1}return!0}function iu(e,t,s){if(typeof e!="function")throw new lt(l);return Wr(function(){e.apply(r,s)},t)}function $r(e,t,s,o){var h=-1,d=ci,v=!0,m=e.length,w=[],b=t.length;if(!m)return w;s&&(t=he(t,tt(s))),o?(d=Ps,v=!1):t.length>=u&&(d=Pr,v=!1,t=new Rn(t));e:for(;++h<m;){var I=e[h],x=s==null?I:s(I);if(I=o||I!==0?I:0,v&&x===x){for(var $=b;$--;)if(t[$]===x)continue e;w.push(I)}else d(t,x,o)||w.push(I)}return w}var rn=Lu(Ut),su=Lu(Gs,!0);function Tg(e,t){var s=!0;return rn(e,function(o,h,d){return s=!!t(o,h,d),s}),s}function Pi(e,t,s){for(var o=-1,h=e.length;++o<h;){var d=e[o],v=t(d);if(v!=null&&(m===r?v===v&&!rt(v):s(v,m)))var m=v,w=d}return w}function yg(e,t,s,o){var h=e.length;for(s=K(s),s<0&&(s=-s>h?0:h+s),o=o===r||o>h?h:K(o),o<0&&(o+=h),o=s>o?0:Cl(o);s<o;)e[s++]=t;return e}function au(e,t){var s=[];return rn(e,function(o,h,d){t(o,h,d)&&s.push(o)}),s}function Le(e,t,s,o,h){var d=-1,v=e.length;for(s||(s=fd),h||(h=[]);++d<v;){var m=e[d];t>0&&s(m)?t>1?Le(m,t-1,s,o,h):en(h,m):o||(h[h.length]=m)}return h}var Bs=Nu(),ou=Nu(!0);function Ut(e,t){return e&&Bs(e,t,Ae)}function Gs(e,t){return e&&ou(e,t,Ae)}function Ii(e,t){return jt(t,function(s){return Qt(e[s])})}function bn(e,t){t=an(t,e);for(var s=0,o=t.length;e!=null&&s<o;)e=e[yt(t[s++])];return s&&s==o?e:r}function uu(e,t,s){var o=t(e);return z(e)?o:en(o,s(e))}function He(e){return e==null?e===r?jc:Zc:Tn&&Tn in ue(e)?ad(e):Sd(e)}function Qs(e,t){return e>t}function Rg(e,t){return e!=null&&ie.call(e,t)}function Ag(e,t){return e!=null&&t in ue(e)}function bg(e,t,s){return e>=$e(t,s)&&e<Se(t,s)}function qs(e,t,s){for(var o=s?Ps:ci,h=e[0].length,d=e.length,v=d,m=C(d),w=1/0,b=[];v--;){var I=e[v];v&&t&&(I=he(I,tt(t))),w=$e(I.length,w),m[v]=!s&&(t||h>=120&&I.length>=120)?new Rn(v&&I):r}I=e[0];var x=-1,$=m[0];e:for(;++x<h&&b.length<w;){var k=I[x],B=t?t(k):k;if(k=s||k!==0?k:0,!($?Pr($,B):o(b,B,s))){for(v=d;--v;){var Y=m[v];if(!(Y?Pr(Y,B):o(e[v],B,s)))continue e}$&&$.push(B),b.push(k)}}return b}function Pg(e,t,s,o){return Ut(e,function(h,d,v){t(o,s(h),d,v)}),o}function Dr(e,t,s){t=an(t,e),e=Yu(e,t);var o=e==null?e:e[yt(gt(t))];return o==null?r:je(o,e,s)}function lu(e){return ge(e)&&He(e)==Vn}function Ig(e){return ge(e)&&He(e)==br}function xg(e){return ge(e)&&He(e)==Cr}function Mr(e,t,s,o,h){return e===t?!0:e==null||t==null||!ge(e)&&!ge(t)?e!==e&&t!==t:Lg(e,t,s,o,Mr,h)}function Lg(e,t,s,o,h,d){var v=z(e),m=z(t),w=v?ri:De(e),b=m?ri:De(t);w=w==Vn?kt:w,b=b==Vn?kt:b;var I=w==kt,x=b==kt,$=w==b;if($&&un(e)){if(!un(t))return!1;v=!0,I=!1}if($&&!I)return d||(d=new Tt),v||nr(e)?Vu(e,t,s,o,h,d):id(e,t,w,s,o,h,d);if(!(s&N)){var k=I&&ie.call(e,"__wrapped__"),B=x&&ie.call(t,"__wrapped__");if(k||B){var Y=k?e.value():e,W=B?t.value():t;return d||(d=new Tt),h(Y,W,s,o,d)}}return $?(d||(d=new Tt),sd(e,t,s,o,h,d)):!1}function Ng(e){return ge(e)&&De(e)==wt}function zs(e,t,s,o){var h=s.length,d=h,v=!o;if(e==null)return!d;for(e=ue(e);h--;){var m=s[h];if(v&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++h<d;){m=s[h];var w=m[0],b=e[w],I=m[1];if(v&&m[2]){if(b===r&&!(w in e))return!1}else{var x=new Tt;if(o)var $=o(b,I,w,e,t,x);if(!($===r?Mr(I,b,N|H,o,x):$))return!1}}return!0}function cu(e){if(!fe(e)||dd(e))return!1;var t=Qt(e)?Nf:Eh;return t.test(In(e))}function Ug(e){return ge(e)&&He(e)==yr}function Og(e){return ge(e)&&De(e)==Et}function $g(e){return ge(e)&&qi(e.length)&&!!ce[He(e)]}function hu(e){return typeof e=="function"?e:e==null?Ye:typeof e=="object"?z(e)?du(e[0],e[1]):gu(e):Ol(e)}function Ks(e){if(!Hr(e))return Ff(e);var t=[];for(var s in ue(e))ie.call(e,s)&&s!="constructor"&&t.push(s);return t}function Dg(e){if(!fe(e))return md(e);var t=Hr(e),s=[];for(var o in e)o=="constructor"&&(t||!ie.call(e,o))||s.push(o);return s}function Ys(e,t){return e<t}function fu(e,t){var s=-1,o=ze(e)?C(e.length):[];return rn(e,function(h,d,v){o[++s]=t(h,d,v)}),o}function gu(e){var t=ca(e);return t.length==1&&t[0][2]?zu(t[0][0],t[0][1]):function(s){return s===e||zs(s,e,t)}}function du(e,t){return fa(e)&&qu(t)?zu(yt(e),t):function(s){var o=Ta(s,e);return o===r&&o===t?ya(s,e):Mr(t,o,N|H)}}function xi(e,t,s,o,h){e!==t&&Bs(t,function(d,v){if(h||(h=new Tt),fe(d))Mg(e,t,v,s,xi,o,h);else{var m=o?o(da(e,v),d,v+"",e,t,h):r;m===r&&(m=d),Ws(e,v,m)}},Ke)}function Mg(e,t,s,o,h,d,v){var m=da(e,s),w=da(t,s),b=v.get(w);if(b){Ws(e,s,b);return}var I=d?d(m,w,s+"",e,t,v):r,x=I===r;if(x){var $=z(w),k=!$&&un(w),B=!$&&!k&&nr(w);I=w,$||k||B?z(m)?I=m:pe(m)?I=qe(m):k?(x=!1,I=Au(w,!0)):B?(x=!1,I=bu(w,!0)):I=[]:Vr(w)||xn(w)?(I=m,xn(m)?I=Tl(m):(!fe(m)||Qt(m))&&(I=Qu(w))):x=!1}x&&(v.set(w,I),h(I,w,o,d,v),v.delete(w)),Ws(e,s,I)}function pu(e,t){var s=e.length;if(s)return t+=t<0?s:0,Gt(t,s)?e[t]:r}function _u(e,t,s){t.length?t=he(t,function(d){return z(d)?function(v){return bn(v,d.length===1?d[0]:d)}:d}):t=[Ye];var o=-1;t=he(t,tt(V()));var h=fu(e,function(d,v,m){var w=he(t,function(b){return b(d)});return{criteria:w,index:++o,value:d}});return cf(h,function(d,v){return Xg(d,v,s)})}function Fg(e,t){return vu(e,t,function(s,o){return ya(e,o)})}function vu(e,t,s){for(var o=-1,h=t.length,d={};++o<h;){var v=t[o],m=bn(e,v);s(m,v)&&Fr(d,an(v,e),m)}return d}function kg(e){return function(t){return bn(t,e)}}function Xs(e,t,s,o){var h=o?lf:Qn,d=-1,v=t.length,m=e;for(e===t&&(t=qe(t)),s&&(m=he(e,tt(s)));++d<v;)for(var w=0,b=t[d],I=s?s(b):b;(w=h(m,I,w,o))>-1;)m!==e&&wi.call(m,w,1),wi.call(e,w,1);return e}function mu(e,t){for(var s=e?t.length:0,o=s-1;s--;){var h=t[s];if(s==o||h!==d){var d=h;Gt(h)?wi.call(e,h,1):ea(e,h)}}return e}function Zs(e,t){return e+Ti(Jo()*(t-e+1))}function Hg(e,t,s,o){for(var h=-1,d=Se(Ci((t-e)/(s||1)),0),v=C(d);d--;)v[o?d:++h]=e,e+=s;return v}function Js(e,t){var s="";if(!e||t<1||t>ae)return s;do t%2&&(s+=e),t=Ti(t/2),t&&(e+=e);while(t);return s}function X(e,t){return pa(Ku(e,t,Ye),e+"")}function Wg(e){return tu(rr(e))}function Vg(e,t){var s=rr(e);return Hi(s,An(t,0,s.length))}function Fr(e,t,s,o){if(!fe(e))return e;t=an(t,e);for(var h=-1,d=t.length,v=d-1,m=e;m!=null&&++h<d;){var w=yt(t[h]),b=s;if(w==="__proto__"||w==="constructor"||w==="prototype")return e;if(h!=v){var I=m[w];b=o?o(I,w,m):r,b===r&&(b=fe(I)?I:Gt(t[h+1])?[]:{})}Or(m,w,b),m=m[w]}return e}var Su=yi?function(e,t){return yi.set(e,t),e}:Ye,Bg=Ei?function(e,t){return Ei(e,"toString",{configurable:!0,enumerable:!1,value:Aa(t),writable:!0})}:Ye;function Gg(e){return Hi(rr(e))}function ft(e,t,s){var o=-1,h=e.length;t<0&&(t=-t>h?0:h+t),s=s>h?h:s,s<0&&(s+=h),h=t>s?0:s-t>>>0,t>>>=0;for(var d=C(h);++o<h;)d[o]=e[o+t];return d}function Qg(e,t){var s;return rn(e,function(o,h,d){return s=t(o,h,d),!s}),!!s}function Li(e,t,s){var o=0,h=e==null?o:e.length;if(typeof t=="number"&&t===t&&h<=zc){for(;o<h;){var d=o+h>>>1,v=e[d];v!==null&&!rt(v)&&(s?v<=t:v<t)?o=d+1:h=d}return h}return js(e,t,Ye,s)}function js(e,t,s,o){var h=0,d=e==null?0:e.length;if(d===0)return 0;t=s(t);for(var v=t!==t,m=t===null,w=rt(t),b=t===r;h<d;){var I=Ti((h+d)/2),x=s(e[I]),$=x!==r,k=x===null,B=x===x,Y=rt(x);if(v)var W=o||B;else b?W=B&&(o||$):m?W=B&&$&&(o||!k):w?W=B&&$&&!k&&(o||!Y):k||Y?W=!1:W=o?x<=t:x<t;W?h=I+1:d=I}return $e(d,qc)}function wu(e,t){for(var s=-1,o=e.length,h=0,d=[];++s<o;){var v=e[s],m=t?t(v):v;if(!s||!Rt(m,w)){var w=m;d[h++]=v===0?0:v}}return d}function Eu(e){return typeof e=="number"?e:rt(e)?Jt:+e}function nt(e){if(typeof e=="string")return e;if(z(e))return he(e,nt)+"";if(rt(e))return jo?jo.call(e):"";var t=e+"";return t=="0"&&1/e==-ot?"-0":t}function sn(e,t,s){var o=-1,h=ci,d=e.length,v=!0,m=[],w=m;if(s)v=!1,h=Ps;else if(d>=u){var b=t?null:nd(e);if(b)return fi(b);v=!1,h=Pr,w=new Rn}else w=t?[]:m;e:for(;++o<d;){var I=e[o],x=t?t(I):I;if(I=s||I!==0?I:0,v&&x===x){for(var $=w.length;$--;)if(w[$]===x)continue e;t&&w.push(x),m.push(I)}else h(w,x,s)||(w!==m&&w.push(x),m.push(I))}return m}function ea(e,t){t=an(t,e);var s=-1,o=t.length;if(!o)return!0;for(;++s<o;){var h=yt(t[s]);if(h==="__proto__"&&!ie.call(e,"__proto__")||(h==="constructor"||h==="prototype")&&s<o-1)return!1}var d=Yu(e,t);return d==null||delete d[yt(gt(t))]}function Cu(e,t,s,o){return Fr(e,t,s(bn(e,t)),o)}function Ni(e,t,s,o){for(var h=e.length,d=o?h:-1;(o?d--:++d<h)&&t(e[d],d,e););return s?ft(e,o?0:d,o?d+1:h):ft(e,o?d+1:0,o?h:d)}function Tu(e,t){var s=e;return s instanceof j&&(s=s.value()),Is(t,function(o,h){return h.func.apply(h.thisArg,en([o],h.args))},s)}function ta(e,t,s){var o=e.length;if(o<2)return o?sn(e[0]):[];for(var h=-1,d=C(o);++h<o;)for(var v=e[h],m=-1;++m<o;)m!=h&&(d[h]=$r(d[h]||v,e[m],t,s));return sn(Le(d,1),t,s)}function yu(e,t,s){for(var o=-1,h=e.length,d=t.length,v={};++o<h;){var m=o<d?t[o]:r;s(v,e[o],m)}return v}function na(e){return pe(e)?e:[]}function ra(e){return typeof e=="function"?e:Ye}function an(e,t){return z(e)?e:fa(e,t)?[e]:ju(se(e))}var qg=X;function on(e,t,s){var o=e.length;return s=s===r?o:s,!t&&s>=o?e:ft(e,t,s)}var Ru=Uf||function(e){return xe.clearTimeout(e)};function Au(e,t){if(t)return e.slice();var s=e.length,o=zo?zo(s):new e.constructor(s);return e.copy(o),o}function ia(e){var t=new e.constructor(e.byteLength);return new mi(t).set(new mi(e)),t}function zg(e,t){var s=t?ia(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function Kg(e){var t=new e.constructor(e.source,uo.exec(e));return t.lastIndex=e.lastIndex,t}function Yg(e){return Ur?ue(Ur.call(e)):{}}function bu(e,t){var s=t?ia(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Pu(e,t){if(e!==t){var s=e!==r,o=e===null,h=e===e,d=rt(e),v=t!==r,m=t===null,w=t===t,b=rt(t);if(!m&&!b&&!d&&e>t||d&&v&&w&&!m&&!b||o&&v&&w||!s&&w||!h)return 1;if(!o&&!d&&!b&&e<t||b&&s&&h&&!o&&!d||m&&s&&h||!v&&h||!w)return-1}return 0}function Xg(e,t,s){for(var o=-1,h=e.criteria,d=t.criteria,v=h.length,m=s.length;++o<v;){var w=Pu(h[o],d[o]);if(w){if(o>=m)return w;var b=s[o];return w*(b=="desc"?-1:1)}}return e.index-t.index}function Iu(e,t,s,o){for(var h=-1,d=e.length,v=s.length,m=-1,w=t.length,b=Se(d-v,0),I=C(w+b),x=!o;++m<w;)I[m]=t[m];for(;++h<v;)(x||h<d)&&(I[s[h]]=e[h]);for(;b--;)I[m++]=e[h++];return I}function xu(e,t,s,o){for(var h=-1,d=e.length,v=-1,m=s.length,w=-1,b=t.length,I=Se(d-m,0),x=C(I+b),$=!o;++h<I;)x[h]=e[h];for(var k=h;++w<b;)x[k+w]=t[w];for(;++v<m;)($||h<d)&&(x[k+s[v]]=e[h++]);return x}function qe(e,t){var s=-1,o=e.length;for(t||(t=C(o));++s<o;)t[s]=e[s];return t}function Ot(e,t,s,o){var h=!s;s||(s={});for(var d=-1,v=t.length;++d<v;){var m=t[d],w=o?o(s[m],e[m],m,s,e):r;w===r&&(w=e[m]),h?Nt(s,m,w):Or(s,m,w)}return s}function Zg(e,t){return Ot(e,ha(e),t)}function Jg(e,t){return Ot(e,Bu(e),t)}function Ui(e,t){return function(s,o){var h=z(s)?nf:wg,d=t?t():{};return h(s,e,V(o,2),d)}}function jn(e){return X(function(t,s){var o=-1,h=s.length,d=h>1?s[h-1]:r,v=h>2?s[2]:r;for(d=e.length>3&&typeof d=="function"?(h--,d):r,v&&We(s[0],s[1],v)&&(d=h<3?r:d,h=1),t=ue(t);++o<h;){var m=s[o];m&&e(t,m,o,d)}return t})}function Lu(e,t){return function(s,o){if(s==null)return s;if(!ze(s))return e(s,o);for(var h=s.length,d=t?h:-1,v=ue(s);(t?d--:++d<h)&&o(v[d],d,v)!==!1;);return s}}function Nu(e){return function(t,s,o){for(var h=-1,d=ue(t),v=o(t),m=v.length;m--;){var w=v[e?m:++h];if(s(d[w],w,d)===!1)break}return t}}function jg(e,t,s){var o=t&G,h=kr(e);function d(){var v=this&&this!==xe&&this instanceof d?h:e;return v.apply(o?s:this,arguments)}return d}function Uu(e){return function(t){t=se(t);var s=qn(t)?Ct(t):r,o=s?s[0]:t.charAt(0),h=s?on(s,1).join(""):t.slice(1);return o[e]()+h}}function er(e){return function(t){return Is(Nl(Ll(t).replace(Vh,"")),e,"")}}function kr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var s=Jn(e.prototype),o=e.apply(s,t);return fe(o)?o:s}}function ed(e,t,s){var o=kr(e);function h(){for(var d=arguments.length,v=C(d),m=d,w=tr(h);m--;)v[m]=arguments[m];var b=d<3&&v[0]!==w&&v[d-1]!==w?[]:tn(v,w);if(d-=b.length,d<s)return Fu(e,t,Oi,h.placeholder,r,v,b,r,r,s-d);var I=this&&this!==xe&&this instanceof h?o:e;return je(I,this,v)}return h}function Ou(e){return function(t,s,o){var h=ue(t);if(!ze(t)){var d=V(s,3);t=Ae(t),s=function(m){return d(h[m],m,h)}}var v=e(t,s,o);return v>-1?h[d?t[v]:v]:r}}function $u(e){return Bt(function(t){var s=t.length,o=s,h=ct.prototype.thru;for(e&&t.reverse();o--;){var d=t[o];if(typeof d!="function")throw new lt(l);if(h&&!v&&Fi(d)=="wrapper")var v=new ct([],!0)}for(o=v?o:s;++o<s;){d=t[o];var m=Fi(d),w=m=="wrapper"?la(d):r;w&&ga(w[0])&&w[1]==(Te|Pe|Ie|ye)&&!w[4].length&&w[9]==1?v=v[Fi(w[0])].apply(v,w[3]):v=d.length==1&&ga(d)?v[m]():v.thru(d)}return function(){var b=arguments,I=b[0];if(v&&b.length==1&&z(I))return v.plant(I).value();for(var x=0,$=s?t[x].apply(this,b):I;++x<s;)$=t[x].call(this,$);return $}})}function Oi(e,t,s,o,h,d,v,m,w,b){var I=t&Te,x=t&G,$=t&re,k=t&(Pe|Qe),B=t&ve,Y=$?r:kr(e);function W(){for(var Z=arguments.length,ee=C(Z),it=Z;it--;)ee[it]=arguments[it];if(k)var Ve=tr(W),st=ff(ee,Ve);if(o&&(ee=Iu(ee,o,h,k)),d&&(ee=xu(ee,d,v,k)),Z-=st,k&&Z<b){var _e=tn(ee,Ve);return Fu(e,t,Oi,W.placeholder,s,ee,_e,m,w,b-Z)}var At=x?s:this,zt=$?At[e]:e;return Z=ee.length,m?ee=wd(ee,m):B&&Z>1&&ee.reverse(),I&&w<Z&&(ee.length=w),this&&this!==xe&&this instanceof W&&(zt=Y||kr(zt)),zt.apply(At,ee)}return W}function Du(e,t){return function(s,o){return Pg(s,e,t(o),{})}}function $i(e,t){return function(s,o){var h;if(s===r&&o===r)return t;if(s!==r&&(h=s),o!==r){if(h===r)return o;typeof s=="string"||typeof o=="string"?(s=nt(s),o=nt(o)):(s=Eu(s),o=Eu(o)),h=e(s,o)}return h}}function sa(e){return Bt(function(t){return t=he(t,tt(V())),X(function(s){var o=this;return e(t,function(h){return je(h,o,s)})})})}function Di(e,t){t=t===r?" ":nt(t);var s=t.length;if(s<2)return s?Js(t,e):t;var o=Js(t,Ci(e/zn(t)));return qn(t)?on(Ct(o),0,e).join(""):o.slice(0,e)}function td(e,t,s,o){var h=t&G,d=kr(e);function v(){for(var m=-1,w=arguments.length,b=-1,I=o.length,x=C(I+w),$=this&&this!==xe&&this instanceof v?d:e;++b<I;)x[b]=o[b];for(;w--;)x[b++]=arguments[++m];return je($,h?s:this,x)}return v}function Mu(e){return function(t,s,o){return o&&typeof o!="number"&&We(t,s,o)&&(s=o=r),t=qt(t),s===r?(s=t,t=0):s=qt(s),o=o===r?t<s?1:-1:qt(o),Hg(t,s,o,e)}}function Mi(e){return function(t,s){return typeof t=="string"&&typeof s=="string"||(t=dt(t),s=dt(s)),e(t,s)}}function Fu(e,t,s,o,h,d,v,m,w,b){var I=t&Pe,x=I?v:r,$=I?r:v,k=I?d:r,B=I?r:d;t|=I?Ie:Je,t&=~(I?Je:Ie),t&Ue||(t&=-4);var Y=[e,t,h,k,x,B,$,m,w,b],W=s.apply(r,Y);return ga(e)&&Xu(W,Y),W.placeholder=o,Zu(W,e,t)}function aa(e){var t=me[e];return function(s,o){if(s=dt(s),o=o==null?0:$e(K(o),292),o&&Zo(s)){var h=(se(s)+"e").split("e"),d=t(h[0]+"e"+(+h[1]+o));return h=(se(d)+"e").split("e"),+(h[0]+"e"+(+h[1]-o))}return t(s)}}var nd=Xn&&1/fi(new Xn([,-0]))[1]==ot?function(e){return new Xn(e)}:Ia;function ku(e){return function(t){var s=De(t);return s==wt?Ds(t):s==Et?Sf(t):hf(t,e(t))}}function Vt(e,t,s,o,h,d,v,m){var w=t&re;if(!w&&typeof e!="function")throw new lt(l);var b=o?o.length:0;if(b||(t&=-97,o=h=r),v=v===r?v:Se(K(v),0),m=m===r?m:K(m),b-=h?h.length:0,t&Je){var I=o,x=h;o=h=r}var $=w?r:la(e),k=[e,t,s,o,h,I,x,d,v,m];if($&&vd(k,$),e=k[0],t=k[1],s=k[2],o=k[3],h=k[4],m=k[9]=k[9]===r?w?0:e.length:Se(k[9]-b,0),!m&&t&(Pe|Qe)&&(t&=-25),!t||t==G)var B=jg(e,t,s);else t==Pe||t==Qe?B=ed(e,t,m):(t==Ie||t==(G|Ie))&&!h.length?B=td(e,t,s,o):B=Oi.apply(r,k);var Y=$?Su:Xu;return Zu(Y(B,k),e,t)}function Hu(e,t,s,o){return e===r||Rt(e,Yn[s])&&!ie.call(o,s)?t:e}function Wu(e,t,s,o,h,d){return fe(e)&&fe(t)&&(d.set(t,e),xi(e,t,r,Wu,d),d.delete(t)),e}function rd(e){return Vr(e)?r:e}function Vu(e,t,s,o,h,d){var v=s&N,m=e.length,w=t.length;if(m!=w&&!(v&&w>m))return!1;var b=d.get(e),I=d.get(t);if(b&&I)return b==t&&I==e;var x=-1,$=!0,k=s&H?new Rn:r;for(d.set(e,t),d.set(t,e);++x<m;){var B=e[x],Y=t[x];if(o)var W=v?o(Y,B,x,t,e,d):o(B,Y,x,e,t,d);if(W!==r){if(W)continue;$=!1;break}if(k){if(!xs(t,function(Z,ee){if(!Pr(k,ee)&&(B===Z||h(B,Z,s,o,d)))return k.push(ee)})){$=!1;break}}else if(!(B===Y||h(B,Y,s,o,d))){$=!1;break}}return d.delete(e),d.delete(t),$}function id(e,t,s,o,h,d,v){switch(s){case Bn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case br:return!(e.byteLength!=t.byteLength||!d(new mi(e),new mi(t)));case Er:case Cr:case Tr:return Rt(+e,+t);case ii:return e.name==t.name&&e.message==t.message;case yr:case Rr:return e==t+"";case wt:var m=Ds;case Et:var w=o&N;if(m||(m=fi),e.size!=t.size&&!w)return!1;var b=v.get(e);if(b)return b==t;o|=H,v.set(e,t);var I=Vu(m(e),m(t),o,h,d,v);return v.delete(e),I;case ai:if(Ur)return Ur.call(e)==Ur.call(t)}return!1}function sd(e,t,s,o,h,d){var v=s&N,m=oa(e),w=m.length,b=oa(t),I=b.length;if(w!=I&&!v)return!1;for(var x=w;x--;){var $=m[x];if(!(v?$ in t:ie.call(t,$)))return!1}var k=d.get(e),B=d.get(t);if(k&&B)return k==t&&B==e;var Y=!0;d.set(e,t),d.set(t,e);for(var W=v;++x<w;){$=m[x];var Z=e[$],ee=t[$];if(o)var it=v?o(ee,Z,$,t,e,d):o(Z,ee,$,e,t,d);if(!(it===r?Z===ee||h(Z,ee,s,o,d):it)){Y=!1;break}W||(W=$=="constructor")}if(Y&&!W){var Ve=e.constructor,st=t.constructor;Ve!=st&&"constructor"in e&&"constructor"in t&&!(typeof Ve=="function"&&Ve instanceof Ve&&typeof st=="function"&&st instanceof st)&&(Y=!1)}return d.delete(e),d.delete(t),Y}function Bt(e){return pa(Ku(e,r,rl),e+"")}function oa(e){return uu(e,Ae,ha)}function ua(e){return uu(e,Ke,Bu)}var la=yi?function(e){return yi.get(e)}:Ia;function Fi(e){for(var t=e.name+"",s=Zn[t],o=ie.call(Zn,t)?s.length:0;o--;){var h=s[o],d=h.func;if(d==null||d==e)return h.name}return t}function tr(e){var t=ie.call(f,"placeholder")?f:e;return t.placeholder}function V(){var e=f.iteratee||ba;return e=e===ba?hu:e,arguments.length?e(arguments[0],arguments[1]):e}function ki(e,t){var s=e.__data__;return gd(t)?s[typeof t=="string"?"string":"hash"]:s.map}function ca(e){for(var t=Ae(e),s=t.length;s--;){var o=t[s],h=e[o];t[s]=[o,h,qu(h)]}return t}function Pn(e,t){var s=_f(e,t);return cu(s)?s:r}function ad(e){var t=ie.call(e,Tn),s=e[Tn];try{e[Tn]=r;var o=!0}catch{}var h=_i.call(e);return o&&(t?e[Tn]=s:delete e[Tn]),h}var ha=Fs?function(e){return e==null?[]:(e=ue(e),jt(Fs(e),function(t){return Yo.call(e,t)}))}:xa,Bu=Fs?function(e){for(var t=[];e;)en(t,ha(e)),e=Si(e);return t}:xa,De=He;(ks&&De(new ks(new ArrayBuffer(1)))!=Bn||xr&&De(new xr)!=wt||Hs&&De(Hs.resolve())!=ro||Xn&&De(new Xn)!=Et||Lr&&De(new Lr)!=Ar)&&(De=function(e){var t=He(e),s=t==kt?e.constructor:r,o=s?In(s):"";if(o)switch(o){case Vf:return Bn;case Bf:return wt;case Gf:return ro;case Qf:return Et;case qf:return Ar}return t});function od(e,t,s){for(var o=-1,h=s.length;++o<h;){var d=s[o],v=d.size;switch(d.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=$e(t,e+v);break;case"takeRight":e=Se(e,t-v);break}}return{start:e,end:t}}function ud(e){var t=e.match(dh);return t?t[1].split(ph):[]}function Gu(e,t,s){t=an(t,e);for(var o=-1,h=t.length,d=!1;++o<h;){var v=yt(t[o]);if(!(d=e!=null&&s(e,v)))break;e=e[v]}return d||++o!=h?d:(h=e==null?0:e.length,!!h&&qi(h)&&Gt(v,h)&&(z(e)||xn(e)))}function ld(e){var t=e.length,s=new e.constructor(t);return t&&typeof e[0]=="string"&&ie.call(e,"index")&&(s.index=e.index,s.input=e.input),s}function Qu(e){return typeof e.constructor=="function"&&!Hr(e)?Jn(Si(e)):{}}function cd(e,t,s){var o=e.constructor;switch(t){case br:return ia(e);case Er:case Cr:return new o(+e);case Bn:return zg(e,s);case cs:case hs:case fs:case gs:case ds:case ps:case _s:case vs:case ms:return bu(e,s);case wt:return new o;case Tr:case Rr:return new o(e);case yr:return Kg(e);case Et:return new o;case ai:return Yg(e)}}function hd(e,t){var s=t.length;if(!s)return e;var o=s-1;return t[o]=(s>1?"& ":"")+t[o],t=t.join(s>2?", ":" "),e.replace(gh,`{
2
2
  /* [wrapped with `+t+`] */
3
- `)}function hd(e){return z(e)||xn(e)||!!(Xo&&e&&e[Xo])}function Gt(e,t){var s=typeof e;return t=t??ae,!!t&&(s=="number"||s!="symbol"&&yf.test(e))&&e>-1&&e%1==0&&e<t}function He(e,t,s){if(!he(s))return!1;var o=typeof t;return(o=="number"?ze(s)&&Gt(t,s.length):o=="string"&&t in s)?At(s[t],e):!1}function ha(e,t){if(z(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||rt(e)?!0:cf.test(e)||!lf.test(e)||t!=null&&e in ue(t)}function gd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ga(e){var t=Fi(e),s=h[t];if(typeof s!="function"||!(t in j.prototype))return!1;if(e===s)return!0;var o=la(s);return!!o&&e===o[0]}function dd(e){return!!qo&&qo in e}var pd=di?Qt:La;function Wr(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||Kn;return e===s}function qu(e){return e===e&&!he(e)}function zu(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==r||e in ue(s))}}function _d(e){var t=Gi(e,function(o){return s.size===T&&s.clear(),o}),s=t.cache;return t}function vd(e,t){var s=e[1],o=t[1],f=s|o,d=f<(G|re|Ce),v=o==Ce&&s==be||o==Ce&&s==Te&&e[7].length<=t[8]||o==(Ce|Te)&&t[7].length<=t[8]&&s==be;if(!(d||v))return e;o&G&&(e[2]=t[2],f|=s&G?0:Oe);var m=t[3];if(m){var w=e[3];e[3]=w?Iu(w,m,t[4]):m,e[4]=w?tn(e[3],A):t[4]}return m=t[5],m&&(w=e[5],e[5]=w?xu(w,m,t[6]):m,e[6]=w?tn(e[5],A):t[6]),m=t[7],m&&(e[7]=m),o&Ce&&(e[8]=e[8]==null?t[8]:Ue(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=f,e}function md(e){var t=[];if(e!=null)for(var s in ue(e))t.push(s);return t}function Sd(e){return _i.call(e)}function Ku(e,t,s){return t=Se(t===r?e.length-1:t,0),function(){for(var o=arguments,f=-1,d=Se(o.length-t,0),v=C(d);++f<d;)v[f]=o[t+f];f=-1;for(var m=C(t+1);++f<t;)m[f]=o[f];return m[t]=s(v),je(e,this,m)}}function Yu(e,t){return t.length<2?e:bn(e,ht(t,0,-1))}function wd(e,t){for(var s=e.length,o=Ue(t.length,s),f=qe(e);o--;){var d=t[o];e[o]=Gt(d,s)?f[d]:r}return e}function da(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xu=Ju(Su),Hr=Uh||function(e,t){return Ie.setTimeout(e,t)},pa=Ju(Bg);function Zu(e,t,s){var o=t+"";return pa(e,fd(o,Ed(ud(o),s)))}function Ju(e){var t=0,s=0;return function(){var o=kh(),f=St-(o-s);if(s=o,f>0){if(++t>=Zt)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Wi(e,t){var s=-1,o=e.length,f=o-1;for(t=t===r?o:t;++s<t;){var d=Zs(s,f),v=e[d];e[d]=e[s],e[s]=v}return e.length=t,e}var ju=_d(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ff,function(s,o,f,d){t.push(f?d.replace(mf,"$1"):o||s)}),t});function yt(e){if(typeof e=="string"||rt(e))return e;var t=e+"";return t=="0"&&1/e==-ot?"-0":t}function In(e){if(e!=null){try{return pi.call(e)}catch{}try{return e+""}catch{}}return""}function Ed(e,t){return et(Kc,function(s){var o="_."+s[0];t&s[1]&&!ci(e,o)&&e.push(o)}),e.sort()}function el(e){if(e instanceof j)return e.clone();var t=new ct(e.__wrapped__,e.__chain__);return t.__actions__=qe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Cd(e,t,s){(s?He(e,t,s):t===r)?t=1:t=Se(K(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var f=0,d=0,v=C(Ci(o/t));f<o;)v[d++]=ht(e,f,f+=t);return v}function Td(e){for(var t=-1,s=e==null?0:e.length,o=0,f=[];++t<s;){var d=e[t];d&&(f[o++]=d)}return f}function yd(){var e=arguments.length;if(!e)return[];for(var t=C(e-1),s=arguments[0],o=e;o--;)t[o-1]=arguments[o];return en(z(s)?qe(s):[s],xe(t,1))}var Ad=X(function(e,t){return pe(e)?Ur(e,xe(t,1,pe,!0)):[]}),Rd=X(function(e,t){var s=gt(t);return pe(s)&&(s=r),pe(e)?Ur(e,xe(t,1,pe,!0),V(s,2)):[]}),bd=X(function(e,t){var s=gt(t);return pe(s)&&(s=r),pe(e)?Ur(e,xe(t,1,pe,!0),r,s):[]});function Pd(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:K(t),ht(e,t<0?0:t,o)):[]}function Id(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:K(t),t=o-t,ht(e,0,t<0?0:t)):[]}function xd(e,t){return e&&e.length?Ni(e,V(t,3),!0,!0):[]}function Ld(e,t){return e&&e.length?Ni(e,V(t,3),!0):[]}function Nd(e,t,s,o){var f=e==null?0:e.length;return f?(s&&typeof s!="number"&&He(e,t,s)&&(s=0,o=f),yg(e,t,s,o)):[]}function tl(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=s==null?0:K(s);return f<0&&(f=Se(o+f,0)),fi(e,V(t,3),f)}function nl(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=o-1;return s!==r&&(f=K(s),f=s<0?Se(o+f,0):Ue(f,o-1)),fi(e,V(t,3),f,!0)}function rl(e){var t=e==null?0:e.length;return t?xe(e,1):[]}function Od(e){var t=e==null?0:e.length;return t?xe(e,ot):[]}function $d(e,t){var s=e==null?0:e.length;return s?(t=t===r?1:K(t),xe(e,t)):[]}function Ud(e){for(var t=-1,s=e==null?0:e.length,o={};++t<s;){var f=e[t];Nt(o,f[0],f[1])}return o}function il(e){return e&&e.length?e[0]:r}function Dd(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=s==null?0:K(s);return f<0&&(f=Se(o+f,0)),Gn(e,t,f)}function Md(e){var t=e==null?0:e.length;return t?ht(e,0,-1):[]}var Fd=X(function(e){var t=fe(e,na);return t.length&&t[0]===e[0]?qs(t):[]}),kd=X(function(e){var t=gt(e),s=fe(e,na);return t===gt(s)?t=r:s.pop(),s.length&&s[0]===e[0]?qs(s,V(t,2)):[]}),Wd=X(function(e){var t=gt(e),s=fe(e,na);return t=typeof t=="function"?t:r,t&&s.pop(),s.length&&s[0]===e[0]?qs(s,r,t):[]});function Hd(e,t){return e==null?"":Mh.call(e,t)}function gt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function Vd(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=o;return s!==r&&(f=K(s),f=f<0?Se(o+f,0):Ue(f,o-1)),t===t?Eh(e,t,f):fi(e,Fo,f,!0)}function Bd(e,t){return e&&e.length?pu(e,K(t)):r}var Gd=X(sl);function sl(e,t){return e&&e.length&&t&&t.length?Xs(e,t):e}function Qd(e,t,s){return e&&e.length&&t&&t.length?Xs(e,t,V(s,2)):e}function qd(e,t,s){return e&&e.length&&t&&t.length?Xs(e,t,r,s):e}var zd=Bt(function(e,t){var s=e==null?0:e.length,o=Vs(e,t);return mu(e,fe(t,function(f){return Gt(f,s)?+f:f}).sort(Pu)),o});function Kd(e,t){var s=[];if(!(e&&e.length))return s;var o=-1,f=[],d=e.length;for(t=V(t,3);++o<d;){var v=e[o];t(v,o,e)&&(s.push(v),f.push(o))}return mu(e,f),s}function _a(e){return e==null?e:Hh.call(e)}function Yd(e,t,s){var o=e==null?0:e.length;return o?(s&&typeof s!="number"&&He(e,t,s)?(t=0,s=o):(t=t==null?0:K(t),s=s===r?o:K(s)),ht(e,t,s)):[]}function Xd(e,t){return Li(e,t)}function Zd(e,t,s){return js(e,t,V(s,2))}function Jd(e,t){var s=e==null?0:e.length;if(s){var o=Li(e,t);if(o<s&&At(e[o],t))return o}return-1}function jd(e,t){return Li(e,t,!0)}function ep(e,t,s){return js(e,t,V(s,2),!0)}function tp(e,t){var s=e==null?0:e.length;if(s){var o=Li(e,t,!0)-1;if(At(e[o],t))return o}return-1}function np(e){return e&&e.length?wu(e):[]}function rp(e,t){return e&&e.length?wu(e,V(t,2)):[]}function ip(e){var t=e==null?0:e.length;return t?ht(e,1,t):[]}function sp(e,t,s){return e&&e.length?(t=s||t===r?1:K(t),ht(e,0,t<0?0:t)):[]}function ap(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:K(t),t=o-t,ht(e,t<0?0:t,o)):[]}function op(e,t){return e&&e.length?Ni(e,V(t,3),!1,!0):[]}function up(e,t){return e&&e.length?Ni(e,V(t,3)):[]}var lp=X(function(e){return sn(xe(e,1,pe,!0))}),cp=X(function(e){var t=gt(e);return pe(t)&&(t=r),sn(xe(e,1,pe,!0),V(t,2))}),fp=X(function(e){var t=gt(e);return t=typeof t=="function"?t:r,sn(xe(e,1,pe,!0),r,t)});function hp(e){return e&&e.length?sn(e):[]}function gp(e,t){return e&&e.length?sn(e,V(t,2)):[]}function dp(e,t){return t=typeof t=="function"?t:r,e&&e.length?sn(e,r,t):[]}function va(e){if(!(e&&e.length))return[];var t=0;return e=jt(e,function(s){if(pe(s))return t=Se(s.length,t),!0}),$s(t,function(s){return fe(e,Ls(s))})}function al(e,t){if(!(e&&e.length))return[];var s=va(e);return t==null?s:fe(s,function(o){return je(t,r,o)})}var pp=X(function(e,t){return pe(e)?Ur(e,t):[]}),_p=X(function(e){return ta(jt(e,pe))}),vp=X(function(e){var t=gt(e);return pe(t)&&(t=r),ta(jt(e,pe),V(t,2))}),mp=X(function(e){var t=gt(e);return t=typeof t=="function"?t:r,ta(jt(e,pe),r,t)}),Sp=X(va);function wp(e,t){return yu(e||[],t||[],$r)}function Ep(e,t){return yu(e||[],t||[],Fr)}var Cp=X(function(e){var t=e.length,s=t>1?e[t-1]:r;return s=typeof s=="function"?(e.pop(),s):r,al(e,s)});function ol(e){var t=h(e);return t.__chain__=!0,t}function Tp(e,t){return t(e),e}function Hi(e,t){return t(e)}var yp=Bt(function(e){var t=e.length,s=t?e[0]:0,o=this.__wrapped__,f=function(d){return Vs(d,e)};return t>1||this.__actions__.length||!(o instanceof j)||!Gt(s)?this.thru(f):(o=o.slice(s,+s+(t?1:0)),o.__actions__.push({func:Hi,args:[f],thisArg:r}),new ct(o,this.__chain__).thru(function(d){return t&&!d.length&&d.push(r),d}))});function Ap(){return ol(this)}function Rp(){return new ct(this.value(),this.__chain__)}function bp(){this.__values__===r&&(this.__values__=El(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Pp(){return this}function Ip(e){for(var t,s=this;s instanceof Ri;){var o=el(s);o.__index__=0,o.__values__=r,t?f.__wrapped__=o:t=o;var f=o;s=s.__wrapped__}return f.__wrapped__=e,t}function xp(){var e=this.__wrapped__;if(e instanceof j){var t=e;return this.__actions__.length&&(t=new j(this)),t=t.reverse(),t.__actions__.push({func:Hi,args:[_a],thisArg:r}),new ct(t,this.__chain__)}return this.thru(_a)}function Lp(){return Tu(this.__wrapped__,this.__actions__)}var Np=Oi(function(e,t,s){ie.call(e,s)?++e[s]:Nt(e,s,1)});function Op(e,t,s){var o=z(e)?Do:Tg;return s&&He(e,t,s)&&(t=r),o(e,V(t,3))}function $p(e,t){var s=z(e)?jt:au;return s(e,V(t,3))}var Up=$u(tl),Dp=$u(nl);function Mp(e,t){return xe(Vi(e,t),1)}function Fp(e,t){return xe(Vi(e,t),ot)}function kp(e,t,s){return s=s===r?1:K(s),xe(Vi(e,t),s)}function ul(e,t){var s=z(e)?et:rn;return s(e,V(t,3))}function ll(e,t){var s=z(e)?ih:su;return s(e,V(t,3))}var Wp=Oi(function(e,t,s){ie.call(e,s)?e[s].push(t):Nt(e,s,[t])});function Hp(e,t,s,o){e=ze(e)?e:nr(e),s=s&&!o?K(s):0;var f=e.length;return s<0&&(s=Se(f+s,0)),zi(e)?s<=f&&e.indexOf(t,s)>-1:!!f&&Gn(e,t,s)>-1}var Vp=X(function(e,t,s){var o=-1,f=typeof t=="function",d=ze(e)?C(e.length):[];return rn(e,function(v){d[++o]=f?je(t,v,s):Dr(v,t,s)}),d}),Bp=Oi(function(e,t,s){Nt(e,s,t)});function Vi(e,t){var s=z(e)?fe:hu;return s(e,V(t,3))}function Gp(e,t,s,o){return e==null?[]:(z(t)||(t=t==null?[]:[t]),s=o?r:s,z(s)||(s=s==null?[]:[s]),_u(e,t,s))}var Qp=Oi(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function qp(e,t,s){var o=z(e)?Is:Wo,f=arguments.length<3;return o(e,V(t,4),s,f,rn)}function zp(e,t,s){var o=z(e)?sh:Wo,f=arguments.length<3;return o(e,V(t,4),s,f,su)}function Kp(e,t){var s=z(e)?jt:au;return s(e,Qi(V(t,3)))}function Yp(e){var t=z(e)?tu:Hg;return t(e)}function Xp(e,t,s){(s?He(e,t,s):t===r)?t=1:t=K(t);var o=z(e)?mg:Vg;return o(e,t)}function Zp(e){var t=z(e)?Sg:Gg;return t(e)}function Jp(e){if(e==null)return 0;if(ze(e))return zi(e)?qn(e):e.length;var t=De(e);return t==wt||t==Et?e.size:Ks(e).length}function jp(e,t,s){var o=z(e)?xs:Qg;return s&&He(e,t,s)&&(t=r),o(e,V(t,3))}var e_=X(function(e,t){if(e==null)return[];var s=t.length;return s>1&&He(e,t[0],t[1])?t=[]:s>2&&He(t[0],t[1],t[2])&&(t=[t[0]]),_u(e,xe(t,1),[])}),Bi=$h||function(){return Ie.Date.now()};function t_(e,t){if(typeof t!="function")throw new lt(l);return e=K(e),function(){if(--e<1)return t.apply(this,arguments)}}function cl(e,t,s){return t=s?r:t,t=e&&t==null?e.length:t,Vt(e,Ce,r,r,r,r,t)}function fl(e,t){var s;if(typeof t!="function")throw new lt(l);return e=K(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=r),s}}var ma=X(function(e,t,s){var o=G;if(s.length){var f=tn(s,er(ma));o|=Pe}return Vt(e,o,t,s,f)}),hl=X(function(e,t,s){var o=G|re;if(s.length){var f=tn(s,er(hl));o|=Pe}return Vt(t,o,e,s,f)});function gl(e,t,s){t=s?r:t;var o=Vt(e,be,r,r,r,r,r,t);return o.placeholder=gl.placeholder,o}function dl(e,t,s){t=s?r:t;var o=Vt(e,Qe,r,r,r,r,r,t);return o.placeholder=dl.placeholder,o}function pl(e,t,s){var o,f,d,v,m,w,b=0,P=!1,x=!1,U=!0;if(typeof e!="function")throw new lt(l);t=dt(t)||0,he(s)&&(P=!!s.leading,x="maxWait"in s,d=x?Se(dt(s.maxWait)||0,t):d,U="trailing"in s?!!s.trailing:U);function M(_e){var Rt=o,zt=f;return o=f=r,b=_e,v=e.apply(zt,Rt),v}function B(_e){return b=_e,m=Hr(Z,t),P?M(_e):v}function Y(_e){var Rt=_e-w,zt=_e-b,Ul=t-Rt;return x?Ue(Ul,d-zt):Ul}function H(_e){var Rt=_e-w,zt=_e-b;return w===r||Rt>=t||Rt<0||x&&zt>=d}function Z(){var _e=Bi();if(H(_e))return ee(_e);m=Hr(Z,Y(_e))}function ee(_e){return m=r,U&&o?M(_e):(o=f=r,v)}function it(){m!==r&&Au(m),b=0,o=w=f=m=r}function Ve(){return m===r?v:ee(Bi())}function st(){var _e=Bi(),Rt=H(_e);if(o=arguments,f=this,w=_e,Rt){if(m===r)return B(w);if(x)return Au(m),m=Hr(Z,t),M(w)}return m===r&&(m=Hr(Z,t)),v}return st.cancel=it,st.flush=Ve,st}var n_=X(function(e,t){return iu(e,1,t)}),r_=X(function(e,t,s){return iu(e,dt(t)||0,s)});function i_(e){return Vt(e,ve)}function Gi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new lt(l);var s=function(){var o=arguments,f=t?t.apply(this,o):o[0],d=s.cache;if(d.has(f))return d.get(f);var v=e.apply(this,o);return s.cache=d.set(f,v)||d,v};return s.cache=new(Gi.Cache||Ht),s}Gi.Cache=Ht;function Qi(e){if(typeof e!="function")throw new lt(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function s_(e){return fl(2,e)}var a_=qg(function(e,t){t=t.length==1&&z(t[0])?fe(t[0],tt(V())):fe(xe(t,1),tt(V()));var s=t.length;return X(function(o){for(var f=-1,d=Ue(o.length,s);++f<d;)o[f]=t[f].call(this,o[f]);return je(e,this,o)})}),Sa=X(function(e,t){var s=tn(t,er(Sa));return Vt(e,Pe,r,t,s)}),_l=X(function(e,t){var s=tn(t,er(_l));return Vt(e,Je,r,t,s)}),o_=Bt(function(e,t){return Vt(e,Te,r,r,r,t)});function u_(e,t){if(typeof e!="function")throw new lt(l);return t=t===r?t:K(t),X(e,t)}function l_(e,t){if(typeof e!="function")throw new lt(l);return t=t==null?0:Se(K(t),0),X(function(s){var o=s[t],f=on(s,0,t);return o&&en(f,o),je(e,this,f)})}function c_(e,t,s){var o=!0,f=!0;if(typeof e!="function")throw new lt(l);return he(s)&&(o="leading"in s?!!s.leading:o,f="trailing"in s?!!s.trailing:f),pl(e,t,{leading:o,maxWait:t,trailing:f})}function f_(e){return cl(e,1)}function h_(e,t){return Sa(ra(t),e)}function g_(){if(!arguments.length)return[];var e=arguments[0];return z(e)?e:[e]}function d_(e){return ft(e,I)}function p_(e,t){return t=typeof t=="function"?t:r,ft(e,I,t)}function __(e){return ft(e,E|I)}function v_(e,t){return t=typeof t=="function"?t:r,ft(e,E|I,t)}function m_(e,t){return t==null||ru(e,t,Ae(t))}function At(e,t){return e===t||e!==e&&t!==t}var S_=Mi(Qs),w_=Mi(function(e,t){return e>=t}),xn=lu((function(){return arguments})())?lu:function(e){return ge(e)&&ie.call(e,"callee")&&!Yo.call(e,"callee")},z=C.isArray,E_=xo?tt(xo):Ig;function ze(e){return e!=null&&qi(e.length)&&!Qt(e)}function pe(e){return ge(e)&&ze(e)}function C_(e){return e===!0||e===!1||ge(e)&&We(e)==Er}var un=Dh||La,T_=Lo?tt(Lo):xg;function y_(e){return ge(e)&&e.nodeType===1&&!Vr(e)}function A_(e){if(e==null)return!0;if(ze(e)&&(z(e)||typeof e=="string"||typeof e.splice=="function"||un(e)||tr(e)||xn(e)))return!e.length;var t=De(e);if(t==wt||t==Et)return!e.size;if(Wr(e))return!Ks(e).length;for(var s in e)if(ie.call(e,s))return!1;return!0}function R_(e,t){return Mr(e,t)}function b_(e,t,s){s=typeof s=="function"?s:r;var o=s?s(e,t):r;return o===r?Mr(e,t,r,s):!!o}function wa(e){if(!ge(e))return!1;var t=We(e);return t==ii||t==Xc||typeof e.message=="string"&&typeof e.name=="string"&&!Vr(e)}function P_(e){return typeof e=="number"&&Zo(e)}function Qt(e){if(!he(e))return!1;var t=We(e);return t==si||t==no||t==Yc||t==Jc}function vl(e){return typeof e=="number"&&e==K(e)}function qi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ae}function he(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ge(e){return e!=null&&typeof e=="object"}var ml=No?tt(No):Ng;function I_(e,t){return e===t||zs(e,t,ca(t))}function x_(e,t,s){return s=typeof s=="function"?s:r,zs(e,t,ca(t),s)}function L_(e){return Sl(e)&&e!=+e}function N_(e){if(pd(e))throw new Q(c);return cu(e)}function O_(e){return e===null}function $_(e){return e==null}function Sl(e){return typeof e=="number"||ge(e)&&We(e)==Tr}function Vr(e){if(!ge(e)||We(e)!=kt)return!1;var t=Si(e);if(t===null)return!0;var s=ie.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&pi.call(s)==xh}var Ea=Oo?tt(Oo):Og;function U_(e){return vl(e)&&e>=-ae&&e<=ae}var wl=$o?tt($o):$g;function zi(e){return typeof e=="string"||!z(e)&&ge(e)&&We(e)==Ar}function rt(e){return typeof e=="symbol"||ge(e)&&We(e)==ai}var tr=Uo?tt(Uo):Ug;function D_(e){return e===r}function M_(e){return ge(e)&&De(e)==Rr}function F_(e){return ge(e)&&We(e)==ef}var k_=Mi(Ys),W_=Mi(function(e,t){return e<=t});function El(e){if(!e)return[];if(ze(e))return zi(e)?Ct(e):qe(e);if(Ir&&e[Ir])return mh(e[Ir]());var t=De(e),s=t==wt?Ds:t==Et?hi:nr;return s(e)}function qt(e){if(!e)return e===0?e:0;if(e=dt(e),e===ot||e===-ot){var t=e<0?-1:1;return t*ke}return e===e?e:0}function K(e){var t=qt(e),s=t%1;return t===t?s?t-s:t:0}function Cl(e){return e?Rn(K(e),0,Lt):0}function dt(e){if(typeof e=="number")return e;if(rt(e))return Jt;if(he(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=he(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ho(e);var s=Ef.test(e);return s||Tf.test(e)?th(e.slice(2),s?2:8):wf.test(e)?Jt:+e}function Tl(e){return $t(e,Ke(e))}function H_(e){return e?Rn(K(e),-ae,ae):e===0?e:0}function se(e){return e==null?"":nt(e)}var V_=Jn(function(e,t){if(Wr(t)||ze(t)){$t(t,Ae(t),e);return}for(var s in t)ie.call(t,s)&&$r(e,s,t[s])}),yl=Jn(function(e,t){$t(t,Ke(t),e)}),Al=Jn(function(e,t,s,o){$t(t,Ke(t),e,o)}),Ca=Jn(function(e,t,s,o){$t(t,Ae(t),e,o)}),B_=Bt(Vs);function G_(e,t){var s=Zn(e);return t==null?s:nu(s,t)}var Q_=X(function(e,t){e=ue(e);var s=-1,o=t.length,f=o>2?t[2]:r;for(f&&He(t[0],t[1],f)&&(o=1);++s<o;)for(var d=t[s],v=Ke(d),m=-1,w=v.length;++m<w;){var b=v[m],P=e[b];(P===r||At(P,Kn[b])&&!ie.call(e,b))&&(e[b]=d[b])}return e}),q_=X(function(e){return e.push(r,Hu),je(Rl,r,e)});function z_(e,t){return Mo(e,V(t,3),Ot)}function K_(e,t){return Mo(e,V(t,3),Gs)}function Y_(e,t){return e==null?e:Bs(e,V(t,3),Ke)}function X_(e,t){return e==null?e:ou(e,V(t,3),Ke)}function Z_(e,t){return e&&Ot(e,V(t,3))}function J_(e,t){return e&&Gs(e,V(t,3))}function j_(e){return e==null?[]:Ii(e,Ae(e))}function ev(e){return e==null?[]:Ii(e,Ke(e))}function Ta(e,t,s){var o=e==null?r:bn(e,t);return o===r?s:o}function tv(e,t){return e!=null&&Gu(e,t,Ag)}function ya(e,t){return e!=null&&Gu(e,t,Rg)}var nv=Du(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=_i.call(t)),e[t]=s},Ra(Ye)),rv=Du(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=_i.call(t)),ie.call(e,t)?e[t].push(s):e[t]=[s]},V),iv=X(Dr);function Ae(e){return ze(e)?eu(e):Ks(e)}function Ke(e){return ze(e)?eu(e,!0):Dg(e)}function sv(e,t){var s={};return t=V(t,3),Ot(e,function(o,f,d){Nt(s,t(o,f,d),o)}),s}function av(e,t){var s={};return t=V(t,3),Ot(e,function(o,f,d){Nt(s,f,t(o,f,d))}),s}var ov=Jn(function(e,t,s){xi(e,t,s)}),Rl=Jn(function(e,t,s,o){xi(e,t,s,o)}),uv=Bt(function(e,t){var s={};if(e==null)return s;var o=!1;t=fe(t,function(d){return d=an(d,e),o||(o=d.length>1),d}),$t(e,ua(e),s),o&&(s=ft(s,E|y|I,rd));for(var f=t.length;f--;)ea(s,t[f]);return s});function lv(e,t){return bl(e,Qi(V(t)))}var cv=Bt(function(e,t){return e==null?{}:Fg(e,t)});function bl(e,t){if(e==null)return{};var s=fe(ua(e),function(o){return[o]});return t=V(t),vu(e,s,function(o,f){return t(o,f[0])})}function fv(e,t,s){t=an(t,e);var o=-1,f=t.length;for(f||(f=1,e=r);++o<f;){var d=e==null?r:e[yt(t[o])];d===r&&(o=f,d=s),e=Qt(d)?d.call(e):d}return e}function hv(e,t,s){return e==null?e:Fr(e,t,s)}function gv(e,t,s,o){return o=typeof o=="function"?o:r,e==null?e:Fr(e,t,s,o)}var Pl=ku(Ae),Il=ku(Ke);function dv(e,t,s){var o=z(e),f=o||un(e)||tr(e);if(t=V(t,4),s==null){var d=e&&e.constructor;f?s=o?new d:[]:he(e)?s=Qt(d)?Zn(Si(e)):{}:s={}}return(f?et:Ot)(e,function(v,m,w){return t(s,v,m,w)}),s}function pv(e,t){return e==null?!0:ea(e,t)}function _v(e,t,s){return e==null?e:Cu(e,t,ra(s))}function vv(e,t,s,o){return o=typeof o=="function"?o:r,e==null?e:Cu(e,t,ra(s),o)}function nr(e){return e==null?[]:Us(e,Ae(e))}function mv(e){return e==null?[]:Us(e,Ke(e))}function Sv(e,t,s){return s===r&&(s=t,t=r),s!==r&&(s=dt(s),s=s===s?s:0),t!==r&&(t=dt(t),t=t===t?t:0),Rn(dt(e),t,s)}function wv(e,t,s){return t=qt(t),s===r?(s=t,t=0):s=qt(s),e=dt(e),bg(e,t,s)}function Ev(e,t,s){if(s&&typeof s!="boolean"&&He(e,t,s)&&(t=s=r),s===r&&(typeof t=="boolean"?(s=t,t=r):typeof e=="boolean"&&(s=e,e=r)),e===r&&t===r?(e=0,t=1):(e=qt(e),t===r?(t=e,e=0):t=qt(t)),e>t){var o=e;e=t,t=o}if(s||e%1||t%1){var f=Jo();return Ue(e+f*(t-e+eh("1e-"+((f+"").length-1))),t)}return Zs(e,t)}var Cv=jn(function(e,t,s){return t=t.toLowerCase(),e+(s?xl(t):t)});function xl(e){return Aa(se(e).toLowerCase())}function Ll(e){return e=se(e),e&&e.replace(Af,gh).replace(Gf,"")}function Tv(e,t,s){e=se(e),t=nt(t);var o=e.length;s=s===r?o:Rn(K(s),0,o);var f=s;return s-=t.length,s>=0&&e.slice(s,f)==t}function yv(e){return e=se(e),e&&af.test(e)?e.replace(so,dh):e}function Av(e){return e=se(e),e&&hf.test(e)?e.replace(Ss,"\\$&"):e}var Rv=jn(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),bv=jn(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),Pv=Ou("toLowerCase");function Iv(e,t,s){e=se(e),t=K(t);var o=t?qn(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Di(Ti(f),s)+e+Di(Ci(f),s)}function xv(e,t,s){e=se(e),t=K(t);var o=t?qn(e):0;return t&&o<t?e+Di(t-o,s):e}function Lv(e,t,s){e=se(e),t=K(t);var o=t?qn(e):0;return t&&o<t?Di(t-o,s)+e:e}function Nv(e,t,s){return s||t==null?t=0:t&&(t=+t),Wh(se(e).replace(ws,""),t||0)}function Ov(e,t,s){return(s?He(e,t,s):t===r)?t=1:t=K(t),Js(se(e),t)}function $v(){var e=arguments,t=se(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Uv=jn(function(e,t,s){return e+(s?"_":"")+t.toLowerCase()});function Dv(e,t,s){return s&&typeof s!="number"&&He(e,t,s)&&(t=s=r),s=s===r?Lt:s>>>0,s?(e=se(e),e&&(typeof t=="string"||t!=null&&!Ea(t))&&(t=nt(t),!t&&Qn(e))?on(Ct(e),0,s):e.split(t,s)):[]}var Mv=jn(function(e,t,s){return e+(s?" ":"")+Aa(t)});function Fv(e,t,s){return e=se(e),s=s==null?0:Rn(K(s),0,e.length),t=nt(t),e.slice(s,s+t.length)==t}function kv(e,t,s){var o=h.templateSettings;s&&He(e,t,s)&&(t=r),e=se(e),t=Ca({},t,o,Wu);var f=Ca({},t.imports,o.imports,Wu),d=Ae(f),v=Us(f,d);et(d,function(H){if(oo.test(H))throw new Q(p)});var m,w,b=0,P=t.interpolate||oi,x="__p += '",U=Ms((t.escape||oi).source+"|"+P.source+"|"+(P===ao?Sf:oi).source+"|"+(t.evaluate||oi).source+"|$","g"),M="//# sourceURL="+(ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yf+"]")+`
4
- `;e.replace(U,function(H,Z,ee,it,Ve,st){return ee||(ee=it),x+=e.slice(b,st).replace(Rf,ph),Z&&(m=!0,x+=`' +
3
+ `)}function fd(e){return z(e)||xn(e)||!!(Xo&&e&&e[Xo])}function Gt(e,t){var s=typeof e;return t=t??ae,!!t&&(s=="number"||s!="symbol"&&Th.test(e))&&e>-1&&e%1==0&&e<t}function We(e,t,s){if(!fe(s))return!1;var o=typeof t;return(o=="number"?ze(s)&&Gt(t,s.length):o=="string"&&t in s)?Rt(s[t],e):!1}function fa(e,t){if(z(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||rt(e)?!0:lh.test(e)||!uh.test(e)||t!=null&&e in ue(t)}function gd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ga(e){var t=Fi(e),s=f[t];if(typeof s!="function"||!(t in j.prototype))return!1;if(e===s)return!0;var o=la(s);return!!o&&e===o[0]}function dd(e){return!!qo&&qo in e}var pd=di?Qt:La;function Hr(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||Yn;return e===s}function qu(e){return e===e&&!fe(e)}function zu(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==r||e in ue(s))}}function _d(e){var t=Gi(e,function(o){return s.size===y&&s.clear(),o}),s=t.cache;return t}function vd(e,t){var s=e[1],o=t[1],h=s|o,d=h<(G|re|Te),v=o==Te&&s==Pe||o==Te&&s==ye&&e[7].length<=t[8]||o==(Te|ye)&&t[7].length<=t[8]&&s==Pe;if(!(d||v))return e;o&G&&(e[2]=t[2],h|=s&G?0:Ue);var m=t[3];if(m){var w=e[3];e[3]=w?Iu(w,m,t[4]):m,e[4]=w?tn(e[3],T):t[4]}return m=t[5],m&&(w=e[5],e[5]=w?xu(w,m,t[6]):m,e[6]=w?tn(e[5],T):t[6]),m=t[7],m&&(e[7]=m),o&Te&&(e[8]=e[8]==null?t[8]:$e(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=h,e}function md(e){var t=[];if(e!=null)for(var s in ue(e))t.push(s);return t}function Sd(e){return _i.call(e)}function Ku(e,t,s){return t=Se(t===r?e.length-1:t,0),function(){for(var o=arguments,h=-1,d=Se(o.length-t,0),v=C(d);++h<d;)v[h]=o[t+h];h=-1;for(var m=C(t+1);++h<t;)m[h]=o[h];return m[t]=s(v),je(e,this,m)}}function Yu(e,t){return t.length<2?e:bn(e,ft(t,0,-1))}function wd(e,t){for(var s=e.length,o=$e(t.length,s),h=qe(e);o--;){var d=t[o];e[o]=Gt(d,s)?h[d]:r}return e}function da(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xu=Ju(Su),Wr=$f||function(e,t){return xe.setTimeout(e,t)},pa=Ju(Bg);function Zu(e,t,s){var o=t+"";return pa(e,hd(o,Ed(ud(o),s)))}function Ju(e){var t=0,s=0;return function(){var o=kf(),h=St-(o-s);if(s=o,h>0){if(++t>=Zt)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Hi(e,t){var s=-1,o=e.length,h=o-1;for(t=t===r?o:t;++s<t;){var d=Zs(s,h),v=e[d];e[d]=e[s],e[s]=v}return e.length=t,e}var ju=_d(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ch,function(s,o,h,d){t.push(h?d.replace(vh,"$1"):o||s)}),t});function yt(e){if(typeof e=="string"||rt(e))return e;var t=e+"";return t=="0"&&1/e==-ot?"-0":t}function In(e){if(e!=null){try{return pi.call(e)}catch{}try{return e+""}catch{}}return""}function Ed(e,t){return et(Kc,function(s){var o="_."+s[0];t&s[1]&&!ci(e,o)&&e.push(o)}),e.sort()}function el(e){if(e instanceof j)return e.clone();var t=new ct(e.__wrapped__,e.__chain__);return t.__actions__=qe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Cd(e,t,s){(s?We(e,t,s):t===r)?t=1:t=Se(K(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var h=0,d=0,v=C(Ci(o/t));h<o;)v[d++]=ft(e,h,h+=t);return v}function Td(e){for(var t=-1,s=e==null?0:e.length,o=0,h=[];++t<s;){var d=e[t];d&&(h[o++]=d)}return h}function yd(){var e=arguments.length;if(!e)return[];for(var t=C(e-1),s=arguments[0],o=e;o--;)t[o-1]=arguments[o];return en(z(s)?qe(s):[s],Le(t,1))}var Rd=X(function(e,t){return pe(e)?$r(e,Le(t,1,pe,!0)):[]}),Ad=X(function(e,t){var s=gt(t);return pe(s)&&(s=r),pe(e)?$r(e,Le(t,1,pe,!0),V(s,2)):[]}),bd=X(function(e,t){var s=gt(t);return pe(s)&&(s=r),pe(e)?$r(e,Le(t,1,pe,!0),r,s):[]});function Pd(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:K(t),ft(e,t<0?0:t,o)):[]}function Id(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:K(t),t=o-t,ft(e,0,t<0?0:t)):[]}function xd(e,t){return e&&e.length?Ni(e,V(t,3),!0,!0):[]}function Ld(e,t){return e&&e.length?Ni(e,V(t,3),!0):[]}function Nd(e,t,s,o){var h=e==null?0:e.length;return h?(s&&typeof s!="number"&&We(e,t,s)&&(s=0,o=h),yg(e,t,s,o)):[]}function tl(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var h=s==null?0:K(s);return h<0&&(h=Se(o+h,0)),hi(e,V(t,3),h)}function nl(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var h=o-1;return s!==r&&(h=K(s),h=s<0?Se(o+h,0):$e(h,o-1)),hi(e,V(t,3),h,!0)}function rl(e){var t=e==null?0:e.length;return t?Le(e,1):[]}function Ud(e){var t=e==null?0:e.length;return t?Le(e,ot):[]}function Od(e,t){var s=e==null?0:e.length;return s?(t=t===r?1:K(t),Le(e,t)):[]}function $d(e){for(var t=-1,s=e==null?0:e.length,o={};++t<s;){var h=e[t];Nt(o,h[0],h[1])}return o}function il(e){return e&&e.length?e[0]:r}function Dd(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var h=s==null?0:K(s);return h<0&&(h=Se(o+h,0)),Qn(e,t,h)}function Md(e){var t=e==null?0:e.length;return t?ft(e,0,-1):[]}var Fd=X(function(e){var t=he(e,na);return t.length&&t[0]===e[0]?qs(t):[]}),kd=X(function(e){var t=gt(e),s=he(e,na);return t===gt(s)?t=r:s.pop(),s.length&&s[0]===e[0]?qs(s,V(t,2)):[]}),Hd=X(function(e){var t=gt(e),s=he(e,na);return t=typeof t=="function"?t:r,t&&s.pop(),s.length&&s[0]===e[0]?qs(s,r,t):[]});function Wd(e,t){return e==null?"":Mf.call(e,t)}function gt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function Vd(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var h=o;return s!==r&&(h=K(s),h=h<0?Se(o+h,0):$e(h,o-1)),t===t?Ef(e,t,h):hi(e,Fo,h,!0)}function Bd(e,t){return e&&e.length?pu(e,K(t)):r}var Gd=X(sl);function sl(e,t){return e&&e.length&&t&&t.length?Xs(e,t):e}function Qd(e,t,s){return e&&e.length&&t&&t.length?Xs(e,t,V(s,2)):e}function qd(e,t,s){return e&&e.length&&t&&t.length?Xs(e,t,r,s):e}var zd=Bt(function(e,t){var s=e==null?0:e.length,o=Vs(e,t);return mu(e,he(t,function(h){return Gt(h,s)?+h:h}).sort(Pu)),o});function Kd(e,t){var s=[];if(!(e&&e.length))return s;var o=-1,h=[],d=e.length;for(t=V(t,3);++o<d;){var v=e[o];t(v,o,e)&&(s.push(v),h.push(o))}return mu(e,h),s}function _a(e){return e==null?e:Wf.call(e)}function Yd(e,t,s){var o=e==null?0:e.length;return o?(s&&typeof s!="number"&&We(e,t,s)?(t=0,s=o):(t=t==null?0:K(t),s=s===r?o:K(s)),ft(e,t,s)):[]}function Xd(e,t){return Li(e,t)}function Zd(e,t,s){return js(e,t,V(s,2))}function Jd(e,t){var s=e==null?0:e.length;if(s){var o=Li(e,t);if(o<s&&Rt(e[o],t))return o}return-1}function jd(e,t){return Li(e,t,!0)}function ep(e,t,s){return js(e,t,V(s,2),!0)}function tp(e,t){var s=e==null?0:e.length;if(s){var o=Li(e,t,!0)-1;if(Rt(e[o],t))return o}return-1}function np(e){return e&&e.length?wu(e):[]}function rp(e,t){return e&&e.length?wu(e,V(t,2)):[]}function ip(e){var t=e==null?0:e.length;return t?ft(e,1,t):[]}function sp(e,t,s){return e&&e.length?(t=s||t===r?1:K(t),ft(e,0,t<0?0:t)):[]}function ap(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:K(t),t=o-t,ft(e,t<0?0:t,o)):[]}function op(e,t){return e&&e.length?Ni(e,V(t,3),!1,!0):[]}function up(e,t){return e&&e.length?Ni(e,V(t,3)):[]}var lp=X(function(e){return sn(Le(e,1,pe,!0))}),cp=X(function(e){var t=gt(e);return pe(t)&&(t=r),sn(Le(e,1,pe,!0),V(t,2))}),hp=X(function(e){var t=gt(e);return t=typeof t=="function"?t:r,sn(Le(e,1,pe,!0),r,t)});function fp(e){return e&&e.length?sn(e):[]}function gp(e,t){return e&&e.length?sn(e,V(t,2)):[]}function dp(e,t){return t=typeof t=="function"?t:r,e&&e.length?sn(e,r,t):[]}function va(e){if(!(e&&e.length))return[];var t=0;return e=jt(e,function(s){if(pe(s))return t=Se(s.length,t),!0}),Os(t,function(s){return he(e,Ls(s))})}function al(e,t){if(!(e&&e.length))return[];var s=va(e);return t==null?s:he(s,function(o){return je(t,r,o)})}var pp=X(function(e,t){return pe(e)?$r(e,t):[]}),_p=X(function(e){return ta(jt(e,pe))}),vp=X(function(e){var t=gt(e);return pe(t)&&(t=r),ta(jt(e,pe),V(t,2))}),mp=X(function(e){var t=gt(e);return t=typeof t=="function"?t:r,ta(jt(e,pe),r,t)}),Sp=X(va);function wp(e,t){return yu(e||[],t||[],Or)}function Ep(e,t){return yu(e||[],t||[],Fr)}var Cp=X(function(e){var t=e.length,s=t>1?e[t-1]:r;return s=typeof s=="function"?(e.pop(),s):r,al(e,s)});function ol(e){var t=f(e);return t.__chain__=!0,t}function Tp(e,t){return t(e),e}function Wi(e,t){return t(e)}var yp=Bt(function(e){var t=e.length,s=t?e[0]:0,o=this.__wrapped__,h=function(d){return Vs(d,e)};return t>1||this.__actions__.length||!(o instanceof j)||!Gt(s)?this.thru(h):(o=o.slice(s,+s+(t?1:0)),o.__actions__.push({func:Wi,args:[h],thisArg:r}),new ct(o,this.__chain__).thru(function(d){return t&&!d.length&&d.push(r),d}))});function Rp(){return ol(this)}function Ap(){return new ct(this.value(),this.__chain__)}function bp(){this.__values__===r&&(this.__values__=El(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Pp(){return this}function Ip(e){for(var t,s=this;s instanceof Ai;){var o=el(s);o.__index__=0,o.__values__=r,t?h.__wrapped__=o:t=o;var h=o;s=s.__wrapped__}return h.__wrapped__=e,t}function xp(){var e=this.__wrapped__;if(e instanceof j){var t=e;return this.__actions__.length&&(t=new j(this)),t=t.reverse(),t.__actions__.push({func:Wi,args:[_a],thisArg:r}),new ct(t,this.__chain__)}return this.thru(_a)}function Lp(){return Tu(this.__wrapped__,this.__actions__)}var Np=Ui(function(e,t,s){ie.call(e,s)?++e[s]:Nt(e,s,1)});function Up(e,t,s){var o=z(e)?Do:Tg;return s&&We(e,t,s)&&(t=r),o(e,V(t,3))}function Op(e,t){var s=z(e)?jt:au;return s(e,V(t,3))}var $p=Ou(tl),Dp=Ou(nl);function Mp(e,t){return Le(Vi(e,t),1)}function Fp(e,t){return Le(Vi(e,t),ot)}function kp(e,t,s){return s=s===r?1:K(s),Le(Vi(e,t),s)}function ul(e,t){var s=z(e)?et:rn;return s(e,V(t,3))}function ll(e,t){var s=z(e)?rf:su;return s(e,V(t,3))}var Hp=Ui(function(e,t,s){ie.call(e,s)?e[s].push(t):Nt(e,s,[t])});function Wp(e,t,s,o){e=ze(e)?e:rr(e),s=s&&!o?K(s):0;var h=e.length;return s<0&&(s=Se(h+s,0)),zi(e)?s<=h&&e.indexOf(t,s)>-1:!!h&&Qn(e,t,s)>-1}var Vp=X(function(e,t,s){var o=-1,h=typeof t=="function",d=ze(e)?C(e.length):[];return rn(e,function(v){d[++o]=h?je(t,v,s):Dr(v,t,s)}),d}),Bp=Ui(function(e,t,s){Nt(e,s,t)});function Vi(e,t){var s=z(e)?he:fu;return s(e,V(t,3))}function Gp(e,t,s,o){return e==null?[]:(z(t)||(t=t==null?[]:[t]),s=o?r:s,z(s)||(s=s==null?[]:[s]),_u(e,t,s))}var Qp=Ui(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function qp(e,t,s){var o=z(e)?Is:Ho,h=arguments.length<3;return o(e,V(t,4),s,h,rn)}function zp(e,t,s){var o=z(e)?sf:Ho,h=arguments.length<3;return o(e,V(t,4),s,h,su)}function Kp(e,t){var s=z(e)?jt:au;return s(e,Qi(V(t,3)))}function Yp(e){var t=z(e)?tu:Wg;return t(e)}function Xp(e,t,s){(s?We(e,t,s):t===r)?t=1:t=K(t);var o=z(e)?mg:Vg;return o(e,t)}function Zp(e){var t=z(e)?Sg:Gg;return t(e)}function Jp(e){if(e==null)return 0;if(ze(e))return zi(e)?zn(e):e.length;var t=De(e);return t==wt||t==Et?e.size:Ks(e).length}function jp(e,t,s){var o=z(e)?xs:Qg;return s&&We(e,t,s)&&(t=r),o(e,V(t,3))}var e_=X(function(e,t){if(e==null)return[];var s=t.length;return s>1&&We(e,t[0],t[1])?t=[]:s>2&&We(t[0],t[1],t[2])&&(t=[t[0]]),_u(e,Le(t,1),[])}),Bi=Of||function(){return xe.Date.now()};function t_(e,t){if(typeof t!="function")throw new lt(l);return e=K(e),function(){if(--e<1)return t.apply(this,arguments)}}function cl(e,t,s){return t=s?r:t,t=e&&t==null?e.length:t,Vt(e,Te,r,r,r,r,t)}function hl(e,t){var s;if(typeof t!="function")throw new lt(l);return e=K(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=r),s}}var ma=X(function(e,t,s){var o=G;if(s.length){var h=tn(s,tr(ma));o|=Ie}return Vt(e,o,t,s,h)}),fl=X(function(e,t,s){var o=G|re;if(s.length){var h=tn(s,tr(fl));o|=Ie}return Vt(t,o,e,s,h)});function gl(e,t,s){t=s?r:t;var o=Vt(e,Pe,r,r,r,r,r,t);return o.placeholder=gl.placeholder,o}function dl(e,t,s){t=s?r:t;var o=Vt(e,Qe,r,r,r,r,r,t);return o.placeholder=dl.placeholder,o}function pl(e,t,s){var o,h,d,v,m,w,b=0,I=!1,x=!1,$=!0;if(typeof e!="function")throw new lt(l);t=dt(t)||0,fe(s)&&(I=!!s.leading,x="maxWait"in s,d=x?Se(dt(s.maxWait)||0,t):d,$="trailing"in s?!!s.trailing:$);function k(_e){var At=o,zt=h;return o=h=r,b=_e,v=e.apply(zt,At),v}function B(_e){return b=_e,m=Wr(Z,t),I?k(_e):v}function Y(_e){var At=_e-w,zt=_e-b,$l=t-At;return x?$e($l,d-zt):$l}function W(_e){var At=_e-w,zt=_e-b;return w===r||At>=t||At<0||x&&zt>=d}function Z(){var _e=Bi();if(W(_e))return ee(_e);m=Wr(Z,Y(_e))}function ee(_e){return m=r,$&&o?k(_e):(o=h=r,v)}function it(){m!==r&&Ru(m),b=0,o=w=h=m=r}function Ve(){return m===r?v:ee(Bi())}function st(){var _e=Bi(),At=W(_e);if(o=arguments,h=this,w=_e,At){if(m===r)return B(w);if(x)return Ru(m),m=Wr(Z,t),k(w)}return m===r&&(m=Wr(Z,t)),v}return st.cancel=it,st.flush=Ve,st}var n_=X(function(e,t){return iu(e,1,t)}),r_=X(function(e,t,s){return iu(e,dt(t)||0,s)});function i_(e){return Vt(e,ve)}function Gi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new lt(l);var s=function(){var o=arguments,h=t?t.apply(this,o):o[0],d=s.cache;if(d.has(h))return d.get(h);var v=e.apply(this,o);return s.cache=d.set(h,v)||d,v};return s.cache=new(Gi.Cache||Wt),s}Gi.Cache=Wt;function Qi(e){if(typeof e!="function")throw new lt(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function s_(e){return hl(2,e)}var a_=qg(function(e,t){t=t.length==1&&z(t[0])?he(t[0],tt(V())):he(Le(t,1),tt(V()));var s=t.length;return X(function(o){for(var h=-1,d=$e(o.length,s);++h<d;)o[h]=t[h].call(this,o[h]);return je(e,this,o)})}),Sa=X(function(e,t){var s=tn(t,tr(Sa));return Vt(e,Ie,r,t,s)}),_l=X(function(e,t){var s=tn(t,tr(_l));return Vt(e,Je,r,t,s)}),o_=Bt(function(e,t){return Vt(e,ye,r,r,r,t)});function u_(e,t){if(typeof e!="function")throw new lt(l);return t=t===r?t:K(t),X(e,t)}function l_(e,t){if(typeof e!="function")throw new lt(l);return t=t==null?0:Se(K(t),0),X(function(s){var o=s[t],h=on(s,0,t);return o&&en(h,o),je(e,this,h)})}function c_(e,t,s){var o=!0,h=!0;if(typeof e!="function")throw new lt(l);return fe(s)&&(o="leading"in s?!!s.leading:o,h="trailing"in s?!!s.trailing:h),pl(e,t,{leading:o,maxWait:t,trailing:h})}function h_(e){return cl(e,1)}function f_(e,t){return Sa(ra(t),e)}function g_(){if(!arguments.length)return[];var e=arguments[0];return z(e)?e:[e]}function d_(e){return ht(e,P)}function p_(e,t){return t=typeof t=="function"?t:r,ht(e,P,t)}function __(e){return ht(e,E|P)}function v_(e,t){return t=typeof t=="function"?t:r,ht(e,E|P,t)}function m_(e,t){return t==null||ru(e,t,Ae(t))}function Rt(e,t){return e===t||e!==e&&t!==t}var S_=Mi(Qs),w_=Mi(function(e,t){return e>=t}),xn=lu((function(){return arguments})())?lu:function(e){return ge(e)&&ie.call(e,"callee")&&!Yo.call(e,"callee")},z=C.isArray,E_=xo?tt(xo):Ig;function ze(e){return e!=null&&qi(e.length)&&!Qt(e)}function pe(e){return ge(e)&&ze(e)}function C_(e){return e===!0||e===!1||ge(e)&&He(e)==Er}var un=Df||La,T_=Lo?tt(Lo):xg;function y_(e){return ge(e)&&e.nodeType===1&&!Vr(e)}function R_(e){if(e==null)return!0;if(ze(e)&&(z(e)||typeof e=="string"||typeof e.splice=="function"||un(e)||nr(e)||xn(e)))return!e.length;var t=De(e);if(t==wt||t==Et)return!e.size;if(Hr(e))return!Ks(e).length;for(var s in e)if(ie.call(e,s))return!1;return!0}function A_(e,t){return Mr(e,t)}function b_(e,t,s){s=typeof s=="function"?s:r;var o=s?s(e,t):r;return o===r?Mr(e,t,r,s):!!o}function wa(e){if(!ge(e))return!1;var t=He(e);return t==ii||t==Xc||typeof e.message=="string"&&typeof e.name=="string"&&!Vr(e)}function P_(e){return typeof e=="number"&&Zo(e)}function Qt(e){if(!fe(e))return!1;var t=He(e);return t==si||t==no||t==Yc||t==Jc}function vl(e){return typeof e=="number"&&e==K(e)}function qi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ae}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ge(e){return e!=null&&typeof e=="object"}var ml=No?tt(No):Ng;function I_(e,t){return e===t||zs(e,t,ca(t))}function x_(e,t,s){return s=typeof s=="function"?s:r,zs(e,t,ca(t),s)}function L_(e){return Sl(e)&&e!=+e}function N_(e){if(pd(e))throw new Q(c);return cu(e)}function U_(e){return e===null}function O_(e){return e==null}function Sl(e){return typeof e=="number"||ge(e)&&He(e)==Tr}function Vr(e){if(!ge(e)||He(e)!=kt)return!1;var t=Si(e);if(t===null)return!0;var s=ie.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&pi.call(s)==xf}var Ea=Uo?tt(Uo):Ug;function $_(e){return vl(e)&&e>=-ae&&e<=ae}var wl=Oo?tt(Oo):Og;function zi(e){return typeof e=="string"||!z(e)&&ge(e)&&He(e)==Rr}function rt(e){return typeof e=="symbol"||ge(e)&&He(e)==ai}var nr=$o?tt($o):$g;function D_(e){return e===r}function M_(e){return ge(e)&&De(e)==Ar}function F_(e){return ge(e)&&He(e)==eh}var k_=Mi(Ys),H_=Mi(function(e,t){return e<=t});function El(e){if(!e)return[];if(ze(e))return zi(e)?Ct(e):qe(e);if(Ir&&e[Ir])return mf(e[Ir]());var t=De(e),s=t==wt?Ds:t==Et?fi:rr;return s(e)}function qt(e){if(!e)return e===0?e:0;if(e=dt(e),e===ot||e===-ot){var t=e<0?-1:1;return t*ke}return e===e?e:0}function K(e){var t=qt(e),s=t%1;return t===t?s?t-s:t:0}function Cl(e){return e?An(K(e),0,Lt):0}function dt(e){if(typeof e=="number")return e;if(rt(e))return Jt;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Wo(e);var s=wh.test(e);return s||Ch.test(e)?ef(e.slice(2),s?2:8):Sh.test(e)?Jt:+e}function Tl(e){return Ot(e,Ke(e))}function W_(e){return e?An(K(e),-ae,ae):e===0?e:0}function se(e){return e==null?"":nt(e)}var V_=jn(function(e,t){if(Hr(t)||ze(t)){Ot(t,Ae(t),e);return}for(var s in t)ie.call(t,s)&&Or(e,s,t[s])}),yl=jn(function(e,t){Ot(t,Ke(t),e)}),Rl=jn(function(e,t,s,o){Ot(t,Ke(t),e,o)}),Ca=jn(function(e,t,s,o){Ot(t,Ae(t),e,o)}),B_=Bt(Vs);function G_(e,t){var s=Jn(e);return t==null?s:nu(s,t)}var Q_=X(function(e,t){e=ue(e);var s=-1,o=t.length,h=o>2?t[2]:r;for(h&&We(t[0],t[1],h)&&(o=1);++s<o;)for(var d=t[s],v=Ke(d),m=-1,w=v.length;++m<w;){var b=v[m],I=e[b];(I===r||Rt(I,Yn[b])&&!ie.call(e,b))&&(e[b]=d[b])}return e}),q_=X(function(e){return e.push(r,Wu),je(Al,r,e)});function z_(e,t){return Mo(e,V(t,3),Ut)}function K_(e,t){return Mo(e,V(t,3),Gs)}function Y_(e,t){return e==null?e:Bs(e,V(t,3),Ke)}function X_(e,t){return e==null?e:ou(e,V(t,3),Ke)}function Z_(e,t){return e&&Ut(e,V(t,3))}function J_(e,t){return e&&Gs(e,V(t,3))}function j_(e){return e==null?[]:Ii(e,Ae(e))}function ev(e){return e==null?[]:Ii(e,Ke(e))}function Ta(e,t,s){var o=e==null?r:bn(e,t);return o===r?s:o}function tv(e,t){return e!=null&&Gu(e,t,Rg)}function ya(e,t){return e!=null&&Gu(e,t,Ag)}var nv=Du(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=_i.call(t)),e[t]=s},Aa(Ye)),rv=Du(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=_i.call(t)),ie.call(e,t)?e[t].push(s):e[t]=[s]},V),iv=X(Dr);function Ae(e){return ze(e)?eu(e):Ks(e)}function Ke(e){return ze(e)?eu(e,!0):Dg(e)}function sv(e,t){var s={};return t=V(t,3),Ut(e,function(o,h,d){Nt(s,t(o,h,d),o)}),s}function av(e,t){var s={};return t=V(t,3),Ut(e,function(o,h,d){Nt(s,h,t(o,h,d))}),s}var ov=jn(function(e,t,s){xi(e,t,s)}),Al=jn(function(e,t,s,o){xi(e,t,s,o)}),uv=Bt(function(e,t){var s={};if(e==null)return s;var o=!1;t=he(t,function(d){return d=an(d,e),o||(o=d.length>1),d}),Ot(e,ua(e),s),o&&(s=ht(s,E|R|P,rd));for(var h=t.length;h--;)ea(s,t[h]);return s});function lv(e,t){return bl(e,Qi(V(t)))}var cv=Bt(function(e,t){return e==null?{}:Fg(e,t)});function bl(e,t){if(e==null)return{};var s=he(ua(e),function(o){return[o]});return t=V(t),vu(e,s,function(o,h){return t(o,h[0])})}function hv(e,t,s){t=an(t,e);var o=-1,h=t.length;for(h||(h=1,e=r);++o<h;){var d=e==null?r:e[yt(t[o])];d===r&&(o=h,d=s),e=Qt(d)?d.call(e):d}return e}function fv(e,t,s){return e==null?e:Fr(e,t,s)}function gv(e,t,s,o){return o=typeof o=="function"?o:r,e==null?e:Fr(e,t,s,o)}var Pl=ku(Ae),Il=ku(Ke);function dv(e,t,s){var o=z(e),h=o||un(e)||nr(e);if(t=V(t,4),s==null){var d=e&&e.constructor;h?s=o?new d:[]:fe(e)?s=Qt(d)?Jn(Si(e)):{}:s={}}return(h?et:Ut)(e,function(v,m,w){return t(s,v,m,w)}),s}function pv(e,t){return e==null?!0:ea(e,t)}function _v(e,t,s){return e==null?e:Cu(e,t,ra(s))}function vv(e,t,s,o){return o=typeof o=="function"?o:r,e==null?e:Cu(e,t,ra(s),o)}function rr(e){return e==null?[]:$s(e,Ae(e))}function mv(e){return e==null?[]:$s(e,Ke(e))}function Sv(e,t,s){return s===r&&(s=t,t=r),s!==r&&(s=dt(s),s=s===s?s:0),t!==r&&(t=dt(t),t=t===t?t:0),An(dt(e),t,s)}function wv(e,t,s){return t=qt(t),s===r?(s=t,t=0):s=qt(s),e=dt(e),bg(e,t,s)}function Ev(e,t,s){if(s&&typeof s!="boolean"&&We(e,t,s)&&(t=s=r),s===r&&(typeof t=="boolean"?(s=t,t=r):typeof e=="boolean"&&(s=e,e=r)),e===r&&t===r?(e=0,t=1):(e=qt(e),t===r?(t=e,e=0):t=qt(t)),e>t){var o=e;e=t,t=o}if(s||e%1||t%1){var h=Jo();return $e(e+h*(t-e+jh("1e-"+((h+"").length-1))),t)}return Zs(e,t)}var Cv=er(function(e,t,s){return t=t.toLowerCase(),e+(s?xl(t):t)});function xl(e){return Ra(se(e).toLowerCase())}function Ll(e){return e=se(e),e&&e.replace(yh,gf).replace(Bh,"")}function Tv(e,t,s){e=se(e),t=nt(t);var o=e.length;s=s===r?o:An(K(s),0,o);var h=s;return s-=t.length,s>=0&&e.slice(s,h)==t}function yv(e){return e=se(e),e&&sh.test(e)?e.replace(so,df):e}function Rv(e){return e=se(e),e&&hh.test(e)?e.replace(Ss,"\\$&"):e}var Av=er(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),bv=er(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),Pv=Uu("toLowerCase");function Iv(e,t,s){e=se(e),t=K(t);var o=t?zn(e):0;if(!t||o>=t)return e;var h=(t-o)/2;return Di(Ti(h),s)+e+Di(Ci(h),s)}function xv(e,t,s){e=se(e),t=K(t);var o=t?zn(e):0;return t&&o<t?e+Di(t-o,s):e}function Lv(e,t,s){e=se(e),t=K(t);var o=t?zn(e):0;return t&&o<t?Di(t-o,s)+e:e}function Nv(e,t,s){return s||t==null?t=0:t&&(t=+t),Hf(se(e).replace(ws,""),t||0)}function Uv(e,t,s){return(s?We(e,t,s):t===r)?t=1:t=K(t),Js(se(e),t)}function Ov(){var e=arguments,t=se(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var $v=er(function(e,t,s){return e+(s?"_":"")+t.toLowerCase()});function Dv(e,t,s){return s&&typeof s!="number"&&We(e,t,s)&&(t=s=r),s=s===r?Lt:s>>>0,s?(e=se(e),e&&(typeof t=="string"||t!=null&&!Ea(t))&&(t=nt(t),!t&&qn(e))?on(Ct(e),0,s):e.split(t,s)):[]}var Mv=er(function(e,t,s){return e+(s?" ":"")+Ra(t)});function Fv(e,t,s){return e=se(e),s=s==null?0:An(K(s),0,e.length),t=nt(t),e.slice(s,s+t.length)==t}function kv(e,t,s){var o=f.templateSettings;s&&We(e,t,s)&&(t=r),e=se(e),t=Ca({},t,o,Hu);var h=Ca({},t.imports,o.imports,Hu),d=Ae(h),v=$s(h,d);et(d,function(W){if(oo.test(W))throw new Q(p)});var m,w,b=0,I=t.interpolate||oi,x="__p += '",$=Ms((t.escape||oi).source+"|"+I.source+"|"+(I===ao?mh:oi).source+"|"+(t.evaluate||oi).source+"|$","g"),k="//# sourceURL="+(ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kh+"]")+`
4
+ `;e.replace($,function(W,Z,ee,it,Ve,st){return ee||(ee=it),x+=e.slice(b,st).replace(Rh,pf),Z&&(m=!0,x+=`' +
5
5
  __e(`+Z+`) +
6
6
  '`),Ve&&(w=!0,x+=`';
7
7
  `+Ve+`;
8
8
  __p += '`),ee&&(x+=`' +
9
9
  ((__t = (`+ee+`)) == null ? '' : __t) +
10
- '`),b=st+H.length,H}),x+=`';
10
+ '`),b=st+W.length,W}),x+=`';
11
11
  `;var B=ie.call(t,"variable")&&t.variable;if(!B)x=`with (obj) {
12
12
  `+x+`
13
13
  }
14
- `;else if(oo.test(B))throw new Q(g);x=(w?x.replace(tf,""):x).replace(nf,"$1").replace(rf,"$1;"),x="function("+(B||"obj")+`) {
14
+ `;else if(oo.test(B))throw new Q(g);x=(w?x.replace(th,""):x).replace(nh,"$1").replace(rh,"$1;"),x="function("+(B||"obj")+`) {
15
15
  `+(B?"":`obj || (obj = {});
16
16
  `)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(w?`, __j = Array.prototype.join;
17
17
  function print() { __p += __j.call(arguments, '') }
18
18
  `:`;
19
19
  `)+x+`return __p
20
- }`;var Y=Ol(function(){return ne(d,M+"return "+x).apply(r,v)});if(Y.source=x,wa(Y))throw Y;return Y}function Wv(e){return se(e).toLowerCase()}function Hv(e){return se(e).toUpperCase()}function Vv(e,t,s){if(e=se(e),e&&(s||t===r))return Ho(e);if(!e||!(t=nt(t)))return e;var o=Ct(e),f=Ct(t),d=Vo(o,f),v=Bo(o,f)+1;return on(o,d,v).join("")}function Bv(e,t,s){if(e=se(e),e&&(s||t===r))return e.slice(0,Qo(e)+1);if(!e||!(t=nt(t)))return e;var o=Ct(e),f=Bo(o,Ct(t))+1;return on(o,0,f).join("")}function Gv(e,t,s){if(e=se(e),e&&(s||t===r))return e.replace(ws,"");if(!e||!(t=nt(t)))return e;var o=Ct(e),f=Vo(o,Ct(t));return on(o,f).join("")}function Qv(e,t){var s=ye,o=$;if(he(t)){var f="separator"in t?t.separator:f;s="length"in t?K(t.length):s,o="omission"in t?nt(t.omission):o}e=se(e);var d=e.length;if(Qn(e)){var v=Ct(e);d=v.length}if(s>=d)return e;var m=s-qn(o);if(m<1)return o;var w=v?on(v,0,m).join(""):e.slice(0,m);if(f===r)return w+o;if(v&&(m+=w.length-m),Ea(f)){if(e.slice(m).search(f)){var b,P=w;for(f.global||(f=Ms(f.source,se(uo.exec(f))+"g")),f.lastIndex=0;b=f.exec(P);)var x=b.index;w=w.slice(0,x===r?m:x)}}else if(e.indexOf(nt(f),m)!=m){var U=w.lastIndexOf(f);U>-1&&(w=w.slice(0,U))}return w+o}function qv(e){return e=se(e),e&&sf.test(e)?e.replace(io,Ch):e}var zv=jn(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Aa=Ou("toUpperCase");function Nl(e,t,s){return e=se(e),t=s?r:t,t===r?vh(e)?Ah(e):uh(e):e.match(t)||[]}var Ol=X(function(e,t){try{return je(e,r,t)}catch(s){return wa(s)?s:new Q(s)}}),Kv=Bt(function(e,t){return et(t,function(s){s=yt(s),Nt(e,s,ma(e[s],e))}),e});function Yv(e){var t=e==null?0:e.length,s=V();return e=t?fe(e,function(o){if(typeof o[1]!="function")throw new lt(l);return[s(o[0]),o[1]]}):[],X(function(o){for(var f=-1;++f<t;){var d=e[f];if(je(d[0],this,o))return je(d[1],this,o)}})}function Xv(e){return Cg(ft(e,E))}function Ra(e){return function(){return e}}function Zv(e,t){return e==null||e!==e?t:e}var Jv=Uu(),jv=Uu(!0);function Ye(e){return e}function ba(e){return fu(typeof e=="function"?e:ft(e,E))}function em(e){return gu(ft(e,E))}function tm(e,t){return du(e,ft(t,E))}var nm=X(function(e,t){return function(s){return Dr(s,e,t)}}),rm=X(function(e,t){return function(s){return Dr(e,s,t)}});function Pa(e,t,s){var o=Ae(t),f=Ii(t,o);s==null&&!(he(t)&&(f.length||!o.length))&&(s=t,t=e,e=this,f=Ii(t,Ae(t)));var d=!(he(s)&&"chain"in s)||!!s.chain,v=Qt(e);return et(f,function(m){var w=t[m];e[m]=w,v&&(e.prototype[m]=function(){var b=this.__chain__;if(d||b){var P=e(this.__wrapped__),x=P.__actions__=qe(this.__actions__);return x.push({func:w,args:arguments,thisArg:e}),P.__chain__=b,P}return w.apply(e,en([this.value()],arguments))})}),e}function im(){return Ie._===this&&(Ie._=Lh),this}function Ia(){}function sm(e){return e=K(e),X(function(t){return pu(t,e)})}var am=sa(fe),om=sa(Do),um=sa(xs);function $l(e){return ha(e)?Ls(yt(e)):kg(e)}function lm(e){return function(t){return e==null?r:bn(e,t)}}var cm=Mu(),fm=Mu(!0);function xa(){return[]}function La(){return!1}function hm(){return{}}function gm(){return""}function dm(){return!0}function pm(e,t){if(e=K(e),e<1||e>ae)return[];var s=Lt,o=Ue(e,Lt);t=V(t),e-=Lt;for(var f=$s(o,t);++s<e;)t(s);return f}function _m(e){return z(e)?fe(e,yt):rt(e)?[e]:qe(ju(se(e)))}function vm(e){var t=++Ih;return se(e)+t}var mm=Ui(function(e,t){return e+t},0),Sm=aa("ceil"),wm=Ui(function(e,t){return e/t},1),Em=aa("floor");function Cm(e){return e&&e.length?Pi(e,Ye,Qs):r}function Tm(e,t){return e&&e.length?Pi(e,V(t,2),Qs):r}function ym(e){return ko(e,Ye)}function Am(e,t){return ko(e,V(t,2))}function Rm(e){return e&&e.length?Pi(e,Ye,Ys):r}function bm(e,t){return e&&e.length?Pi(e,V(t,2),Ys):r}var Pm=Ui(function(e,t){return e*t},1),Im=aa("round"),xm=Ui(function(e,t){return e-t},0);function Lm(e){return e&&e.length?Os(e,Ye):0}function Nm(e,t){return e&&e.length?Os(e,V(t,2)):0}return h.after=t_,h.ary=cl,h.assign=V_,h.assignIn=yl,h.assignInWith=Al,h.assignWith=Ca,h.at=B_,h.before=fl,h.bind=ma,h.bindAll=Kv,h.bindKey=hl,h.castArray=g_,h.chain=ol,h.chunk=Cd,h.compact=Td,h.concat=yd,h.cond=Yv,h.conforms=Xv,h.constant=Ra,h.countBy=Np,h.create=G_,h.curry=gl,h.curryRight=dl,h.debounce=pl,h.defaults=Q_,h.defaultsDeep=q_,h.defer=n_,h.delay=r_,h.difference=Ad,h.differenceBy=Rd,h.differenceWith=bd,h.drop=Pd,h.dropRight=Id,h.dropRightWhile=xd,h.dropWhile=Ld,h.fill=Nd,h.filter=$p,h.flatMap=Mp,h.flatMapDeep=Fp,h.flatMapDepth=kp,h.flatten=rl,h.flattenDeep=Od,h.flattenDepth=$d,h.flip=i_,h.flow=Jv,h.flowRight=jv,h.fromPairs=Ud,h.functions=j_,h.functionsIn=ev,h.groupBy=Wp,h.initial=Md,h.intersection=Fd,h.intersectionBy=kd,h.intersectionWith=Wd,h.invert=nv,h.invertBy=rv,h.invokeMap=Vp,h.iteratee=ba,h.keyBy=Bp,h.keys=Ae,h.keysIn=Ke,h.map=Vi,h.mapKeys=sv,h.mapValues=av,h.matches=em,h.matchesProperty=tm,h.memoize=Gi,h.merge=ov,h.mergeWith=Rl,h.method=nm,h.methodOf=rm,h.mixin=Pa,h.negate=Qi,h.nthArg=sm,h.omit=uv,h.omitBy=lv,h.once=s_,h.orderBy=Gp,h.over=am,h.overArgs=a_,h.overEvery=om,h.overSome=um,h.partial=Sa,h.partialRight=_l,h.partition=Qp,h.pick=cv,h.pickBy=bl,h.property=$l,h.propertyOf=lm,h.pull=Gd,h.pullAll=sl,h.pullAllBy=Qd,h.pullAllWith=qd,h.pullAt=zd,h.range=cm,h.rangeRight=fm,h.rearg=o_,h.reject=Kp,h.remove=Kd,h.rest=u_,h.reverse=_a,h.sampleSize=Xp,h.set=hv,h.setWith=gv,h.shuffle=Zp,h.slice=Yd,h.sortBy=e_,h.sortedUniq=np,h.sortedUniqBy=rp,h.split=Dv,h.spread=l_,h.tail=ip,h.take=sp,h.takeRight=ap,h.takeRightWhile=op,h.takeWhile=up,h.tap=Tp,h.throttle=c_,h.thru=Hi,h.toArray=El,h.toPairs=Pl,h.toPairsIn=Il,h.toPath=_m,h.toPlainObject=Tl,h.transform=dv,h.unary=f_,h.union=lp,h.unionBy=cp,h.unionWith=fp,h.uniq=hp,h.uniqBy=gp,h.uniqWith=dp,h.unset=pv,h.unzip=va,h.unzipWith=al,h.update=_v,h.updateWith=vv,h.values=nr,h.valuesIn=mv,h.without=pp,h.words=Nl,h.wrap=h_,h.xor=_p,h.xorBy=vp,h.xorWith=mp,h.zip=Sp,h.zipObject=wp,h.zipObjectDeep=Ep,h.zipWith=Cp,h.entries=Pl,h.entriesIn=Il,h.extend=yl,h.extendWith=Al,Pa(h,h),h.add=mm,h.attempt=Ol,h.camelCase=Cv,h.capitalize=xl,h.ceil=Sm,h.clamp=Sv,h.clone=d_,h.cloneDeep=__,h.cloneDeepWith=v_,h.cloneWith=p_,h.conformsTo=m_,h.deburr=Ll,h.defaultTo=Zv,h.divide=wm,h.endsWith=Tv,h.eq=At,h.escape=yv,h.escapeRegExp=Av,h.every=Op,h.find=Up,h.findIndex=tl,h.findKey=z_,h.findLast=Dp,h.findLastIndex=nl,h.findLastKey=K_,h.floor=Em,h.forEach=ul,h.forEachRight=ll,h.forIn=Y_,h.forInRight=X_,h.forOwn=Z_,h.forOwnRight=J_,h.get=Ta,h.gt=S_,h.gte=w_,h.has=tv,h.hasIn=ya,h.head=il,h.identity=Ye,h.includes=Hp,h.indexOf=Dd,h.inRange=wv,h.invoke=iv,h.isArguments=xn,h.isArray=z,h.isArrayBuffer=E_,h.isArrayLike=ze,h.isArrayLikeObject=pe,h.isBoolean=C_,h.isBuffer=un,h.isDate=T_,h.isElement=y_,h.isEmpty=A_,h.isEqual=R_,h.isEqualWith=b_,h.isError=wa,h.isFinite=P_,h.isFunction=Qt,h.isInteger=vl,h.isLength=qi,h.isMap=ml,h.isMatch=I_,h.isMatchWith=x_,h.isNaN=L_,h.isNative=N_,h.isNil=$_,h.isNull=O_,h.isNumber=Sl,h.isObject=he,h.isObjectLike=ge,h.isPlainObject=Vr,h.isRegExp=Ea,h.isSafeInteger=U_,h.isSet=wl,h.isString=zi,h.isSymbol=rt,h.isTypedArray=tr,h.isUndefined=D_,h.isWeakMap=M_,h.isWeakSet=F_,h.join=Hd,h.kebabCase=Rv,h.last=gt,h.lastIndexOf=Vd,h.lowerCase=bv,h.lowerFirst=Pv,h.lt=k_,h.lte=W_,h.max=Cm,h.maxBy=Tm,h.mean=ym,h.meanBy=Am,h.min=Rm,h.minBy=bm,h.stubArray=xa,h.stubFalse=La,h.stubObject=hm,h.stubString=gm,h.stubTrue=dm,h.multiply=Pm,h.nth=Bd,h.noConflict=im,h.noop=Ia,h.now=Bi,h.pad=Iv,h.padEnd=xv,h.padStart=Lv,h.parseInt=Nv,h.random=Ev,h.reduce=qp,h.reduceRight=zp,h.repeat=Ov,h.replace=$v,h.result=fv,h.round=Im,h.runInContext=S,h.sample=Yp,h.size=Jp,h.snakeCase=Uv,h.some=jp,h.sortedIndex=Xd,h.sortedIndexBy=Zd,h.sortedIndexOf=Jd,h.sortedLastIndex=jd,h.sortedLastIndexBy=ep,h.sortedLastIndexOf=tp,h.startCase=Mv,h.startsWith=Fv,h.subtract=xm,h.sum=Lm,h.sumBy=Nm,h.template=kv,h.times=pm,h.toFinite=qt,h.toInteger=K,h.toLength=Cl,h.toLower=Wv,h.toNumber=dt,h.toSafeInteger=H_,h.toString=se,h.toUpper=Hv,h.trim=Vv,h.trimEnd=Bv,h.trimStart=Gv,h.truncate=Qv,h.unescape=qv,h.uniqueId=vm,h.upperCase=zv,h.upperFirst=Aa,h.each=ul,h.eachRight=ll,h.first=il,Pa(h,(function(){var e={};return Ot(h,function(t,s){ie.call(h.prototype,s)||(e[s]=t)}),e})(),{chain:!1}),h.VERSION=a,et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),et(["drop","take"],function(e,t){j.prototype[e]=function(s){s=s===r?1:Se(K(s),0);var o=this.__filtered__&&!t?new j(this):this.clone();return o.__filtered__?o.__takeCount__=Ue(s,o.__takeCount__):o.__views__.push({size:Ue(s,Lt),type:e+(o.__dir__<0?"Right":"")}),o},j.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,o=s==$e||s==L;j.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:V(f,3),type:s}),d.__filtered__=d.__filtered__||o,d}}),et(["head","last"],function(e,t){var s="take"+(t?"Right":"");j.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[s](1)}}),j.prototype.compact=function(){return this.filter(Ye)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new j(this):this.map(function(s){return Dr(s,e,t)})}),j.prototype.reject=function(e){return this.filter(Qi(V(e)))},j.prototype.slice=function(e,t){e=K(e);var s=this;return s.__filtered__&&(e>0||t<0)?new j(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=K(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(Lt)},Ot(j.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=h[o?"take"+(t=="last"?"Right":""):t],d=o||/^find/.test(t);f&&(h.prototype[t]=function(){var v=this.__wrapped__,m=o?[1]:arguments,w=v instanceof j,b=m[0],P=w||z(v),x=function(Z){var ee=f.apply(h,en([Z],m));return o&&U?ee[0]:ee};P&&s&&typeof b=="function"&&b.length!=1&&(w=P=!1);var U=this.__chain__,M=!!this.__actions__.length,B=d&&!U,Y=w&&!M;if(!d&&P){v=Y?v:new j(this);var H=e.apply(v,m);return H.__actions__.push({func:Hi,args:[x],thisArg:r}),new ct(H,U)}return B&&Y?e.apply(this,m):(H=this.thru(x),B?o?H.value()[0]:H.value():H)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=gi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var d=this.value();return t.apply(z(d)?d:[],f)}return this[s](function(v){return t.apply(z(v)?v:[],f)})}}),Ot(j.prototype,function(e,t){var s=h[t];if(s){var o=s.name+"";ie.call(Xn,o)||(Xn[o]=[]),Xn[o].push({name:t,func:s})}}),Xn[$i(r,re).name]=[{name:"wrapper",func:r}],j.prototype.clone=zh,j.prototype.reverse=Kh,j.prototype.value=Yh,h.prototype.at=yp,h.prototype.chain=Ap,h.prototype.commit=Rp,h.prototype.next=bp,h.prototype.plant=Ip,h.prototype.reverse=xp,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=Lp,h.prototype.first=h.prototype.head,Ir&&(h.prototype[Ir]=Pp),h}),zn=Rh();Cn?((Cn.exports=zn)._=zn,Rs._=zn):Ie._=zn}).call($m)})(Br,Br.exports)),Br.exports}var Ml=Um();const W={getRandomId:()=>window.crypto.getRandomValues(new Uint32Array(1))[0],isPromise:i=>i&&W.isFunction(i.then),isFunction:i=>i&&{}.toString.call(i)==="[object Function]",isAsyncFunction:i=>i&&{}.toString.call(i)==="[object AsyncFunction]",isString:i=>typeof i=="string"||i instanceof String,isObject:i=>!!(i&&typeof i=="object"&&!Array.isArray(i)),trimLeadingSlash:i=>W.isString(i)?i.replace(/^\/+/g,""):"",trimTrailingSlash:i=>W.isString(i)?i.replace(/\/+$/,""):"",isElementVisible:i=>i?window.getComputedStyle(i).getPropertyValue("display")!=="none":!1,getNodeList:(i,n=!1)=>{const r=[];return i&&Array.from(document.querySelectorAll(i)).forEach(u=>{n?W.isElementVisible(u)&&r.push(u):r.push(u)}),r},prependOrigin:i=>{if(!i||i.startsWith("http"))return i;const n=i.startsWith("/");return i.length?window.location.origin+(n?"":"/")+i:window.location.origin},getConfigValueFromObject:(i,n)=>{let r=0,a=i;const u=n.split(".");for(;a&&r<u.length;)a=a[u[r++]];return a},getConfigBooleanValue:(i,n)=>{const r=W.getConfigValueFromObject(i,n);return r===!0||r==="true"},getUrlParameter:i=>new URLSearchParams(window.location.search).get(i),removeProperties(i,n){const r={};if(!(n instanceof Array)||!n.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),i;for(const a in i)if(i.hasOwnProperty(a)){const u=n.filter(l=>a.includes(l)).length===0,c=n.filter(l=>l.endsWith("*")).map(l=>l.slice(0,-1)).filter(l=>a.startsWith(l)).length===0;u&&c&&(r[a]=i[a])}return r},replaceVars(i,n,r,a=!0){let u=i;return n&&(a?u=Ml.replace(u,/{([\s\S]+?)}/g,c=>{let l=c.slice(1,-1).trim();return l.indexOf(r)===0&&(l=l.substring(r.length)),Ml.get(n,l,c)}):Object.entries(n).forEach(c=>{u=u.replace(new RegExp(this.escapeRegExp(r+c[0]),"g"),encodeURIComponent(c[1]))})),a&&(u=u.replace(new RegExp("\\{"+this.escapeRegExp(r)+"[^\\}]+\\}","g"),"")),u},escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},hasHashOrSlash:i=>!!(i&&i.search(/^[#\/].*$/)===0),getPathWithoutHashOrSlash:i=>{for(;W.hasHashOrSlash(i);)i=i.substring(1,i.length);return i}},fr={wrapAsPromise:i=>new Promise(n=>{n(i)}),applyFunctionPromisified:(i,n)=>(i=i.apply(void 0,n),W.isPromise(i)?i:fr.wrapAsPromise(i)),getConfigValueFromObjectAsync:(i,n,...r)=>{const a=W.getConfigValueFromObject(i,n);return W.isFunction(a)?fr.applyFunctionPromisified(a,r):fr.wrapAsPromise(a)}};class Dm{setErrorMessage(n){this.getLuigi().getEngine()?._connector?.showFatalError(n)}getLuigi(){return window.Luigi}getConfigValue(n){return this.getLuigi().getConfigValue(n)}getConfigValueAsync(n){return this.getLuigi().getConfigValueAsync(n)}async executeConfigFnAsync(n,r=!1,...a){const u=this.getConfigValue(n);if(W.isFunction(u))try{return await fr.applyFunctionPromisified(u,a)}catch(c){if(r)return Promise.reject(c)}return Promise.resolve(void 0)}}const Xe=new Dm;class Mm{constructor(){this._internalStorage={},this._defaultStorage="localStorage",this._authKey="luigi.auth",this._newlyAuthorizedKey="luigi.newlyAuthorized",this._invalidStorageMsg="Configuration Error: Invalid auth.storage value defined. Must be one of localStorage, sessionStorage or none."}reset(){this._storageType=void 0}getStorageKey(){return this._authKey}getStorageType(){return this._storageType||(this._storageType=Xe.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(n){this._setStore(this.getStorageKey(),n)}removeAuthData(){this._setStore(this.getStorageKey(),void 0)}isNewlyAuthorized(){return!!this._getStore(this._newlyAuthorizedKey)}setNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,!0)}removeNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,void 0)}_getWebStorage(n){return window[n]}_setStore(n,r){switch(this.getStorageType()){case"localStorage":case"sessionStorage":r!==void 0?this._getWebStorage(this.getStorageType()).setItem(n,JSON.stringify(r)):this._getWebStorage(this.getStorageType()).removeItem(n);break;case"none":this._internalStorage[n]=r;break;default:console.error(this._invalidStorageMsg)}}_getStore(n){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(this._getWebStorage(this.getStorageType()).getItem(n));case"none":return this._internalStorage[n];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const bt=new Mm;class Fm{isAuthorizationEnabled(){return!!Xe.getConfigValue("auth.use")}login(){this.isAuthorizationEnabled()&&hr.startAuthorization()}logout(){this.isAuthorizationEnabled()&&hr.logout()}async handleAuthEvent(n,r,a,u){const c=await Xe.executeConfigFnAsync("auth.events."+n,!1,r,a),l=c===void 0||!!c;if(l&&u){window.location.href=u;return}return l}get store(){return Xe.getLuigi()?.initialized||console.warn("Luigi Core is not initialized yet. Consider moving your code to the luigiAfterInit lifecycle hook. Documentation: https://docs.luigi-project.io/docs/lifecycle-hooks"),{getStorageKey:()=>bt.getStorageKey(),getStorageType:()=>bt.getStorageType(),getAuthData:()=>bt.getAuthData(),setAuthData:n=>bt.setAuthData(n),removeAuthData:()=>bt.removeAuthData(),setNewlyAuthorized:()=>{bt.setNewlyAuthorized(),hr.resetExpirationChecks()}}}}const ar=new Fm;class km{getStoredAuthData(){return bt.getAuthData()}isLoggedIn(){const n=this.getStoredAuthData();return!!(n&&n.accessTokenExpirationDate>Number(new Date))}parseUrlAuthErrors(){const n=W.getUrlParameter("error"),r=W.getUrlParameter("errorDescription");if(n)return{error:n,errorDescription:r}}async handleUrlAuthErrors(n,r,a){return r?await ar.handleAuthEvent("onAuthError",n,{error:r,errorDescription:a},n.logoutUrl+"?post_logout_redirect_uri="+n.post_logout_redirect_uri+"&error="+encodeURIComponent(r)+"&errorDescription="+encodeURIComponent(a||"")):!0}}const On=new km;class Wm{constructor(){this._userInfoStore=ns({}),this._loggedInStore=ns(!1)}setUserInfo(n){this._userInfoStore.set(n)}setLoggedIn(n){this._loggedInStore.set(n)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}async init(){const n=Xe.getConfigValue("auth.use");if(!n)return Promise.resolve(!0);const r=Xe.getConfigValue(`auth.${n}`),a=On.parseUrlAuthErrors()||{};if(await On.handleUrlAuthErrors(r,a.error,a.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(n,r),W.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(c=>(this.idpProviderInstance=c,this.checkAuth(r))).catch(c=>{const l=`Error: ${c.message||c}`;console.error(l,c.message&&c),Xe.setErrorMessage(l)}):this.checkAuth(r)}async checkAuth(n){const r=On.getStoredAuthData();if(!r||!On.isLoggedIn()){if(Xe.getConfigValue("auth.disableAutoLogin"))return;let u=!0;return r&&(u=await ar.handleAuthEvent("onAuthExpired",n)),u?this.startAuthorization():void 0}this.idpProviderInstance.settings&&W.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,r).then(u=>{this.setUserInfo(u),this.setLoggedIn(!0)}):W.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(n).then(u=>{this.setUserInfo(u),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(ic(this._userInfoStore))),W.isFunction(Xe.getConfigValue("auth.events.onAuthSuccessful"))&&bt.isNewlyAuthorized()&&await ar.handleAuthEvent("onAuthSuccessful",n,r),bt.removeNewlyAuthorized(),W.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),W.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(n=>{bt.setNewlyAuthorized(),n&&console.error(n)})}logout(){const n=On.getStoredAuthData(),r=async c=>{await ar.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,c),bt.removeAuthData()},a=Xe.getConfigValue(`auth.${Xe.getConfigValue("auth.use")}.logoutFn`),u=Xe.getConfigValueAsync("navigation.profile.logout.customLogoutFn");W.isFunction(a)?a(this.idpProviderInstance.settings,n,r):W.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(n,r):u&&W.isFunction(u)?u(n,r):r(this.idpProviderInstance.settings.logoutUrl)}createIdpProviderException(n){return{message:n,name:"IdpProviderException"}}async getIdpProviderInstance(n,r){const a=W.getConfigValueFromObject(r,"idpProvider");if(a){const c=await new a(r);return["login"].forEach(l=>{if(!W.isFunction(c[l]))throw this.createIdpProviderException(`${l} function does not exist in custom IDP Provider ${n}`)}),c}if(W.isFunction(Xe.getConfigValue("auth.events.onAuthConfigError")))await ar.handleAuthEvent("onAuthConfigError",{idpProviderName:n,type:"IdpProviderException"});else throw this.createIdpProviderException(`IDP Provider ${n} does not exist.`)}unload(){this.idpProviderInstance&&W.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}resetExpirationChecks(){this.idpProviderInstance&&W.isFunction(this.idpProviderInstance.resetExpirationChecks)&&this.idpProviderInstance.resetExpirationChecks()}}const hr=new Wm,Hm={luigi:{button:{confirm:"Yes",dismiss:"No"},confirmationModal:{body:"Are you sure you want to do this?",header:"Confirmation"},navigation:{up:"Up"},notExactTargetNode:"Could not map the exact target node for the requested route {route}.",requestedRouteNotFound:"Could not find the requested route {route}.",unsavedChangesAlert:{body:"Unsaved changes will be lost. Do you want to continue?",header:"Unsaved changes detected"}}},Vm=Hm,rs={sanitizeHtml(i=""){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/javascript:/gi,"").replace(/data:/gi,"").replace(/vbscript:/gi,"")},restoreSanitizedBrs(i=""){return i.replace(/&lt;br\/&gt;/g,"<br>").replace(/&lt;br \/&gt;/g,"<br>").replace(/&lt;br&gt;/g,"<br>").replace(/&lt;br &gt;/g,"<br>")},restoreSanitizedElements(i=""){let n=i;const r=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let a=0;a<r.length;a++){const u=new RegExp(`&lt;${r[a]}/&gt;`,"g"),c=new RegExp(`&lt;${r[a]} /&gt;`,"g"),l=new RegExp(`&lt;${r[a]}&gt;`,"g"),g=new RegExp(`&lt;${r[a]} &gt;`,"g"),p=new RegExp(`&lt;/${r[a]}[/]&gt;`,"g"),_=new RegExp(`&lt;/${r[a]} [/]&gt;`,"g"),T=new RegExp(`&lt;[/]${r[a]}&gt;`,"g"),A=new RegExp(`&lt;[/]${r[a]} &gt;`,"g");n=n.replace(u,`<${r[a]}>`).replace(c,`<${r[a]}>`).replace(l,`<${r[a]}>`).replace(g,`<${r[a]}>`).replace(p,`</${r[a]}>`).replace(_,`</${r[a]}>`).replace(T,`</${r[a]}>`).replace(A,`</${r[a]}>`)}return n},sanatizeHtmlExceptTextFormatting(i=""){return this.restoreSanitizedElements(this.sanitizeHtml(i))},sanitizeParam(i=""){return String(i).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&sol;")},escapeKeyForRegexp(i=""){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},processTextAndLinks(i="",n,r){const u={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(i)),links:[]};return n?Object.entries(n).reduce((c,[l,g])=>{const p=`_luigi_alert_${r}_link_${this.sanitizeParam(l)}`,_=this.restoreSanitizedBrs(this.sanitizeHtml(g.text)),T=`<a id="${p}">${_}</a>`,A=this.escapeKeyForRegexp(l),E=new RegExp(`({${A}})`,"g");return{sanitizedText:c.sanitizedText.replace(E,T),links:c.links.concat({elemId:p,url:g.url?encodeURI(this.sanitizeHtml(g.url)):void 0,dismissKey:g.dismissKey?encodeURI(this.sanitizeHtml(g.dismissKey)):void 0})}},u):u}};class Bm{constructor(n){this.luigi=n,this.currentLocaleStorageKey="luigi.currentLocale",this.defaultLocale="en",this.listeners={},this.translationTable=Vm}_init(){this._initCustomImplementation(),this.addCurrentLocaleChangeListener(n=>{this.broadcastLocaleToAllContainers(n)})}getCurrentLocale(){return sessionStorage.getItem(this.currentLocaleStorageKey)||this.defaultLocale}setCurrentLocale(n,r){if(!r?.clientPermissions?.changeCurrentLocale){console.error('Current locale change declined from client, as client permission "changeCurrentLocale" is not set for this view.');return}n&&(r&&(r.locale=n),sessionStorage.setItem(this.currentLocaleStorageKey,n),this._notifyLocaleChange(n)),this.luigi.getEngine()._connector?.setCurrentLocale(n)}addCurrentLocaleChangeListener(n){let r=null;return W.isFunction(n)?(r=W.getRandomId(),this.listeners[r]=n):console.error("Provided locale change listener is not a function."),r}removeCurrentLocaleChangeListener(n){n&&this.listeners[n]?delete this.listeners[n]:console.error("Unable to remove locale change listener - no listener registered for given ID.")}getTranslation(n,r=void 0,a=void 0){if(!n)return"";if(this.translationImpl){const c=this.translationImpl.getTranslation(n,r,a);if(c!==n)return c}const u=this.findTranslation(n,this.translationTable,r);return u||n}_notifyLocaleChange(n){Object.getOwnPropertyNames(this.listeners).forEach(r=>{this.listeners[Number(r)](n)}),this.luigi.configChanged()}_initCustomImplementation(){this.translationImpl=this.luigi.getConfigValue("settings.customTranslationImplementation"),W.isFunction(this.translationImpl)&&(this.translationImpl=this.translationImpl())}broadcastLocaleToAllContainers(n){const r=W.getNodeList("luigi-container[lui_container]");r?.length&&n&&r.forEach(a=>{a.locale=n,a.updateContext({locale:n})})}findTranslation(n,r,a){const u=n.split(".");for(let c=0;c<u.length;c++){const l=u[c];if(Object.prototype.hasOwnProperty.call(r,l)&&typeof r[l]=="object")r=r[l];else return a?this.findInterpolations(r[l],a):r[l]}}findInterpolations(n,r){return typeof n!="string"||!n.trim()||Object.keys(r).forEach(a=>{n=n.replace(new RegExp("{"+rs.escapeKeyForRegexp(a)+"}","gi"),r[a])}),n}}class Gm{constructor(n){this.luigi=n}getShellbar(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getShellbarElement()||null}getShellbarActions(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getShellbarActions()||null}getLuigiContainer(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getLuigiContainer()||null}getNavFooterContainer(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getNavFooterContainer()||null}}const Qm={luigiAfterInit:async i=>{W.getConfigBooleanValue(i.getConfig(),"settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{i.ux().hideAppLoadingIndicator()},0),await Xe.executeConfigFnAsync("lifecycleHooks.luigiAfterInit")}};class qm{constructor(){this.featureToggleList=new Set}setFeatureToggle(n,r=!1){this.isValid(n)&&(n.startsWith("!")&&!r||this.isDuplicatedOrDisabled(n)||this.featureToggleList.add(n))}unsetFeatureToggle(n){if(this.isValid(n)){if(!this.featureToggleList.has(n)){console.warn("Feature toggle name is not in the list.");return}this.featureToggleList.delete(n)}}getActiveFeatureToggleList(){return[...Array.from(this.featureToggleList)].filter(r=>!r.startsWith("!"))}isValid(n){return W.isString(n)?!0:(console.warn("Feature toggle name is not valid or not of type 'string'"),!1)}isDuplicatedOrDisabled(n){return this.featureToggleList.has(n)?(console.warn("Feature toggle name already exists"),!0):this.featureToggleList.has(`!${n}`)?(console.warn("Disabled feature toggle can not be activated"),!0):!1}}class _n{constructor(n){this.luigi=n,this._modalStack=[],this.modalSettings={}}async closeModals(){if(this._modalStack.length===0)return;const n=[...this._modalStack];for(const{onInternalClose:r}of n)try{typeof r=="function"&&r()}catch(a){console.warn("onInternalClose threw an error",a)}this.clearModalStack()}registerModal(n){n&&this._modalStack.push(n)}getModalSettings(){return this._modalStack.length>0?this._modalStack[0].modalsettings||{}:{}}getModalStackLength(){return this._modalStack.length}updateFirstModalSettings(n){if(this._modalStack.length>0){const r=this._modalStack[0];r.modalsettings={...r.modalsettings,...n}}}clearModalStack(){this._modalStack=[]}removeLastModalFromStack(){this._modalStack.pop()}}const Le={normalizePath:i=>{if(!i||i.length<=0)return i;let n=i;return n.startsWith("#")&&(n=n.substring(1)),n.startsWith("/")&&(n=n.substring(1)),n},segmentMatches:(i,n,r)=>!!(i===n||n.startsWith(":")&&r&&r[n.substr(1)]===i),checkMatch:(i,n,r)=>{let a=!0;return W.trimTrailingSlash(W.trimLeadingSlash(i)).split("/").forEach((u,c)=>{a&&(c+1>=n.length||!n[c+1]?.pathSegment||!Le.segmentMatches(u,n[c+1]?.pathSegment??"",r??{}))&&(a=!1)}),a},checkVisibleForFeatureToggles:(i,n)=>{if(i?.visibleForFeatureToggles){const r=n?.getActiveFeatureToggleList()||[];for(const a of i.visibleForFeatureToggles)if(a.startsWith("!")){if(r.includes(a.slice(1)))return!1}else if(!r.includes(a))return!1}return!0},generateTooltipText:(i,n,r)=>{let a=i?.tooltipText;switch(a===void 0&&(a=r.getConfigValue("navigation.defaults.tooltipText")),a){case void 0:return n;case!1:return"";default:return r.i18n().getTranslation(a)}},isNodeAccessPermitted:(i,n,r,a)=>{if(a.auth().isAuthorizationEnabled()){const l=On.isLoggedIn(),g=i.anonymousAccess;if(l&&g==="exclusive"||!l&&g!=="exclusive"&&g!==!0)return!1}const u=a.featureToggles();if(!Le.checkVisibleForFeatureToggles(i,u))return!1;const c=a.getConfigValue("navigation.nodeAccessibilityResolver");return typeof c!="function"?!0:c(i,n,r)},updateHeaderTitle:(i,n)=>{const r=i?.items;if(r&&n){let a="";return[...r].sort((u,c)=>(c.link||"").localeCompare(u.link||"")).some(u=>{let c=!1;if(c=Le.checkMatch(u.link||"",n.nodesInPath??[]),!c&&u.selectionConditions&&u.selectionConditions.route&&(c=Le.checkMatch(u.selectionConditions.route,n.nodesInPath??[]),c&&(u.selectionConditions.contextCriteria||[]).forEach(l=>{c=c&&n?.selectedNode?.context?.[l.key]===l.value})),c)return a=u.title||"",!0}),a}},buildPath(i,n){return i.map(a=>{const u=a.pathSegment;if(u?.startsWith(":")){const c=u.slice(1),l=n?.pathParams?.[c];if(l!=null)return encodeURIComponent(String(l))}return u}).join("/")},mergeContext(...i){return Object.assign({},...i)},prepareForTests(...i){let n="";return i.forEach(r=>{r&&(n+=(n?"_":"")+encodeURIComponent(r.toLowerCase().split(" ").join("")))}),n},findVirtualTreeRootNode(i){if(i.virtualTree)return i;if(i.parent)return Le.findVirtualTreeRootNode(i.parent)}};class vn{constructor(){this.dataManagement=new Map}setChildren(n,r){this.dataManagement.set(n,r),this.navPath=""}getChildren(n){return n?this.dataManagement.get(n):{}}hasChildren(n){const r=this.getChildren(n);return!!(r&&Object.prototype.hasOwnProperty.call(r,"children"))}setRootNode(n){this.dataManagement.set("_luigiRootNode",{node:n})}getRootNode(){return this.dataManagement.get("_luigiRootNode")}hasRootNode(){return!!this.getRootNode()}deleteCache(){this.dataManagement.clear()}deleteNodesRecursively(n){if(this.hasChildren(n)){const r=this.getChildren(n).children;for(let a=0;a<r.length;a++)this.deleteNodesRecursively(r[a])}this.dataManagement.delete(n)}}const F={defaultContentViewParamPrefix:"~",defaultQueryParamSeparator:"?",defaultModalViewParamName:"modal",addParamsOnHashRouting(i,n,r){let a=n;const[u,c]=a.split("?"),l=new URLSearchParams(c);return this.modifySearchParams(i,l,r),a=u,l.toString()!==""&&(a+=`?${l.toString()}`),a},modifySearchParams(i,n,r){for(const[a,u]of Object.entries(i)){const c=r?`${r}${a}`:a;n.set(c,u),u===void 0&&n.delete(c)}},filterNodeParams(i,n){const r=Object.create(null),a=this.getContentViewParamPrefix(n);return i&&Object.entries(i).forEach(u=>{if(u[0].startsWith(a)){const c=u[0].substr(a.length);r[c]=u[1]}}),this.sanitizeParamsMap(r)},getContentViewParamPrefix(i){let n=i?.getConfigValue("routing.nodeParamPrefix");return n===!1?n="":n||(n=this.defaultContentViewParamPrefix),n},sanitizeParamsMap(i){return Object.entries(i).reduce((n,r)=>(n[rs.sanitizeParam(r[0])]=rs.sanitizeParam(r[1]),n),{})},prepareSearchParamsForClient(i,n){const r={};return i&&i.clientPermissions&&i.clientPermissions.urlParameters&&Object.keys(i.clientPermissions.urlParameters).forEach(a=>{a in n.routing().getSearchParams()&&i.clientPermissions?.urlParameters&&i.clientPermissions.urlParameters[a]?.read===!0&&(r[a]=n.routing().getSearchParams()[a])}),r},getCurrentPath(i){if(i){const n=Le.normalizePath(location.hash),[r,a]=n.split("?");return{path:r,query:a}}else return{path:Le.normalizePath(location.pathname),query:location.search}},getModalPathFromPath(i){return this.getQueryParam(this.getModalViewParamName(i),i)},getQueryParam(i,n){return this.getQueryParams(n)[i]},getQueryParams(i){return i.getConfigValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()},getLocationSearchQueryParams(){return F.getLocation().search?F.parseParams(F.getLocation().search.slice(1)):{}},getLocation(){return location},getLocationHashQueryParams(){const i=F.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return i!==-1?F.parseParams(F.getLocation().hash.slice(i+1)):{}},getModalViewParamName(i){let n=i.getConfigValue("routing.modalPathParam");return n||(n=this.defaultModalViewParamName),n},parseParams(i){const n=new URLSearchParams(i),r=new Map;for(const[a,u]of n.entries())r.set(a,u);return Object.fromEntries(r)},getModalParamsFromPath(i){const n=this.getQueryParam(`${this.getModalViewParamName(i)}Params`,i);return n&&JSON.parse(n)},getHashQueryParamSeparator(){return this.defaultQueryParamSeparator},getURLWithoutModalData(i,n){const r=new URLSearchParams(i);return r.delete(n),r.delete(`${n}Params`),r.toString()},handleHistoryState(i,n){return i&&i.modalHistoryLength?i.modalHistoryLength+=1:i={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:n},i},encodeParams(i){const n=[];for(const r in i)n.push(encodeURIComponent(r)+"="+encodeURIComponent(i[r]));return n.join("&")},getLastNodeObject(i){return(i.nodesInPath?[...i.nodesInPath].pop():{})||{}},checkWCUrl(i,n){if(i.indexOf("://")>0||i.trim().indexOf("//")===0){if(new URL(i).host===window.location.host)return!0;const a=n.getConfigValue("navigation.validWebcomponentUrls");if(a?.length>0)for(const u of a)try{if(new RegExp(u).test(i))return!0}catch(c){console.error(c)}return!1}return!0},setFeatureToggles(i,n,r){const a=this.sanitizeParamsMap(this.parseParams(n.split("?")[1]));let u;if(a[i]&&(u=a[i]),!u)return;const c=u.split(",");c.length>0&&c[0]!==""&&c.forEach(l=>r?.setFeatureToggle(l,!0))},substituteDynamicParamsInObject(i,n,r=":",a=!1){return Object.entries(i).map(([u,c])=>{const l=a?Object.keys(n).find(g=>c&&c.indexOf(r+g)>=0):Object.keys(n).find(g=>c===r+g);return[u,l?a?c.replace(r+l,n[l]):n[l]:c]}).reduce((u,[c,l])=>Object.assign(u,{[c]:l}),{})},isDynamicNode(i){return typeof i.pathSegment=="string"&&i.pathSegment.length>0&&i.pathSegment[0]===":"},getDynamicNodeValue(i,n){return this.isDynamicNode(i)&&i.pathSegment?n[i.pathSegment.substring(1)]:void 0},getNodePath(i,n){return!i||n?i?this.buildRoute(i,i.pathSegment?"/"+i.pathSegment:"",n):"":`${i.parent?this.getNodePath(i.parent):""}/${i.pathSegment}`},buildRoute(i,n,r){return i.parent?this.buildRoute(i.parent,`/${i.parent.pathSegment}${n}`,r):n+(r?"?"+r:"")},substituteViewUrl(i,n,r){return i=W.replaceVars(i,n,":",!1),i},getSubPath(i,n){return W.replaceVars(F.getNodePath(i),n,":",!1)},concatenatePath(i,n){let r=W.getPathWithoutHashOrSlash(i);return r?(n&&(r.endsWith("/")&&(r=r.substring(0,r.length-1)),n.startsWith("/")||(r+="/"),r+=n),r):n}},Na={logout:{label:"Sign Out",icon:"log"}};class zm{constructor(){this.services=new Map}register(n,r,a=!0){this.services.set(n,{factory:r,singleton:a})}get(n){const r=this.services.get(n);if(!r)throw new Error(`Service '${n}' is not registered.`);return r.singleton?(r.instance||(r.instance=r.factory()),r.instance):r.factory()}}const te=new zm;class mn{constructor(n){this.luigi=n}getModalService(){return this.modalService||(this.modalService=te.get(_n)),this.modalService}getNodeDataManagementService(){return this.nodeDataManagementService||(this.nodeDataManagementService=te.get(vn)),this.nodeDataManagementService}async getPathData(n){const r=this.luigi.getConfig();let a=n.split("/");a?.length>0&&a[0]===""&&(a=a.slice(1));let c=r.navigation?.globalContext||{},l;if(this.getNodeDataManagementService().hasRootNode())l=this.getNodeDataManagementService().getRootNode().node;else{let _=await this.luigi.getConfigValueAsync("navigation.nodes");typeof _=="object"&&!Array.isArray(_)?(l=_,l.pathSegment&&(l.pathSegment="",console.warn("Root node must have an empty path segment. Provided path segment will be ignored."))):l={children:_},l.children=await this.getChildren(l,c),l.children=this.prepareRootNodes(l.children||[],c),this.getNodeDataManagementService().setRootNode(l)}let g={};const p={selectedNodeChildren:l.children,nodesInPath:[l],rootNodes:l.children,pathParams:g};if(l.viewUrl&&a.length===0)p.selectedNode=l;else for(const _ of a)if(p.selectedNodeChildren){const T=this.findMatchingNode(_,p.selectedNodeChildren||[]);if(!T){console.warn("No matching node found for segment:",_);break}const A=T.context||{},E=Le.mergeContext(c,A);let y=E;if(T.pathSegment?.startsWith(":")&&(g[T.pathSegment.replace(":","")]=rs.sanitizeParam(_),y=F.substituteDynamicParamsInObject(E,g)),c=y,T.context=y,p.selectedNode=T,p.selectedNode&&p.nodesInPath?.push(p.selectedNode),T.virtualTree||T._virtualTree){const I=this.buildVirtualTree(T,_,g);I&&I.length>0&&(T.children=I)}p.selectedNodeChildren=await this.getChildren(T,c)}return p}findMatchingNode(n,r){let a;const u=r.filter(l=>!!l.pathSegment).length,c=r.filter(l=>l.pathSegment&&l.pathSegment.startsWith(":")).length;if(u>1&&(c===1&&(console.warn(`Invalid node setup detected.
20
+ }`;var Y=Ul(function(){return ne(d,k+"return "+x).apply(r,v)});if(Y.source=x,wa(Y))throw Y;return Y}function Hv(e){return se(e).toLowerCase()}function Wv(e){return se(e).toUpperCase()}function Vv(e,t,s){if(e=se(e),e&&(s||t===r))return Wo(e);if(!e||!(t=nt(t)))return e;var o=Ct(e),h=Ct(t),d=Vo(o,h),v=Bo(o,h)+1;return on(o,d,v).join("")}function Bv(e,t,s){if(e=se(e),e&&(s||t===r))return e.slice(0,Qo(e)+1);if(!e||!(t=nt(t)))return e;var o=Ct(e),h=Bo(o,Ct(t))+1;return on(o,0,h).join("")}function Gv(e,t,s){if(e=se(e),e&&(s||t===r))return e.replace(ws,"");if(!e||!(t=nt(t)))return e;var o=Ct(e),h=Vo(o,Ct(t));return on(o,h).join("")}function Qv(e,t){var s=Re,o=O;if(fe(t)){var h="separator"in t?t.separator:h;s="length"in t?K(t.length):s,o="omission"in t?nt(t.omission):o}e=se(e);var d=e.length;if(qn(e)){var v=Ct(e);d=v.length}if(s>=d)return e;var m=s-zn(o);if(m<1)return o;var w=v?on(v,0,m).join(""):e.slice(0,m);if(h===r)return w+o;if(v&&(m+=w.length-m),Ea(h)){if(e.slice(m).search(h)){var b,I=w;for(h.global||(h=Ms(h.source,se(uo.exec(h))+"g")),h.lastIndex=0;b=h.exec(I);)var x=b.index;w=w.slice(0,x===r?m:x)}}else if(e.indexOf(nt(h),m)!=m){var $=w.lastIndexOf(h);$>-1&&(w=w.slice(0,$))}return w+o}function qv(e){return e=se(e),e&&ih.test(e)?e.replace(io,Cf):e}var zv=er(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Ra=Uu("toUpperCase");function Nl(e,t,s){return e=se(e),t=s?r:t,t===r?vf(e)?Rf(e):uf(e):e.match(t)||[]}var Ul=X(function(e,t){try{return je(e,r,t)}catch(s){return wa(s)?s:new Q(s)}}),Kv=Bt(function(e,t){return et(t,function(s){s=yt(s),Nt(e,s,ma(e[s],e))}),e});function Yv(e){var t=e==null?0:e.length,s=V();return e=t?he(e,function(o){if(typeof o[1]!="function")throw new lt(l);return[s(o[0]),o[1]]}):[],X(function(o){for(var h=-1;++h<t;){var d=e[h];if(je(d[0],this,o))return je(d[1],this,o)}})}function Xv(e){return Cg(ht(e,E))}function Aa(e){return function(){return e}}function Zv(e,t){return e==null||e!==e?t:e}var Jv=$u(),jv=$u(!0);function Ye(e){return e}function ba(e){return hu(typeof e=="function"?e:ht(e,E))}function em(e){return gu(ht(e,E))}function tm(e,t){return du(e,ht(t,E))}var nm=X(function(e,t){return function(s){return Dr(s,e,t)}}),rm=X(function(e,t){return function(s){return Dr(e,s,t)}});function Pa(e,t,s){var o=Ae(t),h=Ii(t,o);s==null&&!(fe(t)&&(h.length||!o.length))&&(s=t,t=e,e=this,h=Ii(t,Ae(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,v=Qt(e);return et(h,function(m){var w=t[m];e[m]=w,v&&(e.prototype[m]=function(){var b=this.__chain__;if(d||b){var I=e(this.__wrapped__),x=I.__actions__=qe(this.__actions__);return x.push({func:w,args:arguments,thisArg:e}),I.__chain__=b,I}return w.apply(e,en([this.value()],arguments))})}),e}function im(){return xe._===this&&(xe._=Lf),this}function Ia(){}function sm(e){return e=K(e),X(function(t){return pu(t,e)})}var am=sa(he),om=sa(Do),um=sa(xs);function Ol(e){return fa(e)?Ls(yt(e)):kg(e)}function lm(e){return function(t){return e==null?r:bn(e,t)}}var cm=Mu(),hm=Mu(!0);function xa(){return[]}function La(){return!1}function fm(){return{}}function gm(){return""}function dm(){return!0}function pm(e,t){if(e=K(e),e<1||e>ae)return[];var s=Lt,o=$e(e,Lt);t=V(t),e-=Lt;for(var h=Os(o,t);++s<e;)t(s);return h}function _m(e){return z(e)?he(e,yt):rt(e)?[e]:qe(ju(se(e)))}function vm(e){var t=++If;return se(e)+t}var mm=$i(function(e,t){return e+t},0),Sm=aa("ceil"),wm=$i(function(e,t){return e/t},1),Em=aa("floor");function Cm(e){return e&&e.length?Pi(e,Ye,Qs):r}function Tm(e,t){return e&&e.length?Pi(e,V(t,2),Qs):r}function ym(e){return ko(e,Ye)}function Rm(e,t){return ko(e,V(t,2))}function Am(e){return e&&e.length?Pi(e,Ye,Ys):r}function bm(e,t){return e&&e.length?Pi(e,V(t,2),Ys):r}var Pm=$i(function(e,t){return e*t},1),Im=aa("round"),xm=$i(function(e,t){return e-t},0);function Lm(e){return e&&e.length?Us(e,Ye):0}function Nm(e,t){return e&&e.length?Us(e,V(t,2)):0}return f.after=t_,f.ary=cl,f.assign=V_,f.assignIn=yl,f.assignInWith=Rl,f.assignWith=Ca,f.at=B_,f.before=hl,f.bind=ma,f.bindAll=Kv,f.bindKey=fl,f.castArray=g_,f.chain=ol,f.chunk=Cd,f.compact=Td,f.concat=yd,f.cond=Yv,f.conforms=Xv,f.constant=Aa,f.countBy=Np,f.create=G_,f.curry=gl,f.curryRight=dl,f.debounce=pl,f.defaults=Q_,f.defaultsDeep=q_,f.defer=n_,f.delay=r_,f.difference=Rd,f.differenceBy=Ad,f.differenceWith=bd,f.drop=Pd,f.dropRight=Id,f.dropRightWhile=xd,f.dropWhile=Ld,f.fill=Nd,f.filter=Op,f.flatMap=Mp,f.flatMapDeep=Fp,f.flatMapDepth=kp,f.flatten=rl,f.flattenDeep=Ud,f.flattenDepth=Od,f.flip=i_,f.flow=Jv,f.flowRight=jv,f.fromPairs=$d,f.functions=j_,f.functionsIn=ev,f.groupBy=Hp,f.initial=Md,f.intersection=Fd,f.intersectionBy=kd,f.intersectionWith=Hd,f.invert=nv,f.invertBy=rv,f.invokeMap=Vp,f.iteratee=ba,f.keyBy=Bp,f.keys=Ae,f.keysIn=Ke,f.map=Vi,f.mapKeys=sv,f.mapValues=av,f.matches=em,f.matchesProperty=tm,f.memoize=Gi,f.merge=ov,f.mergeWith=Al,f.method=nm,f.methodOf=rm,f.mixin=Pa,f.negate=Qi,f.nthArg=sm,f.omit=uv,f.omitBy=lv,f.once=s_,f.orderBy=Gp,f.over=am,f.overArgs=a_,f.overEvery=om,f.overSome=um,f.partial=Sa,f.partialRight=_l,f.partition=Qp,f.pick=cv,f.pickBy=bl,f.property=Ol,f.propertyOf=lm,f.pull=Gd,f.pullAll=sl,f.pullAllBy=Qd,f.pullAllWith=qd,f.pullAt=zd,f.range=cm,f.rangeRight=hm,f.rearg=o_,f.reject=Kp,f.remove=Kd,f.rest=u_,f.reverse=_a,f.sampleSize=Xp,f.set=fv,f.setWith=gv,f.shuffle=Zp,f.slice=Yd,f.sortBy=e_,f.sortedUniq=np,f.sortedUniqBy=rp,f.split=Dv,f.spread=l_,f.tail=ip,f.take=sp,f.takeRight=ap,f.takeRightWhile=op,f.takeWhile=up,f.tap=Tp,f.throttle=c_,f.thru=Wi,f.toArray=El,f.toPairs=Pl,f.toPairsIn=Il,f.toPath=_m,f.toPlainObject=Tl,f.transform=dv,f.unary=h_,f.union=lp,f.unionBy=cp,f.unionWith=hp,f.uniq=fp,f.uniqBy=gp,f.uniqWith=dp,f.unset=pv,f.unzip=va,f.unzipWith=al,f.update=_v,f.updateWith=vv,f.values=rr,f.valuesIn=mv,f.without=pp,f.words=Nl,f.wrap=f_,f.xor=_p,f.xorBy=vp,f.xorWith=mp,f.zip=Sp,f.zipObject=wp,f.zipObjectDeep=Ep,f.zipWith=Cp,f.entries=Pl,f.entriesIn=Il,f.extend=yl,f.extendWith=Rl,Pa(f,f),f.add=mm,f.attempt=Ul,f.camelCase=Cv,f.capitalize=xl,f.ceil=Sm,f.clamp=Sv,f.clone=d_,f.cloneDeep=__,f.cloneDeepWith=v_,f.cloneWith=p_,f.conformsTo=m_,f.deburr=Ll,f.defaultTo=Zv,f.divide=wm,f.endsWith=Tv,f.eq=Rt,f.escape=yv,f.escapeRegExp=Rv,f.every=Up,f.find=$p,f.findIndex=tl,f.findKey=z_,f.findLast=Dp,f.findLastIndex=nl,f.findLastKey=K_,f.floor=Em,f.forEach=ul,f.forEachRight=ll,f.forIn=Y_,f.forInRight=X_,f.forOwn=Z_,f.forOwnRight=J_,f.get=Ta,f.gt=S_,f.gte=w_,f.has=tv,f.hasIn=ya,f.head=il,f.identity=Ye,f.includes=Wp,f.indexOf=Dd,f.inRange=wv,f.invoke=iv,f.isArguments=xn,f.isArray=z,f.isArrayBuffer=E_,f.isArrayLike=ze,f.isArrayLikeObject=pe,f.isBoolean=C_,f.isBuffer=un,f.isDate=T_,f.isElement=y_,f.isEmpty=R_,f.isEqual=A_,f.isEqualWith=b_,f.isError=wa,f.isFinite=P_,f.isFunction=Qt,f.isInteger=vl,f.isLength=qi,f.isMap=ml,f.isMatch=I_,f.isMatchWith=x_,f.isNaN=L_,f.isNative=N_,f.isNil=O_,f.isNull=U_,f.isNumber=Sl,f.isObject=fe,f.isObjectLike=ge,f.isPlainObject=Vr,f.isRegExp=Ea,f.isSafeInteger=$_,f.isSet=wl,f.isString=zi,f.isSymbol=rt,f.isTypedArray=nr,f.isUndefined=D_,f.isWeakMap=M_,f.isWeakSet=F_,f.join=Wd,f.kebabCase=Av,f.last=gt,f.lastIndexOf=Vd,f.lowerCase=bv,f.lowerFirst=Pv,f.lt=k_,f.lte=H_,f.max=Cm,f.maxBy=Tm,f.mean=ym,f.meanBy=Rm,f.min=Am,f.minBy=bm,f.stubArray=xa,f.stubFalse=La,f.stubObject=fm,f.stubString=gm,f.stubTrue=dm,f.multiply=Pm,f.nth=Bd,f.noConflict=im,f.noop=Ia,f.now=Bi,f.pad=Iv,f.padEnd=xv,f.padStart=Lv,f.parseInt=Nv,f.random=Ev,f.reduce=qp,f.reduceRight=zp,f.repeat=Uv,f.replace=Ov,f.result=hv,f.round=Im,f.runInContext=S,f.sample=Yp,f.size=Jp,f.snakeCase=$v,f.some=jp,f.sortedIndex=Xd,f.sortedIndexBy=Zd,f.sortedIndexOf=Jd,f.sortedLastIndex=jd,f.sortedLastIndexBy=ep,f.sortedLastIndexOf=tp,f.startCase=Mv,f.startsWith=Fv,f.subtract=xm,f.sum=Lm,f.sumBy=Nm,f.template=kv,f.times=pm,f.toFinite=qt,f.toInteger=K,f.toLength=Cl,f.toLower=Hv,f.toNumber=dt,f.toSafeInteger=W_,f.toString=se,f.toUpper=Wv,f.trim=Vv,f.trimEnd=Bv,f.trimStart=Gv,f.truncate=Qv,f.unescape=qv,f.uniqueId=vm,f.upperCase=zv,f.upperFirst=Ra,f.each=ul,f.eachRight=ll,f.first=il,Pa(f,(function(){var e={};return Ut(f,function(t,s){ie.call(f.prototype,s)||(e[s]=t)}),e})(),{chain:!1}),f.VERSION=a,et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),et(["drop","take"],function(e,t){j.prototype[e]=function(s){s=s===r?1:Se(K(s),0);var o=this.__filtered__&&!t?new j(this):this.clone();return o.__filtered__?o.__takeCount__=$e(s,o.__takeCount__):o.__views__.push({size:$e(s,Lt),type:e+(o.__dir__<0?"Right":"")}),o},j.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,o=s==Oe||s==L;j.prototype[e]=function(h){var d=this.clone();return d.__iteratees__.push({iteratee:V(h,3),type:s}),d.__filtered__=d.__filtered__||o,d}}),et(["head","last"],function(e,t){var s="take"+(t?"Right":"");j.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[s](1)}}),j.prototype.compact=function(){return this.filter(Ye)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new j(this):this.map(function(s){return Dr(s,e,t)})}),j.prototype.reject=function(e){return this.filter(Qi(V(e)))},j.prototype.slice=function(e,t){e=K(e);var s=this;return s.__filtered__&&(e>0||t<0)?new j(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=K(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(Lt)},Ut(j.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),h=f[o?"take"+(t=="last"?"Right":""):t],d=o||/^find/.test(t);h&&(f.prototype[t]=function(){var v=this.__wrapped__,m=o?[1]:arguments,w=v instanceof j,b=m[0],I=w||z(v),x=function(Z){var ee=h.apply(f,en([Z],m));return o&&$?ee[0]:ee};I&&s&&typeof b=="function"&&b.length!=1&&(w=I=!1);var $=this.__chain__,k=!!this.__actions__.length,B=d&&!$,Y=w&&!k;if(!d&&I){v=Y?v:new j(this);var W=e.apply(v,m);return W.__actions__.push({func:Wi,args:[x],thisArg:r}),new ct(W,$)}return B&&Y?e.apply(this,m):(W=this.thru(x),B?o?W.value()[0]:W.value():W)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=gi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var h=arguments;if(o&&!this.__chain__){var d=this.value();return t.apply(z(d)?d:[],h)}return this[s](function(v){return t.apply(z(v)?v:[],h)})}}),Ut(j.prototype,function(e,t){var s=f[t];if(s){var o=s.name+"";ie.call(Zn,o)||(Zn[o]=[]),Zn[o].push({name:t,func:s})}}),Zn[Oi(r,re).name]=[{name:"wrapper",func:r}],j.prototype.clone=zf,j.prototype.reverse=Kf,j.prototype.value=Yf,f.prototype.at=yp,f.prototype.chain=Rp,f.prototype.commit=Ap,f.prototype.next=bp,f.prototype.plant=Ip,f.prototype.reverse=xp,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=Lp,f.prototype.first=f.prototype.head,Ir&&(f.prototype[Ir]=Pp),f}),Kn=Af();Cn?((Cn.exports=Kn)._=Kn,As._=Kn):xe._=Kn}).call(Om)})(Br,Br.exports)),Br.exports}var Ml=$m();const F={getRandomId:()=>window.crypto.getRandomValues(new Uint32Array(1))[0],isPromise:i=>i&&F.isFunction(i.then),isFunction:i=>i&&{}.toString.call(i)==="[object Function]",isAsyncFunction:i=>i&&{}.toString.call(i)==="[object AsyncFunction]",isString:i=>typeof i=="string"||i instanceof String,isObject:i=>!!(i&&typeof i=="object"&&!Array.isArray(i)),hasHash:i=>!!(i&&i.search(/^[#\/].*$/)===0),getPathWithoutHash:i=>{for(;F.hasHash(i);)i=i.substring(1,i.length);return i},getTrimmedUrl:i=>{const n=i.length>0?F.getPathWithoutHash(i):i;return F.trimTrailingSlash(n.split("?")[0])},addLeadingSlash:i=>(i.startsWith("/")?"":"/")+i,trimLeadingSlash:i=>F.isString(i)?i.replace(/^\/+/g,""):"",trimTrailingSlash:i=>F.isString(i)?i.replace(/\/+$/,""):"",isElementVisible:i=>i?window.getComputedStyle(i).getPropertyValue("display")!=="none":!1,getNodeList:(i,n=!1)=>{const r=[];return i&&Array.from(document.querySelectorAll(i)).forEach(u=>{n?F.isElementVisible(u)&&r.push(u):r.push(u)}),r},prependOrigin:i=>{if(!i||i.startsWith("http"))return i;const n=i.startsWith("/");return i.length?window.location.origin+(n?"":"/")+i:window.location.origin},getConfigValueFromObject:(i,n)=>{let r=0,a=i;const u=n.split(".");for(;a&&r<u.length;)a=a[u[r++]];return a},getConfigBooleanValue:(i,n)=>{const r=F.getConfigValueFromObject(i,n);return r===!0||r==="true"},getUrlParameter:i=>new URLSearchParams(window.location.search).get(i),removeProperties(i,n){const r={};if(!(n instanceof Array)||!n.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),i;for(const a in i)if(i.hasOwnProperty(a)){const u=n.filter(l=>a.includes(l)).length===0,c=n.filter(l=>l.endsWith("*")).map(l=>l.slice(0,-1)).filter(l=>a.startsWith(l)).length===0;u&&c&&(r[a]=i[a])}return r},replaceVars(i,n,r,a=!0){let u=i;return n&&(a?u=Ml.replace(u,/{([\s\S]+?)}/g,c=>{let l=c.slice(1,-1).trim();return l.indexOf(r)===0&&(l=l.substring(r.length)),Ml.get(n,l,c)}):Object.entries(n).forEach(c=>{u=u.replace(new RegExp(this.escapeRegExp(r+c[0]),"g"),encodeURIComponent(c[1]))})),a&&(u=u.replace(new RegExp("\\{"+this.escapeRegExp(r)+"[^\\}]+\\}","g"),"")),u},escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},hasHashOrSlash:i=>!!(i&&i.search(/^[#\/].*$/)===0),getPathWithoutHashOrSlash:i=>{for(;F.hasHashOrSlash(i);)i=i.substring(1,i.length);return i}},$n={wrapAsPromise:i=>new Promise(n=>{n(i)}),applyFunctionPromisified:(i,n)=>(i=i.apply(void 0,n),F.isPromise(i)?i:$n.wrapAsPromise(i)),getConfigValueFromObjectAsync:(i,n,...r)=>{const a=F.getConfigValueFromObject(i,n);return F.isFunction(a)?$n.applyFunctionPromisified(a,r):$n.wrapAsPromise(a)}};class Dm{setErrorMessage(n){this.getLuigi().getEngine()?._connector?.showFatalError(n)}getLuigi(){return window.Luigi}getConfigValue(n){return this.getLuigi().getConfigValue(n)}getConfigValueAsync(n){return this.getLuigi().getConfigValueAsync(n)}async executeConfigFnAsync(n,r=!1,...a){const u=this.getConfigValue(n);if(F.isFunction(u))try{return await $n.applyFunctionPromisified(u,a)}catch(c){if(r)return Promise.reject(c)}return Promise.resolve(void 0)}}const Xe=new Dm;class Mm{constructor(){this._internalStorage={},this._defaultStorage="localStorage",this._authKey="luigi.auth",this._newlyAuthorizedKey="luigi.newlyAuthorized",this._invalidStorageMsg="Configuration Error: Invalid auth.storage value defined. Must be one of localStorage, sessionStorage or none."}reset(){this._storageType=void 0}getStorageKey(){return this._authKey}getStorageType(){return this._storageType||(this._storageType=Xe.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(n){this._setStore(this.getStorageKey(),n)}removeAuthData(){this._setStore(this.getStorageKey(),void 0)}isNewlyAuthorized(){return!!this._getStore(this._newlyAuthorizedKey)}setNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,!0)}removeNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,void 0)}_getWebStorage(n){return window[n]}_setStore(n,r){switch(this.getStorageType()){case"localStorage":case"sessionStorage":r!==void 0?this._getWebStorage(this.getStorageType()).setItem(n,JSON.stringify(r)):this._getWebStorage(this.getStorageType()).removeItem(n);break;case"none":this._internalStorage[n]=r;break;default:console.error(this._invalidStorageMsg)}}_getStore(n){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(this._getWebStorage(this.getStorageType()).getItem(n));case"none":return this._internalStorage[n];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const bt=new Mm;class Fm{isAuthorizationEnabled(){return!!Xe.getConfigValue("auth.use")}login(){this.isAuthorizationEnabled()&&fr.startAuthorization()}logout(){this.isAuthorizationEnabled()&&fr.logout()}async handleAuthEvent(n,r,a,u){const c=await Xe.executeConfigFnAsync("auth.events."+n,!1,r,a),l=c===void 0||!!c;if(l&&u){window.location.href=u;return}return l}get store(){return Xe.getLuigi()?.initialized||console.warn("Luigi Core is not initialized yet. Consider moving your code to the luigiAfterInit lifecycle hook. Documentation: https://docs.luigi-project.io/docs/lifecycle-hooks"),{getStorageKey:()=>bt.getStorageKey(),getStorageType:()=>bt.getStorageType(),getAuthData:()=>bt.getAuthData(),setAuthData:n=>bt.setAuthData(n),removeAuthData:()=>bt.removeAuthData(),setNewlyAuthorized:()=>{bt.setNewlyAuthorized(),fr.resetExpirationChecks()}}}}const or=new Fm;class km{getStoredAuthData(){return bt.getAuthData()}isLoggedIn(){const n=this.getStoredAuthData();return!!(n&&n.accessTokenExpirationDate>Number(new Date))}parseUrlAuthErrors(){const n=F.getUrlParameter("error"),r=F.getUrlParameter("errorDescription");if(n)return{error:n,errorDescription:r}}async handleUrlAuthErrors(n,r,a){return r?await or.handleAuthEvent("onAuthError",n,{error:r,errorDescription:a},n.logoutUrl+"?post_logout_redirect_uri="+n.post_logout_redirect_uri+"&error="+encodeURIComponent(r)+"&errorDescription="+encodeURIComponent(a||"")):!0}}const Un=new km;class Hm{constructor(){this._userInfoStore=ns({}),this._loggedInStore=ns(!1)}setUserInfo(n){this._userInfoStore.set(n)}setLoggedIn(n){this._loggedInStore.set(n)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}async init(){const n=Xe.getConfigValue("auth.use");if(!n)return Promise.resolve(!0);const r=Xe.getConfigValue(`auth.${n}`),a=Un.parseUrlAuthErrors()||{};if(await Un.handleUrlAuthErrors(r,a.error,a.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(n,r),F.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(c=>(this.idpProviderInstance=c,this.checkAuth(r))).catch(c=>{const l=`Error: ${c.message||c}`;console.error(l,c.message&&c),Xe.setErrorMessage(l)}):this.checkAuth(r)}async checkAuth(n){const r=Un.getStoredAuthData();if(!r||!Un.isLoggedIn()){if(Xe.getConfigValue("auth.disableAutoLogin"))return;let u=!0;return r&&(u=await or.handleAuthEvent("onAuthExpired",n)),u?this.startAuthorization():void 0}this.idpProviderInstance.settings&&F.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,r).then(u=>{this.setUserInfo(u),this.setLoggedIn(!0)}):F.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(n).then(u=>{this.setUserInfo(u),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(ic(this._userInfoStore))),F.isFunction(Xe.getConfigValue("auth.events.onAuthSuccessful"))&&bt.isNewlyAuthorized()&&await or.handleAuthEvent("onAuthSuccessful",n,r),bt.removeNewlyAuthorized(),F.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),F.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(n=>{bt.setNewlyAuthorized(),n&&console.error(n)})}logout(){const n=Un.getStoredAuthData(),r=async c=>{await or.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,c),bt.removeAuthData()},a=Xe.getConfigValue(`auth.${Xe.getConfigValue("auth.use")}.logoutFn`),u=Xe.getConfigValueAsync("navigation.profile.logout.customLogoutFn");F.isFunction(a)?a(this.idpProviderInstance.settings,n,r):F.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(n,r):u&&F.isFunction(u)?u(n,r):r(this.idpProviderInstance.settings.logoutUrl)}createIdpProviderException(n){return{message:n,name:"IdpProviderException"}}async getIdpProviderInstance(n,r){const a=F.getConfigValueFromObject(r,"idpProvider");if(a){const c=await new a(r);return["login"].forEach(l=>{if(!F.isFunction(c[l]))throw this.createIdpProviderException(`${l} function does not exist in custom IDP Provider ${n}`)}),c}if(F.isFunction(Xe.getConfigValue("auth.events.onAuthConfigError")))await or.handleAuthEvent("onAuthConfigError",{idpProviderName:n,type:"IdpProviderException"});else throw this.createIdpProviderException(`IDP Provider ${n} does not exist.`)}unload(){this.idpProviderInstance&&F.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}resetExpirationChecks(){this.idpProviderInstance&&F.isFunction(this.idpProviderInstance.resetExpirationChecks)&&this.idpProviderInstance.resetExpirationChecks()}}const fr=new Hm,Wm={luigi:{button:{confirm:"Yes",dismiss:"No"},confirmationModal:{body:"Are you sure you want to do this?",header:"Confirmation"},navigation:{up:"Up"},notExactTargetNode:"Could not map the exact target node for the requested route {route}.",requestedRouteNotFound:"Could not find the requested route {route}.",unsavedChangesAlert:{body:"Unsaved changes will be lost. Do you want to continue?",header:"Unsaved changes detected"}}},Vm=Wm,rs={sanitizeHtml(i=""){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/javascript:/gi,"").replace(/data:/gi,"").replace(/vbscript:/gi,"")},restoreSanitizedBrs(i=""){return i.replace(/&lt;br\/&gt;/g,"<br>").replace(/&lt;br \/&gt;/g,"<br>").replace(/&lt;br&gt;/g,"<br>").replace(/&lt;br &gt;/g,"<br>")},restoreSanitizedElements(i=""){let n=i;const r=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let a=0;a<r.length;a++){const u=new RegExp(`&lt;${r[a]}/&gt;`,"g"),c=new RegExp(`&lt;${r[a]} /&gt;`,"g"),l=new RegExp(`&lt;${r[a]}&gt;`,"g"),g=new RegExp(`&lt;${r[a]} &gt;`,"g"),p=new RegExp(`&lt;/${r[a]}[/]&gt;`,"g"),_=new RegExp(`&lt;/${r[a]} [/]&gt;`,"g"),y=new RegExp(`&lt;[/]${r[a]}&gt;`,"g"),T=new RegExp(`&lt;[/]${r[a]} &gt;`,"g");n=n.replace(u,`<${r[a]}>`).replace(c,`<${r[a]}>`).replace(l,`<${r[a]}>`).replace(g,`<${r[a]}>`).replace(p,`</${r[a]}>`).replace(_,`</${r[a]}>`).replace(y,`</${r[a]}>`).replace(T,`</${r[a]}>`)}return n},sanatizeHtmlExceptTextFormatting(i=""){return this.restoreSanitizedElements(this.sanitizeHtml(i))},sanitizeParam(i=""){return String(i).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&sol;")},escapeKeyForRegexp(i=""){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},processTextAndLinks(i="",n,r){const u={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(i)),links:[]};return n?Object.entries(n).reduce((c,[l,g])=>{const p=`_luigi_alert_${r}_link_${this.sanitizeParam(l)}`,_=this.restoreSanitizedBrs(this.sanitizeHtml(g.text)),y=`<a id="${p}">${_}</a>`,T=this.escapeKeyForRegexp(l),E=new RegExp(`({${T}})`,"g");return{sanitizedText:c.sanitizedText.replace(E,y),links:c.links.concat({elemId:p,url:g.url?encodeURI(this.sanitizeHtml(g.url)):void 0,dismissKey:g.dismissKey?encodeURI(this.sanitizeHtml(g.dismissKey)):void 0})}},u):u}};class Bm{constructor(n){this.luigi=n,this.currentLocaleStorageKey="luigi.currentLocale",this.defaultLocale="en",this.listeners={},this.translationTable=Vm}_init(){this._initCustomImplementation(),this.addCurrentLocaleChangeListener(n=>{this.broadcastLocaleToAllContainers(n)})}getCurrentLocale(){return sessionStorage.getItem(this.currentLocaleStorageKey)||this.defaultLocale}setCurrentLocale(n,r){if(!r?.clientPermissions?.changeCurrentLocale){console.error('Current locale change declined from client, as client permission "changeCurrentLocale" is not set for this view.');return}n&&(r&&(r.locale=n),sessionStorage.setItem(this.currentLocaleStorageKey,n),this._notifyLocaleChange(n)),this.luigi.getEngine()._connector?.setCurrentLocale(n)}addCurrentLocaleChangeListener(n){let r=null;return F.isFunction(n)?(r=F.getRandomId(),this.listeners[r]=n):console.error("Provided locale change listener is not a function."),r}removeCurrentLocaleChangeListener(n){n&&this.listeners[n]?delete this.listeners[n]:console.error("Unable to remove locale change listener - no listener registered for given ID.")}getTranslation(n,r=void 0,a=void 0){if(!n)return"";if(this.translationImpl){const c=this.translationImpl.getTranslation(n,r,a);if(c!==n)return c}const u=this.findTranslation(n,this.translationTable,r);return u||n}_notifyLocaleChange(n){Object.getOwnPropertyNames(this.listeners).forEach(r=>{this.listeners[Number(r)](n)}),this.luigi.configChanged()}_initCustomImplementation(){this.translationImpl=this.luigi.getConfigValue("settings.customTranslationImplementation"),F.isFunction(this.translationImpl)&&(this.translationImpl=this.translationImpl())}broadcastLocaleToAllContainers(n){const r=F.getNodeList("luigi-container[lui_container]");r?.length&&n&&r.forEach(a=>{a.locale=n,a.updateContext({locale:n})})}findTranslation(n,r,a){const u=n.split(".");for(let c=0;c<u.length;c++){const l=u[c];if(Object.prototype.hasOwnProperty.call(r,l)&&typeof r[l]=="object")r=r[l];else return a?this.findInterpolations(r[l],a):r[l]}}findInterpolations(n,r){return typeof n!="string"||!n.trim()||Object.keys(r).forEach(a=>{n=n.replace(new RegExp("{"+rs.escapeKeyForRegexp(a)+"}","gi"),r[a])}),n}}class Gm{constructor(n){this.luigi=n}getShellbar(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getShellbarElement()||null}getShellbarActions(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getShellbarActions()||null}getLuigiContainer(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getLuigiContainer()||null}getNavFooterContainer(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getNavFooterContainer()||null}}const Qm={luigiAfterInit:async i=>{F.getConfigBooleanValue(i.getConfig(),"settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{i.ux().hideAppLoadingIndicator()},0),await Xe.executeConfigFnAsync("lifecycleHooks.luigiAfterInit")}};class qm{constructor(){this.featureToggleList=new Set}setFeatureToggle(n,r=!1){this.isValid(n)&&(n.startsWith("!")&&!r||this.isDuplicatedOrDisabled(n)||this.featureToggleList.add(n))}unsetFeatureToggle(n){if(this.isValid(n)){if(!this.featureToggleList.has(n)){console.warn("Feature toggle name is not in the list.");return}this.featureToggleList.delete(n)}}getActiveFeatureToggleList(){return[...Array.from(this.featureToggleList)].filter(r=>!r.startsWith("!"))}isValid(n){return F.isString(n)?!0:(console.warn("Feature toggle name is not valid or not of type 'string'"),!1)}isDuplicatedOrDisabled(n){return this.featureToggleList.has(n)?(console.warn("Feature toggle name already exists"),!0):this.featureToggleList.has(`!${n}`)?(console.warn("Disabled feature toggle can not be activated"),!0):!1}}class _n{constructor(n){this.luigi=n,this._modalStack=[],this.modalSettings={}}async closeModals(){if(this._modalStack.length===0)return;const n=[...this._modalStack];for(const{onInternalClose:r}of n)try{typeof r=="function"&&r()}catch(a){console.warn("onInternalClose threw an error",a)}this.clearModalStack()}registerModal(n){n&&this._modalStack.push(n)}getModalSettings(){return this._modalStack.length>0?this._modalStack[0].modalsettings||{}:{}}getModalStackLength(){return this._modalStack.length}updateFirstModalSettings(n){if(this._modalStack.length>0){const r=this._modalStack[0];r.modalsettings={...r.modalsettings,...n}}}clearModalStack(){this._modalStack=[]}removeLastModalFromStack(){this._modalStack.pop()}}const D={defaultContentViewParamPrefix:"~",defaultQueryParamSeparator:"?",defaultModalViewParamName:"modal",addParamsOnHashRouting(i,n,r){let a=n;const[u,c]=a.split("?"),l=new URLSearchParams(c);return this.modifySearchParams(i,l,r),a=u,l.toString()!==""&&(a+=`?${l.toString()}`),a},modifySearchParams(i,n,r){for(const[a,u]of Object.entries(i)){const c=r?`${r}${a}`:a;n.set(c,u),u===void 0&&n.delete(c)}},filterNodeParams(i,n){const r=Object.create(null),a=this.getContentViewParamPrefix(n);return i&&Object.entries(i).forEach(u=>{if(u[0].startsWith(a)){const c=u[0].substr(a.length);r[c]=u[1]}}),this.sanitizeParamsMap(r)},getContentViewParamPrefix(i){let n=i?.getConfigValue("routing.nodeParamPrefix");return n===!1?n="":n||(n=this.defaultContentViewParamPrefix),n},sanitizeParamsMap(i){return Object.entries(i).reduce((n,r)=>(n[rs.sanitizeParam(r[0])]=rs.sanitizeParam(r[1]),n),{})},prepareSearchParamsForClient(i,n){const r={};return i&&i.clientPermissions&&i.clientPermissions.urlParameters&&Object.keys(i.clientPermissions.urlParameters).forEach(a=>{a in n.routing().getSearchParams()&&i.clientPermissions?.urlParameters&&i.clientPermissions.urlParameters[a]?.read===!0&&(r[a]=n.routing().getSearchParams()[a])}),r},getCurrentPath(i){if(i){const n=Ee.normalizePath(location.hash),[r,a]=n.split("?");return{path:r,query:a}}else return{path:Ee.normalizePath(location.pathname),query:location.search}},getModalPathFromPath(i){return this.getQueryParam(this.getModalViewParamName(i),i)},getQueryParam(i,n){return this.getQueryParams(n)[i]},getQueryParams(i){return i.getConfigValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()},getLocationSearchQueryParams(){return D.getLocation().search?D.parseParams(D.getLocation().search.slice(1)):{}},getLocation(){return location},getLocationHashQueryParams(){const i=D.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return i!==-1?D.parseParams(D.getLocation().hash.slice(i+1)):{}},getModalViewParamName(i){let n=i.getConfigValue("routing.modalPathParam");return n||(n=this.defaultModalViewParamName),n},parseParams(i){const n=new URLSearchParams(i),r=new Map;for(const[a,u]of n.entries())r.set(a,u);return Object.fromEntries(r)},getModalParamsFromPath(i){const n=this.getQueryParam(`${this.getModalViewParamName(i)}Params`,i);return n&&JSON.parse(n)},getHashQueryParamSeparator(){return this.defaultQueryParamSeparator},getURLWithoutModalData(i,n){const r=new URLSearchParams(i);return r.delete(n),r.delete(`${n}Params`),r.toString()},handleHistoryState(i,n){return i&&i.modalHistoryLength?i.modalHistoryLength+=1:i={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:n},i},encodeParams(i){const n=[];for(const r in i)n.push(encodeURIComponent(r)+"="+encodeURIComponent(i[r]));return n.join("&")},getLastNodeObject(i){return(i.nodesInPath?[...i.nodesInPath].pop():{})||{}},checkWCUrl(i,n){if(i.indexOf("://")>0||i.trim().indexOf("//")===0){if(new URL(i).host===window.location.host)return!0;const a=n.getConfigValue("navigation.validWebcomponentUrls");if(a?.length>0)for(const u of a)try{if(new RegExp(u).test(i))return!0}catch(c){console.error(c)}return!1}return!0},setFeatureToggles(i,n,r){const a=this.sanitizeParamsMap(this.parseParams(n.split("?")[1]));let u;if(a[i]&&(u=a[i]),!u)return;const c=u.split(",");c.length>0&&c[0]!==""&&c.forEach(l=>r?.setFeatureToggle(l,!0))},substituteDynamicParamsInObject(i,n,r=":",a=!1){return Object.entries(i).map(([u,c])=>{const l=a?Object.keys(n).find(g=>c&&c.indexOf(r+g)>=0):Object.keys(n).find(g=>c===r+g);return[u,l?a?c.replace(r+l,n[l]):n[l]:c]}).reduce((u,[c,l])=>Object.assign(u,{[c]:l}),{})},isDynamicNode(i){return typeof i.pathSegment=="string"&&i.pathSegment.length>0&&i.pathSegment[0]===":"},getDynamicNodeValue(i,n){return this.isDynamicNode(i)&&i.pathSegment?n[i.pathSegment.substring(1)]:void 0},isExistingRoute(i,n){const r=i?.split("/")||[],a=n?.nodesInPath||[],u=(l,g)=>{let p=null;if(l?.children?.length){const _=l.children.filter(y=>y.pathSegment===g);_?.length&&(p=_[0])}return p};let c=[];if(r.length>1&&a.length===1){let l;r.forEach((g,p)=>{const _=p===0?a[0]:l;l=u(_,g),l?.pathSegment&&c.push(l.pathSegment)})}else c=a.filter(l=>l.pathSegment).map(l=>l.pathSegment||"");return!i||r.length===c.length},async pathExists(i,n){const r=F.getTrimmedUrl(i),a=await n.navigation().navService.getPathData(i),u=D.isExistingRoute(r,a);return a?u:!1},showRouteNotFoundAlert(i,n=!1,r){const a={text:r.i18n().getTranslation(n?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:i}),type:"error",ttl:1};r.ux().showAlert(a)},getPageNotFoundRedirectResult(i,n=!1,r){const a=r.getConfigValue("routing.pageNotFoundHandler");if(typeof a=="function"){const u=a(i,n);if(u&&(u.redirectTo||u.ignoreLuigiErrorHandling))return{path:u.redirectTo,keepURL:u.keepURL,ignoreLuigiErrorHandling:u.ignoreLuigiErrorHandling}}return{}},async handlePageNotFoundAndRetrieveRedirectPath(i,n,r){if(n)return i;const a=r.getConfigValue("routing.pageNotFoundHandler"),u=this.getPageNotFoundRedirectResult(i,a,r)?.path;if(u!==void 0)return u;this.showRouteNotFoundAlert(i,!1,r),console.warn(`Could not find the requested route: ${i}`)},async getDefaultChildNode(i,n){if(!i)return"";const r=i.nodesInPath&&i.nodesInPath[i.nodesInPath.length-1],a=i.context,u=n?await n(r,a):await $n.getConfigValueFromObjectAsync(r,"children",a),c=u.find(l=>l.pathSegment===r.defaultChildNode);if(r.defaultChildNode&&c)return r.defaultChildNode;if(u&&u.length){if(i?.nodesInPath?.length===1){const p=u.find(_=>_.pathSegment);return p&&p.pathSegment||console.error("At least one navigation node in the root hierarchy must have a pathSegment.")}const g=u.find(p=>p.pathSegment&&(p.viewUrl||p.compound||p.externalLink&&p.externalLink.url));if(g)return g.pathSegment}return""},getNodePath(i,n){return!i||n?i?this.buildRoute(i,i.pathSegment?"/"+i.pathSegment:"",n):"":`${i.parent?this.getNodePath(i.parent):""}/${i.pathSegment}`},buildRoute(i,n,r){return i.parent?this.buildRoute(i.parent,`/${i.parent.pathSegment}${n}`,r):n+(r?"?"+r:"")},substituteViewUrl(i,n,r){return i=F.replaceVars(i,n,":",!1),i},getSubPath(i,n){return F.replaceVars(D.getNodePath(i),n,":",!1)},concatenatePath(i,n){let r=F.getPathWithoutHashOrSlash(i);return r?(n&&(r.endsWith("/")&&(r=r.substring(0,r.length-1)),n.startsWith("/")||(r+="/"),r+=n),r):n}},Ee={normalizePath:i=>{if(!i||i.length<=0)return i;let n=i;return n.startsWith("#")&&(n=n.substring(1)),n.startsWith("/")&&(n=n.substring(1)),n},segmentMatches:(i,n,r)=>!!(i===n||n.startsWith(":")&&r&&r[n.substr(1)]===i),checkMatch:(i,n,r)=>{let a=!0;return F.trimTrailingSlash(F.trimLeadingSlash(i)).split("/").forEach((u,c)=>{a&&(c+1>=n.length||!n[c+1]?.pathSegment||!Ee.segmentMatches(u,n[c+1]?.pathSegment??"",r??{}))&&(a=!1)}),a},checkVisibleForFeatureToggles:(i,n)=>{if(i?.visibleForFeatureToggles){const r=n?.getActiveFeatureToggleList()||[];for(const a of i.visibleForFeatureToggles)if(a.startsWith("!")){if(r.includes(a.slice(1)))return!1}else if(!r.includes(a))return!1}return!0},generateTooltipText:(i,n,r)=>{let a=i?.tooltipText;switch(a===void 0&&(a=r.getConfigValue("navigation.defaults.tooltipText")),a){case void 0:return n;case!1:return"";default:return r.i18n().getTranslation(a)}},isNodeAccessPermitted:(i,n,r,a)=>{if(a.auth().isAuthorizationEnabled()){const l=Un.isLoggedIn(),g=i.anonymousAccess;if(l&&g==="exclusive"||!l&&g!=="exclusive"&&g!==!0)return!1}const u=a.featureToggles();if(!Ee.checkVisibleForFeatureToggles(i,u))return!1;const c=a.getConfigValue("navigation.nodeAccessibilityResolver");return typeof c!="function"?!0:c(i,n,r)},applyContext:(i,n,r)=>{if(n)for(let a in n)i[a]=n[a];return r&&i.parentNavigationContexts&&i.parentNavigationContexts.unshift(r),i},updateHeaderTitle:(i,n)=>{const r=i?.items;if(r&&n){let a="";return[...r].sort((u,c)=>(c.link||"").localeCompare(u.link||"")).some(u=>{let c=!1;if(c=Ee.checkMatch(u.link||"",n.nodesInPath??[]),!c&&u.selectionConditions&&u.selectionConditions.route&&(c=Ee.checkMatch(u.selectionConditions.route,n.nodesInPath??[]),c&&(u.selectionConditions.contextCriteria||[]).forEach(l=>{c=c&&n?.selectedNode?.context?.[l.key]===l.value})),c)return a=u.title||"",!0}),a}},buildPath(i,n){return i.map(a=>{const u=a.pathSegment;if(u?.startsWith(":")){const c=u.slice(1),l=n?.pathParams?.[c];if(l!=null)return encodeURIComponent(String(l))}return u}).join("/")},mergeContext(...i){return Object.assign({},...i)},prepareForTests(...i){let n="";return i.forEach(r=>{r&&(n+=(n?"_":"")+encodeURIComponent(r.toLowerCase().split(" ").join("")))}),n},findVirtualTreeRootNode(i){if(i.virtualTree)return i;if(i.parent)return Ee.findVirtualTreeRootNode(i.parent)},validatePathAndGetRedirect:async(i,n)=>{const r=await D.pathExists(i,n);return await D.handlePageNotFoundAndRetrieveRedirectPath(i,r,n)||void 0}};class vn{constructor(){this.dataManagement=new Map}setChildren(n,r){this.dataManagement.set(n,r),this.navPath=""}getChildren(n){return n?this.dataManagement.get(n):{}}hasChildren(n){const r=this.getChildren(n);return!!(r&&Object.prototype.hasOwnProperty.call(r,"children"))}setRootNode(n){this.dataManagement.set("_luigiRootNode",{node:n})}getRootNode(){return this.dataManagement.get("_luigiRootNode")}hasRootNode(){return!!this.getRootNode()}deleteCache(){this.dataManagement.clear()}deleteNodesRecursively(n){if(this.hasChildren(n)){const r=this.getChildren(n).children;for(let a=0;a<r.length;a++)this.deleteNodesRecursively(r[a])}this.dataManagement.delete(n)}}const Na={logout:{label:"Sign Out",icon:"log"}};class zm{constructor(){this.services=new Map}register(n,r,a=!0){this.services.set(n,{factory:r,singleton:a})}get(n){const r=this.services.get(n);if(!r)throw new Error(`Service '${n}' is not registered.`);return r.singleton?(r.instance||(r.instance=r.factory()),r.instance):r.factory()}}const te=new zm;class mn{constructor(n){this.luigi=n}getModalService(){return this.modalService||(this.modalService=te.get(_n)),this.modalService}getNodeDataManagementService(){return this.nodeDataManagementService||(this.nodeDataManagementService=te.get(vn)),this.nodeDataManagementService}async getPathData(n){const r=this.luigi.getConfig();let a=n.split("/");a?.length>0&&a[0]===""&&(a=a.slice(1));let c=r.navigation?.globalContext||{},l;if(this.getNodeDataManagementService().hasRootNode())l=this.getNodeDataManagementService().getRootNode().node;else{const T=await this.luigi.getConfigValueAsync("navigation.nodes");typeof T=="object"&&!Array.isArray(T)?(l=T,l.pathSegment&&(l.pathSegment="",console.warn("Root node must have an empty path segment. Provided path segment will be ignored."))):l={children:T},l.children=await this.getChildren(l,c),l.children=this.prepareRootNodes(l.children||[],c),this.getNodeDataManagementService().setRootNode(l)}const g={...c||{},...l.context||{}},p={},_={context:g,selectedNodeChildren:l.children,nodesInPath:[l],rootNodes:l.children,pathParams:p,matchedPath:""};if(l.viewUrl&&a.length===0)_.selectedNode=l;else for(const T of a)if(_.selectedNodeChildren){const E=this.findMatchingNode(T,_.selectedNodeChildren||[]);if(!E){console.warn("No matching node found for segment:",T);break}const R=E.context||{},P=Ee.mergeContext(c,R);let N=P;if(E.pathSegment?.startsWith(":")&&(p[E.pathSegment.replace(":","")]=rs.sanitizeParam(T),N=D.substituteDynamicParamsInObject(P,p)),c=N,E.context=N,_.selectedNode=E,_.selectedNode&&_.nodesInPath?.push(_.selectedNode),E.virtualTree||E._virtualTree){const H=this.buildVirtualTree(E,T,p);H&&H.length>0&&(E.children=H)}_.selectedNodeChildren=await this.getChildren(E,c)}const y=_.nodesInPath?.filter(T=>T.pathSegment).map(T=>T.pathSegment)||[];return _.matchedPath=a.filter((T,E)=>y[E]&&y[E].startsWith(":")||y[E]===T).join("/")||"",_}findMatchingNode(n,r){let a;const u=r.filter(l=>!!l.pathSegment).length,c=r.filter(l=>l.pathSegment&&l.pathSegment.startsWith(":")).length;if(u>1&&(c===1&&(console.warn(`Invalid node setup detected.
21
21
  Static and dynamic nodes cannot be used together on the same level. Static node gets cleaned up.
22
22
  Remove the static node from the configuration to resolve this warning.
23
23
  Affected pathSegment:`,n,"Children:",r),r=r.filter(l=>l.pathSegment&&l.pathSegment.startsWith(":"))),c>1)){console.error(`Invalid node setup detected.
24
24
  Multiple dynamic nodes are not allowed on the same level. Stopped navigation.
25
- Invalid Children:`,r);return}return r.some(l=>{if(l.pathSegment===n||l.pathSegment&&l.pathSegment.startsWith(":"))return a=l,!0}),a}buildNavItems(n,r,a){const u={},c=[];return n?.forEach(l=>{if(Le.isNodeAccessPermitted(l,this.getParentNode(a.selectedNode,a),a?.selectedNode?.context||{},this.luigi))if(l.category){const g=l.category.id||l.category.label||l.category,p=this.luigi.i18n().getTranslation(l.category.label||l.category.id||l.category);let _=u[g];_||(_={category:{altText:l.category.altText||"",icon:l.category.icon,id:g,label:p,nodes:[],tooltip:this.resolveTooltipText(l.category,p)}},u[g]=_,c.push(_)),_.category?.nodes?.push({node:l,selected:l===r,label:l.label?this.luigi.i18n().getTranslation(l.label):void 0,tooltip:l.label?this.resolveTooltipText(l,l.label):void 0,altText:l.altText,icon:l.icon})}else c.push({altText:l.altText,icon:l.icon,label:l.label?this.luigi.i18n().getTranslation(l.label):void 0,tooltip:l.label?this.resolveTooltipText(l,l.label):void 0,node:l,selected:l===r})}),c}async shouldRedirect(n,r){const a=r??await this.getPathData(n);if(n=="")return a?.nodesInPath?.[0].viewUrl?void 0:a?.rootNodes?.[0]?.pathSegment;if(a?.selectedNode&&!a.selectedNode.viewUrl&&a.selectedNode.children?.length)return n+"/"+a.selectedNode.children[0].pathSegment}async getCurrentNode(n){const r=await this.getPathData(n),a=r.selectedNode;if(!(!a||!Le.isNodeAccessPermitted(a,this.getParentNode(r.selectedNode,r),r?.selectedNode?.context||{},this.luigi)))return a}async getPathParams(n){return(await this.getPathData(n)).pathParams}getTruncatedChildren(n){let r=!1,a=!1,u=[];return n.slice().reverse().forEach(c=>{(!r||c.tabNav)&&(c.tabNav===!1&&(a=!0),c.keepSelectedForChildren===!1?r=!0:(c.keepSelectedForChildren||c.tabNav&&!a)&&(r=!0,u=[])),u.push(c)}),u.reverse()}applyNavGroups(n){const r={},a=[],c=[];return n.forEach(l=>{if(l.node)c.push(l);else if(l.category){const g=l.category.id;g&&g.indexOf("::")>0?a.push(l):(l.category.isGroup,r[g]=l,c.push(l))}}),a.forEach(l=>{const g=l.category?.id.split("::")[0]||"",p=r[g];p&&p.category&&(p.category.isGroup||(p.category.isGroup=!0),p.category.nodes||(p.category.nodes=[]),p.category.nodes.push(l))}),c.filter(l=>{if(l.category?.isGroup&&l.category?.nodes&&l.category?.nodes.length>0){for(let g=0;g<l.category?.nodes.length;g++){const p=l.category?.nodes[g];if(p.node&&!p.node.hideFromNav&&p.node.label||p.category?.nodes&&p.category.nodes.filter(_=>!_.node?.hideFromNav&&_.node?.label).length>0)return!0}return!1}return!0})}async getLeftNavData(n,r){const a=r??await this.getPathData(n);if(n===""&&a?.nodesInPath?.[0].viewUrl)return{items:[],basePath:"",selectedNode:{},navClick:void 0};let u=[];const c=[];let l="";a.nodesInPath?.forEach(y=>{y.children&&(y.tabNav||(l+="/"+(y.pathSegment||"")),c.push(y))});const g=this.getTruncatedChildren(a.nodesInPath??[]);let p=[...g].pop(),_=a.selectedNode;(p?.keepSelectedForChildren||p?.tabNav)&&(_=p,g.pop(),p=[...g].pop());let T,A=_;_?a.rootNodes.includes(_)?(T=_,A=void 0):_.tabNav||_.keepSelectedForChildren?T=p:T=[...c].pop():(T=[...c].pop(),A=void 0);let E=await this.getChildren(T,T?.context||{})||[];return u=this.buildNavItems(E,A,a),u=this.applyNavGroups(u),{selectedNode:_||{},items:u,basePath:l.replace(/\/\/+/g,"/"),sideNavFooterText:this.luigi.getConfig().settings?.sideNavFooterText,navClick:y=>y.node&&this.navItemClick(y.node,a)}}navItemClick(n,r){let a=F.getNodePath(n),u=r?.pathParams;if(a=W.replaceVars(a,u||{},":",!1),!a&&a!==""){console.error("Navigation error: could not build path for the node. Check if pathSegment is defined for all nodes in the path and if there are no duplicate pathSegments on the same level.");return}this.luigi.navigation().navigate(a)}async getTopNavData(n,r){const a=this.luigi.getConfig(),u=r??await this.getPathData(n),c=a.navigation?.profile?.items?.length?JSON.parse(JSON.stringify(a.navigation.profile.items)):[],l=a.navigation?.appSwitcher&&this.getAppSwitcherData(a.navigation?.appSwitcher,a.settings?.header),g=Le.updateHeaderTitle(l,u);c?.length&&c.map(y=>({...y,label:this.luigi.i18n().getTranslation(y.label||"")}));const p=this.luigi.i18n().getTranslation(a.navigation?.profile?.logout?.label)||Na.logout.label,_=y=>{if(y.openNodeInModal&&!y.externalLink?.url)this.luigi.navigation().openAsModal(y.link||"",y.openNodeInModal===!0?{}:y.openNodeInModal);else if(y.link)this.luigi.navigation().navigate(y.link);else if(y.externalLink?.url)if(y.externalLink.sameWindow)window.location.href=y.externalLink.url;else{const I=window.open(y.externalLink.url,"_blank","noopener noreferrer");I&&(I.opener=null,I.focus())}},T={authEnabled:this.luigi.auth().isAuthorizationEnabled(),signedIn:this.luigi.auth().isAuthorizationEnabled()&&On.isLoggedIn(),items:c,itemClick:_,logout:{altText:this.luigi.i18n().getTranslation(a.navigation?.profile?.logout?.altText)||Na.logout.label,label:p,icon:a.navigation?.profile?.logout?.icon||Na.logout.icon,testId:a.navigation?.profile?.logout?.testId||Le.prepareForTests(p),doLogout:()=>{hr.logout()}},onUserInfoUpdate:y=>{this.luigi.getConfigValueAsync("navigation.profile.staticUserInfoFn").then(I=>{I?y(I):hr.getUserInfoStore().subscribe(O=>{y(O)})})}},A=u.selectedNode,E=A&&u.rootNodes.includes(A)?A:void 0;return{appTitle:g||a.settings?.header?.title,logo:a.settings?.header?.logo,topNodes:this.buildNavItems(u.rootNodes,E,u),productSwitcher:a.navigation?.productSwitcher,profile:this.luigi.auth().isAuthorizationEnabled()||a.navigation?.profile?T:void 0,appSwitcher:a.navigation?.appSwitcher&&this.getAppSwitcherData(a.navigation?.appSwitcher,a.settings?.header),navClick:y=>y.node&&this.navItemClick(y.node,u)}}getParentNode(n,r){if(n&&n===r.nodesInPath?.[r.nodesInPath.length-1])return r.nodesInPath[r.nodesInPath.length-2]}getAppSwitcherData(n,r){const a=n,u=a?.showMainAppEntry;if(a&&a.items&&u){const c={title:this.luigi.i18n().getTranslation(r.title||""),subTitle:r.subTitle,link:"/"};if(a.items?.map(l=>({...l,title:this.luigi.i18n().getTranslation(l.title||"")})),a.items.some(l=>l.link===c.link))return a;a.items.unshift(c)}return a}async getTabNavData(n,r){const a=r??await this.getPathData(n);if(n===""&&a?.nodesInPath?.[0].viewUrl)return{};const u=a?.selectedNode;let c;if(!u)return{};if(!u.tabNav&&(c=this.getParentNode(u,a),c&&!c.tabNav))return{};let l="";a.nodesInPath?.forEach(_=>{_.children&&(l+="/"+(_.pathSegment||""))});const g=c?this.getTruncatedChildren(c.children??[]):this.getTruncatedChildren(u.children??[]),p=this.buildNavItems(g,u,a);return{selectedNode:u,items:p,basePath:l.replace(/\/\/+/g,"/"),navClick:_=>_.node&&this.navItemClick(_.node,a)}}onNodeChange(n,r){const a=this.luigi.getConfigValue("navigation.nodeChangeHook");W.isFunction(a)?a(n,r):a!==void 0&&console.warn("nodeChangeHook is not a function!")}async extractDataFromPath(n){const r=await this.getPathData(n);return{nodeObject:F.getLastNodeObject(r),pathData:r}}async shouldPreventNavigation(n){return!!(n?.onNodeActivation&&(W.isFunction(n.onNodeActivation)||W.isAsyncFunction(n.onNodeActivation))&&await n.onNodeActivation(n)===!1)}async shouldPreventNavigationForPath(n){const{nodeObject:r}=await this.extractDataFromPath(n);return!!await this.shouldPreventNavigation(r)}async openViewInNewTab(n){if(await this.shouldPreventNavigationForPath(n))return;this.luigi.getConfigValue("routing.useHashRouting")&&(n="#"+n);let a;try{if(a=new URL(n,window.location.origin),a.origin!==window.location.origin)return}catch{return}window.open(a.toString(),"_blank","noopener,noreferrer")}resolveTooltipText(n,r){return Le.generateTooltipText(n,r,this.luigi)}prepareRootNodes(n,r){const a=n;return a.length&&a.forEach(u=>{u.isRootNode=!0}),a}getAccessibleNodes(n,r,a){return r?r.filter(u=>Le.isNodeAccessPermitted(u,n,a,this.luigi)):[]}async handleNavigationRequest(n,r){const{path:a,preserveView:u,modalSettings:c,newTab:l,withoutSync:g,preventContextUpdate:p,preventHistoryEntry:_,options:T}=n;let A=await this.buildPath(a,T||{});const E=A.replace(/\/\/+/g,"/"),y=_?"replaceState":"pushState";if(c)c.keepPrevious||this.getModalService().closeModals(),this.luigi.navigation().openAsModal(E,c,r);else{const I={detail:{preventContextUpdate:!!p,preventHistoryEntry:!!_,withoutSync:!!g}};if(await te.get(_n).closeModals(),l){await this.openViewInNewTab(A);return}const O=this.luigi.getConfigValue("routing.disableBrowserHistory")?"replaceState":y;if(this.luigi.getConfig().routing?.useHashRouting)if(!g&&O!=="replaceState")location.hash=E;else{const k=new CustomEvent("hashchange",I);window.history[O]({path:"/#"+E},"","/#"+E),window.dispatchEvent(k)}else{const k=new CustomEvent("popstate",I);window.history[O]({path:E},"",E),window.dispatchEvent(k)}}}async getChildren(n,r={}){const a=te.get(vn);if(!n)return[];let u=[];if(a.hasChildren(n)){let l=a.getChildren(n);l&&(u=l.children)}else try{u=await fr.getConfigValueFromObjectAsync(n,"children",r||n.context),u==null&&(u=[]),u=u.map(l=>this.getExpandStructuralPathSegment(l)).map(l=>this.bindChildToParent(l,n))||[]}catch(l){console.error("Could not lazy-load children for node",l)}let c=this.getAccessibleNodes(n,u,r);return a.setChildren(n,{children:u,filteredChildren:c}),c}getExpandStructuralPathSegment(n){if(n&&n.pathSegment&&n.pathSegment.indexOf("/")!==-1){const r=n.pathSegment.split("/"),a={...n},u=(c,l)=>{const g=c.shift();let p={};return c.length?(p.pathSegment=g,l.hideFromNav&&(p.hideFromNav=l.hideFromNav),p.children=[u(c,l)]):(p=a,p.pathSegment=g),p};return u(r,n)}return n}bindChildToParent(n,r){return r&&r.pathSegment&&(n.parent=r),n}buildVirtualTree(n,r,a){const u=n.virtualTree,c=n._virtualTree,l=n._virtualViewUrl||n.viewUrl;if((u||c)&&r){let g=typeof n._virtualPathIndex=="number"?n._virtualPathIndex:void 0;u&&(g=void 0,n.keepSelectedForChildren=!0);const p=50;if(typeof g=="number"&&g>p)return;const _=(g??0)+1;if(_>p)return;const T=["_*","virtualTree","parent","children","keepSelectedForChildren","navigationContext"],A=W.removeProperties(n,T);Object.assign(A,{pathSegment:":virtualSegment_"+_,label:":virtualSegment_"+_,viewUrl:W.trimTrailingSlash(this.buildVirtualViewUrl(l||"",a,_)),_virtualTree:!0,_virtualPathIndex:_,_virtualViewUrl:l});const E=Array.isArray(n.children)&&n.children.length>0?n.children[0]._virtualTree:!1;return n.children&&!E&&console.warn(`Found both virtualTree and children nodes defined on a navigation node.
25
+ Invalid Children:`,r);return}return r.some(l=>{if(l.pathSegment===n||l.pathSegment&&l.pathSegment.startsWith(":"))return a=l,!0}),a}buildNavItems(n,r,a){const u={},c=[];return n?.forEach(l=>{if(Ee.isNodeAccessPermitted(l,this.getParentNode(a.selectedNode,a),a?.selectedNode?.context||{},this.luigi))if(l.category){const g=l.category.id||l.category.label||l.category,p=this.luigi.i18n().getTranslation(l.category.label||l.category.id||l.category);let _=u[g];_||(_={category:{altText:l.category.altText||"",icon:l.category.icon,id:g,label:p,nodes:[],tooltip:this.resolveTooltipText(l.category,p)}},u[g]=_,c.push(_)),_.category?.nodes?.push({node:l,selected:l===r,label:l.label?this.luigi.i18n().getTranslation(l.label):void 0,tooltip:l.label?this.resolveTooltipText(l,l.label):void 0,altText:l.altText,icon:l.icon})}else c.push({altText:l.altText,icon:l.icon,label:l.label?this.luigi.i18n().getTranslation(l.label):void 0,tooltip:l.label?this.resolveTooltipText(l,l.label):void 0,node:l,selected:l===r})}),c}async getCurrentNode(n){const r=await this.getPathData(n);let a=r.selectedNode;if(!a&&r.nodesInPath?.length===1&&(a=r.nodesInPath[0]),!(!a||!Ee.isNodeAccessPermitted(a,this.getParentNode(r.selectedNode,r),r?.selectedNode?.context||{},this.luigi)))return a}async getPathParams(n){return(await this.getPathData(n)).pathParams}getTruncatedChildren(n){let r=!1,a=!1,u=[];return n.slice().reverse().forEach(c=>{(!r||c.tabNav)&&(c.tabNav===!1&&(a=!0),c.keepSelectedForChildren===!1?r=!0:(c.keepSelectedForChildren||c.tabNav&&!a)&&(r=!0,u=[])),u.push(c)}),u.reverse()}applyNavGroups(n){const r={},a=[],c=[];return n.forEach(l=>{if(l.node)c.push(l);else if(l.category){const g=l.category.id;g&&g.indexOf("::")>0?a.push(l):(l.category.isGroup,r[g]=l,c.push(l))}}),a.forEach(l=>{const g=l.category?.id.split("::")[0]||"",p=r[g];p&&p.category&&(p.category.isGroup||(p.category.isGroup=!0),p.category.nodes||(p.category.nodes=[]),p.category.nodes.push(l))}),c.filter(l=>{if(l.category?.isGroup&&l.category?.nodes&&l.category?.nodes.length>0){for(let g=0;g<l.category?.nodes.length;g++){const p=l.category?.nodes[g];if(p.node&&!p.node.hideFromNav&&p.node.label||p.category?.nodes&&p.category.nodes.filter(_=>!_.node?.hideFromNav&&_.node?.label).length>0)return!0}return!1}return!0})}async getLeftNavData(n,r){const a=r??await this.getPathData(n);if(n===""&&a?.nodesInPath?.[0].viewUrl)return{items:[],basePath:"",selectedNode:{},navClick:void 0};let u=[];const c=[];let l="";a.nodesInPath?.forEach(R=>{R.children&&(R.tabNav||(l+="/"+(R.pathSegment||"")),c.push(R))});const g=this.getTruncatedChildren(a.nodesInPath??[]);let p=[...g].pop(),_=a.selectedNode;(p?.keepSelectedForChildren||p?.tabNav)&&(_=p,g.pop(),p=[...g].pop());let y,T=_;_?a.rootNodes.includes(_)?(y=_,T=void 0):_.tabNav||_.keepSelectedForChildren?y=p:y=[...c].pop():(y=[...c].pop(),T=void 0);let E=await this.getChildren(y,y?.context||{})||[];return u=this.buildNavItems(E,T,a),u=this.applyNavGroups(u),{selectedNode:_||{},items:u,basePath:l.replace(/\/\/+/g,"/"),sideNavFooterText:this.luigi.getConfig().settings?.sideNavFooterText,navClick:R=>R.node&&this.navItemClick(R.node,a)}}navItemClick(n,r){let a=D.getNodePath(n),u=r?.pathParams;if(a=F.replaceVars(a,u||{},":",!1),!a&&a!==""){console.error("Navigation error: could not build path for the node. Check if pathSegment is defined for all nodes in the path and if there are no duplicate pathSegments on the same level.");return}this.luigi.navigation().navigate(a)}async getTopNavData(n,r){const a=this.luigi.getConfig(),u=r??await this.getPathData(n),c=a.navigation?.profile?.items?.length?JSON.parse(JSON.stringify(a.navigation.profile.items)):[],l=a.navigation?.appSwitcher&&this.getAppSwitcherData(a.navigation?.appSwitcher,a.settings?.header),g=Ee.updateHeaderTitle(l,u);c?.length&&c.map(R=>({...R,label:this.luigi.i18n().getTranslation(R.label||"")}));const p=this.luigi.i18n().getTranslation(a.navigation?.profile?.logout?.label)||Na.logout.label,_=R=>{if(R.openNodeInModal&&!R.externalLink?.url)this.luigi.navigation().openAsModal(R.link||"",R.openNodeInModal===!0?{}:R.openNodeInModal);else if(R.link)this.luigi.navigation().navigate(R.link);else if(R.externalLink?.url)if(R.externalLink.sameWindow)window.location.href=R.externalLink.url;else{const P=window.open(R.externalLink.url,"_blank","noopener noreferrer");P&&(P.opener=null,P.focus())}},y={authEnabled:this.luigi.auth().isAuthorizationEnabled(),signedIn:this.luigi.auth().isAuthorizationEnabled()&&Un.isLoggedIn(),items:c,itemClick:_,logout:{altText:this.luigi.i18n().getTranslation(a.navigation?.profile?.logout?.altText)||Na.logout.label,label:p,icon:a.navigation?.profile?.logout?.icon||Na.logout.icon,testId:a.navigation?.profile?.logout?.testId||Ee.prepareForTests(p),doLogout:()=>{fr.logout()}},onUserInfoUpdate:R=>{this.luigi.getConfigValueAsync("navigation.profile.staticUserInfoFn").then(P=>{P?R(P):fr.getUserInfoStore().subscribe(N=>{R(N)})})}},T=u.selectedNode,E=T&&u.rootNodes.includes(T)?T:void 0;return{appTitle:g||a.settings?.header?.title,logo:a.settings?.header?.logo,topNodes:this.buildNavItems(u.rootNodes,E,u),productSwitcher:a.navigation?.productSwitcher,profile:this.luigi.auth().isAuthorizationEnabled()||a.navigation?.profile?y:void 0,appSwitcher:a.navigation?.appSwitcher&&this.getAppSwitcherData(a.navigation?.appSwitcher,a.settings?.header),navClick:R=>R.node&&this.navItemClick(R.node,u)}}getParentNode(n,r){if(n&&n===r.nodesInPath?.[r.nodesInPath.length-1])return r.nodesInPath[r.nodesInPath.length-2]}getAppSwitcherData(n,r){const a=n,u=a?.showMainAppEntry;if(a&&a.items&&u){const c={title:this.luigi.i18n().getTranslation(r.title||""),subTitle:r.subTitle,link:"/"};if(a.items?.map(l=>({...l,title:this.luigi.i18n().getTranslation(l.title||"")})),a.items.some(l=>l.link===c.link))return a;a.items.unshift(c)}return a}async getTabNavData(n,r){const a=r??await this.getPathData(n);if(n===""&&a?.nodesInPath?.[0].viewUrl)return{};const u=a?.selectedNode;let c;if(!u)return{};if(!u.tabNav&&(c=this.getParentNode(u,a),c&&!c.tabNav))return{};let l="";a.nodesInPath?.forEach(_=>{_.children&&(l+="/"+(_.pathSegment||""))});const g=c?this.getTruncatedChildren(c.children??[]):this.getTruncatedChildren(u.children??[]),p=this.buildNavItems(g,u,a);return{selectedNode:u,items:p,basePath:l.replace(/\/\/+/g,"/"),navClick:_=>_.node&&this.navItemClick(_.node,a)}}onNodeChange(n,r){const a=this.luigi.getConfigValue("navigation.nodeChangeHook");F.isFunction(a)?a(n,r):a!==void 0&&console.warn("nodeChangeHook is not a function!")}async extractDataFromPath(n){const r=await this.getPathData(n);return{nodeObject:D.getLastNodeObject(r),pathData:r}}async shouldPreventNavigation(n){return!!(n?.onNodeActivation&&(F.isFunction(n.onNodeActivation)||F.isAsyncFunction(n.onNodeActivation))&&await n.onNodeActivation(n)===!1)}async shouldPreventNavigationForPath(n){const{nodeObject:r}=await this.extractDataFromPath(n);return!!await this.shouldPreventNavigation(r)}async openViewInNewTab(n){if(await this.shouldPreventNavigationForPath(n))return;this.luigi.getConfigValue("routing.useHashRouting")&&(n="#"+n);let a;try{if(a=new URL(n,window.location.origin),a.origin!==window.location.origin)return}catch{return}window.open(a.toString(),"_blank","noopener,noreferrer")}resolveTooltipText(n,r){return Ee.generateTooltipText(n,r,this.luigi)}prepareRootNodes(n,r){const a=n;return a.length&&a.forEach(u=>{u.isRootNode=!0}),a}getAccessibleNodes(n,r,a){return r?r.filter(u=>Ee.isNodeAccessPermitted(u,n,a,this.luigi)):[]}async handleNavigationRequest(n,r){const{path:a,preserveView:u,modalSettings:c,newTab:l,withoutSync:g,preventContextUpdate:p,preventHistoryEntry:_,options:y}=n,E=(await this.buildPath(a,y||{})).replace(/\/\/+/g,"/"),R=_?"replaceState":"pushState";if(c)c.keepPrevious||this.getModalService().closeModals(),this.luigi.navigation().openAsModal(E,c,r);else{const P={detail:{preventContextUpdate:!!p,preventHistoryEntry:!!_,withoutSync:!!g}};if(await te.get(_n).closeModals(),l){await this.openViewInNewTab(E);return}const N=this.luigi.getConfigValue("routing.disableBrowserHistory")?"replaceState":R;if(this.luigi.getConfig().routing?.useHashRouting)if(!g&&N!=="replaceState")location.hash=E;else{const H=new CustomEvent("hashchange",P);window.history[N]({path:"/#"+E},"","/#"+E),window.dispatchEvent(H)}else{const H=new CustomEvent("popstate",P);window.history[N]({path:E},"",E),window.dispatchEvent(H)}}}async getChildren(n,r={}){const a=te.get(vn);if(!n)return[];let u=[];if(a.hasChildren(n)){let l=a.getChildren(n);l&&(u=l.children)}else try{u=await $n.getConfigValueFromObjectAsync(n,"children",r||n.context),u==null&&(u=[]),u=u.map(l=>this.getExpandStructuralPathSegment(l)).map(l=>this.bindChildToParent(l,n))||[]}catch(l){console.error("Could not lazy-load children for node",l)}let c=this.getAccessibleNodes(n,u,r);return a.setChildren(n,{children:u,filteredChildren:c}),c}getExpandStructuralPathSegment(n){if(n&&n.pathSegment&&n.pathSegment.indexOf("/")!==-1){const r=n.pathSegment.split("/"),a={...n},u=(c,l)=>{const g=c.shift();let p={};return c.length?(p.pathSegment=g,l.hideFromNav&&(p.hideFromNav=l.hideFromNav),p.children=[u(c,l)]):(p=a,p.pathSegment=g),p};return u(r,n)}return n}bindChildToParent(n,r){return r&&r.pathSegment&&(n.parent=r),n}buildVirtualTree(n,r,a){const u=n.virtualTree,c=n._virtualTree,l=n._virtualViewUrl||n.viewUrl;if((u||c)&&r){let g=typeof n._virtualPathIndex=="number"?n._virtualPathIndex:void 0;u&&(g=void 0,n.keepSelectedForChildren=!0);const p=50;if(typeof g=="number"&&g>p)return;const _=(g??0)+1;if(_>p)return;const y=["_*","virtualTree","parent","children","keepSelectedForChildren","navigationContext"],T=F.removeProperties(n,y);Object.assign(T,{pathSegment:":virtualSegment_"+_,label:":virtualSegment_"+_,viewUrl:F.trimTrailingSlash(this.buildVirtualViewUrl(l||"",a,_)),_virtualTree:!0,_virtualPathIndex:_,_virtualViewUrl:l});const E=Array.isArray(n.children)&&n.children.length>0?n.children[0]._virtualTree:!1;return n.children&&!E&&console.warn(`Found both virtualTree and children nodes defined on a navigation node.
26
26
  Children nodes are redundant and ignored when virtualTree is enabled.
27
- Please refer to documentation`),[A]}}buildVirtualViewUrl(n,r,a){let u="";for(const c in r)c.startsWith("virtualSegment")&&(u+=":"+c+"/");return a?(u+=":virtualSegment_"+a+"/",n+"/"+u):n}async buildPath(n,r){const{fromVirtualTreeRoot:a,fromContext:u,fromClosestContext:c,fromParent:l,relative:g,nodeParams:p}=r,_=this.luigi.getConfigValue("routing.useHashRouting"),{path:T,query:A}=F.getCurrentPath(_),E=T+(A?"?"+A:""),y=await this.getPathData(E),I=y.nodesInPath;let O=n;if(I===void 0)return console.warn("No nodes in path found for current path:",E),O;if(a){O="";const k=[...I].map((G,re)=>G.virtualTree?re:-1).filter(G=>G!==-1).pop();I.forEach((G,re)=>{G.pathSegment&&(k===void 0||re<=k)&&(O+="/"+G.pathSegment)}),O+="/"+n}else if(u){const k=u,G=[...I].reverse().find(re=>k===re.navigationContext);O=F.concatenatePath(F.getSubPath(G,y.pathParams),n)}else if(c){const k=[...I].reverse().find(G=>G.navigationContext&&G.navigationContext.length>0);O=F.concatenatePath(F.getSubPath(k,y.pathParams),n)}else l?O=F.concatenatePath(F.getSubPath(y.selectedNode?.parent,y.pathParams),n):g&&(O=F.concatenatePath(F.getSubPath(y.selectedNode,y.pathParams),n));return p&&Object.keys(p).length>0&&(O+=O.includes("?")?"&":"?",Object.entries(p).forEach((k,G)=>{O+=encodeURIComponent(F.getContentViewParamPrefix(this.luigi)+k[0])+"="+encodeURIComponent(k[1])+(G<Object.keys(p).length-1?"&":"")})),O}}function hn(){}function sc(i){return i()}function Fl(){return Object.create(null)}function is(i){i.forEach(sc)}function ac(i){return typeof i=="function"}function oc(i,n){return i!=i?n==n:i!==n||i&&typeof i=="object"||typeof i=="function"}let Yi,Yr;function kl(i,n){return i===n||(Yi||(Yi=document.createElement("a")),Yi.href=n,i===Yi.href)}function Km(i,n,r){const a=(function(u){if(!u)return document;const c=u.getRootNode?u.getRootNode():u.ownerDocument;return c&&c.host?c:u.ownerDocument})(i);if(!a.getElementById(n)){const u=pr("style");u.id=n,u.textContent=r,(function(c,l){(function(g,p){g.appendChild(p)})(c.head||c,l),l.sheet})(a,u)}}function Un(i,n,r){i.insertBefore(n,r||null)}function gn(i){i.parentNode&&i.parentNode.removeChild(i)}function pr(i){return document.createElement(i)}function uc(i){return document.createTextNode(i)}function _t(i,n,r){r==null?i.removeAttribute(n):i.getAttribute(n)!==r&&i.setAttribute(n,r)}function Qr(i){Yr=i}function lc(){if(!Yr)throw new Error("Function called outside component initialization");return Yr}function cc(i){lc().$$.on_mount.push(i)}const ir=[],Xr=[];let gr=[];const Wl=[],Ym=Promise.resolve();let Ma=!1;function Fa(i){gr.push(i)}const Oa=new Set;let rr=0;function q(){if(rr!==0)return;const i=Yr;do{try{for(;rr<ir.length;){const n=ir[rr];rr++,Qr(n),Xm(n.$$)}}catch(n){throw ir.length=0,rr=0,n}for(Qr(null),ir.length=0,rr=0;Xr.length;)Xr.pop()();for(let n=0;n<gr.length;n+=1){const r=gr[n];Oa.has(r)||(Oa.add(r),r())}gr.length=0}while(ir.length);for(;Wl.length;)Wl.pop()();Ma=!1,Oa.clear(),Qr(i)}function Xm(i){if(i.fragment!==null){i.update(),is(i.before_update);const n=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,n),i.after_update.forEach(Fa)}}const Zm=new Set;function Jm(i,n){const r=i.$$;r.fragment!==null&&((function(a){const u=[],c=[];gr.forEach((l=>a.indexOf(l)===-1?u.push(l):c.push(l))),c.forEach((l=>l())),gr=u})(r.after_update),is(r.on_destroy),r.fragment&&r.fragment.d(n),r.on_destroy=r.fragment=null,r.ctx=[])}function jm(i,n){i.$$.dirty[0]===-1&&(ir.push(i),Ma||(Ma=!0,Ym.then(q)),i.$$.dirty.fill(0)),i.$$.dirty[n/31|0]|=1<<n%31}function fc(i,n,r,a,u,c,l=null,g=[-1]){const p=Yr;Qr(i);const _=i.$$={fragment:null,ctx:[],props:c,update:hn,not_equal:u,bound:Fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:Fl(),dirty:g,skip_bound:!1,root:n.target||p.$$.root};l&&l(_.root);let T=!1;if(_.ctx=r?r(i,n.props||{},((y,I,...O)=>{const k=O.length?O[0]:I;return _.ctx&&u(_.ctx[y],_.ctx[y]=k)&&(!_.skip_bound&&_.bound[y]&&_.bound[y](k),T&&jm(i,y)),I})):[],_.update(),T=!0,is(_.before_update),_.fragment=!!a&&a(_.ctx),n.target){if(n.hydrate){const y=(function(I){return Array.from(I.childNodes)})(n.target);_.fragment&&_.fragment.l(y),y.forEach(gn)}else _.fragment&&_.fragment.c();n.intro&&(A=i.$$.fragment)&&A.i&&(Zm.delete(A),A.i(E)),(function(y,I,O){const{fragment:k,after_update:G}=y.$$;k&&k.m(I,O),Fa((()=>{const re=y.$$.on_mount.map(sc).filter(ac);y.$$.on_destroy?y.$$.on_destroy.push(...re):is(re),y.$$.on_mount=[]})),G.forEach(Fa)})(i,n.target,n.anchor),q()}var A,E;Qr(p)}let hc;function Ji(i,n,r,a){const u=r[i]?.type;if(n=u==="Boolean"&&typeof n!="boolean"?n!=null:n,!a||!r[i])return n;if(a==="toAttribute")switch(u){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(u){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":default:return n;case"Number":return n!=null?+n:n}}function gc(i,n,r,a,u,c){let l=class extends hc{constructor(){super(i,r,u),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map((g=>(n[g].attribute||g).toLowerCase()))}};return Object.keys(n).forEach((g=>{Object.defineProperty(l.prototype,g,{get(){return this.$$c&&g in this.$$c?this.$$c[g]:this.$$d[g]},set(p){p=Ji(g,p,n),this.$$d[g]=p,this.$$c?.$set({[g]:p})}})})),a.forEach((g=>{Object.defineProperty(l.prototype,g,{get(){return this.$$c?.[g]}})})),c&&(l=c(l)),i.element=l,l}typeof HTMLElement=="function"&&(hc=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,n,r){super(),this.$$ctor=i,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(i,n,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(n),this.$$c){const a=this.$$c.$on(i,n);this.$$l_u.set(n,a)}super.addEventListener(i,n,r)}removeEventListener(i,n,r){if(super.removeEventListener(i,n,r),this.$$c){const a=this.$$l_u.get(n);a&&(a(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let n=function(c){return()=>{let l;return{c:function(){l=pr("slot"),c!=="default"&&_t(l,"name",c)},m:function(g,p){Un(g,l,p)},d:function(g){g&&gn(l)}}}};var i=n;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},a=(function(c){const l={};return c.childNodes.forEach((g=>{l[g.slot||"default"]=!0})),l})(this);for(const c of this.$$s)c in a&&(r[c]=[n(c)]);for(const c of this.attributes){const l=this.$$g_p(c.name);l in this.$$d||(this.$$d[l]=Ji(l,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)c in this.$$d||this[c]===void 0||(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$scope:{ctx:[]}}});const u=()=>{this.$$r=!0;for(const c in this.$$p_d)if(this.$$d[c]=this.$$c.$$.ctx[this.$$c.$$.props[c]],this.$$p_d[c].reflect){const l=Ji(c,this.$$d[c],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,l)}this.$$r=!1};this.$$c.$$.after_update.push(u),u();for(const c in this.$$l)for(const l of this.$$l[c]){const g=this.$$c.$on(c,l);this.$$l_u.set(l,g)}this.$$l={}}}attributeChangedCallback(i,n,r){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Ji(i,r,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(i){return Object.keys(this.$$p_d).find((n=>this.$$p_d[n].attribute===i||!this.$$p_d[n].attribute&&n.toLowerCase()===i))||i}});class dc{$$=void 0;$$set=void 0;$destroy(){Jm(this,1),this.$destroy=hn}$on(n,r){if(!ac(r))return hn;const a=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return a.push(r),()=>{const u=a.indexOf(r);u!==-1&&a.splice(u,1)}}$set(n){var r;this.$$set&&(r=n,Object.keys(r).length!==0)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var J;typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4"),(function(i){i.CUSTOM_MESSAGE="custom",i.GET_CONTEXT="luigi.get-context",i.SEND_CONTEXT_HANDSHAKE="luigi.init",i.CONTEXT_RECEIVED="luigi.init.ok",i.NAVIGATION_REQUEST="luigi.navigation.open",i.ALERT_REQUEST="luigi.ux.alert.show",i.ALERT_CLOSED="luigi.ux.alert.hide",i.INITIALIZED="luigi.init.ok",i.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",i.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",i.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",i.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",i.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",i.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",i.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",i.LOCAL_STORAGE_SET_REQUEST="storage",i.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",i.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",i.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",i.BACK_NAVIGATION_REQUEST="luigi.navigation.back",i.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",i.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",i.SEND_CONTEXT_OBJECT="luigi.navigate",i.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",i.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",i.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",i.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",i.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",i.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",i.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",i.AUTH_SET_TOKEN="luigi.auth.tokenIssued",i.ADD_BACKDROP_REQUEST="luigi.add-backdrop",i.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",i.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",i.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"})(J||(J={}));class eS extends Event{constructor(n,r,a,u){super(n),this.detail=r,this.payload=a||r||{},this.callbackFn=u}callback(n){this.callbackFn&&this.callbackFn(n)}}const N={ADD_BACKDROP_REQUEST:"add-backdrop-request",ADD_NODE_PARAMS_REQUEST:"add-node-params-request",ADD_SEARCH_PARAMS_REQUEST:"add-search-params-request",ALERT_CLOSED:"close-alert-request",ALERT_REQUEST:"show-alert-request",BACK_NAVIGATION_REQUEST:"navigate-back-request",CHECK_PATH_EXISTS_REQUEST:"check-path-exists-request",CLOSE_CURRENT_MODAL_REQUEST:"close-current-modal-request",CLOSE_USER_SETTINGS_REQUEST:"close-user-settings-request",COLLAPSE_LEFT_NAV_REQUEST:"collapse-leftnav-request",CUSTOM_MESSAGE:"custom-message",GET_CONTEXT_REQUEST:"get-context-request",GET_CURRENT_ROUTE_REQUEST:"get-current-route-request",GO_BACK_REQUEST:"go-back-request",HAS_BACK_REQUEST:"has-back-request",HIDE_LOADING_INDICATOR_REQUEST:"hide-loading-indicator-request",INITIALIZED:"initialized",LOCAL_STORAGE_SET_REQUEST:"set-storage-request",NAVIGATION_COMPLETED_REPORT:"report-navigation-completed-request",NAVIGATION_REQUEST:"navigation-request",OPEN_USER_SETTINGS_REQUEST:"open-user-settings-request",PATH_EXISTS_REQUEST:"path-exists-request",REMOVE_BACKDROP_REQUEST:"remove-backdrop-request",RUNTIME_ERROR_HANDLING_REQUEST:"runtime-error-handling-request",SET_ANCHOR_LINK_REQUEST:"set-anchor-request",SET_CURRENT_LOCALE_REQUEST:"set-current-locale-request",SET_DIRTY_STATUS_REQUEST:"set-dirty-status-request",SET_DOCUMENT_TITLE_REQUEST:"set-document-title-request",SET_THIRD_PARTY_COOKIES_REQUEST:"set-third-party-cookies-request",SET_VIEW_GROUP_DATA_REQUEST:"set-viewgroup-data-request",SHOW_CONFIRMATION_MODAL_REQUEST:"show-confirmation-modal-request",SHOW_LOADING_INDICATOR_REQUEST:"show-loading-indicator-request",UPDATE_MODAL_PATH_DATA_REQUEST:"update-modal-path-data-request",UPDATE_MODAL_SETTINGS_REQUEST:"update-modal-settings-request",UPDATE_TOP_NAVIGATION_REQUEST:"update-top-navigation-request"};class Qa{isVisible(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}sendCustomMessageToIframe(n,r,a){const u=a||"custom";if(n?.iframe?.contentWindow){const c=new URL(n.iframe.src);u==="custom"?n.iframe.contentWindow.postMessage({msg:u,data:r},c.origin):n.iframe.contentWindow.postMessage({msg:u,...r},c.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(n,r,a,u,c){this.dispatch(n,r,a,c,u)}dispatch(n,r,a,u,c){const l=new eS(n,a,c,u);r.dispatchEvent(l)}getTargetContainer(n){let r;return globalThis.__luigi_container_manager.container.forEach((a=>{a.iframeHandle?.iframe&&a.iframeHandle.iframe.contentWindow===n.source&&(r=a)})),r}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:n=>{const r=this.getTargetContainer(n),a=r?.iframeHandle?.iframe?.contentWindow;if(a&&a===n.source)switch(n.data.msg){case J.CUSTOM_MESSAGE:{const u=n.data.data,c=u.id;delete u.id,this.dispatch(N.CUSTOM_MESSAGE,r,{id:c,_metaData:{},data:u})}break;case J.GET_CONTEXT:a.postMessage({msg:J.SEND_CONTEXT_HANDSHAKE,context:r.context||{},internal:{thirdPartyCookieCheck:{disabled:r.skipCookieCheck==="true"},currentTheme:r.theme,currentLocale:r.locale,activeFeatureToggleList:r.activeFeatureToggleList||[],cssVariables:r.cssVariables||{},anchor:r.anchor||"",userSettings:r.userSettings||null,drawer:r.drawer||!1,modal:r.modal||!1,viewStackSize:r.viewStackSize||0,isNavigateBack:r.isNavigateBack||!1},authData:r.authData||{},nodeParams:r.nodeParams||{},searchParams:r.searchParams||{},pathParams:r.pathParams||{}},n.origin);break;case J.NAVIGATION_REQUEST:this.dispatch(N.NAVIGATION_REQUEST,r,n.data.params,(u=>{a.postMessage({msg:J.CLOSE_MODAL_ANSWER,data:u},n.origin)}));break;case J.ALERT_REQUEST:this.dispatchWithPayload(N.ALERT_REQUEST,r,n,n.data?.data?.settings,(u=>{r.notifyAlertClosed(n.data?.data?.settings?.id,u)}));break;case J.INITIALIZED:this.dispatch(N.INITIALIZED,r,n.data?.params||{});break;case J.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(N.ADD_SEARCH_PARAMS_REQUEST,r,{data:n.data.data,keepBrowserHistory:n.data.keepBrowserHistory});break;case J.ADD_NODE_PARAMS_REQUEST:this.dispatch(N.ADD_NODE_PARAMS_REQUEST,r,{data:n.data.data,keepBrowserHistory:n.data.keepBrowserHistory});break;case J.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(N.SHOW_CONFIRMATION_MODAL_REQUEST,r,n.data.data,n.data.data?.settings,(u=>{r.notifyConfirmationModalClosed(u)}));break;case J.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(N.SHOW_LOADING_INDICATOR_REQUEST,r,n);break;case J.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(N.HIDE_LOADING_INDICATOR_REQUEST,r,n);break;case J.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(N.SET_CURRENT_LOCALE_REQUEST,r,n,n.data.data);break;case J.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(N.LOCAL_STORAGE_SET_REQUEST,r,n,n.data.data?.params);break;case J.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(N.RUNTIME_ERROR_HANDLING_REQUEST,r,n);break;case J.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(N.SET_ANCHOR_LINK_REQUEST,r,n,n.data.anchor);break;case J.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(N.SET_THIRD_PARTY_COOKIES_REQUEST,r,n);break;case J.BACK_NAVIGATION_REQUEST:{let u=n.data?.goBackContext||{};if(typeof u=="string")try{u=JSON.parse(u)}catch(c){console.warn(c)}this.dispatch(N.GO_BACK_REQUEST,r,u),this.dispatch(N.BACK_NAVIGATION_REQUEST,r,n)}break;case J.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(N.GET_CURRENT_ROUTE_REQUEST,r,n,n.data.data,(u=>{a.postMessage({msg:J.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:n.data?.data?.id,route:u}},n.origin)}));break;case J.NAVIGATION_COMPLETED_REPORT:this.dispatch(N.NAVIGATION_COMPLETED_REPORT,r,n);break;case J.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(N.UPDATE_MODAL_PATH_DATA_REQUEST,r,n,n.data.params);break;case J.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(N.UPDATE_MODAL_SETTINGS_REQUEST,r,n,{addHistoryEntry:n.data.addHistoryEntry,updatedModalSettings:n.data.updatedModalSettings});break;case J.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(N.CHECK_PATH_EXISTS_REQUEST,r,n,n.data.data,(u=>{a.postMessage({msg:J.SEND_PATH_EXISTS_ANSWER,data:{correlationId:n.data?.data?.id,pathExists:u}},n.origin)}));break;case J.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(N.SET_DIRTY_STATUS_REQUEST,r,n,{dirty:n.data.dirty});break;case J.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(N.SET_VIEW_GROUP_DATA_REQUEST,r,n.data.data);break;case J.ADD_BACKDROP_REQUEST:this.dispatch(N.ADD_BACKDROP_REQUEST,r,n);break;case J.REMOVE_BACKDROP_REQUEST:this.dispatch(N.REMOVE_BACKDROP_REQUEST,r,n);break;case J.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(N.CLOSE_CURRENT_MODAL_REQUEST,r,n)}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(n){this.getContainerManager().container.push(n)}}const fn=new Qa,sr=new class{constructor(){this.updateContext=(i,n,r,a,u,c)=>{if(r){const l=n||{};fn.sendCustomMessageToIframe(r,{context:i,nodeParams:a||{},pathParams:u||{},searchParams:c||{},internal:l,withoutSync:!0},J.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(i,n,r,a)=>{if(a){const u=r||{};fn.sendCustomMessageToIframe(a,{context:n,internal:u,withoutSync:!1,viewUrl:i},J.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(i,n)=>{i&&n?fn.sendCustomMessageToIframe(i,{authData:n},J.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(i,n,r,a,u)=>{if(r&&n._luigi_mfe_webcomponent)fn.dispatch(i,n._luigi_mfe_webcomponent,u);else{const c={...u};c.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),c.id=i,fn.sendCustomMessageToIframe(a,c)}},this.notifyConfirmationModalClosed=(i,n)=>{const r={data:{confirmed:i}};fn.sendCustomMessageToIframe(n,r,J.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(i,n,r){const a=n?{id:i,dismissKey:n}:{id:i};fn.sendCustomMessageToIframe(r,a,J.ALERT_CLOSED)}},Hl=i=>{if(!i)return;const n=i;return n.forEach(((r,a)=>{n[a]=r+(r.indexOf(";")!=-1?"":";"),n[a]=i[a].replaceAll('"',"'")})),n.join(" ")};class _r{constructor(n){n?(this.rendererObject=n,this.config=n.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(n){return document.createElement("div")}attachCompoundItem(n,r){n.appendChild(r)}}class tS extends _r{constructor(n){super(n||{use:{}}),n&&n.use&&n.use.extends&&(this.superRenderer=pc({use:n.use.extends,config:n.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(n){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(n,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(n):super.createCompoundItemContainer(n)}attachCompoundItem(n,r){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(n,r,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(n,r):super.attachCompoundItem(n,r)}}class nS extends _r{createCompoundContainer(){const n="__lui_compound_"+new Date().getTime(),r=document.createElement("div");r.classList.add(n);let a="";return this.config.layouts&&this.config.layouts.forEach((u=>{if(u.minWidth||u.maxWidth){let c="@media only screen ";u.minWidth!=null&&(c+=`and (min-width: ${u.minWidth}px) `),u.maxWidth!=null&&(c+=`and (max-width: ${u.maxWidth}px) `),c+=`{
27
+ Please refer to documentation`),[T]}}buildVirtualViewUrl(n,r,a){let u="";for(const c in r)c.startsWith("virtualSegment")&&(u+=":"+c+"/");return a?(u+=":virtualSegment_"+a+"/",n+"/"+u):n}async buildPath(n,r){const{fromVirtualTreeRoot:a,fromContext:u,fromClosestContext:c,fromParent:l,relative:g,nodeParams:p}=r,_=this.luigi.getConfigValue("routing.useHashRouting"),{path:y,query:T}=D.getCurrentPath(_),E=y+(T?"?"+T:""),R=await this.getPathData(E),P=R.nodesInPath;let N=n;if(P===void 0)return console.warn("No nodes in path found for current path:",E),N;if(a){N="";const H=[...P].map((G,re)=>G.virtualTree?re:-1).filter(G=>G!==-1).pop();P.forEach((G,re)=>{G.pathSegment&&(H===void 0||re<=H)&&(N+="/"+G.pathSegment)}),N+="/"+n}else if(u){const H=u,G=[...P].reverse().find(re=>H===re.navigationContext);N=D.concatenatePath(D.getSubPath(G,R.pathParams),n)}else if(c){const H=[...P].reverse().find(G=>G.navigationContext&&G.navigationContext.length>0);N=D.concatenatePath(D.getSubPath(H,R.pathParams),n)}else l?N=D.concatenatePath(D.getSubPath(R.selectedNode?.parent,R.pathParams),n):g&&(N=D.concatenatePath(D.getSubPath(R.selectedNode,R.pathParams),n));return p&&Object.keys(p).length>0&&(N+=N.includes("?")?"&":"?",Object.entries(p).forEach((H,G)=>{N+=encodeURIComponent(D.getContentViewParamPrefix(this.luigi)+H[0])+"="+encodeURIComponent(H[1])+(G<Object.keys(p).length-1?"&":"")})),N}}function fn(){}function sc(i){return i()}function Fl(){return Object.create(null)}function is(i){i.forEach(sc)}function ac(i){return typeof i=="function"}function oc(i,n){return i!=i?n==n:i!==n||i&&typeof i=="object"||typeof i=="function"}let Yi,Yr;function kl(i,n){return i===n||(Yi||(Yi=document.createElement("a")),Yi.href=n,i===Yi.href)}function Km(i,n,r){const a=(function(u){if(!u)return document;const c=u.getRootNode?u.getRootNode():u.ownerDocument;return c&&c.host?c:u.ownerDocument})(i);if(!a.getElementById(n)){const u=pr("style");u.id=n,u.textContent=r,(function(c,l){(function(g,p){g.appendChild(p)})(c.head||c,l),l.sheet})(a,u)}}function Dn(i,n,r){i.insertBefore(n,r||null)}function gn(i){i.parentNode&&i.parentNode.removeChild(i)}function pr(i){return document.createElement(i)}function uc(i){return document.createTextNode(i)}function _t(i,n,r){r==null?i.removeAttribute(n):i.getAttribute(n)!==r&&i.setAttribute(n,r)}function Qr(i){Yr=i}function lc(){if(!Yr)throw new Error("Function called outside component initialization");return Yr}function cc(i){lc().$$.on_mount.push(i)}const sr=[],Xr=[];let gr=[];const Hl=[],Ym=Promise.resolve();let Ma=!1;function Fa(i){gr.push(i)}const Ua=new Set;let ir=0;function q(){if(ir!==0)return;const i=Yr;do{try{for(;ir<sr.length;){const n=sr[ir];ir++,Qr(n),Xm(n.$$)}}catch(n){throw sr.length=0,ir=0,n}for(Qr(null),sr.length=0,ir=0;Xr.length;)Xr.pop()();for(let n=0;n<gr.length;n+=1){const r=gr[n];Ua.has(r)||(Ua.add(r),r())}gr.length=0}while(sr.length);for(;Hl.length;)Hl.pop()();Ma=!1,Ua.clear(),Qr(i)}function Xm(i){if(i.fragment!==null){i.update(),is(i.before_update);const n=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,n),i.after_update.forEach(Fa)}}const Zm=new Set;function Jm(i,n){const r=i.$$;r.fragment!==null&&((function(a){const u=[],c=[];gr.forEach((l=>a.indexOf(l)===-1?u.push(l):c.push(l))),c.forEach((l=>l())),gr=u})(r.after_update),is(r.on_destroy),r.fragment&&r.fragment.d(n),r.on_destroy=r.fragment=null,r.ctx=[])}function jm(i,n){i.$$.dirty[0]===-1&&(sr.push(i),Ma||(Ma=!0,Ym.then(q)),i.$$.dirty.fill(0)),i.$$.dirty[n/31|0]|=1<<n%31}function hc(i,n,r,a,u,c,l=null,g=[-1]){const p=Yr;Qr(i);const _=i.$$={fragment:null,ctx:[],props:c,update:fn,not_equal:u,bound:Fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:Fl(),dirty:g,skip_bound:!1,root:n.target||p.$$.root};l&&l(_.root);let y=!1;if(_.ctx=r?r(i,n.props||{},((R,P,...N)=>{const H=N.length?N[0]:P;return _.ctx&&u(_.ctx[R],_.ctx[R]=H)&&(!_.skip_bound&&_.bound[R]&&_.bound[R](H),y&&jm(i,R)),P})):[],_.update(),y=!0,is(_.before_update),_.fragment=!!a&&a(_.ctx),n.target){if(n.hydrate){const R=(function(P){return Array.from(P.childNodes)})(n.target);_.fragment&&_.fragment.l(R),R.forEach(gn)}else _.fragment&&_.fragment.c();n.intro&&(T=i.$$.fragment)&&T.i&&(Zm.delete(T),T.i(E)),(function(R,P,N){const{fragment:H,after_update:G}=R.$$;H&&H.m(P,N),Fa((()=>{const re=R.$$.on_mount.map(sc).filter(ac);R.$$.on_destroy?R.$$.on_destroy.push(...re):is(re),R.$$.on_mount=[]})),G.forEach(Fa)})(i,n.target,n.anchor),q()}var T,E;Qr(p)}let fc;function Ji(i,n,r,a){const u=r[i]?.type;if(n=u==="Boolean"&&typeof n!="boolean"?n!=null:n,!a||!r[i])return n;if(a==="toAttribute")switch(u){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(u){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":default:return n;case"Number":return n!=null?+n:n}}function gc(i,n,r,a,u,c){let l=class extends fc{constructor(){super(i,r,u),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map((g=>(n[g].attribute||g).toLowerCase()))}};return Object.keys(n).forEach((g=>{Object.defineProperty(l.prototype,g,{get(){return this.$$c&&g in this.$$c?this.$$c[g]:this.$$d[g]},set(p){p=Ji(g,p,n),this.$$d[g]=p,this.$$c?.$set({[g]:p})}})})),a.forEach((g=>{Object.defineProperty(l.prototype,g,{get(){return this.$$c?.[g]}})})),c&&(l=c(l)),i.element=l,l}typeof HTMLElement=="function"&&(fc=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,n,r){super(),this.$$ctor=i,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(i,n,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(n),this.$$c){const a=this.$$c.$on(i,n);this.$$l_u.set(n,a)}super.addEventListener(i,n,r)}removeEventListener(i,n,r){if(super.removeEventListener(i,n,r),this.$$c){const a=this.$$l_u.get(n);a&&(a(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let n=function(c){return()=>{let l;return{c:function(){l=pr("slot"),c!=="default"&&_t(l,"name",c)},m:function(g,p){Dn(g,l,p)},d:function(g){g&&gn(l)}}}};var i=n;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},a=(function(c){const l={};return c.childNodes.forEach((g=>{l[g.slot||"default"]=!0})),l})(this);for(const c of this.$$s)c in a&&(r[c]=[n(c)]);for(const c of this.attributes){const l=this.$$g_p(c.name);l in this.$$d||(this.$$d[l]=Ji(l,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)c in this.$$d||this[c]===void 0||(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$scope:{ctx:[]}}});const u=()=>{this.$$r=!0;for(const c in this.$$p_d)if(this.$$d[c]=this.$$c.$$.ctx[this.$$c.$$.props[c]],this.$$p_d[c].reflect){const l=Ji(c,this.$$d[c],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,l)}this.$$r=!1};this.$$c.$$.after_update.push(u),u();for(const c in this.$$l)for(const l of this.$$l[c]){const g=this.$$c.$on(c,l);this.$$l_u.set(l,g)}this.$$l={}}}attributeChangedCallback(i,n,r){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Ji(i,r,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(i){return Object.keys(this.$$p_d).find((n=>this.$$p_d[n].attribute===i||!this.$$p_d[n].attribute&&n.toLowerCase()===i))||i}});class dc{$$=void 0;$$set=void 0;$destroy(){Jm(this,1),this.$destroy=fn}$on(n,r){if(!ac(r))return fn;const a=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return a.push(r),()=>{const u=a.indexOf(r);u!==-1&&a.splice(u,1)}}$set(n){var r;this.$$set&&(r=n,Object.keys(r).length!==0)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var J;typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4"),(function(i){i.CUSTOM_MESSAGE="custom",i.GET_CONTEXT="luigi.get-context",i.SEND_CONTEXT_HANDSHAKE="luigi.init",i.CONTEXT_RECEIVED="luigi.init.ok",i.NAVIGATION_REQUEST="luigi.navigation.open",i.ALERT_REQUEST="luigi.ux.alert.show",i.ALERT_CLOSED="luigi.ux.alert.hide",i.INITIALIZED="luigi.init.ok",i.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",i.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",i.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",i.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",i.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",i.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",i.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",i.LOCAL_STORAGE_SET_REQUEST="storage",i.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",i.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",i.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",i.BACK_NAVIGATION_REQUEST="luigi.navigation.back",i.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",i.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",i.SEND_CONTEXT_OBJECT="luigi.navigate",i.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",i.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",i.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",i.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",i.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",i.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",i.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",i.AUTH_SET_TOKEN="luigi.auth.tokenIssued",i.ADD_BACKDROP_REQUEST="luigi.add-backdrop",i.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",i.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",i.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"})(J||(J={}));class eS extends Event{constructor(n,r,a,u){super(n),this.detail=r,this.payload=a||r||{},this.callbackFn=u}callback(n){this.callbackFn&&this.callbackFn(n)}}const U={ADD_BACKDROP_REQUEST:"add-backdrop-request",ADD_NODE_PARAMS_REQUEST:"add-node-params-request",ADD_SEARCH_PARAMS_REQUEST:"add-search-params-request",ALERT_CLOSED:"close-alert-request",ALERT_REQUEST:"show-alert-request",BACK_NAVIGATION_REQUEST:"navigate-back-request",CHECK_PATH_EXISTS_REQUEST:"check-path-exists-request",CLOSE_CURRENT_MODAL_REQUEST:"close-current-modal-request",CLOSE_USER_SETTINGS_REQUEST:"close-user-settings-request",COLLAPSE_LEFT_NAV_REQUEST:"collapse-leftnav-request",CUSTOM_MESSAGE:"custom-message",GET_CONTEXT_REQUEST:"get-context-request",GET_CURRENT_ROUTE_REQUEST:"get-current-route-request",GO_BACK_REQUEST:"go-back-request",HAS_BACK_REQUEST:"has-back-request",HIDE_LOADING_INDICATOR_REQUEST:"hide-loading-indicator-request",INITIALIZED:"initialized",LOCAL_STORAGE_SET_REQUEST:"set-storage-request",NAVIGATION_COMPLETED_REPORT:"report-navigation-completed-request",NAVIGATION_REQUEST:"navigation-request",OPEN_USER_SETTINGS_REQUEST:"open-user-settings-request",PATH_EXISTS_REQUEST:"path-exists-request",REMOVE_BACKDROP_REQUEST:"remove-backdrop-request",RUNTIME_ERROR_HANDLING_REQUEST:"runtime-error-handling-request",SET_ANCHOR_LINK_REQUEST:"set-anchor-request",SET_CURRENT_LOCALE_REQUEST:"set-current-locale-request",SET_DIRTY_STATUS_REQUEST:"set-dirty-status-request",SET_DOCUMENT_TITLE_REQUEST:"set-document-title-request",SET_THIRD_PARTY_COOKIES_REQUEST:"set-third-party-cookies-request",SET_VIEW_GROUP_DATA_REQUEST:"set-viewgroup-data-request",SHOW_CONFIRMATION_MODAL_REQUEST:"show-confirmation-modal-request",SHOW_LOADING_INDICATOR_REQUEST:"show-loading-indicator-request",UPDATE_MODAL_PATH_DATA_REQUEST:"update-modal-path-data-request",UPDATE_MODAL_SETTINGS_REQUEST:"update-modal-settings-request",UPDATE_TOP_NAVIGATION_REQUEST:"update-top-navigation-request"};class Qa{isVisible(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}sendCustomMessageToIframe(n,r,a){const u=a||"custom";if(n?.iframe?.contentWindow){const c=new URL(n.iframe.src);u==="custom"?n.iframe.contentWindow.postMessage({msg:u,data:r},c.origin):n.iframe.contentWindow.postMessage({msg:u,...r},c.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(n,r,a,u,c){this.dispatch(n,r,a,c,u)}dispatch(n,r,a,u,c){const l=new eS(n,a,c,u);r.dispatchEvent(l)}getTargetContainer(n){let r;return globalThis.__luigi_container_manager.container.forEach((a=>{a.iframeHandle?.iframe&&a.iframeHandle.iframe.contentWindow===n.source&&(r=a)})),r}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:n=>{const r=this.getTargetContainer(n),a=r?.iframeHandle?.iframe?.contentWindow;if(a&&a===n.source)switch(n.data.msg){case J.CUSTOM_MESSAGE:{const u=n.data.data,c=u.id;delete u.id,this.dispatch(U.CUSTOM_MESSAGE,r,{id:c,_metaData:{},data:u})}break;case J.GET_CONTEXT:a.postMessage({msg:J.SEND_CONTEXT_HANDSHAKE,context:r.context||{},internal:{thirdPartyCookieCheck:{disabled:r.skipCookieCheck==="true"},currentTheme:r.theme,currentLocale:r.locale,activeFeatureToggleList:r.activeFeatureToggleList||[],cssVariables:r.cssVariables||{},anchor:r.anchor||"",userSettings:r.userSettings||null,drawer:r.drawer||!1,modal:r.modal||!1,viewStackSize:r.viewStackSize||0,isNavigateBack:r.isNavigateBack||!1},authData:r.authData||{},nodeParams:r.nodeParams||{},searchParams:r.searchParams||{},pathParams:r.pathParams||{}},n.origin);break;case J.NAVIGATION_REQUEST:this.dispatch(U.NAVIGATION_REQUEST,r,n.data.params,(u=>{a.postMessage({msg:J.CLOSE_MODAL_ANSWER,data:u},n.origin)}));break;case J.ALERT_REQUEST:this.dispatchWithPayload(U.ALERT_REQUEST,r,n,n.data?.data?.settings,(u=>{r.notifyAlertClosed(n.data?.data?.settings?.id,u)}));break;case J.INITIALIZED:this.dispatch(U.INITIALIZED,r,n.data?.params||{});break;case J.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(U.ADD_SEARCH_PARAMS_REQUEST,r,{data:n.data.data,keepBrowserHistory:n.data.keepBrowserHistory});break;case J.ADD_NODE_PARAMS_REQUEST:this.dispatch(U.ADD_NODE_PARAMS_REQUEST,r,{data:n.data.data,keepBrowserHistory:n.data.keepBrowserHistory});break;case J.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(U.SHOW_CONFIRMATION_MODAL_REQUEST,r,n.data.data,n.data.data?.settings,(u=>{r.notifyConfirmationModalClosed(u)}));break;case J.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(U.SHOW_LOADING_INDICATOR_REQUEST,r,n);break;case J.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(U.HIDE_LOADING_INDICATOR_REQUEST,r,n);break;case J.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(U.SET_CURRENT_LOCALE_REQUEST,r,n,n.data.data);break;case J.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(U.LOCAL_STORAGE_SET_REQUEST,r,n,n.data.data?.params);break;case J.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(U.RUNTIME_ERROR_HANDLING_REQUEST,r,n);break;case J.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(U.SET_ANCHOR_LINK_REQUEST,r,n,n.data.anchor);break;case J.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(U.SET_THIRD_PARTY_COOKIES_REQUEST,r,n);break;case J.BACK_NAVIGATION_REQUEST:{let u=n.data?.goBackContext||{};if(typeof u=="string")try{u=JSON.parse(u)}catch(c){console.warn(c)}this.dispatch(U.GO_BACK_REQUEST,r,u),this.dispatch(U.BACK_NAVIGATION_REQUEST,r,n)}break;case J.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(U.GET_CURRENT_ROUTE_REQUEST,r,n,n.data.data,(u=>{a.postMessage({msg:J.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:n.data?.data?.id,route:u}},n.origin)}));break;case J.NAVIGATION_COMPLETED_REPORT:this.dispatch(U.NAVIGATION_COMPLETED_REPORT,r,n);break;case J.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(U.UPDATE_MODAL_PATH_DATA_REQUEST,r,n,n.data.params);break;case J.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(U.UPDATE_MODAL_SETTINGS_REQUEST,r,n,{addHistoryEntry:n.data.addHistoryEntry,updatedModalSettings:n.data.updatedModalSettings});break;case J.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(U.CHECK_PATH_EXISTS_REQUEST,r,n,n.data.data,(u=>{a.postMessage({msg:J.SEND_PATH_EXISTS_ANSWER,data:{correlationId:n.data?.data?.id,pathExists:u}},n.origin)}));break;case J.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(U.SET_DIRTY_STATUS_REQUEST,r,n,{dirty:n.data.dirty});break;case J.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(U.SET_VIEW_GROUP_DATA_REQUEST,r,n.data.data);break;case J.ADD_BACKDROP_REQUEST:this.dispatch(U.ADD_BACKDROP_REQUEST,r,n);break;case J.REMOVE_BACKDROP_REQUEST:this.dispatch(U.REMOVE_BACKDROP_REQUEST,r,n);break;case J.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(U.CLOSE_CURRENT_MODAL_REQUEST,r,n)}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(n){this.getContainerManager().container.push(n)}}const hn=new Qa,ar=new class{constructor(){this.updateContext=(i,n,r,a,u,c)=>{if(r){const l=n||{};hn.sendCustomMessageToIframe(r,{context:i,nodeParams:a||{},pathParams:u||{},searchParams:c||{},internal:l,withoutSync:!0},J.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(i,n,r,a)=>{if(a){const u=r||{};hn.sendCustomMessageToIframe(a,{context:n,internal:u,withoutSync:!1,viewUrl:i},J.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(i,n)=>{i&&n?hn.sendCustomMessageToIframe(i,{authData:n},J.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(i,n,r,a,u)=>{if(r&&n._luigi_mfe_webcomponent)hn.dispatch(i,n._luigi_mfe_webcomponent,u);else{const c={...u};c.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),c.id=i,hn.sendCustomMessageToIframe(a,c)}},this.notifyConfirmationModalClosed=(i,n)=>{const r={data:{confirmed:i}};hn.sendCustomMessageToIframe(n,r,J.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(i,n,r){const a=n?{id:i,dismissKey:n}:{id:i};hn.sendCustomMessageToIframe(r,a,J.ALERT_CLOSED)}},Wl=i=>{if(!i)return;const n=i;return n.forEach(((r,a)=>{n[a]=r+(r.indexOf(";")!=-1?"":";"),n[a]=i[a].replaceAll('"',"'")})),n.join(" ")};class _r{constructor(n){n?(this.rendererObject=n,this.config=n.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(n){return document.createElement("div")}attachCompoundItem(n,r){n.appendChild(r)}}class tS extends _r{constructor(n){super(n||{use:{}}),n&&n.use&&n.use.extends&&(this.superRenderer=pc({use:n.use.extends,config:n.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(n){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(n,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(n):super.createCompoundItemContainer(n)}attachCompoundItem(n,r){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(n,r,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(n,r):super.attachCompoundItem(n,r)}}class nS extends _r{createCompoundContainer(){const n="__lui_compound_"+new Date().getTime(),r=document.createElement("div");r.classList.add(n);let a="";return this.config.layouts&&this.config.layouts.forEach((u=>{if(u.minWidth||u.maxWidth){let c="@media only screen ";u.minWidth!=null&&(c+=`and (min-width: ${u.minWidth}px) `),u.maxWidth!=null&&(c+=`and (max-width: ${u.maxWidth}px) `),c+=`{
28
28
  .${n} {
29
29
  grid-template-columns: ${u.columns||"auto"};
30
30
  grid-template-rows: ${u.rows||"auto"};
@@ -42,7 +42,7 @@ Please refer to documentation`),[A]}}buildVirtualViewUrl(n,r,a){let u="";for(con
42
42
  }
43
43
  ${a}
44
44
  </style>
45
- `,r}createCompoundItemContainer(n){const r=n||{},a=document.createElement("div");return a.setAttribute("style",`grid-row: ${r.row||"auto"}; grid-column: ${r.column||"auto"}`),a.classList.add("lui-compoundItemCnt"),a}}const pc=i=>{const n=i.use;return n?n==="grid"?new nS(i):n.createCompoundContainer||n.createCompoundItemContainer||n.attachCompoundItem?new tS(i):new _r(i):new _r(i)},Vl=(i,n,r,a)=>{n?.eventListeners&&n.eventListeners.forEach((u=>{const c=u.source+"."+u.name,l=i[c],g={wcElementId:r,wcElement:a,action:u.action,converter:u.dataConverter};l?l.push(g):i[c]=[g]}))};function Bl(i){return String(i).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&sol;","/")}class _c{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new Qa}dynamicImport(n){return Object.freeze(import(n))}processViewUrl(n,r){return n}attachWC(n,r,a,u,c,l,g){if(a&&a.contains(r)){const p=document.createElement(n);l&&p.setAttribute("nodeId",l),p.setAttribute("lui_web_component","true"),this.initWC(p,n,a,c,u,l,g),a.replaceChild(p,r),a._luigi_node&&(a._luigi_mfe_webcomponent=p),a.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(n,r,a){this.containerService.dispatch(n,this.thisComponent,r,a)}createClientAPI(n,r,a,u,c){return{linkManager:()=>{let l=null,g=!1,p=!1,_=!1,T={};const A={navigate:(E,y={})=>{const I={fromContext:l,fromClosestContext:g,fromVirtualTreeRoot:p,fromParent:_,nodeParams:T,...y};this.dispatchLuigiEvent(N.NAVIGATION_REQUEST,{link:E,...I})},navigateToIntent:(E,y={})=>{let I="#?intent=";if(I+=E,y&&Object.keys(y)?.length){const O=Object.entries(y);if(O.length>0){I+="?";for(const[k,G]of O)I+=k+"="+G+"&";I=I.slice(0,-1)}}A.navigate(I)},fromClosestContext:()=>(g=!0,A),fromContext:E=>(l=E,A),fromVirtualTreeRoot:()=>(p=!0,A),fromParent:()=>(_=!0,A),getCurrentRoute:()=>{const E={fromContext:l,fromClosestContext:g,fromVirtualTreeRoot:p,fromParent:_,nodeParams:T};return new Promise(((y,I)=>{this.containerService.dispatch(N.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...E},(O=>{O?y(O):I("No current route received.")}))}))},withParams:E=>(T=E,A),updateModalPathInternalNavigation:(E,y={},I=!1)=>{if(!E)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const O={fromClosestContext:g,fromContext:l,fromParent:_,fromVirtualTreeRoot:p,nodeParams:T};this.dispatchLuigiEvent(N.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(O,{history:I,link:E,modal:y}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(N.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:E=>{const y={fromContext:l,fromClosestContext:g,fromVirtualTreeRoot:p,fromParent:_,nodeParams:T};return new Promise(((I,O)=>{this.containerService.dispatch(N.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...y,link:E},(k=>{k?I(!0):O(!1)})),this.containerService.dispatch(N.PATH_EXISTS_REQUEST,this.thisComponent,{...y,link:E},(k=>{k?I(!0):O(!1)}))}))},openAsDrawer:(E,y={})=>{A.navigate(E,{drawer:y})},openAsModal:(E,y={})=>{A.navigate(E,{modal:y})},openAsSplitView:(E,y={})=>{A.navigate(E,{splitView:y})},goBack:E=>{this.dispatchLuigiEvent(N.GO_BACK_REQUEST,E)},hasBack:()=>!1,updateModalSettings:(E={},y=!1)=>{this.dispatchLuigiEvent(N.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:E,addHistoryEntry:y})}};return A},uxManager:()=>({showAlert:l=>(l.id=this.alertIndex++,new Promise((g=>{this.alertResolvers[l.id]=g,this.dispatchLuigiEvent(N.ALERT_REQUEST,l,(p=>{this.resolveAlert(l.id,p)}))}))),showConfirmationModal:l=>new Promise(((g,p)=>{this.modalResolver={resolve:g,reject:p},this.containerService.dispatch(N.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,l,(_=>{_?g():p()}))})),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(N.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(N.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(N.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:l=>{this.dispatchLuigiEvent(N.SET_DOCUMENT_TITLE_REQUEST,l)},setDirtyStatus:l=>{this.dispatchLuigiEvent(N.SET_DIRTY_STATUS_REQUEST,{dirty:l})},setCurrentLocale:l=>{l&&this.dispatchLuigiEvent(N.SET_CURRENT_LOCALE_REQUEST,{currentLocale:l})},removeBackdrop:()=>{this.dispatchLuigiEvent(N.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(N.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(N.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(N.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(N.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(N.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:l=>{n&&n.eventBus&&n.eventBus.onPublishEvent(l,r,a);const g={id:l.type,_metaData:{nodeId:r,wc_id:a,src:u},data:l.detail};this.dispatchLuigiEvent(N.CUSTOM_MESSAGE,g)},luigiClientInit:()=>{this.dispatchLuigiEvent(N.INITIALIZED,{})},addNodeParams:(l,g)=>{c||this.dispatchLuigiEvent(N.ADD_NODE_PARAMS_REQUEST,{params:l,data:l,keepBrowserHistory:g})},getNodeParams:l=>{return c?{}:l?(g=this.thisComponent.nodeParams,Object.entries(g).reduce(((p,_)=>(p[Bl(_[0])]=Bl(_[1]),p)),{})):this.thisComponent.nodeParams||{};var g},setAnchor:l=>{c||this.dispatchLuigiEvent(N.SET_ANCHOR_LINK_REQUEST,l)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(l={},g=!0)=>{this.dispatchLuigiEvent(N.ADD_SEARCH_PARAMS_REQUEST,{data:l,keepBrowserHistory:g})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:l=>{this.dispatchLuigiEvent(N.SET_VIEW_GROUP_DATA_REQUEST,l)}}}initWC(n,r,a,u,c,l,g){const p=this.createClientAPI(a,l,r,n,g);if(n.__postProcess){const _=new URL(document.baseURI).origin===new URL(u,document.baseURI).origin?new URL("./",new URL(u,document.baseURI)):new URL("./",u);n.__postProcess(c,p,_.origin+_.pathname)}else n.context=c,n.LuigiClient=p}generateWCId(n){let r="";const a=new URL(n,encodeURI(location.href)).href;for(let u=0;u<a.length;u++)r+=a.charCodeAt(u).toString(16);return"luigi-wc-"+r}registerWCFromUrl(n,r){const a=this.processViewUrl(n);return new Promise(((u,c)=>{this.checkWCUrl(a)?this.dynamicImport(a).then((l=>{try{if(!window.customElements.get(r)){let g=l.default;if(!HTMLElement.isPrototypeOf(g)){const p=Object.keys(l);for(let _=0;_<p.length&&(g=l[p[_]],!HTMLElement.isPrototypeOf(g));_++);}window.customElements.define(r,g)}u(1)}catch(g){c(g)}})).catch((l=>{c(l)})):c(`Error: View URL '${a}' not allowed to be included`)}))}includeSelfRegisteredWCFromUrl(n,r,a){if(this.checkWCUrl(r)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(c,l)=>{window.customElements.define(this.generateWCId(c),l)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(c,l)=>{this.containerService.getContainerManager()._registerWebcomponent(c,l)}));const u=document.createElement("script");u.setAttribute("src",r),n.webcomponent.type==="module"&&u.setAttribute("type","module"),u.setAttribute("defer","true"),u.addEventListener("load",(()=>{a()})),document.body.appendChild(u)}else console.warn(`View URL '${r}' not allowed to be included`)}checkWCUrl(n){return!0}renderWebComponent(n,r,a,u,c,l){const g=this.processViewUrl(n,{context:a}),p=u?.webcomponent?.tagName||this.generateWCId(g),_=document.createElement("div");r.appendChild(_),r._luigi_node=u,window.customElements.get(p)?this.attachWC(p,_,r,a,g,c,l):window.luigiWCFn?window.luigiWCFn(g,p,_,(()=>{this.attachWC(p,_,r,a,g,c,l)})):u?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(u,g,(()=>{this.attachWC(p,_,r,a,g,c,l)})):this.registerWCFromUrl(g,p).then((()=>{this.attachWC(p,_,r,a,g,c,l)})).catch((T=>{console.warn("ERROR =>",T),this.containerService.dispatch(N.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,T)}))}createCompoundContainerAsync(n,r,a){return new Promise(((u,c)=>{if(n.viewUrl)try{const l=a?.webcomponent?.tagName||this.generateWCId(n.viewUrl);a?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(a,n.viewUrl,(()=>{const g=document.createElement(l);g.setAttribute("lui_web_component","true"),this.initWC(g,l,g,n.viewUrl,r,"_root"),u(g)})):this.registerWCFromUrl(n.viewUrl,l).then((()=>{const g=document.createElement(l);g.setAttribute("lui_web_component","true"),this.initWC(g,l,g,n.viewUrl,r,"_root"),u(g)})).catch((g=>{console.warn("Error: ",g),this.containerService.dispatch(N.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,g)}))}catch(l){c(l)}else u(n.createCompoundContainer())}))}renderWebComponentCompound(n,r,a){let u;return n.webcomponent&&n.viewUrl?(u=new _r,u.viewUrl=this.processViewUrl(n.viewUrl,{context:a}),u.createCompoundItemContainer=c=>{const l=document.createElement("div");return c?.slot&&l.setAttribute("slot",c.slot),l}):n.compound?.renderer&&(u=pc(n.compound.renderer)),u=u||new _r,new Promise((c=>{this.createCompoundContainerAsync(u,a,n).then((l=>{r._luigi_mfe_webcomponent=l,r._luigi_node=n;const g={};l.eventBus={listeners:g,onPublishEvent:(p,_,T)=>{const A=g[_+"."+p.type]||[];A.push(...g["*."+p.type]||[]),A.forEach((E=>{const y=E.wcElement||l.querySelector("[nodeId="+E.wcElementId+"]");y?y.dispatchEvent(new CustomEvent(E.action,{detail:E.converter?E.converter(p.detail):p.detail})):console.debug("Could not find event target",E)}))}},n.compound?.children?.forEach(((p,_)=>{const T={...a,...p.context},A=u.createCompoundItemContainer(p.layoutConfig);A.eventBus=l.eventBus,u.attachCompoundItem(l,A);const E=p.id||"gen_"+_;this.renderWebComponent(p.viewUrl,A,T,p,E,!0),Vl(g,p,E)})),r.appendChild(l),Vl(g,n.compound,"_root",l),c(l)})).catch((l=>{console.warn("Error: ",l),this.containerService.dispatch(N.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,l)}))}))}resolveAlert(n,r){this.alertResolvers[n]?(this.alertResolvers[n](r===void 0||r),this.alertResolvers[n]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(n){this.modalResolver?(n?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const qr=new class{isFunction(i){return i&&{}.toString.call(i)==="[object Function]"}isObject(i){return!(!i||typeof i!="object"||Array.isArray(i))}checkWebcomponentValue(i){return typeof i=="string"?JSON.parse(i):typeof i=="boolean"||typeof i=="object"?i:void console.warn("Webcomponent value has a wrong type.")}resolveContext(i){return i?typeof i=="string"?JSON.parse(i):i:{}}};function Gl(i){let n,r=(!i[4]||i[4]==="false")&&Ql(i);return{c(){r&&r.c(),n=uc("")},m(a,u){r&&r.m(a,u),Un(a,n,u)},p(a,u){a[4]&&a[4]!=="false"?r&&(r.d(1),r=null):r?r.p(a,u):(r=Ql(a),r.c(),r.m(n.parentNode,n))},d(a){a&&gn(n),r&&r.d(a)}}}function Ql(i){let n,r,a,u,c,l;return{c(){n=pr("style"),n.textContent=`main.lui-isolated,
45
+ `,r}createCompoundItemContainer(n){const r=n||{},a=document.createElement("div");return a.setAttribute("style",`grid-row: ${r.row||"auto"}; grid-column: ${r.column||"auto"}`),a.classList.add("lui-compoundItemCnt"),a}}const pc=i=>{const n=i.use;return n?n==="grid"?new nS(i):n.createCompoundContainer||n.createCompoundItemContainer||n.attachCompoundItem?new tS(i):new _r(i):new _r(i)},Vl=(i,n,r,a)=>{n?.eventListeners&&n.eventListeners.forEach((u=>{const c=u.source+"."+u.name,l=i[c],g={wcElementId:r,wcElement:a,action:u.action,converter:u.dataConverter};l?l.push(g):i[c]=[g]}))};function Bl(i){return String(i).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&sol;","/")}class _c{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new Qa}dynamicImport(n){return Object.freeze(import(n))}processViewUrl(n,r){return n}attachWC(n,r,a,u,c,l,g){if(a&&a.contains(r)){const p=document.createElement(n);l&&p.setAttribute("nodeId",l),p.setAttribute("lui_web_component","true"),this.initWC(p,n,a,c,u,l,g),a.replaceChild(p,r),a._luigi_node&&(a._luigi_mfe_webcomponent=p),a.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(n,r,a){this.containerService.dispatch(n,this.thisComponent,r,a)}createClientAPI(n,r,a,u,c){return{linkManager:()=>{let l=null,g=!1,p=!1,_=!1,y={};const T={navigate:(E,R={})=>{const P={fromContext:l,fromClosestContext:g,fromVirtualTreeRoot:p,fromParent:_,nodeParams:y,...R};this.dispatchLuigiEvent(U.NAVIGATION_REQUEST,{link:E,...P})},navigateToIntent:(E,R={})=>{let P="#?intent=";if(P+=E,R&&Object.keys(R)?.length){const N=Object.entries(R);if(N.length>0){P+="?";for(const[H,G]of N)P+=H+"="+G+"&";P=P.slice(0,-1)}}T.navigate(P)},fromClosestContext:()=>(g=!0,T),fromContext:E=>(l=E,T),fromVirtualTreeRoot:()=>(p=!0,T),fromParent:()=>(_=!0,T),getCurrentRoute:()=>{const E={fromContext:l,fromClosestContext:g,fromVirtualTreeRoot:p,fromParent:_,nodeParams:y};return new Promise(((R,P)=>{this.containerService.dispatch(U.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...E},(N=>{N?R(N):P("No current route received.")}))}))},withParams:E=>(y=E,T),updateModalPathInternalNavigation:(E,R={},P=!1)=>{if(!E)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const N={fromClosestContext:g,fromContext:l,fromParent:_,fromVirtualTreeRoot:p,nodeParams:y};this.dispatchLuigiEvent(U.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(N,{history:P,link:E,modal:R}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(U.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:E=>{const R={fromContext:l,fromClosestContext:g,fromVirtualTreeRoot:p,fromParent:_,nodeParams:y};return new Promise(((P,N)=>{this.containerService.dispatch(U.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...R,link:E},(H=>{H?P(!0):N(!1)})),this.containerService.dispatch(U.PATH_EXISTS_REQUEST,this.thisComponent,{...R,link:E},(H=>{H?P(!0):N(!1)}))}))},openAsDrawer:(E,R={})=>{T.navigate(E,{drawer:R})},openAsModal:(E,R={})=>{T.navigate(E,{modal:R})},openAsSplitView:(E,R={})=>{T.navigate(E,{splitView:R})},goBack:E=>{this.dispatchLuigiEvent(U.GO_BACK_REQUEST,E)},hasBack:()=>!1,updateModalSettings:(E={},R=!1)=>{this.dispatchLuigiEvent(U.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:E,addHistoryEntry:R})}};return T},uxManager:()=>({showAlert:l=>(l.id=this.alertIndex++,new Promise((g=>{this.alertResolvers[l.id]=g,this.dispatchLuigiEvent(U.ALERT_REQUEST,l,(p=>{this.resolveAlert(l.id,p)}))}))),showConfirmationModal:l=>new Promise(((g,p)=>{this.modalResolver={resolve:g,reject:p},this.containerService.dispatch(U.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,l,(_=>{_?g():p()}))})),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(U.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(U.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(U.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:l=>{this.dispatchLuigiEvent(U.SET_DOCUMENT_TITLE_REQUEST,l)},setDirtyStatus:l=>{this.dispatchLuigiEvent(U.SET_DIRTY_STATUS_REQUEST,{dirty:l})},setCurrentLocale:l=>{l&&this.dispatchLuigiEvent(U.SET_CURRENT_LOCALE_REQUEST,{currentLocale:l})},removeBackdrop:()=>{this.dispatchLuigiEvent(U.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(U.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(U.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(U.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(U.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(U.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:l=>{n&&n.eventBus&&n.eventBus.onPublishEvent(l,r,a);const g={id:l.type,_metaData:{nodeId:r,wc_id:a,src:u},data:l.detail};this.dispatchLuigiEvent(U.CUSTOM_MESSAGE,g)},luigiClientInit:()=>{this.dispatchLuigiEvent(U.INITIALIZED,{})},addNodeParams:(l,g)=>{c||this.dispatchLuigiEvent(U.ADD_NODE_PARAMS_REQUEST,{params:l,data:l,keepBrowserHistory:g})},getNodeParams:l=>{return c?{}:l?(g=this.thisComponent.nodeParams,Object.entries(g).reduce(((p,_)=>(p[Bl(_[0])]=Bl(_[1]),p)),{})):this.thisComponent.nodeParams||{};var g},setAnchor:l=>{c||this.dispatchLuigiEvent(U.SET_ANCHOR_LINK_REQUEST,l)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(l={},g=!0)=>{this.dispatchLuigiEvent(U.ADD_SEARCH_PARAMS_REQUEST,{data:l,keepBrowserHistory:g})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:l=>{this.dispatchLuigiEvent(U.SET_VIEW_GROUP_DATA_REQUEST,l)}}}initWC(n,r,a,u,c,l,g){const p=this.createClientAPI(a,l,r,n,g);if(n.__postProcess){const _=new URL(document.baseURI).origin===new URL(u,document.baseURI).origin?new URL("./",new URL(u,document.baseURI)):new URL("./",u);n.__postProcess(c,p,_.origin+_.pathname)}else n.context=c,n.LuigiClient=p}generateWCId(n){let r="";const a=new URL(n,encodeURI(location.href)).href;for(let u=0;u<a.length;u++)r+=a.charCodeAt(u).toString(16);return"luigi-wc-"+r}registerWCFromUrl(n,r){const a=this.processViewUrl(n);return new Promise(((u,c)=>{this.checkWCUrl(a)?this.dynamicImport(a).then((l=>{try{if(!window.customElements.get(r)){let g=l.default;if(!HTMLElement.isPrototypeOf(g)){const p=Object.keys(l);for(let _=0;_<p.length&&(g=l[p[_]],!HTMLElement.isPrototypeOf(g));_++);}window.customElements.define(r,g)}u(1)}catch(g){c(g)}})).catch((l=>{c(l)})):c(`Error: View URL '${a}' not allowed to be included`)}))}includeSelfRegisteredWCFromUrl(n,r,a){if(this.checkWCUrl(r)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(c,l)=>{window.customElements.define(this.generateWCId(c),l)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(c,l)=>{this.containerService.getContainerManager()._registerWebcomponent(c,l)}));const u=document.createElement("script");u.setAttribute("src",r),n.webcomponent.type==="module"&&u.setAttribute("type","module"),u.setAttribute("defer","true"),u.addEventListener("load",(()=>{a()})),document.body.appendChild(u)}else console.warn(`View URL '${r}' not allowed to be included`)}checkWCUrl(n){return!0}renderWebComponent(n,r,a,u,c,l){const g=this.processViewUrl(n,{context:a}),p=u?.webcomponent?.tagName||this.generateWCId(g),_=document.createElement("div");r.appendChild(_),r._luigi_node=u,window.customElements.get(p)?this.attachWC(p,_,r,a,g,c,l):window.luigiWCFn?window.luigiWCFn(g,p,_,(()=>{this.attachWC(p,_,r,a,g,c,l)})):u?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(u,g,(()=>{this.attachWC(p,_,r,a,g,c,l)})):this.registerWCFromUrl(g,p).then((()=>{this.attachWC(p,_,r,a,g,c,l)})).catch((y=>{console.warn("ERROR =>",y),this.containerService.dispatch(U.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,y)}))}createCompoundContainerAsync(n,r,a){return new Promise(((u,c)=>{if(n.viewUrl)try{const l=a?.webcomponent?.tagName||this.generateWCId(n.viewUrl);a?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(a,n.viewUrl,(()=>{const g=document.createElement(l);g.setAttribute("lui_web_component","true"),this.initWC(g,l,g,n.viewUrl,r,"_root"),u(g)})):this.registerWCFromUrl(n.viewUrl,l).then((()=>{const g=document.createElement(l);g.setAttribute("lui_web_component","true"),this.initWC(g,l,g,n.viewUrl,r,"_root"),u(g)})).catch((g=>{console.warn("Error: ",g),this.containerService.dispatch(U.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,g)}))}catch(l){c(l)}else u(n.createCompoundContainer())}))}renderWebComponentCompound(n,r,a){let u;return n.webcomponent&&n.viewUrl?(u=new _r,u.viewUrl=this.processViewUrl(n.viewUrl,{context:a}),u.createCompoundItemContainer=c=>{const l=document.createElement("div");return c?.slot&&l.setAttribute("slot",c.slot),l}):n.compound?.renderer&&(u=pc(n.compound.renderer)),u=u||new _r,new Promise((c=>{this.createCompoundContainerAsync(u,a,n).then((l=>{r._luigi_mfe_webcomponent=l,r._luigi_node=n;const g={};l.eventBus={listeners:g,onPublishEvent:(p,_,y)=>{const T=g[_+"."+p.type]||[];T.push(...g["*."+p.type]||[]),T.forEach((E=>{const R=E.wcElement||l.querySelector("[nodeId="+E.wcElementId+"]");R?R.dispatchEvent(new CustomEvent(E.action,{detail:E.converter?E.converter(p.detail):p.detail})):console.debug("Could not find event target",E)}))}},n.compound?.children?.forEach(((p,_)=>{const y={...a,...p.context},T=u.createCompoundItemContainer(p.layoutConfig);T.eventBus=l.eventBus,u.attachCompoundItem(l,T);const E=p.id||"gen_"+_;this.renderWebComponent(p.viewUrl,T,y,p,E,!0),Vl(g,p,E)})),r.appendChild(l),Vl(g,n.compound,"_root",l),c(l)})).catch((l=>{console.warn("Error: ",l),this.containerService.dispatch(U.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,l)}))}))}resolveAlert(n,r){this.alertResolvers[n]?(this.alertResolvers[n](r===void 0||r),this.alertResolvers[n]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(n){this.modalResolver?(n?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const qr=new class{isFunction(i){return i&&{}.toString.call(i)==="[object Function]"}isObject(i){return!(!i||typeof i!="object"||Array.isArray(i))}checkWebcomponentValue(i){return typeof i=="string"?JSON.parse(i):typeof i=="boolean"||typeof i=="object"?i:void console.warn("Webcomponent value has a wrong type.")}resolveContext(i){return i?typeof i=="string"?JSON.parse(i):i:{}}};function Gl(i){let n,r=(!i[4]||i[4]==="false")&&Ql(i);return{c(){r&&r.c(),n=uc("")},m(a,u){r&&r.m(a,u),Dn(a,n,u)},p(a,u){a[4]&&a[4]!=="false"?r&&(r.d(1),r=null):r?r.p(a,u):(r=Ql(a),r.c(),r.m(n.parentNode,n))},d(a){a&&gn(n),r&&r.d(a)}}}function Ql(i){let n,r,a,u,c,l;return{c(){n=pr("style"),n.textContent=`main.lui-isolated,
46
46
  .lui-isolated iframe {
47
47
  width: 100%;
48
48
  height: 100%;
@@ -51,5 +51,5 @@ Please refer to documentation`),[A]}}buildVirtualViewUrl(n,r,a){let u="";for(con
51
51
 
52
52
  main.lui-isolated {
53
53
  line-height: 0;
54
- }`,r=uc(" "),a=pr("iframe"),kl(a.src,u=i[3])||_t(a,"src",u),_t(a,"title",i[1]),_t(a,"allow",c=Hl(i[0])),_t(a,"sandbox",l=i[2]?i[2].join(" "):void 0)},m(g,p){Un(g,n,p),Un(g,r,p),Un(g,a,p),i[28](a)},p(g,p){8&p[0]&&!kl(a.src,u=g[3])&&_t(a,"src",u),2&p[0]&&_t(a,"title",g[1]),1&p[0]&&c!==(c=Hl(g[0]))&&_t(a,"allow",c),4&p[0]&&l!==(l=g[2]?g[2].join(" "):void 0)&&_t(a,"sandbox",l)},d(g){g&&(gn(n),gn(r),gn(a)),i[28](null)}}}function rS(i){let n,r,a=i[5]&&Gl(i);return{c(){n=pr("main"),a&&a.c(),_t(n,"class",r=i[4]?void 0:"lui-isolated")},m(u,c){Un(u,n,c),a&&a.m(n,null),i[29](n)},p(u,c){u[5]?a?a.p(u,c):(a=Gl(u),a.c(),a.m(n,null)):a&&(a.d(1),a=null),16&c[0]&&r!==(r=u[4]?void 0:"lui-isolated")&&_t(n,"class",r)},i:hn,o:hn,d(u){u&&gn(n),a&&a.d(),i[29](null)}}}function iS(i,n,r){let{activeFeatureToggleList:a}=n,{allowRules:u}=n,{anchor:c}=n,{authData:l}=n,{clientPermissions:g}=n,{context:p}=n,{deferInit:_}=n,{dirtyStatus:T}=n,{documentTitle:A}=n,{hasBack:E}=n,{label:y}=n,{locale:I}=n,{noShadow:O}=n,{nodeParams:k}=n,{pathParams:G}=n,{sandboxRules:re}=n,{searchParams:Oe}=n,{skipCookieCheck:be}=n,{skipInitCheck:Qe}=n,{theme:Pe}=n,{userSettings:Je}=n,{viewurl:Ce}=n,{webcomponent:Te}=n;const ve={};let ye,$,Zt=!1;const St=new _c,$e=L=>{if(!Zt){L.sendCustomMessage=(ae,ke)=>{sr.sendCustomMessage(ae,L.getNoShadow()?L:ye,!!Te,ve,ke)},L.updateContext=(ae,ke)=>{if(r(8,p=ae),Te)(L.getNoShadow()?L:ye)._luigi_mfe_webcomponent.context=ae;else{const Jt={...ke||{},activeFeatureToggleList:L.activeFeatureToggleList||[],currentLocale:L.locale,currentTheme:L.theme,userSettings:L.userSettings||null,cssVariables:L.cssVariables||{},anchor:L.anchor||"",drawer:L.drawer||!1,modal:L.modal||!1,viewStackSize:L.viewStackSize||0,isNavigateBack:L.isNavigateBack||!1};sr.updateContext(ae,Jt,ve,k,G,Oe)}},L.closeAlert=(ae,ke)=>{L.notifyAlertClosed(ae,ke)},L.notifyAlertClosed=(ae,ke)=>{L.isConnected&&(Te?St.resolveAlert(ae,ke):sr.notifyAlertClosed(ae,ke,ve))},L.notifyConfirmationModalClosed=ae=>{L.isConnected&&(Te?St.notifyConfirmationModalClosed(!!ae):sr.notifyConfirmationModalClosed(!!ae,ve))},fn.registerContainer(L),St.thisComponent=L;const ot=qr.resolveContext(p);if(L.updateViewUrl=(ae,ke)=>{ae?.length&&sr.updateViewUrl(ae,qr.resolveContext(p),ke,ve)},Te&&Te!="false"){L.getNoShadow()?L.innerHTML="":(r(7,ye.innerHTML="",ye),L.attachShadow({mode:"open"}).append(ye));const ae=qr.checkWebcomponentValue(Te);St.renderWebComponent(Ce,L.getNoShadow()?L:ye,ot,typeof ae=="object"?{webcomponent:ae}:{})}else L.getNoShadow()||(L.innerHTML="",L.attachShadow({mode:"open"}).append(ye));Qe?(L.initialized=!0,setTimeout((()=>{St.dispatchLuigiEvent(N.INITIALIZED,{})}))):Te&&(L.getNoShadow()?L:ye).addEventListener("wc_ready",(()=>{(L.getNoShadow()?L:ye)._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(L.initialized=!0,St.dispatchLuigiEvent(N.INITIALIZED,{}))})),r(5,Zt=!0),L.containerInitialized=!0}};var En;return cc((async()=>{r(27,$=ye.parentNode),r(27,$.iframeHandle=ve,$),r(27,$.init=()=>{$e($)},$),!_&&Ce&&$e($)})),En=async()=>{},lc().$$.on_destroy.push(En),i.$$set=L=>{"activeFeatureToggleList"in L&&r(9,a=L.activeFeatureToggleList),"allowRules"in L&&r(0,u=L.allowRules),"anchor"in L&&r(10,c=L.anchor),"authData"in L&&r(11,l=L.authData),"clientPermissions"in L&&r(12,g=L.clientPermissions),"context"in L&&r(8,p=L.context),"deferInit"in L&&r(13,_=L.deferInit),"dirtyStatus"in L&&r(14,T=L.dirtyStatus),"documentTitle"in L&&r(15,A=L.documentTitle),"hasBack"in L&&r(16,E=L.hasBack),"label"in L&&r(1,y=L.label),"locale"in L&&r(17,I=L.locale),"noShadow"in L&&r(18,O=L.noShadow),"nodeParams"in L&&r(19,k=L.nodeParams),"pathParams"in L&&r(20,G=L.pathParams),"sandboxRules"in L&&r(2,re=L.sandboxRules),"searchParams"in L&&r(21,Oe=L.searchParams),"skipCookieCheck"in L&&r(22,be=L.skipCookieCheck),"skipInitCheck"in L&&r(23,Qe=L.skipInitCheck),"theme"in L&&r(24,Pe=L.theme),"userSettings"in L&&r(25,Je=L.userSettings),"viewurl"in L&&r(3,Ce=L.viewurl),"webcomponent"in L&&r(4,Te=L.webcomponent)},i.$$.update=()=>{134225960&i.$$.dirty[0]&&!Zt&&Ce&&!_&&$&&$e($)},[u,y,re,Ce,Te,Zt,ve,ye,p,a,c,l,g,_,T,A,E,I,O,k,G,Oe,be,Qe,Pe,Je,()=>a&&u&&c&&l&&g&&T&&A&&E&&I&&O&&k&&G&&re&&Oe&&be&&Qe&&Pe&&Je,$,function(L){Xr[L?"unshift":"push"]((()=>{ve.iframe=L,r(6,ve)}))},function(L){Xr[L?"unshift":"push"]((()=>{ye=L,r(7,ye)}))}]}class vc extends dc{constructor(n){super(),fc(this,n,iS,rS,oc,{activeFeatureToggleList:9,allowRules:0,anchor:10,authData:11,clientPermissions:12,context:8,deferInit:13,dirtyStatus:14,documentTitle:15,hasBack:16,label:1,locale:17,noShadow:18,nodeParams:19,pathParams:20,sandboxRules:2,searchParams:21,skipCookieCheck:22,skipInitCheck:23,theme:24,userSettings:25,viewurl:3,webcomponent:4,unwarn:26},null,[-1,-1])}get activeFeatureToggleList(){return this.$$.ctx[9]}set activeFeatureToggleList(n){this.$$set({activeFeatureToggleList:n}),q()}get allowRules(){return this.$$.ctx[0]}set allowRules(n){this.$$set({allowRules:n}),q()}get anchor(){return this.$$.ctx[10]}set anchor(n){this.$$set({anchor:n}),q()}get authData(){return this.$$.ctx[11]}set authData(n){this.$$set({authData:n}),q()}get clientPermissions(){return this.$$.ctx[12]}set clientPermissions(n){this.$$set({clientPermissions:n}),q()}get context(){return this.$$.ctx[8]}set context(n){this.$$set({context:n}),q()}get deferInit(){return this.$$.ctx[13]}set deferInit(n){this.$$set({deferInit:n}),q()}get dirtyStatus(){return this.$$.ctx[14]}set dirtyStatus(n){this.$$set({dirtyStatus:n}),q()}get documentTitle(){return this.$$.ctx[15]}set documentTitle(n){this.$$set({documentTitle:n}),q()}get hasBack(){return this.$$.ctx[16]}set hasBack(n){this.$$set({hasBack:n}),q()}get label(){return this.$$.ctx[1]}set label(n){this.$$set({label:n}),q()}get locale(){return this.$$.ctx[17]}set locale(n){this.$$set({locale:n}),q()}get noShadow(){return this.$$.ctx[18]}set noShadow(n){this.$$set({noShadow:n}),q()}get nodeParams(){return this.$$.ctx[19]}set nodeParams(n){this.$$set({nodeParams:n}),q()}get pathParams(){return this.$$.ctx[20]}set pathParams(n){this.$$set({pathParams:n}),q()}get sandboxRules(){return this.$$.ctx[2]}set sandboxRules(n){this.$$set({sandboxRules:n}),q()}get searchParams(){return this.$$.ctx[21]}set searchParams(n){this.$$set({searchParams:n}),q()}get skipCookieCheck(){return this.$$.ctx[22]}set skipCookieCheck(n){this.$$set({skipCookieCheck:n}),q()}get skipInitCheck(){return this.$$.ctx[23]}set skipInitCheck(n){this.$$set({skipInitCheck:n}),q()}get theme(){return this.$$.ctx[24]}set theme(n){this.$$set({theme:n}),q()}get userSettings(){return this.$$.ctx[25]}set userSettings(n){this.$$set({userSettings:n}),q()}get viewurl(){return this.$$.ctx[3]}set viewurl(n){this.$$set({viewurl:n}),q()}get webcomponent(){return this.$$.ctx[4]}set webcomponent(n){this.$$set({webcomponent:n}),q()}get unwarn(){return this.$$.ctx[26]}}function sS(i){Km(i,"svelte-1buc46y","main.svelte-1buc46y{width:100%;height:100%;border:none}")}function aS(i){let n;return{c(){n=pr("main"),_t(n,"class","svelte-1buc46y")},m(r,a){Un(r,n,a),i[21](n)},p:hn,i:hn,o:hn,d(r){r&&gn(n),i[21](null)}}}function oS(i,n,r){let a,u,{activeFeatureToggleList:c}=n,{anchor:l}=n,{clientPermissions:g}=n,{compoundConfig:p}=n,{context:_}=n,{deferInit:T}=n,{dirtyStatus:A}=n,{documentTitle:E}=n,{hasBack:y}=n,{locale:I}=n,{noShadow:O}=n,{nodeParams:k}=n,{pathParams:G}=n,{searchParams:re}=n,{skipInitCheck:Oe}=n,{theme:be}=n,{userSettings:Qe}=n,{viewurl:Pe}=n,{webcomponent:Je}=n,Ce=!1;const Te=new Qa,ve=new _c,ye=$=>{if(!p||Ce)return;$.updateContext=($e,En)=>{const L=$.getNoShadow()?$:a;L._luigi_mfe_webcomponent.context=$e,r(1,_=$e);const ot=L._luigi_mfe_webcomponent;ot&&ot.querySelectorAll("[lui_web_component]")?.forEach((ke=>{const Jt=ke.context||{};ke.context=Object.assign(Jt,$e)}))};const Zt=qr.resolveContext(_);r(2,T=!1),$.notifyAlertClosed=($e,En)=>{$.isConnected&&ve.resolveAlert($e,En)},$.notifyConfirmationModalClosed=$e=>{$.isConnected&&ve.notifyConfirmationModalClosed(!!$e)};const St={compound:p,viewUrl:Pe,webcomponent:qr.checkWebcomponentValue(Je)||!0};$.getNoShadow()?$.innerHTML="":(r(0,a.innerHTML="",a),$.attachShadow({mode:"open"}).append(a)),ve.renderWebComponentCompound(St,$.getNoShadow()?$:a,Zt).then(($e=>{u=$e,Oe||!St.viewUrl?($.initialized=!0,setTimeout((()=>{ve.dispatchLuigiEvent(N.INITIALIZED,{})}))):u.LuigiClient&&!u.deferLuigiClientWCInit&&($.initialized=!0,ve.dispatchLuigiEvent(N.INITIALIZED,{}))})),Ce=!0,$.containerInitialized=!0};return cc((async()=>{const $=a.getRootNode()===document?a.parentNode:a.getRootNode().host;$.init=()=>{ye($)},T||ye($),Te.registerContainer($),ve.thisComponent=$})),i.$$set=$=>{"activeFeatureToggleList"in $&&r(3,c=$.activeFeatureToggleList),"anchor"in $&&r(4,l=$.anchor),"clientPermissions"in $&&r(5,g=$.clientPermissions),"compoundConfig"in $&&r(6,p=$.compoundConfig),"context"in $&&r(1,_=$.context),"deferInit"in $&&r(2,T=$.deferInit),"dirtyStatus"in $&&r(7,A=$.dirtyStatus),"documentTitle"in $&&r(8,E=$.documentTitle),"hasBack"in $&&r(9,y=$.hasBack),"locale"in $&&r(10,I=$.locale),"noShadow"in $&&r(11,O=$.noShadow),"nodeParams"in $&&r(12,k=$.nodeParams),"pathParams"in $&&r(13,G=$.pathParams),"searchParams"in $&&r(14,re=$.searchParams),"skipInitCheck"in $&&r(15,Oe=$.skipInitCheck),"theme"in $&&r(16,be=$.theme),"userSettings"in $&&r(17,Qe=$.userSettings),"viewurl"in $&&r(18,Pe=$.viewurl),"webcomponent"in $&&r(19,Je=$.webcomponent)},[a,_,T,c,l,g,p,A,E,y,I,O,k,G,re,Oe,be,Qe,Pe,Je,()=>c&&l&&g&&A&&E&&y&&I&&O&&k&&G&&re&&Oe&&be&&Qe,function($){Xr[$?"unshift":"push"]((()=>{a=$,r(0,a)}))}]}gc(vc,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},allowRules:{type:"Array",reflect:!1,attribute:"allow-rules"},anchor:{type:"String",reflect:!1,attribute:"anchor"},authData:{type:"Object",reflect:!1,attribute:"auth-data"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},label:{type:"String",reflect:!1,attribute:"label"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow"},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},sandboxRules:{type:"Array",reflect:!1,attribute:"sandbox-rules"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipCookieCheck:{type:"String",reflect:!1,attribute:"skip-cookie-check"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(i=>{let n=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends i{sendCustomMessage=n("sendCustomMessage");updateContext=n("updateContext");updateViewUrl=n("updateViewUrl");closeAlert=n("closeAlert");notifyAlertClosed=n("notifyAlertClosed");notifyConfirmationModalClosed=n("notifyConfirmationModalClosed");attributeChangedCallback(r,a,u){try{super.attributeChangedCallback(r,a,u)}catch(c){console.error("Error in super.attributeChangedCallback",c)}this.containerInitialized&&(r==="context"&&this.updateContext(JSON.parse(u)),r==="auth-data"&&sr.updateAuthData(this.iframeHandle,JSON.parse(u)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}));class ql extends dc{constructor(n){super(),fc(this,n,oS,aS,oc,{activeFeatureToggleList:3,anchor:4,clientPermissions:5,compoundConfig:6,context:1,deferInit:2,dirtyStatus:7,documentTitle:8,hasBack:9,locale:10,noShadow:11,nodeParams:12,pathParams:13,searchParams:14,skipInitCheck:15,theme:16,userSettings:17,viewurl:18,webcomponent:19,unwarn:20},sS)}get activeFeatureToggleList(){return this.$$.ctx[3]}set activeFeatureToggleList(n){this.$$set({activeFeatureToggleList:n}),q()}get anchor(){return this.$$.ctx[4]}set anchor(n){this.$$set({anchor:n}),q()}get clientPermissions(){return this.$$.ctx[5]}set clientPermissions(n){this.$$set({clientPermissions:n}),q()}get compoundConfig(){return this.$$.ctx[6]}set compoundConfig(n){this.$$set({compoundConfig:n}),q()}get context(){return this.$$.ctx[1]}set context(n){this.$$set({context:n}),q()}get deferInit(){return this.$$.ctx[2]}set deferInit(n){this.$$set({deferInit:n}),q()}get dirtyStatus(){return this.$$.ctx[7]}set dirtyStatus(n){this.$$set({dirtyStatus:n}),q()}get documentTitle(){return this.$$.ctx[8]}set documentTitle(n){this.$$set({documentTitle:n}),q()}get hasBack(){return this.$$.ctx[9]}set hasBack(n){this.$$set({hasBack:n}),q()}get locale(){return this.$$.ctx[10]}set locale(n){this.$$set({locale:n}),q()}get noShadow(){return this.$$.ctx[11]}set noShadow(n){this.$$set({noShadow:n}),q()}get nodeParams(){return this.$$.ctx[12]}set nodeParams(n){this.$$set({nodeParams:n}),q()}get pathParams(){return this.$$.ctx[13]}set pathParams(n){this.$$set({pathParams:n}),q()}get searchParams(){return this.$$.ctx[14]}set searchParams(n){this.$$set({searchParams:n}),q()}get skipInitCheck(){return this.$$.ctx[15]}set skipInitCheck(n){this.$$set({skipInitCheck:n}),q()}get theme(){return this.$$.ctx[16]}set theme(n){this.$$set({theme:n}),q()}get userSettings(){return this.$$.ctx[17]}set userSettings(n){this.$$set({userSettings:n}),q()}get viewurl(){return this.$$.ctx[18]}set viewurl(n){this.$$set({viewurl:n}),q()}get webcomponent(){return this.$$.ctx[19]}set webcomponent(n){this.$$set({webcomponent:n}),q()}get unwarn(){return this.$$.ctx[20]}}gc(ql,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},anchor:{type:"String",reflect:!1,attribute:"anchor"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},compoundConfig:{type:"Object",reflect:!1,attribute:"compound-config"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow",reflect:!1},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(i=>{let n=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends i{updateContext=n("updateContext");notifyAlertClosed=n("notifyAlertClosed");notifyConfirmationModalClosed=n("notifyConfirmationModalClosed");attributeChangedCallback(r,a,u){try{super.attributeChangedCallback(r,a,u)}catch(c){console.warn("Error in attributeChangedCallback",c)}this.containerInitialized&&r==="context"&&this.updateContext(JSON.parse(u))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}})),customElements.get("luigi-container")||customElements.define("luigi-container",vc.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",ql.element);class vr{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(n){this.decorators=this.decorators.filter(r=>r.uid!==n.uid).concat(n)}applyDecorators(n,r){if(!n)return n;const a=new URL(W.prependOrigin(n)),u=this.decorators.filter(c=>c.type==="queryString");for(let c=0;c<u.length;c++){const l=u[c];a.searchParams.has(l.key)&&a.searchParams.delete(l.key);const g=l.valueFn();a.searchParams.append(l.key,g)}return r&&(a.search=decodeURIComponent(a.search)),a.href}}const $a=async(i,n,r)=>{const a=await n.readUserSettings(),c=i.userSettingsGroup&&typeof a=="object"&&a!==null&&i.userSettingsGroup?a[i.userSettingsGroup]:null,l=r?.nodeParams||{},g=r?.pathParams||{},p=r?.searchParams||{};if(i.webcomponent&&i.viewUrl&&!F.checkWCUrl(i.viewUrl,n))return console.warn(`View URL '${i.viewUrl}' not allowed to be included`),document.createElement("div");if(i.compound){const _=document.createElement("luigi-compound-container");return _.setAttribute("lui_container","true"),_.viewurl=i.viewUrl?te.get(vr).applyDecorators(F.substituteViewUrl(i.viewUrl,g,n),i.decodeViewUrl??!1):"",_.webcomponent=i.webcomponent??!1,_.compoundConfig=i.compound,_.context=i.context,_.clientPermissions=i.clientPermissions??{},_.nodeParams=l,_.pathParams=g,_.userSettingsGroup=i.userSettingsGroup,_.userSettings=c,_.searchParams=p,_.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),_.locale=n.i18n().getCurrentLocale(),_.theme=n.theming().getCurrentTheme(),_.viewGroup=i.viewGroup,_.virtualTree=i.virtualTree||i._virtualTree,_.virtualTreeRootNode=Le.findVirtualTreeRootNode(i),n.getEngine()._comm.addListeners(_,n),_}else{const _=document.createElement("luigi-container");return _.setAttribute("lui_container","true"),_.viewurl=i.viewUrl?te.get(vr).applyDecorators(F.substituteViewUrl(i.viewUrl,g,n),i.decodeViewUrl??!1):"",_.webcomponent=i.webcomponent??!1,_.context=i.context,_.clientPermissions=i.clientPermissions??{},_.cssVariables=await n.theming().getCSSVariables(),_.nodeParams=l,_.pathParams=g,_.userSettingsGroup=i.userSettingsGroup,_.userSettings=c,_.searchParams=p,_.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),_.locale=n.i18n().getCurrentLocale(),_.theme=n.theming().getCurrentTheme(),_.viewGroup=i.viewGroup,_.virtualTree=i.virtualTree||i._virtualTree,_.virtualTreeRootNode=Le.findVirtualTreeRootNode(i),mc(_,n),Sc(_,n),n.getEngine()._comm.addListeners(_,n),_}},mc=(i,n)=>{const r=n.getConfigValue("settings.customSandboxRules");if(!r?.length)return;const a=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],u=r?[...new Set([...a,...r])]:a;i.sandboxRules=u},Sc=(i,n)=>{const r=n.getConfigValue("settings.allowRules");r?.length&&(r.forEach((a,u)=>{r[u]=a+(a.indexOf(";")!=-1?"":";")}),i.allowRules=r)},Me={navService:void 0,routingService:void 0,luigi:void 0,init:i=>{console.log("Init UI..."),Me.navService=te.get(mn),Me.routingService=te.get(Dn),Me.luigi=i,i.getEngine()._connector?.renderMainLayout()},update:async i=>{const n=Me.routingService.getCurrentRoute();if(!n)return;const r=!i||i.length===0;(r||i.includes("settings.header")||i.includes("settings")||i.includes("navigation")||i.includes("navigation.profile")||i.includes("navigation.contextSwitcher")||i.includes("navigation.productSwitcher"))&&Me.luigi.getEngine()._connector?.renderTopNav(await Me.navService.getTopNavData(n.path)),(r||i.includes("navigation")||i.includes("navigation.nodes")||i.includes("navigation.viewgroupdata")||i.includes("settings")||i.includes("settings.footer"))&&(te.get(vn).deleteCache(),Me.luigi.getEngine()._connector?.renderLeftNav(await Me.navService.getLeftNavData(n.path)),Me.luigi.getEngine()._connector?.renderTabNav(await Me.navService.getTabNavData(n.path))),(r||i.includes("navigation")||i.includes("navigation.nodes")||i.includes("navigation.viewgroupdata")||i.includes("settings.theming"))&&(te.get(vn).deleteCache(),n.node&&Me.updateMainContent(n.node,Me.luigi))},updateMainContent:async(i,n,r,a,u)=>{const c=await n.readUserSettings(),g=i.userSettingsGroup&&typeof c=="object"&&c!==null&&i.userSettingsGroup?c[i.userSettingsGroup]:null,p=n.getEngine()._connector?.getContainerWrapper();n.getEngine()._connector?.hideLoadingIndicator(p);const _=r?.nodeParams||{},T=r?.pathParams||{},A=r?.searchParams||{};if(i&&p){let E,y;if((i.virtualTree||i._virtualTree)&&(y=Le.findVirtualTreeRootNode(i)),[...p.childNodes].forEach(I=>{I.tagName?.indexOf("LUIGI-")===0&&(I.viewGroup&&i.viewGroup!==I.viewGroup?I.style.display="none":I.viewGroup||I.virtualTree&&y===I.virtualTreeRootNode?E=I:I.remove())}),E)a||(E.style.display="block",E.viewurl=i.viewUrl?te.get(vr).applyDecorators(F.substituteViewUrl(i.viewUrl,T,n),i.decodeViewUrl??!1):"",E.nodeParams=_,E.pathParams=T,E.clientPermissions=i.clientPermissions,E.searchParams=A,E.locale=n.i18n().getCurrentLocale(),E.theme=n.theming().getCurrentTheme(),E.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),E.userSettingsGroup=i.userSettingsGroup,E.userSettings=g,mc(E,n),Sc(E,n)),u||E.updateContext(i.context||{});else{const I=await $a(i,n,r);p?.appendChild(I);const O=n.getEngine()._connector;i.loadingIndicator?.enabled!==!1&&O?.showLoadingIndicator(p)}}},openModal:async(i,n,r,a)=>{const u=await $a(n,i),c=te.get(Dn),l=te.get(_n);let g=!1,p,_;const A=new Promise(I=>{p=()=>{g||(g=!0,I(),l.removeLastModalFromStack())},_=()=>{p&&p(),i.getConfigValue("routing.showModalPathInUrl")&&l.getModalStackLength()===0&&c.removeModalDataFromUrl(!0)},u.addEventListener(N.CLOSE_CURRENT_MODAL_REQUEST,_)}),E={closePromise:A,resolveFn:p,onCloseRequestHandler:_,onInternalClose:()=>{try{E.resolveFn&&E.resolveFn()}catch(I){console.warn("onInternalClose failed",I)}},modalsettings:r};l.registerModal(E),i.getEngine()._connector?.renderModal(u,r,()=>{a?.(),l.removeLastModalFromStack(),i.getConfigValue("routing.showModalPathInUrl")&&l.getModalStackLength()===0&&c.removeModalDataFromUrl(!0)},()=>A);const y=i.getEngine()._connector;n.loadingIndicator?.enabled!==!1&&y?.showLoadingIndicator(u.parentElement)},updateModalSettings:(i,n,r)=>{const a=te.get(_n);if(a.getModalStackLength()===0)return;a.updateFirstModalSettings(i);const u=te.get(Dn),c=F.getModalPathFromPath(r);c&&u.updateModalDataInUrl(c,a.getModalSettings(),n),r.getEngine()._connector?.updateModalSettings(a.getModalSettings())},openDrawer:async(i,n,r,a)=>{const u=await $a(n,i);i.getEngine()._connector?.renderDrawer(u,r,a);const c=i.getEngine()._connector;n.loadingIndicator?.enabled!==!1&&c?.showLoadingIndicator(u.parentElement)}};class Dn{constructor(n){this.luigi=n}getNavigationService(){return this.navigationService||(this.navigationService=te.get(mn)),this.navigationService}shouldSkipRoutingForUrlPatterns(){const n=[/access_token=/,/id_token=/];return(this.luigi.getConfigValue("routing.skipRoutingForUrlPatterns")||n).filter(a=>location.href.match(a)).length!==0}enableRouting(){const n=this.luigi.getConfig();console.log("Init Routing...",n.routing),n.routing?.useHashRouting?(window.addEventListener("hashchange",r=>{const a=!!r?.detail?.preventContextUpdate,u=!!r?.detail?.withoutSync;this.handleRouteChange(F.getCurrentPath(!0),u,a)}),this.handleRouteChange(F.getCurrentPath(!0))):(window.addEventListener("popstate",r=>{const a=!!r?.detail?.preventContextUpdate,u=!!r?.detail?.withoutSync;this.handleRouteChange(F.getCurrentPath(),u,a)}),this.handleRouteChange(F.getCurrentPath()))}async handleRouteChange(n,r=!1,a=!1){const u=n.path,c=n.query,l=u+(c?"?"+c:""),g=new URLSearchParams(c),p=Object.create(null);if(this.shouldSkipRoutingForUrlPatterns())return;this.setFeatureToggle(l),await this.shouldShowModalPathInUrl(n),g.forEach((y,I)=>{p[I]=y}),this.checkInvalidateCache(this.previousPathData,u);const _=await this.getNavigationService().getPathData(u);this.previousPathData=_;const T=F.filterNodeParams(p,this.luigi),A=await this.getNavigationService().shouldRedirect(u,_);if(A){this.luigi.navigation().navigate(A);return}this.currentRoute={raw:window.location.href,path:u,nodeParams:T},this.luigi.getEngine()._connector?.renderTopNav(await this.getNavigationService().getTopNavData(u,_)),this.luigi.getEngine()._connector?.renderLeftNav(await this.getNavigationService().getLeftNavData(u,_)),this.luigi.getEngine()._connector?.renderTabNav(await this.getNavigationService().getTabNavData(u,_));const E=_?.selectedNode??await this.getNavigationService().getCurrentNode(u);if(E){const y={nodeParams:T||{},pathParams:_?.pathParams||{},searchParams:F.prepareSearchParamsForClient(E,this.luigi)};this.currentRoute.node=E,this.getNavigationService().onNodeChange(this.previousNode,E),this.previousNode=E,Me.updateMainContent(E,this.luigi,y,r,a)}}getCurrentRoute(){return this.currentRoute}async shouldShowModalPathInUrl(n){this.luigi.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath(n)}async handleBookmarkableModalPath(n){const r=te.get(mn),a=te.get(_n),u=new URLSearchParams(n?.query||""),c=F.getModalViewParamName(this.luigi),l=u.get(c);if(l){const g=u.get(`${c}Params`);try{const p=JSON.parse(g||"{}"),{nodeObject:_}=await r.extractDataFromPath(l);document.querySelector(".lui-modal luigi-container")?this.luigi.getEngine()._connector?.updateModalSettings(p):this.luigi.navigation().openAsModal(l,p||_.openNodeInModal)}catch(p){console.error("Error parsing modal settings from URL parameters",p)}}else{a.closeModals();return}}appendModalDataToUrl(n,r){const a=F.getHashQueryParamSeparator(),u=F.getQueryParams(this.luigi),c=F.getModalViewParamName(this.luigi),l=u[c],g=new URL(location.href),p=this.luigi.getConfigValue("routing.useHashRouting");let _=history.state,T,A;if(p){let[E,y]=g.hash.split("?");T=E,A=F.getURLWithoutModalData(y,c),A&&(T+="?"+A)}else T=g.pathname,A=F.getURLWithoutModalData(g.search,c),A&&(T+="?"+F.getURLWithoutModalData(g.search,c));if(_=F.handleHistoryState(_,T),l!==n){if(u[c]=n,r&&Object.keys(r).length&&(u[`${c}Params`]=JSON.stringify(r)),p){const E=location.hash.indexOf(a);E!==-1&&(g.hash=g.hash.slice(0,E)),g.hash=`${g.hash}${a}${F.encodeParams(u)}`}else g.search=`?${F.encodeParams(u)}`;history.pushState(_,"",g.href)}else{const E=new URL(g);if(p){let y=E.hash.split("?")[0];E.hash=y,A&&(E.hash+="?"+A)}else E.search=A;history.replaceState({},"",E.href),history.pushState(_,"",g.href)}}removeModalDataFromUrl(n){const r=F.getQueryParams(this.luigi),a=F.getModalViewParamName(this.luigi);let u=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){let l={};r[a]&&(l[a]=r[a]),r[`${a}Params`]&&(l[`${a}Params`]=r[`${a}Params`]);let g=F.encodeParams(l);u.hash.includes(`?${g}`)?u.hash=u.hash.replace(`?${g}`,""):u.hash.includes(`&${g}`)&&(u.hash=u.hash.replace(`&${g}`,""))}else{let l=new URLSearchParams(u.search.slice(1));l.delete(a),l.delete(`${a}Params`);let g="";Array.from(l.keys()).forEach(p=>{g+=(g===""?"?":"&")+p+"="+l.get(p)}),u.search=g}if(history.state&&history.state.modalHistoryLength>=0&&n){history.state.modalHistoryLength;const l=history.state.pathBeforeHistory;let g=!1;if(window.addEventListener("popstate",p=>{g?(history.replaceState({},"",l),history.pushState({},"",l),history.back()):(history.pushState({},"",l),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const p=history.length-1;g=!0,history.go(-p),window.Luigi.preventLoadingModalData=!0}else{const p=history.state.modalHistoryLength;history.go(-p)}}else history.pushState({},"",u.href)}setFeatureToggle(n){const r=this.luigi.getConfigValue("settings.featureToggles.queryStringParam"),a=this.luigi.featureToggles();r&&typeof n=="string"&&F.setFeatureToggles(r,n,a)}updateModalDataInUrl(n,r,a){let u=F.getHashQueryParamSeparator();const c=F.getQueryParams(this.luigi),l=F.getModalViewParamName(this.luigi);c[l]=n,r&&Object.keys(r).length&&(c[`${l}Params`]=JSON.stringify(r));const g=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){const _=location.hash.indexOf(u);_!==-1&&(g.hash=g.hash.slice(0,_)),g.hash=`${g.hash}${u}${F.encodeParams(c)}`}else g.search=`?${F.encodeParams(c)}`;a?history.pushState(window.state,"",g.href):history.replaceState(window.state,"",g.href)}checkInvalidateCache(n,r){if(!n)return;const a=te.get(vn);let u=r.split("/");if(n.nodesInPath&&n.nodesInPath.length>0){let c=n.nodesInPath.slice(1),l=!0;for(let g=0;g<c.length;g++){let p=u.length>g?u[g]:void 0,_=c[g];if(p!==_.pathSegment||!l)if(F.isDynamicNode(_)){if(!l||p!==F.getDynamicNodeValue(_,n.pathParams)){a.deleteNodesRecursively(_);break}}else l=!1}}else a.deleteCache()}}class uS{constructor(n){this.hashRouting=!1,this.options={fromContext:null,fromClosestContext:!1,fromVirtualTreeRoot:!1,fromParent:!1,nodeParams:{}},this.navigate=async(r,a,u,c,l)=>{const g=r[0]!=="/";this.options.relative=g;const p={modalSettings:u,newTab:!1,options:this.options,path:r,preserveView:a,preventContextUpdate:!1,preventHistoryEntry:!1,withoutSync:!1};this.navService.handleNavigationRequest(p,void 0)},this.openAsModal=async(r,a,u)=>{a?.keepPrevious||await this.modalService.closeModals();const c=r.replace(/\/\/+/g,"/"),l=await this.navService.getCurrentNode(c),g=a||{};g.title||(g.title=l.label),this.luigi.getConfigValue("routing.showModalPathInUrl")&&this.modalService.getModalStackLength()===0&&this.routingService.appendModalDataToUrl(c,g),this.luigi.getEngine()._ui.openModal(this.luigi,l,g,u)},this.openAsDrawer=async(r,a,u)=>{const c=r.replace(/\/\/+/g,"/"),l=await this.navService.getCurrentNode(c),g=a||{};g.title||(g.title=l.label),this.luigi.getEngine()._ui.openDrawer(this.luigi,l,g,u)},this.runTimeErrorHandler=async r=>{const{path:a}=F.getCurrentPath(this.luigi.getConfig().routing?.useHashRouting),u=await this.navService.getCurrentNode(a),c=this.luigi.getConfigValue("navigation.defaults.runTimeErrorHandler");u?.runTimeErrorHandler?.errorFn&&W.isFunction(u?.runTimeErrorHandler?.errorFn)?u.runTimeErrorHandler.errorFn(r,u):c?.errorFn&&W.isFunction(c.errorFn)&&c.errorFn(r,u)},this.luigi=n,this.hashRouting=n.getConfig().routing?.useHashRouting,this.navService=te.get(mn),this.routingService=te.get(Dn),this.modalService=te.get(_n)}fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this.options.fromParent=!1,this}fromContext(n){return this.options.fromContext=n,this}fromClosestContext(){return this.options.fromContext=null,this.options.fromClosestContext=!0,this.options.fromParent=!1,this}fromParent(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!1,this.options.fromParent=!0,this}withParams(n){return n&&Object.assign(this.options.nodeParams??{},n),this}}class lS{constructor(n){this.luigi=n}addSearchParams(n,r=!1){if(!W.isObject(n)){console.log("Params argument must be an object");return}const a=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?a.hash=F.addParamsOnHashRouting(n,a.hash):F.modifySearchParams(n,a.searchParams),this.handleBrowserHistory(r,a),this.luigi.configChanged()}getSearchParams(){const n={},r=["__proto__","constructor","prototype"],a=new URL(location.href);let u;if(this.luigi.getConfigValue("routing.useHashRouting")){const c=a.hash.split("?")[1];u=c?new URLSearchParams(c).entries():[]}else u=a.searchParams.entries();for(const[c,l]of u){if(r.some(g=>c===g)){console.warn(`Blocked because of potentially dangerous query param: ${c}`);continue}n[c]=l}return n}handleBrowserHistory(n,r){const a=this.sanitizeUrl(r.href);if(!a){console.warn("invalid url: "+a);return}n?window.history.pushState({},"",a):window.history.replaceState({},"",a)}sanitizeUrl(n){return new URL(location.href).origin===new URL(n).origin?n:void 0}addNodeParams(n,r){if(!W.isObject(n)){console.log("Params argument must be an object");return}const a=F.getContentViewParamPrefix(this.luigi),u=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?u.hash=F.addParamsOnHashRouting(n,u.hash,a):F.modifySearchParams(n,u.searchParams,a),this.handleBrowserHistory(r,u),this.luigi.getConfigValue("routing.useHashRouting")?window.dispatchEvent(new HashChangeEvent("hashchange")):this.luigi.configChanged()}}class cS{#e;#f="";constructor(n){this.#e=n}async getAvailableThemes(){return await this.#e.getConfigValueAsync("settings.theming.themes")}setCurrentTheme(n){this.#f=n,this.#e.__cssVars=void 0}async getThemeObject(n){return(await this.getAvailableThemes())?.find(a=>a.id===n)}getCurrentTheme(){if(!this.isThemingAvailable())return!1;if(this.#f)return this.#f;const n=this.#e.getConfigValue("settings.theming");return n.defaultTheme||console.error("[Theming] getCurrentTheme() error. No theme set and no defaultTheme found in configuration",n),n.defaultTheme}isThemingAvailable(){return!!this.#e.getConfigValue("settings.theming")}async getCSSVariables(){if(!window.Luigi.__cssVars){const n=this.#e.getConfigValue("settings.theming.variables.file");if(n)try{const r=await fetch(n);window.Luigi.__cssVars=(await r.json()).root,Object.keys(window.Luigi.__cssVars).forEach(a=>{const u=getComputedStyle(document.documentElement).getPropertyValue("--"+a);u&&(window.Luigi.__cssVars[a]=u)})}catch(r){W.isFunction(this.#e.getConfigValue("settings.theming.variables.errorHandling"))?this.#e.getConfigValue("settings.theming.variables.errorHandling")(r):console.error("CSS variables file error: ",r)}else this.#e.getConfigValue("settings.theming.variables")==="fiori"&&window.__luigiThemeVars?(window.Luigi.__cssVars={},window.__luigiThemeVars.forEach(r=>{window.Luigi.__cssVars[r]=getComputedStyle(document.documentElement).getPropertyValue("--"+r)})):window.Luigi.__cssVars={}}return window.Luigi.__cssVars}_init(){const n=te.get(vr);(()=>{const a=this.#e.getConfigValue("settings.theming");a&&a.nodeViewURLDecorator&&a.nodeViewURLDecorator.queryStringParameter&&n.add({type:"queryString",uid:"theming",key:a.nodeViewURLDecorator.queryStringParameter.keyName,valueFn:()=>{const u=this.getCurrentTheme(),c=a.nodeViewURLDecorator.queryStringParameter.value;return c?c(u):u}}),a&&a.useFioriScrollbars===!0&&document.body.classList.add("fioriScrollbars")})()}}class ss{constructor(){this.unsavedChanges={isDirty:!1,persistUrl:null}}updateDirtyStatus(n,r){if(!this.unsavedChanges.dirtySet||!(this.unsavedChanges.dirtySet instanceof Set)){const a=new Set;a.add(r),this.unsavedChanges={dirtySet:a}}this.unsavedChanges.persistUrl=window.location.href,n?this.unsavedChanges.dirtySet?.add(r):this.unsavedChanges.dirtySet?.delete(r)}clearDirtyState(n){this.unsavedChanges&&this.unsavedChanges.dirtySet&&(n?this.unsavedChanges.dirtySet.delete(n):this.unsavedChanges.dirtySet.clear())}readDirtyStatus(){return this.unsavedChanges.dirtySet?this.unsavedChanges.dirtySet.size>0:!!this.unsavedChanges.isDirty}}let zl;const Re={luigi:void 0,documentTitle:void 0,init:i=>{console.log("ux init..."),Re.luigi=i,Re.documentTitle=ns(void 0),zl=te.get(ss)},processAlert:(i,n,r)=>{if(!Re.luigi)throw new Error("Luigi is not initialized.");const a={openFromClient:n,close:()=>{i.id&&r.notifyAlertClosed(i.id)},link:u=>{if(i.links){const c=i.links[u];if(c&&(c.url&&Re.luigi?.navigation().navigate(c.url),c.dismissKey&&i.id))return r.notifyAlertClosed(i.id,c.dismissKey),!0}return!1}};Re.luigi.getEngine()._connector?.renderAlert(i,a)},handleConfirmationModalRequest:(i,n)=>{if(!Re.luigi)throw new Error("Luigi is not initialized.");i&&(i={...i,header:Re.luigi.i18n().getTranslation(i.header||"luigi.confirmationModal.header"),body:Re.luigi.i18n().getTranslation(i.body||"luigi.confirmationModal.body"),buttonDismiss:Re.luigi.i18n().getTranslation(i.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:Re.luigi.i18n().getTranslation(i.buttonConfirm||"luigi.button.confirm")}),Re.luigi.getEngine()._connector?.renderConfirmationModal(i,{confirm(){n.notifyConfirmationModalClosed(!0)},dismiss(){n.notifyConfirmationModalClosed(!1)}})},handleDirtyStatusRequest:(i,n)=>{if(!Re.luigi)throw new Error("Luigi is not initialized.");zl.updateDirtyStatus(i,n)}};class fS{processUserSettingGroups(n,r){const a=[],u=n?.userSettingGroups,c=r?.userSettings?.userSettingGroups,l=u||c;if(W.isObject(l)){for(const g in l){const p={};p[g]=l[g],a.push(p)}return a}return a}getUserSettingsIframesInDom(){const n=document.querySelector(".iframeUserSettingsCtn");return n?[...n.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(n=>{n.style.display="none"})}findActiveCustomUserSettingsIframe(n){const r=document.querySelectorAll("[userSettingsGroup]");for(let a=0;a<r.length;a++)if(r[a].contentWindow===n)return r[a];return null}}const hS=new fS;class gS{constructor(n){this.dirtyStatusService=te.get(ss),this.appLoadingIndicatorSelector="[luigi-app-loading-indicator]",this.showAlert=r=>new Promise(a=>{r.id||(r.id=W.getRandomId().toString());const u={openFromClient:!1,close:()=>{a(!0)},link:c=>{if(r.links){const l=r.links[c];if(l&&(l.url&&this.luigi?.navigation().navigate(l.url),l.dismissKey))return a(l.dismissKey),!0}return!1}};this.luigi.getEngine()._connector?.renderAlert(r,u)}),this.showConfirmationModal=r=>(r&&(r={...r,header:this.luigi.i18n().getTranslation(r.header||"luigi.confirmationModal.header"),body:this.luigi.i18n().getTranslation(r.body||"luigi.confirmationModal.body"),buttonDismiss:this.luigi.i18n().getTranslation(r.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:this.luigi.i18n().getTranslation(r.buttonConfirm||"luigi.button.confirm")}),new Promise((a,u)=>{this.luigi.getEngine()._connector?.renderConfirmationModal(r,{confirm(){a(!0)},dismiss(){u()}})})),this.processUserSettingGroups=()=>{const r=this.luigi.getConfigValue("userSettings"),a=this.luigi.getConfigValue("settings");return hS.processUserSettingGroups(r,a)},this.openUserSettings=r=>{this.luigi.getEngine()._connector?.openUserSettings(r)},this.closeUserSettings=()=>{this.luigi.getEngine()._connector?.closeUserSettings()},this.setDocumentTitle=r=>{this.luigi.getEngine()._ux?.documentTitle?.set(r),this.luigi.getEngine()._connector?.setDocumentTitle(r)},this.getDocumentTitle=()=>ic(this.luigi.getEngine()._ux?.documentTitle)||window.document.title||"",this.hideAppLoadingIndicator=()=>{const r=document.querySelector(this.appLoadingIndicatorSelector);r&&(r.classList.add("hidden"),setTimeout(()=>{r.parentNode?.removeChild(r)},500))},this.showLoadingIndicator=r=>this.luigi.getEngine()._connector?.showLoadingIndicator(r),this.hideLoadingIndicator=r=>this.luigi.getEngine()._connector?.hideLoadingIndicator(r),this.addBackdrop=()=>this.luigi.getEngine()._connector?.addBackdrop(),this.removeBackdrop=()=>this.luigi.getEngine()._connector?.removeBackdrop(),this.getDirtyStatus=()=>this.dirtyStatusService.readDirtyStatus(),this.luigi=n}}class dS{constructor(n){this.engine=n,this.initialized=!1,this.configReadyCallback=function(){},this.USER_SETTINGS_KEY="luigi.preferences.userSettings",this.setConfig=r=>{this.config=r,this.setConfigCallback(this.getConfigReadyCallback()),hr.init().then(()=>{this.engine.init(),this.initialized||(this.initialized=!0,Qm.luigiAfterInit(this))})},this.getConfig=()=>this.config,this.configChanged=(...r)=>{this.getEngine()._ui.update(r)},this.i18n=()=>(this._i18n||(this._i18n=new Bm(this)),this._i18n),this.elements=()=>(this._elements||(this._elements=new Gm(this)),this._elements),this.navigation=()=>new uS(this),this.ux=()=>new gS(this),this.featureToggles=()=>(this._featureToggles||(this._featureToggles=new qm),this._featureToggles),this.routing=()=>(this._routing||(this._routing=new lS(this)),this._routing),this.theming=()=>(this._theming||(this._theming=new cS(this)),this._theming),this.auth=()=>ar,this._store=this.createConfigStore()}getEngine(){return this.engine}getConfigValue(n){return W.getConfigValueFromObject(this.getConfig(),n)}getConfigValueAsync(n,...r){return fr.getConfigValueFromObjectAsync(this.getConfig(),n,r)}clearNavigationCache(){te.get(vn).deleteCache()}async readUserSettings(){const n=await this.getConfigValueAsync("userSettings"),r=n||await this.getConfigValueAsync("settings.userSettings");if(r&&W.isFunction(r.readUserSettings))return r.readUserSettings();const a=localStorage.getItem(this.USER_SETTINGS_KEY);return a&&JSON.parse(a)}async storeUserSettings(n,r){const a=await this.getConfigValueAsync("userSettings"),u=a||await this.getConfigValueAsync("settings.userSettings");if(u&&W.isFunction(u.storeUserSettings))return u.storeUserSettings(n,r);localStorage.setItem(this.USER_SETTINGS_KEY,JSON.stringify(n)),this.configChanged()}createConfigStore(){const n=ns({}),r={};let a=[];return{subscribe:u=>{a.push(n.subscribe(u))},reset:u=>{n.update(u)},subscribeToScope:(u,c)=>{let l=r[c];l||(l=new Set,r[c]=l),l.add(u)},fire:(u,c)=>{const l=r[u];l&&[...l].forEach(g=>{g(c)})},clear:()=>{a.forEach(u=>{u()}),a=[]}}}getConfigReadyCallback(){return new Promise(n=>{this.i18n()._init(),n()})}setConfigCallback(n){this.configReadyCallback=n}}const pS=!1;var _S=Array.isArray,vS=Array.prototype.indexOf,mr=Array.prototype.includes,mS=Array.from,SS=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,wS=Object.prototype,ES=Array.prototype,CS=Object.getPrototypeOf,Kl=Object.isExtensible;const TS=()=>{};function yS(i){for(var n=0;n<i.length;n++)i[n]()}function AS(){var i,n,r=new Promise((a,u)=>{i=a,n=u});return{promise:r,resolve:i,reject:n}}const Fe=2,Zr=4,wc=8,Ec=1<<24,Xt=16,Sn=32,Fn=64,ka=128,vt=512,Ne=1024,Ge=2048,Mt=4096,Yt=8192,dn=16384,ei=32768,Yl=1<<25,as=65536,Wa=1<<17,RS=1<<18,us=1<<19,bS=1<<20,kn=65536,Ha=1<<21,qa=1<<22,Jr=1<<23,Ua=Symbol("$state"),za=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function PS(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function IS(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function xS(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function LS(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function NS(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Be=Symbol();function OS(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function $S(i){return i===this.v}let Ka=!1,US=!1;function DS(){Ka=!0}let xt=null;function os(i){xt=i}function MS(i,n=!1,r){xt={p:xt,i:!1,c:null,e:null,s:i,x:null,r:de,l:Ka&&!n?{s:null,u:null,$:[]}:null}}function FS(i){var n=xt,r=n.e;if(r!==null){n.e=null;for(var a of r)jS(a)}return n.i=!0,xt=n.p,{}}function ls(){return!Ka||xt!==null&&xt.l===null}let or=[];function kS(){var i=or;or=[],yS(i)}function dr(i){if(or.length===0){var n=or;queueMicrotask(()=>{n===or&&kS()})}or.push(i)}function Cc(i){var n=de;if(n===null)return oe.f|=Jr,i;if((n.f&ei)===0&&(n.f&Zr)===0)throw i;ur(i,n)}function ur(i,n){for(;n!==null;){if((n.f&ka)!==0){if((n.f&ei)===0)throw i;try{n.b.error(i);return}catch(r){i=r}}n=n.parent}throw i}const WS=-7169;function Ee(i,n){i.f=i.f&WS|n}function Ya(i){(i.f&vt)!==0||i.deps===null?Ee(i,Ne):Ee(i,Mt)}function Tc(i){if(i!==null)for(const n of i)(n.f&Fe)===0||(n.f&kn)===0||(n.f^=kn,Tc(n.deps))}function yc(i,n,r){(i.f&Ge)!==0?n.add(i):(i.f&Mt)!==0&&r.add(i),Tc(i.deps),Ee(i,Ne)}const ln=new Set;let we=null,Pt=null,Va=null,Da=!1,lr=null,ji=null;var Xl=0;let HS=1;class Wn{id=HS++;current=new Map;previous=new Map;#e=new Set;#f=new Set;#n=new Map;#o=new Map;#r=null;#t=[];#s=[];#i=new Set;#a=new Set;#u=new Map;is_fork=!1;#c=!1;#h=new Set;#g(){return this.is_fork||this.#o.size>0}#d(){for(const a of this.#h)for(const u of a.#o.keys()){for(var n=!1,r=u;r.parent!==null;){if(this.#u.has(r)){n=!0;break}r=r.parent}if(!n)return!0}return!1}skip_effect(n){this.#u.has(n)||this.#u.set(n,{d:[],m:[]})}unskip_effect(n){var r=this.#u.get(n);if(r){this.#u.delete(n);for(var a of r.d)Ee(a,Ge),this.schedule(a);for(a of r.m)Ee(a,Mt),this.schedule(a)}}#l(){if(Xl++>1e3&&(ln.delete(this),VS()),!this.#g()){for(const g of this.#i)this.#a.delete(g),Ee(g,Ge),this.schedule(g);for(const g of this.#a)Ee(g,Mt),this.schedule(g)}const n=this.#t;this.#t=[],this.apply();var r=lr=[],a=[],u=ji=[];for(const g of n)try{this.#p(g,r,a)}catch(p){throw bc(g),p}if(we=null,u.length>0){var c=Wn.ensure();for(const g of u)c.schedule(g)}if(lr=null,ji=null,this.#g()||this.#d()){this.#_(a),this.#_(r);for(const[g,p]of this.#u)Rc(g,p)}else{this.#n.size===0&&ln.delete(this),this.#i.clear(),this.#a.clear();for(const g of this.#e)g(this);this.#e.clear(),Zl(a),Zl(r),this.#r?.resolve()}var l=we;if(this.#t.length>0){const g=l??=this;g.#t.push(...this.#t.filter(p=>!g.#t.includes(p)))}l!==null&&(ln.add(l),l.#l()),ln.has(this)||this.#S()}#p(n,r,a){n.f^=Ne;for(var u=n.first;u!==null;){var c=u.f,l=(c&(Sn|Fn))!==0,g=l&&(c&Ne)!==0,p=g||(c&Yt)!==0||this.#u.has(u);if(!p&&u.fn!==null){l?u.f^=Ne:(c&Zr)!==0?r.push(u):ni(u)&&((c&Xt)!==0&&this.#a.add(u),wr(u));var _=u.first;if(_!==null){u=_;continue}}for(;u!==null;){var T=u.next;if(T!==null){u=T;break}u=u.parent}}}#_(n){for(var r=0;r<n.length;r+=1)yc(n[r],this.#i,this.#a)}capture(n,r,a=!1){r!==Be&&!this.previous.has(n)&&this.previous.set(n,r),(n.f&Jr)===0&&(this.current.set(n,[n.v,a]),Pt?.set(n,n.v))}activate(){we=this}deactivate(){we=null,Pt=null}flush(){try{Da=!0,we=this,this.#l()}finally{Xl=0,Va=null,lr=null,ji=null,Da=!1,we=null,Pt=null,pn.clear()}}discard(){for(const n of this.#f)n(this);this.#f.clear(),ln.delete(this)}register_created_effect(n){this.#s.push(n)}#S(){for(const T of ln){var n=T.id<this.id,r=[];for(const[A,[E,y]]of this.current){if(T.current.has(A)){var a=T.current.get(A)[0];if(n&&E!==a)T.current.set(A,[E,y]);else continue}r.push(A)}var u=[...T.current.keys()].filter(A=>!this.current.has(A));if(u.length===0)n&&T.discard();else if(r.length>0){T.activate();var c=new Set,l=new Map;for(var g of r)Ac(g,u,c,l);l=new Map;var p=[...T.current.keys()].filter(A=>this.current.has(A)?this.current.get(A)[0]!==A:!0);for(const A of this.#s)(A.f&(dn|Yt|Wa))===0&&Xa(A,p,l)&&((A.f&(qa|Xt))!==0?(Ee(A,Ge),T.schedule(A)):T.#i.add(A));if(T.#t.length>0){T.apply();for(var _ of T.#t)T.#p(_,[],[]);T.#t=[]}T.deactivate()}}for(const T of ln)T.#h.has(this)&&(T.#h.delete(this),T.#h.size===0&&!T.#g()&&(T.activate(),T.#l()))}increment(n,r){let a=this.#n.get(r)??0;if(this.#n.set(r,a+1),n){let u=this.#o.get(r)??0;this.#o.set(r,u+1)}}decrement(n,r,a){let u=this.#n.get(r)??0;if(u===1?this.#n.delete(r):this.#n.set(r,u-1),n){let c=this.#o.get(r)??0;c===1?this.#o.delete(r):this.#o.set(r,c-1)}this.#c||a||(this.#c=!0,dr(()=>{this.#c=!1,this.flush()}))}transfer_effects(n,r){for(const a of n)this.#i.add(a);for(const a of r)this.#a.add(a);n.clear(),r.clear()}oncommit(n){this.#e.add(n)}ondiscard(n){this.#f.add(n)}settled(){return(this.#r??=AS()).promise}static ensure(){if(we===null){const n=we=new Wn;Da||(ln.add(we),dr(()=>{we===n&&n.flush()}))}return we}apply(){{Pt=null;return}}schedule(n){if(Va=n,n.b?.is_pending&&(n.f&(Zr|wc|Ec))!==0&&(n.f&ei)===0){n.b.defer_effect(n);return}for(var r=n;r.parent!==null;){r=r.parent;var a=r.f;if(lr!==null&&r===de&&(oe===null||(oe.f&Fe)===0))return;if((a&(Fn|Sn))!==0){if((a&Ne)===0)return;r.f^=Ne}}this.#t.push(r)}}function VS(){try{PS()}catch(i){ur(i,Va)}}let Kt=null;function Zl(i){var n=i.length;if(n!==0){for(var r=0;r<n;){var a=i[r++];if((a.f&(dn|Yt))===0&&ni(a)&&(Kt=new Set,wr(a),a.deps===null&&a.first===null&&a.nodes===null&&a.teardown===null&&a.ac===null&&Fc(a),Kt?.size>0)){pn.clear();for(const u of Kt){if((u.f&(dn|Yt))!==0)continue;const c=[u];let l=u.parent;for(;l!==null;)Kt.has(l)&&(Kt.delete(l),c.push(l)),l=l.parent;for(let g=c.length-1;g>=0;g--){const p=c[g];(p.f&(dn|Yt))===0&&wr(p)}}Kt.clear()}}Kt=null}}function Ac(i,n,r,a){if(!r.has(i)&&(r.add(i),i.reactions!==null))for(const u of i.reactions){const c=u.f;(c&Fe)!==0?Ac(u,n,r,a):(c&(qa|Xt))!==0&&(c&Ge)===0&&Xa(u,n,a)&&(Ee(u,Ge),Za(u))}}function Xa(i,n,r){const a=r.get(i);if(a!==void 0)return a;if(i.deps!==null)for(const u of i.deps){if(mr.call(n,u))return!0;if((u.f&Fe)!==0&&Xa(u,n,r))return r.set(u,!0),!0}return r.set(i,!1),!1}function Za(i){we.schedule(i)}function Rc(i,n){if(!((i.f&Sn)!==0&&(i.f&Ne)!==0)){(i.f&Ge)!==0?n.d.push(i):(i.f&Mt)!==0&&n.m.push(i),Ee(i,Ne);for(var r=i.first;r!==null;)Rc(r,n),r=r.next}}function bc(i){Ee(i,Ne);for(var n=i.first;n!==null;)bc(n),n=n.next}function BS(i){let n=0,r=ja(0),a;return()=>{eo()&&(cr(r),tw(()=>(n===0&&(a=lw(()=>i(()=>Kr(r)))),n+=1,()=>{dr(()=>{n-=1,n===0&&(a?.(),a=void 0,Kr(r))})})))}}var GS=as|us;function QS(i,n,r,a){new qS(i,n,r,a)}class qS{parent;is_pending=!1;transform_error;#e;#f=null;#n;#o;#r;#t=null;#s=null;#i=null;#a=null;#u=0;#c=0;#h=!1;#g=new Set;#d=new Set;#l=null;#p=BS(()=>(this.#l=ja(this.#u),()=>{this.#l=null}));constructor(n,r,a,u){this.#e=n,this.#n=r,this.#o=c=>{var l=de;l.b=this,l.f|=ka,a(c)},this.parent=de.b,this.transform_error=u??this.parent?.transform_error??(c=>c),this.#r=nw(()=>{this.#w()},GS)}#_(){try{this.#t=Ln(()=>this.#o(this.#e))}catch(n){this.error(n)}}#S(n){const r=this.#n.failed;r&&(this.#i=Ln(()=>{r(this.#e,()=>n,()=>()=>{})}))}#C(){const n=this.#n.pending;n&&(this.is_pending=!0,this.#s=Ln(()=>n(this.#e)),dr(()=>{var r=this.#a=document.createDocumentFragment(),a=$c();r.append(a),this.#t=this.#m(()=>Ln(()=>this.#o(a))),this.#c===0&&(this.#e.before(r),this.#a=null,es(this.#s,()=>{this.#s=null}),this.#v(we))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#c=0,this.#u=0,this.#t=Ln(()=>{this.#o(this.#e)}),this.#c>0){var n=this.#a=document.createDocumentFragment();sw(this.#t,n);const r=this.#n.pending;this.#s=Ln(()=>r(this.#e))}else this.#v(we)}catch(r){this.error(r)}}#v(n){this.is_pending=!1,n.transfer_effects(this.#g,this.#d)}defer_effect(n){yc(n,this.#g,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#m(n){var r=de,a=oe,u=xt;wn(this.#r),Ft(this.#r),os(this.#r.ctx);try{return Wn.ensure(),n()}catch(c){return Cc(c),null}finally{wn(r),Ft(a),os(u)}}#E(n,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#E(n,r);return}this.#c+=n,this.#c===0&&(this.#v(r),this.#s&&es(this.#s,()=>{this.#s=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(n,r){this.#E(n,r),this.#u+=n,!(!this.#l||this.#h)&&(this.#h=!0,dr(()=>{this.#h=!1,this.#l&&Lc(this.#l,this.#u)}))}get_effect_pending(){return this.#p(),cr(this.#l)}error(n){var r=this.#n.onerror;let a=this.#n.failed;if(!r&&!a)throw n;this.#t&&(Dt(this.#t),this.#t=null),this.#s&&(Dt(this.#s),this.#s=null),this.#i&&(Dt(this.#i),this.#i=null);var u=!1,c=!1;const l=()=>{if(u){OS();return}u=!0,c&&NS(),this.#i!==null&&es(this.#i,()=>{this.#i=null}),this.#m(()=>{this.#w()})},g=p=>{try{c=!0,r?.(p,l),c=!1}catch(_){ur(_,this.#r&&this.#r.parent)}a&&(this.#i=this.#m(()=>{try{return Ln(()=>{var _=de;_.b=this,_.f|=ka,a(this.#e,()=>p,()=>l)})}catch(_){return ur(_,this.#r.parent),null}}))};dr(()=>{var p;try{p=this.transform_error(n)}catch(_){ur(_,this.#r&&this.#r.parent);return}p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(g,_=>ur(_,this.#r&&this.#r.parent)):g(p)})}}function zS(i){var n=i.effects;if(n!==null){i.effects=null;for(var r=0;r<n.length;r+=1)Dt(n[r])}}function KS(i){for(var n=i.parent;n!==null;){if((n.f&Fe)===0)return(n.f&dn)===0?n:null;n=n.parent}return null}function Ja(i){var n,r=de;wn(KS(i));try{i.f&=~kn,zS(i),n=Bc(i)}finally{wn(r)}return n}function Pc(i){var n=i.v,r=Ja(i);if(!i.equals(r)&&(i.wv=Hc(),(!we?.is_fork||i.deps===null)&&(i.v=r,we?.capture(i,n,!0),i.deps===null))){Ee(i,Ne);return}Sr||(Pt!==null?(eo()||we?.is_fork)&&Pt.set(i,r):Ya(i))}function YS(i){if(i.effects!==null)for(const n of i.effects)(n.teardown||n.ac)&&(n.teardown?.(),n.ac?.abort(za),n.teardown=TS,n.ac=null,jr(n,0),to(n))}function Ic(i){if(i.effects!==null)for(const n of i.effects)n.teardown&&wr(n)}let Ba=new Set;const pn=new Map;let xc=!1;function ja(i,n){var r={f:0,v:i,reactions:null,equals:$S,rv:0,wv:0};return r}function cn(i,n){const r=ja(i);return aw(r),r}function Nn(i,n,r=!1){oe!==null&&(!It||(oe.f&Wa)!==0)&&ls()&&(oe.f&(Fe|Xt|qa|Wa))!==0&&(mt===null||!mr.call(mt,i))&&LS();let a=r?Gr(n):n;return Lc(i,a,ji)}function Lc(i,n,r=null){if(!i.equals(n)){var a=i.v;Sr?pn.set(i,n):pn.set(i,a),i.v=n;var u=Wn.ensure();if(u.capture(i,a),(i.f&Fe)!==0){const c=i;(i.f&Ge)!==0&&Ja(c),Pt===null&&Ya(c)}i.wv=Hc(),Nc(i,Ge,r),ls()&&de!==null&&(de.f&Ne)!==0&&(de.f&(Sn|Fn))===0&&(pt===null?ow([i]):pt.push(i)),!u.is_fork&&Ba.size>0&&!xc&&XS()}return n}function XS(){xc=!1;for(const i of Ba)(i.f&Ne)!==0&&Ee(i,Mt),ni(i)&&wr(i);Ba.clear()}function Kr(i){Nn(i,i.v+1)}function Nc(i,n,r){var a=i.reactions;if(a!==null)for(var u=ls(),c=a.length,l=0;l<c;l++){var g=a[l],p=g.f;if(!(!u&&g===de)){var _=(p&Ge)===0;if(_&&Ee(g,n),(p&Fe)!==0){var T=g;Pt?.delete(T),(p&kn)===0&&(p&vt&&(g.f|=kn),Nc(T,Mt,r))}else if(_){var A=g;(p&Xt)!==0&&Kt!==null&&Kt.add(A),r!==null?r.push(A):Za(A)}}}}function Gr(i){if(typeof i!="object"||i===null||Ua in i)return i;const n=CS(i);if(n!==wS&&n!==ES)return i;var r=new Map,a=_S(i),u=cn(0),c=Mn,l=g=>{if(Mn===c)return g();var p=oe,_=Mn;Ft(null),ec(c);var T=g();return Ft(p),ec(_),T};return a&&r.set("length",cn(i.length)),new Proxy(i,{defineProperty(g,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&IS();var T=r.get(p);return T===void 0?l(()=>{var A=cn(_.value);return r.set(p,A),A}):Nn(T,_.value,!0),!0},deleteProperty(g,p){var _=r.get(p);if(_===void 0){if(p in g){const T=l(()=>cn(Be));r.set(p,T),Kr(u)}}else Nn(_,Be),Kr(u);return!0},get(g,p,_){if(p===Ua)return i;var T=r.get(p),A=p in g;if(T===void 0&&(!A||zr(g,p)?.writable)&&(T=l(()=>{var y=Gr(A?g[p]:Be),I=cn(y);return I}),r.set(p,T)),T!==void 0){var E=cr(T);return E===Be?void 0:E}return Reflect.get(g,p,_)},getOwnPropertyDescriptor(g,p){var _=Reflect.getOwnPropertyDescriptor(g,p);if(_&&"value"in _){var T=r.get(p);T&&(_.value=cr(T))}else if(_===void 0){var A=r.get(p),E=A?.v;if(A!==void 0&&E!==Be)return{enumerable:!0,configurable:!0,value:E,writable:!0}}return _},has(g,p){if(p===Ua)return!0;var _=r.get(p),T=_!==void 0&&_.v!==Be||Reflect.has(g,p);if(_!==void 0||de!==null&&(!T||zr(g,p)?.writable)){_===void 0&&(_=l(()=>{var E=T?Gr(g[p]):Be,y=cn(E);return y}),r.set(p,_));var A=cr(_);if(A===Be)return!1}return T},set(g,p,_,T){var A=r.get(p),E=p in g;if(a&&p==="length")for(var y=_;y<A.v;y+=1){var I=r.get(y+"");I!==void 0?Nn(I,Be):y in g&&(I=l(()=>cn(Be)),r.set(y+"",I))}if(A===void 0)(!E||zr(g,p)?.writable)&&(A=l(()=>cn(void 0)),Nn(A,Gr(_)),r.set(p,A));else{E=A.v!==Be;var O=l(()=>Gr(_));Nn(A,O)}var k=Reflect.getOwnPropertyDescriptor(g,p);if(k?.set&&k.set.call(T,_),!E){if(a&&typeof p=="string"){var G=r.get("length"),re=Number(p);Number.isInteger(re)&&re>=G.v&&Nn(G,re+1)}Kr(u)}return!0},ownKeys(g){cr(u);var p=Reflect.ownKeys(g).filter(A=>{var E=r.get(A);return E===void 0||E.v!==Be});for(var[_,T]of r)T.v!==Be&&!(_ in g)&&p.push(_);return p},setPrototypeOf(){xS()}})}var Jl,Oc;function ZS(){if(Jl===void 0){Jl=window;var i=Element.prototype,n=Node.prototype,r=Text.prototype;zr(n,"firstChild").get,Oc=zr(n,"nextSibling").get,Kl(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),Kl(r)&&(r.__t=void 0)}}function $c(i=""){return document.createTextNode(i)}function Uc(i){return Oc.call(i)}function Dc(i){var n=oe,r=de;Ft(null),wn(null);try{return i()}finally{Ft(n),wn(r)}}function JS(i,n){var r=n.last;r===null?n.last=n.first=i:(r.next=i,i.prev=r,n.last=i)}function ti(i,n){var r=de;r!==null&&(r.f&Yt)!==0&&(i|=Yt);var a={ctx:xt,deps:null,nodes:null,f:i|Ge|vt,first:null,fn:n,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};we?.register_created_effect(a);var u=a;if((i&Zr)!==0)lr!==null?lr.push(a):Wn.ensure().schedule(a);else if(n!==null){try{wr(a)}catch(l){throw Dt(a),l}u.deps===null&&u.teardown===null&&u.nodes===null&&u.first===u.last&&(u.f&us)===0&&(u=u.first,(i&Xt)!==0&&(i&as)!==0&&u!==null&&(u.f|=as))}if(u!==null&&(u.parent=r,r!==null&&JS(u,r),oe!==null&&(oe.f&Fe)!==0&&(i&Fn)===0)){var c=oe;(c.effects??=[]).push(u)}return a}function eo(){return oe!==null&&!It}function jS(i){return ti(Zr|bS,i)}function ew(i){Wn.ensure();const n=ti(Fn|us,i);return(r={})=>new Promise(a=>{r.outro?es(n,()=>{Dt(n),a(void 0)}):(Dt(n),a(void 0))})}function tw(i,n=0){return ti(wc|n,i)}function nw(i,n=0){var r=ti(Xt|n,i);return r}function Ln(i){return ti(Sn|us,i)}function Mc(i){var n=i.teardown;if(n!==null){const r=Sr,a=oe;jl(!0),Ft(null);try{n.call(null)}finally{jl(r),Ft(a)}}}function to(i,n=!1){var r=i.first;for(i.first=i.last=null;r!==null;){const u=r.ac;u!==null&&Dc(()=>{u.abort(za)});var a=r.next;(r.f&Fn)!==0?r.parent=null:Dt(r,n),r=a}}function rw(i){for(var n=i.first;n!==null;){var r=n.next;(n.f&Sn)===0&&Dt(n),n=r}}function Dt(i,n=!0){var r=!1;(n||(i.f&RS)!==0)&&i.nodes!==null&&i.nodes.end!==null&&(iw(i.nodes.start,i.nodes.end),r=!0),Ee(i,Yl),to(i,n&&!r),jr(i,0);var a=i.nodes&&i.nodes.t;if(a!==null)for(const c of a)c.stop();Mc(i),i.f^=Yl,i.f|=dn;var u=i.parent;u!==null&&u.first!==null&&Fc(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes=i.ac=i.b=null}function iw(i,n){for(;i!==null;){var r=i===n?null:Uc(i);i.remove(),i=r}}function Fc(i){var n=i.parent,r=i.prev,a=i.next;r!==null&&(r.next=a),a!==null&&(a.prev=r),n!==null&&(n.first===i&&(n.first=a),n.last===i&&(n.last=r))}function es(i,n,r=!0){var a=[];kc(i,a,!0);var u=()=>{r&&Dt(i),n&&n()},c=a.length;if(c>0){var l=()=>--c||u();for(var g of a)g.out(l)}else u()}function kc(i,n,r){if((i.f&Yt)===0){i.f^=Yt;var a=i.nodes&&i.nodes.t;if(a!==null)for(const g of a)(g.is_global||r)&&n.push(g);for(var u=i.first;u!==null;){var c=u.next,l=(u.f&as)!==0||(u.f&Sn)!==0&&(i.f&Xt)!==0;kc(u,n,l?r:!1),u=c}}}function sw(i,n){if(i.nodes)for(var r=i.nodes.start,a=i.nodes.end;r!==null;){var u=r===a?null:Uc(r);n.append(r),r=u}}let ts=!1,Sr=!1;function jl(i){Sr=i}let oe=null,It=!1;function Ft(i){oe=i}let de=null;function wn(i){de=i}let mt=null;function aw(i){oe!==null&&(mt===null?mt=[i]:mt.push(i))}let Ze=null,at=0,pt=null;function ow(i){pt=i}let Wc=1,$n=0,Mn=$n;function ec(i){Mn=i}function Hc(){return++Wc}function ni(i){var n=i.f;if((n&Ge)!==0)return!0;if(n&Fe&&(i.f&=~kn),(n&Mt)!==0){for(var r=i.deps,a=r.length,u=0;u<a;u++){var c=r[u];if(ni(c)&&Pc(c),c.wv>i.wv)return!0}(n&vt)!==0&&Pt===null&&Ee(i,Ne)}return!1}function Vc(i,n,r=!0){var a=i.reactions;if(a!==null&&!(mt!==null&&mr.call(mt,i)))for(var u=0;u<a.length;u++){var c=a[u];(c.f&Fe)!==0?Vc(c,n,!1):n===c&&(r?Ee(c,Ge):(c.f&Ne)!==0&&Ee(c,Mt),Za(c))}}function Bc(i){var n=Ze,r=at,a=pt,u=oe,c=mt,l=xt,g=It,p=Mn,_=i.f;Ze=null,at=0,pt=null,oe=(_&(Sn|Fn))===0?i:null,mt=null,os(i.ctx),It=!1,Mn=++$n,i.ac!==null&&(Dc(()=>{i.ac.abort(za)}),i.ac=null);try{i.f|=Ha;var T=i.fn,A=T();i.f|=ei;var E=i.deps,y=we?.is_fork;if(Ze!==null){var I;if(y||jr(i,at),E!==null&&at>0)for(E.length=at+Ze.length,I=0;I<Ze.length;I++)E[at+I]=Ze[I];else i.deps=E=Ze;if(eo()&&(i.f&vt)!==0)for(I=at;I<E.length;I++)(E[I].reactions??=[]).push(i)}else!y&&E!==null&&at<E.length&&(jr(i,at),E.length=at);if(ls()&&pt!==null&&!It&&E!==null&&(i.f&(Fe|Mt|Ge))===0)for(I=0;I<pt.length;I++)Vc(pt[I],i);if(u!==null&&u!==i){if($n++,u.deps!==null)for(let O=0;O<r;O+=1)u.deps[O].rv=$n;if(n!==null)for(const O of n)O.rv=$n;pt!==null&&(a===null?a=pt:a.push(...pt))}return(i.f&Jr)!==0&&(i.f^=Jr),A}catch(O){return Cc(O)}finally{i.f^=Ha,Ze=n,at=r,pt=a,oe=u,mt=c,os(l),It=g,Mn=p}}function uw(i,n){let r=n.reactions;if(r!==null){var a=vS.call(r,i);if(a!==-1){var u=r.length-1;u===0?r=n.reactions=null:(r[a]=r[u],r.pop())}}if(r===null&&(n.f&Fe)!==0&&(Ze===null||!mr.call(Ze,n))){var c=n;(c.f&vt)!==0&&(c.f^=vt,c.f&=~kn),Ya(c),YS(c),jr(c,0)}}function jr(i,n){var r=i.deps;if(r!==null)for(var a=n;a<r.length;a++)uw(i,r[a])}function wr(i){var n=i.f;if((n&dn)===0){Ee(i,Ne);var r=de,a=ts;de=i,ts=!0;try{(n&(Xt|Ec))!==0?rw(i):to(i),Mc(i);var u=Bc(i);i.teardown=typeof u=="function"?u:null,i.wv=Wc;var c;pS&&US&&(i.f&Ge)!==0&&i.deps}finally{ts=a,de=r}}}function cr(i){var n=i.f,r=(n&Fe)!==0;if(oe!==null&&!It){var a=de!==null&&(de.f&dn)!==0;if(!a&&(mt===null||!mr.call(mt,i))){var u=oe.deps;if((oe.f&Ha)!==0)i.rv<$n&&(i.rv=$n,Ze===null&&u!==null&&u[at]===i?at++:Ze===null?Ze=[i]:Ze.push(i));else{(oe.deps??=[]).push(i);var c=i.reactions;c===null?i.reactions=[oe]:mr.call(c,oe)||c.push(oe)}}}if(Sr&&pn.has(i))return pn.get(i);if(r){var l=i;if(Sr){var g=l.v;return((l.f&Ne)===0&&l.reactions!==null||Qc(l))&&(g=Ja(l)),pn.set(l,g),g}var p=(l.f&vt)===0&&!It&&oe!==null&&(ts||(oe.f&vt)!==0),_=(l.f&ei)===0;ni(l)&&(p&&(l.f|=vt),Pc(l)),p&&!_&&(Ic(l),Gc(l))}if(Pt?.has(i))return Pt.get(i);if((i.f&Jr)!==0)throw i.v;return i.v}function Gc(i){if(i.f|=vt,i.deps!==null)for(const n of i.deps)(n.reactions??=[]).push(i),(n.f&Fe)!==0&&(n.f&vt)===0&&(Ic(n),Gc(n))}function Qc(i){if(i.v===Be)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(pn.has(n)||(n.f&Fe)!==0&&Qc(n))return!0;return!1}function lw(i){var n=It;try{return It=!0,i()}finally{It=n}}const cw=["touchstart","touchmove"];function fw(i){return cw.includes(i)}const Xi=Symbol("events"),hw=new Set,tc=new Set;let nc=null;function rc(i){var n=this,r=n.ownerDocument,a=i.type,u=i.composedPath?.()||[],c=u[0]||i.target;nc=i;var l=0,g=nc===i&&i[Xi];if(g){var p=u.indexOf(g);if(p!==-1&&(n===document||n===window)){i[Xi]=n;return}var _=u.indexOf(n);if(_===-1)return;p<=_&&(l=p)}if(c=u[l]||i.target,c!==n){SS(i,"currentTarget",{configurable:!0,get(){return c||r}});var T=oe,A=de;Ft(null),wn(null);try{for(var E,y=[];c!==null;){var I=c.assignedSlot||c.parentNode||c.host||null;try{var O=c[Xi]?.[a];O!=null&&(!c.disabled||i.target===c)&&O.call(c,i)}catch(k){E?y.push(k):E=k}if(i.cancelBubble||I===n||I===null)break;c=I}if(E){for(let k of y)queueMicrotask(()=>{throw k});throw E}}finally{i[Xi]=n,delete i.currentTarget,Ft(T),wn(A)}}}function gw(i,n){return dw(i,n)}const Zi=new Map;function dw(i,{target:n,anchor:r,props:a={},events:u,context:c,intro:l=!0,transformError:g}){ZS();var p=void 0,_=ew(()=>{var T=r??n.appendChild($c());QS(T,{pending:()=>{}},y=>{MS({});var I=xt;c&&(I.c=c),u&&(a.$$events=u),p=i(y,a)||{},FS()},g);var A=new Set,E=y=>{for(var I=0;I<y.length;I++){var O=y[I];if(!A.has(O)){A.add(O);var k=fw(O);for(const Oe of[n,document]){var G=Zi.get(Oe);G===void 0&&(G=new Map,Zi.set(Oe,G));var re=G.get(O);re===void 0?(Oe.addEventListener(O,rc,{passive:k}),G.set(O,1)):G.set(O,re+1)}}}};return E(mS(hw)),tc.add(E),()=>{for(var y of A)for(const k of[n,document]){var I=Zi.get(k),O=I.get(y);--O==0?(k.removeEventListener(y,rc),I.delete(y),I.size===0&&Zi.delete(k)):I.set(y,O)}tc.delete(E),T!==r&&T.parentNode?.removeChild(T)}});return pw.set(p,_),p}let pw=new WeakMap;const _w="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(_w);DS();function vw(i){}const Ga={init:i=>{te.get(Dn).enableRouting()},handlePageErrorHandler:(i,n,r)=>{i&&i.timeout&&setTimeout(()=>{if(i.viewUrl)n.viewUrl=i.viewUrl,r.getEngine()._ui.updateMainContent(n,r);else if(i.errorFn)i.errorFn(n);else{console.warn("Something went wrong with a client! You will be redirected to another page.");const a=i.redirectPath||"/";r.navigation().navigate(a)}},i.timeout)},handleExternalLinkNavigation:i=>{if(i.url)if(i.sameWindow||!1)window.location.href=i.url;else{const r=window.open(i.url,"_blank","noopener noreferrer");r&&(r.opener=null,r.focus())}},async addSearchParamsFromClient(i,n,r){const a=te.get(mn),u=F.getCurrentPath(r.getConfig().routing?.useHashRouting),c=await a.getCurrentNode(u.path),l={...i};if(c?.clientPermissions?.urlParameters){const g={};Object.keys(c.clientPermissions.urlParameters).forEach(p=>{p in l&&c.clientPermissions.urlParameters[p].write===!0&&(g[p]=l[p],delete l[p])});for(const p in l)console.warn(`No permission to add the search param "${p}" to the url`);Object.keys(g).length>0&&r.routing().addSearchParams(g,n)}}},Ut={luigi:{},init:i=>{console.log("Init communication..."),Ut.luigi=i},addListeners:(i,n)=>{i.addEventListener(N.INITIALIZED,r=>{Re.luigi?.ux().hideLoadingIndicator(i.parentNode)}),i.addEventListener(N.NAVIGATION_REQUEST,r=>{const{link:a,preserveView:u,modal:c,newTab:l,withoutSync:g,preventContextUpdate:p,preventHistoryEntry:_,fromVirtualTreeRoot:T,fromContext:A,fromClosestContext:E,fromParent:y,relative:I,nodeParams:O}=r.detail,k={modalSettings:c,newTab:l,path:a,preserveView:u,preventContextUpdate:p,options:{fromVirtualTreeRoot:T,fromContext:A,fromClosestContext:E,fromParent:y,relative:I,nodeParams:O},preventHistoryEntry:_,withoutSync:g};te.get(mn).handleNavigationRequest(k,r.callbackFn)}),i.addEventListener(N.RUNTIME_ERROR_HANDLING_REQUEST,r=>{n.navigation().runTimeErrorHandler(r.payload?.data?.errorObj||{})}),i.addEventListener(N.ALERT_REQUEST,r=>{Re.processAlert(r.payload,!0,i)}),i.addEventListener(N.SHOW_CONFIRMATION_MODAL_REQUEST,r=>{Re.handleConfirmationModalRequest(r.payload,i)}),i.addEventListener(N.SET_DOCUMENT_TITLE_REQUEST,r=>{Ut.luigi.getEngine()._connector?.setDocumentTitle(r.detail.title)}),i.addEventListener(N.SHOW_LOADING_INDICATOR_REQUEST,r=>{Ut.luigi.getEngine()._connector?.showLoadingIndicator(i.parentNode)}),i.addEventListener(N.HIDE_LOADING_INDICATOR_REQUEST,r=>{Ut.luigi.getEngine()._connector?.hideLoadingIndicator(i.parentNode)}),i.addEventListener(N.ADD_BACKDROP_REQUEST,r=>{Ut.luigi.getEngine()._connector?.addBackdrop()}),i.addEventListener(N.REMOVE_BACKDROP_REQUEST,r=>{Ut.luigi.getEngine()._connector?.removeBackdrop()}),i.addEventListener(N.SET_DIRTY_STATUS_REQUEST,r=>{Re.handleDirtyStatusRequest(r.detail?.data?.dirty,r.detail?.source)}),i.addEventListener(N.ADD_NODE_PARAMS_REQUEST,r=>{n.routing().addNodeParams(r.payload.data,r.payload.keepBrowserHistory)}),i.addEventListener(N.OPEN_USER_SETTINGS_REQUEST,r=>{Ut.luigi.getEngine()._connector?.openUserSettings(r.detail)}),i.addEventListener(N.CLOSE_USER_SETTINGS_REQUEST,r=>{Ut.luigi.getEngine()._connector?.closeUserSettings()}),i.addEventListener(N.ADD_SEARCH_PARAMS_REQUEST,r=>{Ga.addSearchParamsFromClient(r.detail.data,r.detail.keepBrowserHistory,n)}),i.addEventListener(N.UPDATE_MODAL_SETTINGS_REQUEST,r=>{Me.updateModalSettings(r.payload.updatedModalSettings,r.payload.addHistoryEntry,n)}),i.addEventListener(N.SET_CURRENT_LOCALE_REQUEST,r=>{n.i18n().setCurrentLocale(r.detail?.data?.data?.currentLocale,i)})}};class mw{constructor(){this._ui=Me,this._comm=Ut,this._ux=Re,this._routing=Ga}bootstrap(n){this._app=gw(vw,{target:document.body}),this._connector=n}init(){const n=window.Luigi;te.register(ss,()=>new ss),te.register(mn,()=>new mn(n)),te.register(vn,()=>new vn),te.register(Dn,()=>new Dn(n)),te.register(vr,()=>new vr),te.register(_n,()=>new _n(n)),n.theming()._init(),Me.init(n),Ga.init(n),Ut.init(n),Re.init(n)}}window.Luigi=new dS(new mw);
54
+ }`,r=uc(" "),a=pr("iframe"),kl(a.src,u=i[3])||_t(a,"src",u),_t(a,"title",i[1]),_t(a,"allow",c=Wl(i[0])),_t(a,"sandbox",l=i[2]?i[2].join(" "):void 0)},m(g,p){Dn(g,n,p),Dn(g,r,p),Dn(g,a,p),i[28](a)},p(g,p){8&p[0]&&!kl(a.src,u=g[3])&&_t(a,"src",u),2&p[0]&&_t(a,"title",g[1]),1&p[0]&&c!==(c=Wl(g[0]))&&_t(a,"allow",c),4&p[0]&&l!==(l=g[2]?g[2].join(" "):void 0)&&_t(a,"sandbox",l)},d(g){g&&(gn(n),gn(r),gn(a)),i[28](null)}}}function rS(i){let n,r,a=i[5]&&Gl(i);return{c(){n=pr("main"),a&&a.c(),_t(n,"class",r=i[4]?void 0:"lui-isolated")},m(u,c){Dn(u,n,c),a&&a.m(n,null),i[29](n)},p(u,c){u[5]?a?a.p(u,c):(a=Gl(u),a.c(),a.m(n,null)):a&&(a.d(1),a=null),16&c[0]&&r!==(r=u[4]?void 0:"lui-isolated")&&_t(n,"class",r)},i:fn,o:fn,d(u){u&&gn(n),a&&a.d(),i[29](null)}}}function iS(i,n,r){let{activeFeatureToggleList:a}=n,{allowRules:u}=n,{anchor:c}=n,{authData:l}=n,{clientPermissions:g}=n,{context:p}=n,{deferInit:_}=n,{dirtyStatus:y}=n,{documentTitle:T}=n,{hasBack:E}=n,{label:R}=n,{locale:P}=n,{noShadow:N}=n,{nodeParams:H}=n,{pathParams:G}=n,{sandboxRules:re}=n,{searchParams:Ue}=n,{skipCookieCheck:Pe}=n,{skipInitCheck:Qe}=n,{theme:Ie}=n,{userSettings:Je}=n,{viewurl:Te}=n,{webcomponent:ye}=n;const ve={};let Re,O,Zt=!1;const St=new _c,Oe=L=>{if(!Zt){L.sendCustomMessage=(ae,ke)=>{ar.sendCustomMessage(ae,L.getNoShadow()?L:Re,!!ye,ve,ke)},L.updateContext=(ae,ke)=>{if(r(8,p=ae),ye)(L.getNoShadow()?L:Re)._luigi_mfe_webcomponent.context=ae;else{const Jt={...ke||{},activeFeatureToggleList:L.activeFeatureToggleList||[],currentLocale:L.locale,currentTheme:L.theme,userSettings:L.userSettings||null,cssVariables:L.cssVariables||{},anchor:L.anchor||"",drawer:L.drawer||!1,modal:L.modal||!1,viewStackSize:L.viewStackSize||0,isNavigateBack:L.isNavigateBack||!1};ar.updateContext(ae,Jt,ve,H,G,Ue)}},L.closeAlert=(ae,ke)=>{L.notifyAlertClosed(ae,ke)},L.notifyAlertClosed=(ae,ke)=>{L.isConnected&&(ye?St.resolveAlert(ae,ke):ar.notifyAlertClosed(ae,ke,ve))},L.notifyConfirmationModalClosed=ae=>{L.isConnected&&(ye?St.notifyConfirmationModalClosed(!!ae):ar.notifyConfirmationModalClosed(!!ae,ve))},hn.registerContainer(L),St.thisComponent=L;const ot=qr.resolveContext(p);if(L.updateViewUrl=(ae,ke)=>{ae?.length&&ar.updateViewUrl(ae,qr.resolveContext(p),ke,ve)},ye&&ye!="false"){L.getNoShadow()?L.innerHTML="":(r(7,Re.innerHTML="",Re),L.attachShadow({mode:"open"}).append(Re));const ae=qr.checkWebcomponentValue(ye);St.renderWebComponent(Te,L.getNoShadow()?L:Re,ot,typeof ae=="object"?{webcomponent:ae}:{})}else L.getNoShadow()||(L.innerHTML="",L.attachShadow({mode:"open"}).append(Re));Qe?(L.initialized=!0,setTimeout((()=>{St.dispatchLuigiEvent(U.INITIALIZED,{})}))):ye&&(L.getNoShadow()?L:Re).addEventListener("wc_ready",(()=>{(L.getNoShadow()?L:Re)._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(L.initialized=!0,St.dispatchLuigiEvent(U.INITIALIZED,{}))})),r(5,Zt=!0),L.containerInitialized=!0}};var En;return cc((async()=>{r(27,O=Re.parentNode),r(27,O.iframeHandle=ve,O),r(27,O.init=()=>{Oe(O)},O),!_&&Te&&Oe(O)})),En=async()=>{},lc().$$.on_destroy.push(En),i.$$set=L=>{"activeFeatureToggleList"in L&&r(9,a=L.activeFeatureToggleList),"allowRules"in L&&r(0,u=L.allowRules),"anchor"in L&&r(10,c=L.anchor),"authData"in L&&r(11,l=L.authData),"clientPermissions"in L&&r(12,g=L.clientPermissions),"context"in L&&r(8,p=L.context),"deferInit"in L&&r(13,_=L.deferInit),"dirtyStatus"in L&&r(14,y=L.dirtyStatus),"documentTitle"in L&&r(15,T=L.documentTitle),"hasBack"in L&&r(16,E=L.hasBack),"label"in L&&r(1,R=L.label),"locale"in L&&r(17,P=L.locale),"noShadow"in L&&r(18,N=L.noShadow),"nodeParams"in L&&r(19,H=L.nodeParams),"pathParams"in L&&r(20,G=L.pathParams),"sandboxRules"in L&&r(2,re=L.sandboxRules),"searchParams"in L&&r(21,Ue=L.searchParams),"skipCookieCheck"in L&&r(22,Pe=L.skipCookieCheck),"skipInitCheck"in L&&r(23,Qe=L.skipInitCheck),"theme"in L&&r(24,Ie=L.theme),"userSettings"in L&&r(25,Je=L.userSettings),"viewurl"in L&&r(3,Te=L.viewurl),"webcomponent"in L&&r(4,ye=L.webcomponent)},i.$$.update=()=>{134225960&i.$$.dirty[0]&&!Zt&&Te&&!_&&O&&Oe(O)},[u,R,re,Te,ye,Zt,ve,Re,p,a,c,l,g,_,y,T,E,P,N,H,G,Ue,Pe,Qe,Ie,Je,()=>a&&u&&c&&l&&g&&y&&T&&E&&P&&N&&H&&G&&re&&Ue&&Pe&&Qe&&Ie&&Je,O,function(L){Xr[L?"unshift":"push"]((()=>{ve.iframe=L,r(6,ve)}))},function(L){Xr[L?"unshift":"push"]((()=>{Re=L,r(7,Re)}))}]}class vc extends dc{constructor(n){super(),hc(this,n,iS,rS,oc,{activeFeatureToggleList:9,allowRules:0,anchor:10,authData:11,clientPermissions:12,context:8,deferInit:13,dirtyStatus:14,documentTitle:15,hasBack:16,label:1,locale:17,noShadow:18,nodeParams:19,pathParams:20,sandboxRules:2,searchParams:21,skipCookieCheck:22,skipInitCheck:23,theme:24,userSettings:25,viewurl:3,webcomponent:4,unwarn:26},null,[-1,-1])}get activeFeatureToggleList(){return this.$$.ctx[9]}set activeFeatureToggleList(n){this.$$set({activeFeatureToggleList:n}),q()}get allowRules(){return this.$$.ctx[0]}set allowRules(n){this.$$set({allowRules:n}),q()}get anchor(){return this.$$.ctx[10]}set anchor(n){this.$$set({anchor:n}),q()}get authData(){return this.$$.ctx[11]}set authData(n){this.$$set({authData:n}),q()}get clientPermissions(){return this.$$.ctx[12]}set clientPermissions(n){this.$$set({clientPermissions:n}),q()}get context(){return this.$$.ctx[8]}set context(n){this.$$set({context:n}),q()}get deferInit(){return this.$$.ctx[13]}set deferInit(n){this.$$set({deferInit:n}),q()}get dirtyStatus(){return this.$$.ctx[14]}set dirtyStatus(n){this.$$set({dirtyStatus:n}),q()}get documentTitle(){return this.$$.ctx[15]}set documentTitle(n){this.$$set({documentTitle:n}),q()}get hasBack(){return this.$$.ctx[16]}set hasBack(n){this.$$set({hasBack:n}),q()}get label(){return this.$$.ctx[1]}set label(n){this.$$set({label:n}),q()}get locale(){return this.$$.ctx[17]}set locale(n){this.$$set({locale:n}),q()}get noShadow(){return this.$$.ctx[18]}set noShadow(n){this.$$set({noShadow:n}),q()}get nodeParams(){return this.$$.ctx[19]}set nodeParams(n){this.$$set({nodeParams:n}),q()}get pathParams(){return this.$$.ctx[20]}set pathParams(n){this.$$set({pathParams:n}),q()}get sandboxRules(){return this.$$.ctx[2]}set sandboxRules(n){this.$$set({sandboxRules:n}),q()}get searchParams(){return this.$$.ctx[21]}set searchParams(n){this.$$set({searchParams:n}),q()}get skipCookieCheck(){return this.$$.ctx[22]}set skipCookieCheck(n){this.$$set({skipCookieCheck:n}),q()}get skipInitCheck(){return this.$$.ctx[23]}set skipInitCheck(n){this.$$set({skipInitCheck:n}),q()}get theme(){return this.$$.ctx[24]}set theme(n){this.$$set({theme:n}),q()}get userSettings(){return this.$$.ctx[25]}set userSettings(n){this.$$set({userSettings:n}),q()}get viewurl(){return this.$$.ctx[3]}set viewurl(n){this.$$set({viewurl:n}),q()}get webcomponent(){return this.$$.ctx[4]}set webcomponent(n){this.$$set({webcomponent:n}),q()}get unwarn(){return this.$$.ctx[26]}}function sS(i){Km(i,"svelte-1buc46y","main.svelte-1buc46y{width:100%;height:100%;border:none}")}function aS(i){let n;return{c(){n=pr("main"),_t(n,"class","svelte-1buc46y")},m(r,a){Dn(r,n,a),i[21](n)},p:fn,i:fn,o:fn,d(r){r&&gn(n),i[21](null)}}}function oS(i,n,r){let a,u,{activeFeatureToggleList:c}=n,{anchor:l}=n,{clientPermissions:g}=n,{compoundConfig:p}=n,{context:_}=n,{deferInit:y}=n,{dirtyStatus:T}=n,{documentTitle:E}=n,{hasBack:R}=n,{locale:P}=n,{noShadow:N}=n,{nodeParams:H}=n,{pathParams:G}=n,{searchParams:re}=n,{skipInitCheck:Ue}=n,{theme:Pe}=n,{userSettings:Qe}=n,{viewurl:Ie}=n,{webcomponent:Je}=n,Te=!1;const ye=new Qa,ve=new _c,Re=O=>{if(!p||Te)return;O.updateContext=(Oe,En)=>{const L=O.getNoShadow()?O:a;L._luigi_mfe_webcomponent.context=Oe,r(1,_=Oe);const ot=L._luigi_mfe_webcomponent;ot&&ot.querySelectorAll("[lui_web_component]")?.forEach((ke=>{const Jt=ke.context||{};ke.context=Object.assign(Jt,Oe)}))};const Zt=qr.resolveContext(_);r(2,y=!1),O.notifyAlertClosed=(Oe,En)=>{O.isConnected&&ve.resolveAlert(Oe,En)},O.notifyConfirmationModalClosed=Oe=>{O.isConnected&&ve.notifyConfirmationModalClosed(!!Oe)};const St={compound:p,viewUrl:Ie,webcomponent:qr.checkWebcomponentValue(Je)||!0};O.getNoShadow()?O.innerHTML="":(r(0,a.innerHTML="",a),O.attachShadow({mode:"open"}).append(a)),ve.renderWebComponentCompound(St,O.getNoShadow()?O:a,Zt).then((Oe=>{u=Oe,Ue||!St.viewUrl?(O.initialized=!0,setTimeout((()=>{ve.dispatchLuigiEvent(U.INITIALIZED,{})}))):u.LuigiClient&&!u.deferLuigiClientWCInit&&(O.initialized=!0,ve.dispatchLuigiEvent(U.INITIALIZED,{}))})),Te=!0,O.containerInitialized=!0};return cc((async()=>{const O=a.getRootNode()===document?a.parentNode:a.getRootNode().host;O.init=()=>{Re(O)},y||Re(O),ye.registerContainer(O),ve.thisComponent=O})),i.$$set=O=>{"activeFeatureToggleList"in O&&r(3,c=O.activeFeatureToggleList),"anchor"in O&&r(4,l=O.anchor),"clientPermissions"in O&&r(5,g=O.clientPermissions),"compoundConfig"in O&&r(6,p=O.compoundConfig),"context"in O&&r(1,_=O.context),"deferInit"in O&&r(2,y=O.deferInit),"dirtyStatus"in O&&r(7,T=O.dirtyStatus),"documentTitle"in O&&r(8,E=O.documentTitle),"hasBack"in O&&r(9,R=O.hasBack),"locale"in O&&r(10,P=O.locale),"noShadow"in O&&r(11,N=O.noShadow),"nodeParams"in O&&r(12,H=O.nodeParams),"pathParams"in O&&r(13,G=O.pathParams),"searchParams"in O&&r(14,re=O.searchParams),"skipInitCheck"in O&&r(15,Ue=O.skipInitCheck),"theme"in O&&r(16,Pe=O.theme),"userSettings"in O&&r(17,Qe=O.userSettings),"viewurl"in O&&r(18,Ie=O.viewurl),"webcomponent"in O&&r(19,Je=O.webcomponent)},[a,_,y,c,l,g,p,T,E,R,P,N,H,G,re,Ue,Pe,Qe,Ie,Je,()=>c&&l&&g&&T&&E&&R&&P&&N&&H&&G&&re&&Ue&&Pe&&Qe,function(O){Xr[O?"unshift":"push"]((()=>{a=O,r(0,a)}))}]}gc(vc,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},allowRules:{type:"Array",reflect:!1,attribute:"allow-rules"},anchor:{type:"String",reflect:!1,attribute:"anchor"},authData:{type:"Object",reflect:!1,attribute:"auth-data"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},label:{type:"String",reflect:!1,attribute:"label"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow"},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},sandboxRules:{type:"Array",reflect:!1,attribute:"sandbox-rules"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipCookieCheck:{type:"String",reflect:!1,attribute:"skip-cookie-check"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(i=>{let n=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends i{sendCustomMessage=n("sendCustomMessage");updateContext=n("updateContext");updateViewUrl=n("updateViewUrl");closeAlert=n("closeAlert");notifyAlertClosed=n("notifyAlertClosed");notifyConfirmationModalClosed=n("notifyConfirmationModalClosed");attributeChangedCallback(r,a,u){try{super.attributeChangedCallback(r,a,u)}catch(c){console.error("Error in super.attributeChangedCallback",c)}this.containerInitialized&&(r==="context"&&this.updateContext(JSON.parse(u)),r==="auth-data"&&ar.updateAuthData(this.iframeHandle,JSON.parse(u)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}));class ql extends dc{constructor(n){super(),hc(this,n,oS,aS,oc,{activeFeatureToggleList:3,anchor:4,clientPermissions:5,compoundConfig:6,context:1,deferInit:2,dirtyStatus:7,documentTitle:8,hasBack:9,locale:10,noShadow:11,nodeParams:12,pathParams:13,searchParams:14,skipInitCheck:15,theme:16,userSettings:17,viewurl:18,webcomponent:19,unwarn:20},sS)}get activeFeatureToggleList(){return this.$$.ctx[3]}set activeFeatureToggleList(n){this.$$set({activeFeatureToggleList:n}),q()}get anchor(){return this.$$.ctx[4]}set anchor(n){this.$$set({anchor:n}),q()}get clientPermissions(){return this.$$.ctx[5]}set clientPermissions(n){this.$$set({clientPermissions:n}),q()}get compoundConfig(){return this.$$.ctx[6]}set compoundConfig(n){this.$$set({compoundConfig:n}),q()}get context(){return this.$$.ctx[1]}set context(n){this.$$set({context:n}),q()}get deferInit(){return this.$$.ctx[2]}set deferInit(n){this.$$set({deferInit:n}),q()}get dirtyStatus(){return this.$$.ctx[7]}set dirtyStatus(n){this.$$set({dirtyStatus:n}),q()}get documentTitle(){return this.$$.ctx[8]}set documentTitle(n){this.$$set({documentTitle:n}),q()}get hasBack(){return this.$$.ctx[9]}set hasBack(n){this.$$set({hasBack:n}),q()}get locale(){return this.$$.ctx[10]}set locale(n){this.$$set({locale:n}),q()}get noShadow(){return this.$$.ctx[11]}set noShadow(n){this.$$set({noShadow:n}),q()}get nodeParams(){return this.$$.ctx[12]}set nodeParams(n){this.$$set({nodeParams:n}),q()}get pathParams(){return this.$$.ctx[13]}set pathParams(n){this.$$set({pathParams:n}),q()}get searchParams(){return this.$$.ctx[14]}set searchParams(n){this.$$set({searchParams:n}),q()}get skipInitCheck(){return this.$$.ctx[15]}set skipInitCheck(n){this.$$set({skipInitCheck:n}),q()}get theme(){return this.$$.ctx[16]}set theme(n){this.$$set({theme:n}),q()}get userSettings(){return this.$$.ctx[17]}set userSettings(n){this.$$set({userSettings:n}),q()}get viewurl(){return this.$$.ctx[18]}set viewurl(n){this.$$set({viewurl:n}),q()}get webcomponent(){return this.$$.ctx[19]}set webcomponent(n){this.$$set({webcomponent:n}),q()}get unwarn(){return this.$$.ctx[20]}}gc(ql,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},anchor:{type:"String",reflect:!1,attribute:"anchor"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},compoundConfig:{type:"Object",reflect:!1,attribute:"compound-config"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow",reflect:!1},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(i=>{let n=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends i{updateContext=n("updateContext");notifyAlertClosed=n("notifyAlertClosed");notifyConfirmationModalClosed=n("notifyConfirmationModalClosed");attributeChangedCallback(r,a,u){try{super.attributeChangedCallback(r,a,u)}catch(c){console.warn("Error in attributeChangedCallback",c)}this.containerInitialized&&r==="context"&&this.updateContext(JSON.parse(u))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}})),customElements.get("luigi-container")||customElements.define("luigi-container",vc.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",ql.element);class vr{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(n){this.decorators=this.decorators.filter(r=>r.uid!==n.uid).concat(n)}applyDecorators(n,r){if(!n)return n;const a=new URL(F.prependOrigin(n)),u=this.decorators.filter(c=>c.type==="queryString");for(let c=0;c<u.length;c++){const l=u[c];a.searchParams.has(l.key)&&a.searchParams.delete(l.key);const g=l.valueFn();a.searchParams.append(l.key,g)}return r&&(a.search=decodeURIComponent(a.search)),a.href}}const Oa=async(i,n,r)=>{const a=await n.readUserSettings(),c=i.userSettingsGroup&&typeof a=="object"&&a!==null&&i.userSettingsGroup?a[i.userSettingsGroup]:null,l=r?.nodeParams||{},g=r?.pathParams||{},p=r?.searchParams||{};if(i.webcomponent&&i.viewUrl&&!D.checkWCUrl(i.viewUrl,n))return console.warn(`View URL '${i.viewUrl}' not allowed to be included`),document.createElement("div");if(i.compound){const _=document.createElement("luigi-compound-container");return _.setAttribute("lui_container","true"),_.viewurl=i.viewUrl?te.get(vr).applyDecorators(D.substituteViewUrl(i.viewUrl,g,n),i.decodeViewUrl??!1):"",_.webcomponent=i.webcomponent??!1,_.compoundConfig=i.compound,_.context=i.context,_.clientPermissions=i.clientPermissions??{},_.nodeParams=l,_.pathParams=g,_.userSettingsGroup=i.userSettingsGroup,_.userSettings=c,_.searchParams=p,_.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),_.locale=n.i18n().getCurrentLocale(),_.theme=n.theming().getCurrentTheme(),_.viewGroup=i.viewGroup,_.virtualTree=i.virtualTree||i._virtualTree,_.virtualTreeRootNode=Ee.findVirtualTreeRootNode(i),n.getEngine()._comm.addListeners(_,n),_}else{const _=document.createElement("luigi-container");return _.setAttribute("lui_container","true"),_.viewurl=i.viewUrl?te.get(vr).applyDecorators(D.substituteViewUrl(i.viewUrl,g,n),i.decodeViewUrl??!1):"",_.webcomponent=i.webcomponent??!1,_.context=i.context,_.clientPermissions=i.clientPermissions??{},_.cssVariables=await n.theming().getCSSVariables(),_.nodeParams=l,_.pathParams=g,_.userSettingsGroup=i.userSettingsGroup,_.userSettings=c,_.searchParams=p,_.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),_.locale=n.i18n().getCurrentLocale(),_.theme=n.theming().getCurrentTheme(),_.viewGroup=i.viewGroup,_.virtualTree=i.virtualTree||i._virtualTree,_.virtualTreeRootNode=Ee.findVirtualTreeRootNode(i),mc(_,n),Sc(_,n),n.getEngine()._comm.addListeners(_,n),_}},mc=(i,n)=>{const r=n.getConfigValue("settings.customSandboxRules");if(!r?.length)return;const a=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],u=r?[...new Set([...a,...r])]:a;i.sandboxRules=u},Sc=(i,n)=>{const r=n.getConfigValue("settings.allowRules");r?.length&&(r.forEach((a,u)=>{r[u]=a+(a.indexOf(";")!=-1?"":";")}),i.allowRules=r)},Me={navService:void 0,routingService:void 0,luigi:void 0,init:i=>{console.log("Init UI..."),Me.navService=te.get(mn),Me.routingService=te.get(Mn),Me.luigi=i,i.getEngine()._connector?.renderMainLayout()},update:async i=>{const n=Me.routingService.getCurrentRoute();if(!n)return;const r=!i||i.length===0;(r||i.includes("settings.header")||i.includes("settings")||i.includes("navigation")||i.includes("navigation.profile")||i.includes("navigation.contextSwitcher")||i.includes("navigation.productSwitcher"))&&Me.luigi.getEngine()._connector?.renderTopNav(await Me.navService.getTopNavData(n.path)),(r||i.includes("navigation")||i.includes("navigation.nodes")||i.includes("navigation.viewgroupdata")||i.includes("settings")||i.includes("settings.footer"))&&(te.get(vn).deleteCache(),Me.luigi.getEngine()._connector?.renderLeftNav(await Me.navService.getLeftNavData(n.path)),Me.luigi.getEngine()._connector?.renderTabNav(await Me.navService.getTabNavData(n.path))),(r||i.includes("navigation")||i.includes("navigation.nodes")||i.includes("navigation.viewgroupdata")||i.includes("settings.theming"))&&(te.get(vn).deleteCache(),n.node&&Me.updateMainContent(n.node,Me.luigi))},updateMainContent:async(i,n,r,a,u)=>{const c=await n.readUserSettings(),g=i.userSettingsGroup&&typeof c=="object"&&c!==null&&i.userSettingsGroup?c[i.userSettingsGroup]:null,p=n.getEngine()._connector?.getContainerWrapper();n.getEngine()._connector?.hideLoadingIndicator(p);const _=r?.nodeParams||{},y=r?.pathParams||{},T=r?.searchParams||{};if(i&&p){let E,R;if((i.virtualTree||i._virtualTree)&&(R=Ee.findVirtualTreeRootNode(i)),[...p.childNodes].forEach(P=>{P.tagName?.indexOf("LUIGI-")===0&&(P.viewGroup&&i.viewGroup!==P.viewGroup?P.style.display="none":P.viewGroup||P.virtualTree&&R===P.virtualTreeRootNode?E=P:P.remove())}),E)a||(E.style.display="block",E.viewurl=i.viewUrl?te.get(vr).applyDecorators(D.substituteViewUrl(i.viewUrl,y,n),i.decodeViewUrl??!1):"",E.nodeParams=_,E.pathParams=y,E.clientPermissions=i.clientPermissions,E.searchParams=T,E.locale=n.i18n().getCurrentLocale(),E.theme=n.theming().getCurrentTheme(),E.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),E.userSettingsGroup=i.userSettingsGroup,E.userSettings=g,mc(E,n),Sc(E,n)),u||E.updateContext(i.context||{});else{const P=await Oa(i,n,r);p?.appendChild(P);const N=n.getEngine()._connector;i.loadingIndicator?.enabled!==!1&&N?.showLoadingIndicator(p)}}},openModal:async(i,n,r,a)=>{const u=await Oa(n,i),c=te.get(Mn),l=te.get(_n);let g=!1,p,_;const T=new Promise(P=>{p=()=>{g||(g=!0,P(),l.removeLastModalFromStack())},_=()=>{p&&p(),i.getConfigValue("routing.showModalPathInUrl")&&l.getModalStackLength()===0&&c.removeModalDataFromUrl(!0)},u.addEventListener(U.CLOSE_CURRENT_MODAL_REQUEST,_)}),E={closePromise:T,resolveFn:p,onCloseRequestHandler:_,onInternalClose:()=>{try{E.resolveFn&&E.resolveFn()}catch(P){console.warn("onInternalClose failed",P)}},modalsettings:r};l.registerModal(E),i.getEngine()._connector?.renderModal(u,r,()=>{a?.(),l.removeLastModalFromStack(),i.getConfigValue("routing.showModalPathInUrl")&&l.getModalStackLength()===0&&c.removeModalDataFromUrl(!0)},()=>T);const R=i.getEngine()._connector;n.loadingIndicator?.enabled!==!1&&R?.showLoadingIndicator(u.parentElement)},updateModalSettings:(i,n,r)=>{const a=te.get(_n);if(a.getModalStackLength()===0)return;a.updateFirstModalSettings(i);const u=te.get(Mn),c=D.getModalPathFromPath(r);c&&u.updateModalDataInUrl(c,a.getModalSettings(),n),r.getEngine()._connector?.updateModalSettings(a.getModalSettings())},openDrawer:async(i,n,r,a)=>{const u=await Oa(n,i);i.getEngine()._connector?.renderDrawer(u,r,a);const c=i.getEngine()._connector;n.loadingIndicator?.enabled!==!1&&c?.showLoadingIndicator(u.parentElement)}};class Mn{constructor(n){this.luigi=n}getNavigationService(){return this.navigationService||(this.navigationService=te.get(mn)),this.navigationService}shouldSkipRoutingForUrlPatterns(){const n=[/access_token=/,/id_token=/];return(this.luigi.getConfigValue("routing.skipRoutingForUrlPatterns")||n).filter(a=>location.href.match(a)).length!==0}enableRouting(){const n=this.luigi.getConfig();console.log("Init Routing...",n.routing),n.routing?.useHashRouting?(window.addEventListener("hashchange",r=>{const a=!!r?.detail?.preventContextUpdate,u=!!r?.detail?.withoutSync;this.handleRouteChange(D.getCurrentPath(!0),u,a)}),this.handleRouteChange(D.getCurrentPath(!0))):(window.addEventListener("popstate",r=>{const a=!!r?.detail?.preventContextUpdate,u=!!r?.detail?.withoutSync;this.handleRouteChange(D.getCurrentPath(),u,a)}),this.handleRouteChange(D.getCurrentPath()))}async handleRouteChange(n,r=!1,a=!1){const u=n.path,c=n.query,l=u+(c?"?"+c:""),g=new URLSearchParams(c),p=Object.create(null);if(this.shouldSkipRoutingForUrlPatterns())return;this.setFeatureToggle(l),await this.shouldShowModalPathInUrl(n),g.forEach((P,N)=>{p[N]=P}),this.checkInvalidateCache(this.previousPathData,u);const _=await this.getNavigationService().getPathData(u);this.previousPathData=_;const y=D.filterNodeParams(p,this.luigi),T=F.getPathWithoutHash(u);this.currentRoute={raw:window.location.href,path:u,nodeParams:y};const E=_?.selectedNode??await this.getNavigationService().getCurrentNode(u),R=E?.viewUrl||"";if(!await this.handlePageNotFound(E,R,_,u,T)&&(this.luigi.getEngine()._connector?.renderTopNav(await this.getNavigationService().getTopNavData(u,_)),this.luigi.getEngine()._connector?.renderLeftNav(await this.getNavigationService().getLeftNavData(u,_)),this.luigi.getEngine()._connector?.renderTabNav(await this.getNavigationService().getTabNavData(u,_)),E)){const P={nodeParams:y||{},pathParams:_?.pathParams||{},searchParams:D.prepareSearchParamsForClient(E,this.luigi)};this.currentRoute.node=E,this.getNavigationService().onNodeChange(this.previousNode,E),this.previousNode=E,Me.updateMainContent(E,this.luigi,P,r,a)}}getCurrentRoute(){return this.currentRoute}async shouldShowModalPathInUrl(n){this.luigi.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath(n)}async handleBookmarkableModalPath(n){const r=te.get(mn),a=te.get(_n),u=new URLSearchParams(n?.query||""),c=D.getModalViewParamName(this.luigi),l=u.get(c);if(l){const g=u.get(`${c}Params`);try{const p=JSON.parse(g||"{}"),{nodeObject:_}=await r.extractDataFromPath(l);document.querySelector(".lui-modal luigi-container")?this.luigi.getEngine()._connector?.updateModalSettings(p):this.luigi.navigation().openAsModal(l,p||_.openNodeInModal)}catch(p){console.error("Error parsing modal settings from URL parameters",p)}}else{a.closeModals();return}}appendModalDataToUrl(n,r){const a=D.getHashQueryParamSeparator(),u=D.getQueryParams(this.luigi),c=D.getModalViewParamName(this.luigi),l=u[c],g=new URL(location.href),p=this.luigi.getConfigValue("routing.useHashRouting");let _=history.state,y,T;if(p){let[E,R]=g.hash.split("?");y=E,T=D.getURLWithoutModalData(R,c),T&&(y+="?"+T)}else y=g.pathname,T=D.getURLWithoutModalData(g.search,c),T&&(y+="?"+D.getURLWithoutModalData(g.search,c));if(_=D.handleHistoryState(_,y),l!==n){if(u[c]=n,r&&Object.keys(r).length&&(u[`${c}Params`]=JSON.stringify(r)),p){const E=location.hash.indexOf(a);E!==-1&&(g.hash=g.hash.slice(0,E)),g.hash=`${g.hash}${a}${D.encodeParams(u)}`}else g.search=`?${D.encodeParams(u)}`;history.pushState(_,"",g.href)}else{const E=new URL(g);if(p){let R=E.hash.split("?")[0];E.hash=R,T&&(E.hash+="?"+T)}else E.search=T;history.replaceState({},"",E.href),history.pushState(_,"",g.href)}}removeModalDataFromUrl(n){const r=D.getQueryParams(this.luigi),a=D.getModalViewParamName(this.luigi);let u=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){let l={};r[a]&&(l[a]=r[a]),r[`${a}Params`]&&(l[`${a}Params`]=r[`${a}Params`]);let g=D.encodeParams(l);u.hash.includes(`?${g}`)?u.hash=u.hash.replace(`?${g}`,""):u.hash.includes(`&${g}`)&&(u.hash=u.hash.replace(`&${g}`,""))}else{let l=new URLSearchParams(u.search.slice(1));l.delete(a),l.delete(`${a}Params`);let g="";Array.from(l.keys()).forEach(p=>{g+=(g===""?"?":"&")+p+"="+l.get(p)}),u.search=g}if(history.state&&history.state.modalHistoryLength>=0&&n){history.state.modalHistoryLength;const l=history.state.pathBeforeHistory;let g=!1;if(window.addEventListener("popstate",p=>{g?(history.replaceState({},"",l),history.pushState({},"",l),history.back()):(history.pushState({},"",l),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const p=history.length-1;g=!0,history.go(-p),window.Luigi.preventLoadingModalData=!0}else{const p=history.state.modalHistoryLength;history.go(-p)}}else history.pushState({},"",u.href)}setFeatureToggle(n){const r=this.luigi.getConfigValue("settings.featureToggles.queryStringParam"),a=this.luigi.featureToggles();r&&typeof n=="string"&&D.setFeatureToggles(r,n,a)}updateModalDataInUrl(n,r,a){let u=D.getHashQueryParamSeparator();const c=D.getQueryParams(this.luigi),l=D.getModalViewParamName(this.luigi);c[l]=n,r&&Object.keys(r).length&&(c[`${l}Params`]=JSON.stringify(r));const g=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){const _=location.hash.indexOf(u);_!==-1&&(g.hash=g.hash.slice(0,_)),g.hash=`${g.hash}${u}${D.encodeParams(c)}`}else g.search=`?${D.encodeParams(c)}`;a?history.pushState(window.state,"",g.href):history.replaceState(window.state,"",g.href)}checkInvalidateCache(n,r){if(!n)return;const a=te.get(vn);let u=r.split("/");if(n.nodesInPath&&n.nodesInPath.length>0){let c=n.nodesInPath.slice(1),l=!0;for(let g=0;g<c.length;g++){let p=u.length>g?u[g]:void 0,_=c[g];if(p!==_.pathSegment||!l)if(D.isDynamicNode(_)){if(!l||p!==D.getDynamicNodeValue(_,n.pathParams)){a.deleteNodesRecursively(_);break}}else l=!1}}else a.deleteCache()}async handlePageNotFound(n,r,a,u,c){const l=F.getTrimmedUrl(u),g=D.isExistingRoute(l,a);if(!r&&!n?.compound||n?.tabNav?.showAsTabHeader){const p=await D.getDefaultChildNode(a,async(_,y)=>await this.getNavigationService().getChildren(_,y));if(g){const _=F.getTrimmedUrl(u);return this.getNavigationService().handleNavigationRequest({path:`${_?`/${_}`:""}/${p}`,preserveView:void 0,modalSettings:void 0,newTab:!1,withoutSync:!1,preventContextUpdate:!1,preventHistoryEntry:!0}),!1}else{if(p&&a?.nodesInPath&&a.nodesInPath.length>1)return this.showPageNotFoundError(F.trimTrailingSlash(l||"")+"/"+p,c,!0),!0;const _=await D.getDefaultChildNode(a);this.showPageNotFoundError(_,c,!1)}return!0}return g?!1:(this.showPageNotFoundError(a.matchedPath,c,!0),!0)}async showPageNotFoundError(n,r,a=!1){const u=D.getPageNotFoundRedirectResult(r,a,this.luigi);if(u.ignoreLuigiErrorHandling)return;const c=u.path;if(c){if(u.keepURL){const l=this.luigi.getConfig().routing?.useHashRouting,g=D.getCurrentPath(l);g.path=c,this.handleRouteChange(g)}else this.getNavigationService().handleNavigationRequest({path:c});return}D.showRouteNotFoundAlert(r,a,this.luigi),this.getNavigationService().handleNavigationRequest({path:F.addLeadingSlash(n)})}}class uS{constructor(n){this.hashRouting=!1,this.options={fromContext:null,fromClosestContext:!1,fromVirtualTreeRoot:!1,fromParent:!1,nodeParams:{}},this.navigate=async(r,a,u,c,l)=>{const g=r[0]!=="/";this.options.relative=g;const p={modalSettings:u,newTab:!1,options:this.options,path:r,preserveView:a,preventContextUpdate:!1,preventHistoryEntry:!1,withoutSync:!1};this.navService.handleNavigationRequest(p,void 0)},this.openAsModal=async(r,a,u)=>{a?.keepPrevious||await this.modalService.closeModals();const c=r.replace(/\/\/+/g,"/");if(!await Ee.validatePathAndGetRedirect(c,this.luigi))return;const g=await this.navService.getCurrentNode(c),p=a||{};p.title||(p.title=g?.label),this.luigi.getConfigValue("routing.showModalPathInUrl")&&this.modalService.getModalStackLength()===0&&this.routingService.appendModalDataToUrl(c,p),this.luigi.getEngine()._ui.openModal(this.luigi,g,p,u)},this.openAsDrawer=async(r,a,u)=>{const c=r.replace(/\/\/+/g,"/");if(!await Ee.validatePathAndGetRedirect(c,this.luigi))return;const g=await this.navService.getCurrentNode(c),p=a||{};p.title||(p.title=g?.label),this.luigi.getEngine()._ui.openDrawer(this.luigi,g,p,u)},this.runTimeErrorHandler=async r=>{const{path:a}=D.getCurrentPath(this.luigi.getConfig().routing?.useHashRouting),u=await this.navService.getCurrentNode(a),c=this.luigi.getConfigValue("navigation.defaults.runTimeErrorHandler");u?.runTimeErrorHandler?.errorFn&&F.isFunction(u?.runTimeErrorHandler?.errorFn)?u.runTimeErrorHandler.errorFn(r,u):c?.errorFn&&F.isFunction(c.errorFn)&&c.errorFn(r,u)},this.pathExists=async r=>await D.pathExists(r,this.luigi),this.luigi=n,this.hashRouting=n.getConfig().routing?.useHashRouting,this.navService=te.get(mn),this.routingService=te.get(Mn),this.modalService=te.get(_n)}fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this.options.fromParent=!1,this}fromContext(n){return this.options.fromContext=n,this}fromClosestContext(){return this.options.fromContext=null,this.options.fromClosestContext=!0,this.options.fromParent=!1,this}fromParent(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!1,this.options.fromParent=!0,this}withParams(n){return n&&Object.assign(this.options.nodeParams??{},n),this}}class lS{constructor(n){this.luigi=n}addSearchParams(n,r=!1){if(!F.isObject(n)){console.log("Params argument must be an object");return}const a=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?a.hash=D.addParamsOnHashRouting(n,a.hash):D.modifySearchParams(n,a.searchParams),this.handleBrowserHistory(r,a),this.luigi.configChanged()}getSearchParams(){const n={},r=["__proto__","constructor","prototype"],a=new URL(location.href);let u;if(this.luigi.getConfigValue("routing.useHashRouting")){const c=a.hash.split("?")[1];u=c?new URLSearchParams(c).entries():[]}else u=a.searchParams.entries();for(const[c,l]of u){if(r.some(g=>c===g)){console.warn(`Blocked because of potentially dangerous query param: ${c}`);continue}n[c]=l}return n}handleBrowserHistory(n,r){const a=this.sanitizeUrl(r.href);if(!a){console.warn("invalid url: "+a);return}n?window.history.pushState({},"",a):window.history.replaceState({},"",a)}sanitizeUrl(n){return new URL(location.href).origin===new URL(n).origin?n:void 0}addNodeParams(n,r){if(!F.isObject(n)){console.log("Params argument must be an object");return}const a=D.getContentViewParamPrefix(this.luigi),u=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?u.hash=D.addParamsOnHashRouting(n,u.hash,a):D.modifySearchParams(n,u.searchParams,a),this.handleBrowserHistory(r,u),this.luigi.getConfigValue("routing.useHashRouting")?window.dispatchEvent(new HashChangeEvent("hashchange")):this.luigi.configChanged()}}class cS{#e;#h="";constructor(n){this.#e=n}async getAvailableThemes(){return await this.#e.getConfigValueAsync("settings.theming.themes")}setCurrentTheme(n){this.#h=n,this.#e.__cssVars=void 0}async getThemeObject(n){return(await this.getAvailableThemes())?.find(a=>a.id===n)}getCurrentTheme(){if(!this.isThemingAvailable())return!1;if(this.#h)return this.#h;const n=this.#e.getConfigValue("settings.theming");return n.defaultTheme||console.error("[Theming] getCurrentTheme() error. No theme set and no defaultTheme found in configuration",n),n.defaultTheme}isThemingAvailable(){return!!this.#e.getConfigValue("settings.theming")}async getCSSVariables(){if(!window.Luigi.__cssVars){const n=this.#e.getConfigValue("settings.theming.variables.file");if(n)try{const r=await fetch(n);window.Luigi.__cssVars=(await r.json()).root,Object.keys(window.Luigi.__cssVars).forEach(a=>{const u=getComputedStyle(document.documentElement).getPropertyValue("--"+a);u&&(window.Luigi.__cssVars[a]=u)})}catch(r){F.isFunction(this.#e.getConfigValue("settings.theming.variables.errorHandling"))?this.#e.getConfigValue("settings.theming.variables.errorHandling")(r):console.error("CSS variables file error: ",r)}else this.#e.getConfigValue("settings.theming.variables")==="fiori"&&window.__luigiThemeVars?(window.Luigi.__cssVars={},window.__luigiThemeVars.forEach(r=>{window.Luigi.__cssVars[r]=getComputedStyle(document.documentElement).getPropertyValue("--"+r)})):window.Luigi.__cssVars={}}return window.Luigi.__cssVars}_init(){const n=te.get(vr);(()=>{const a=this.#e.getConfigValue("settings.theming");a&&a.nodeViewURLDecorator&&a.nodeViewURLDecorator.queryStringParameter&&n.add({type:"queryString",uid:"theming",key:a.nodeViewURLDecorator.queryStringParameter.keyName,valueFn:()=>{const u=this.getCurrentTheme(),c=a.nodeViewURLDecorator.queryStringParameter.value;return c?c(u):u}}),a&&a.useFioriScrollbars===!0&&document.body.classList.add("fioriScrollbars")})()}}class ss{constructor(){this.unsavedChanges={isDirty:!1,persistUrl:null}}updateDirtyStatus(n,r){if(!this.unsavedChanges.dirtySet||!(this.unsavedChanges.dirtySet instanceof Set)){const a=new Set;a.add(r),this.unsavedChanges={dirtySet:a}}this.unsavedChanges.persistUrl=window.location.href,n?this.unsavedChanges.dirtySet?.add(r):this.unsavedChanges.dirtySet?.delete(r)}clearDirtyState(n){this.unsavedChanges&&this.unsavedChanges.dirtySet&&(n?this.unsavedChanges.dirtySet.delete(n):this.unsavedChanges.dirtySet.clear())}readDirtyStatus(){return this.unsavedChanges.dirtySet?this.unsavedChanges.dirtySet.size>0:!!this.unsavedChanges.isDirty}}let zl;const be={luigi:void 0,documentTitle:void 0,init:i=>{console.log("ux init..."),be.luigi=i,be.documentTitle=ns(void 0),zl=te.get(ss)},processAlert:(i,n,r)=>{if(!be.luigi)throw new Error("Luigi is not initialized.");const a={openFromClient:n,close:()=>{i.id&&r.notifyAlertClosed(i.id)},link:u=>{if(i.links){const c=i.links[u];if(c&&(c.url&&be.luigi?.navigation().navigate(c.url),c.dismissKey&&i.id))return r.notifyAlertClosed(i.id,c.dismissKey),!0}return!1}};be.luigi.getEngine()._connector?.renderAlert(i,a)},handleConfirmationModalRequest:(i,n)=>{if(!be.luigi)throw new Error("Luigi is not initialized.");i&&(i={...i,header:be.luigi.i18n().getTranslation(i.header||"luigi.confirmationModal.header"),body:be.luigi.i18n().getTranslation(i.body||"luigi.confirmationModal.body"),buttonDismiss:be.luigi.i18n().getTranslation(i.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:be.luigi.i18n().getTranslation(i.buttonConfirm||"luigi.button.confirm")}),be.luigi.getEngine()._connector?.renderConfirmationModal(i,{confirm(){n.notifyConfirmationModalClosed(!0)},dismiss(){n.notifyConfirmationModalClosed(!1)}})},handleDirtyStatusRequest:(i,n)=>{if(!be.luigi)throw new Error("Luigi is not initialized.");zl.updateDirtyStatus(i,n)}};class hS{processUserSettingGroups(n,r){const a=[],u=n?.userSettingGroups,c=r?.userSettings?.userSettingGroups,l=u||c;if(F.isObject(l)){for(const g in l){const p={};p[g]=l[g],a.push(p)}return a}return a}getUserSettingsIframesInDom(){const n=document.querySelector(".iframeUserSettingsCtn");return n?[...n.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(n=>{n.style.display="none"})}findActiveCustomUserSettingsIframe(n){const r=document.querySelectorAll("[userSettingsGroup]");for(let a=0;a<r.length;a++)if(r[a].contentWindow===n)return r[a];return null}}const fS=new hS;class gS{constructor(n){this.dirtyStatusService=te.get(ss),this.appLoadingIndicatorSelector="[luigi-app-loading-indicator]",this.showAlert=r=>new Promise(a=>{r.id||(r.id=F.getRandomId().toString());const u={openFromClient:!1,close:()=>{a(!0)},link:c=>{if(r.links){const l=r.links[c];if(l&&(l.url&&this.luigi?.navigation().navigate(l.url),l.dismissKey))return a(l.dismissKey),!0}return!1}};this.luigi.getEngine()._connector?.renderAlert(r,u)}),this.showConfirmationModal=r=>(r&&(r={...r,header:this.luigi.i18n().getTranslation(r.header||"luigi.confirmationModal.header"),body:this.luigi.i18n().getTranslation(r.body||"luigi.confirmationModal.body"),buttonDismiss:this.luigi.i18n().getTranslation(r.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:this.luigi.i18n().getTranslation(r.buttonConfirm||"luigi.button.confirm")}),new Promise((a,u)=>{this.luigi.getEngine()._connector?.renderConfirmationModal(r,{confirm(){a(!0)},dismiss(){u()}})})),this.processUserSettingGroups=()=>{const r=this.luigi.getConfigValue("userSettings"),a=this.luigi.getConfigValue("settings");return fS.processUserSettingGroups(r,a)},this.openUserSettings=r=>{this.luigi.getEngine()._connector?.openUserSettings(r)},this.closeUserSettings=()=>{this.luigi.getEngine()._connector?.closeUserSettings()},this.setDocumentTitle=r=>{this.luigi.getEngine()._ux?.documentTitle?.set(r),this.luigi.getEngine()._connector?.setDocumentTitle(r)},this.getDocumentTitle=()=>ic(this.luigi.getEngine()._ux?.documentTitle)||window.document.title||"",this.hideAppLoadingIndicator=()=>{const r=document.querySelector(this.appLoadingIndicatorSelector);r&&(r.classList.add("hidden"),setTimeout(()=>{r.parentNode?.removeChild(r)},500))},this.showLoadingIndicator=r=>this.luigi.getEngine()._connector?.showLoadingIndicator(r),this.hideLoadingIndicator=r=>this.luigi.getEngine()._connector?.hideLoadingIndicator(r),this.addBackdrop=()=>this.luigi.getEngine()._connector?.addBackdrop(),this.removeBackdrop=()=>this.luigi.getEngine()._connector?.removeBackdrop(),this.getDirtyStatus=()=>this.dirtyStatusService.readDirtyStatus(),this.luigi=n}}class dS{constructor(n){this.engine=n,this.initialized=!1,this.configReadyCallback=function(){},this.USER_SETTINGS_KEY="luigi.preferences.userSettings",this.setConfig=r=>{this.config=r,this.setConfigCallback(this.getConfigReadyCallback()),fr.init().then(()=>{this.engine.init(),this.initialized||(this.initialized=!0,Qm.luigiAfterInit(this))})},this.getConfig=()=>this.config,this.configChanged=(...r)=>{this.getEngine()._ui.update(r)},this.i18n=()=>(this._i18n||(this._i18n=new Bm(this)),this._i18n),this.elements=()=>(this._elements||(this._elements=new Gm(this)),this._elements),this.navigation=()=>new uS(this),this.ux=()=>new gS(this),this.featureToggles=()=>(this._featureToggles||(this._featureToggles=new qm),this._featureToggles),this.routing=()=>(this._routing||(this._routing=new lS(this)),this._routing),this.theming=()=>(this._theming||(this._theming=new cS(this)),this._theming),this.auth=()=>or,this._store=this.createConfigStore()}getEngine(){return this.engine}getConfigValue(n){return F.getConfigValueFromObject(this.getConfig(),n)}getConfigValueAsync(n,...r){return $n.getConfigValueFromObjectAsync(this.getConfig(),n,r)}clearNavigationCache(){te.get(vn).deleteCache()}async readUserSettings(){const n=await this.getConfigValueAsync("userSettings"),r=n||await this.getConfigValueAsync("settings.userSettings");if(r&&F.isFunction(r.readUserSettings))return r.readUserSettings();const a=localStorage.getItem(this.USER_SETTINGS_KEY);return a&&JSON.parse(a)}async storeUserSettings(n,r){const a=await this.getConfigValueAsync("userSettings"),u=a||await this.getConfigValueAsync("settings.userSettings");if(u&&F.isFunction(u.storeUserSettings))return u.storeUserSettings(n,r);localStorage.setItem(this.USER_SETTINGS_KEY,JSON.stringify(n)),this.configChanged()}createConfigStore(){const n=ns({}),r={};let a=[];return{subscribe:u=>{a.push(n.subscribe(u))},reset:u=>{n.update(u)},subscribeToScope:(u,c)=>{let l=r[c];l||(l=new Set,r[c]=l),l.add(u)},fire:(u,c)=>{const l=r[u];l&&[...l].forEach(g=>{g(c)})},clear:()=>{a.forEach(u=>{u()}),a=[]}}}getConfigReadyCallback(){return new Promise(n=>{this.i18n()._init(),n()})}setConfigCallback(n){this.configReadyCallback=n}}const pS=!1;var _S=Array.isArray,vS=Array.prototype.indexOf,mr=Array.prototype.includes,mS=Array.from,SS=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,wS=Object.prototype,ES=Array.prototype,CS=Object.getPrototypeOf,Kl=Object.isExtensible;const TS=()=>{};function yS(i){for(var n=0;n<i.length;n++)i[n]()}function RS(){var i,n,r=new Promise((a,u)=>{i=a,n=u});return{promise:r,resolve:i,reject:n}}const Fe=2,Zr=4,wc=8,Ec=1<<24,Xt=16,Sn=32,kn=64,ka=128,vt=512,Ne=1024,Ge=2048,Mt=4096,Yt=8192,dn=16384,ei=32768,Yl=1<<25,as=65536,Ha=1<<17,AS=1<<18,us=1<<19,bS=1<<20,Hn=65536,Wa=1<<21,qa=1<<22,Jr=1<<23,$a=Symbol("$state"),za=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function PS(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function IS(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function xS(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function LS(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function NS(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Be=Symbol();function US(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function OS(i){return i===this.v}let Ka=!1,$S=!1;function DS(){Ka=!0}let xt=null;function os(i){xt=i}function MS(i,n=!1,r){xt={p:xt,i:!1,c:null,e:null,s:i,x:null,r:de,l:Ka&&!n?{s:null,u:null,$:[]}:null}}function FS(i){var n=xt,r=n.e;if(r!==null){n.e=null;for(var a of r)jS(a)}return n.i=!0,xt=n.p,{}}function ls(){return!Ka||xt!==null&&xt.l===null}let ur=[];function kS(){var i=ur;ur=[],yS(i)}function dr(i){if(ur.length===0){var n=ur;queueMicrotask(()=>{n===ur&&kS()})}ur.push(i)}function Cc(i){var n=de;if(n===null)return oe.f|=Jr,i;if((n.f&ei)===0&&(n.f&Zr)===0)throw i;lr(i,n)}function lr(i,n){for(;n!==null;){if((n.f&ka)!==0){if((n.f&ei)===0)throw i;try{n.b.error(i);return}catch(r){i=r}}n=n.parent}throw i}const HS=-7169;function Ce(i,n){i.f=i.f&HS|n}function Ya(i){(i.f&vt)!==0||i.deps===null?Ce(i,Ne):Ce(i,Mt)}function Tc(i){if(i!==null)for(const n of i)(n.f&Fe)===0||(n.f&Hn)===0||(n.f^=Hn,Tc(n.deps))}function yc(i,n,r){(i.f&Ge)!==0?n.add(i):(i.f&Mt)!==0&&r.add(i),Tc(i.deps),Ce(i,Ne)}const ln=new Set;let we=null,Pt=null,Va=null,Da=!1,cr=null,ji=null;var Xl=0;let WS=1;class Wn{id=WS++;current=new Map;previous=new Map;#e=new Set;#h=new Set;#n=new Map;#o=new Map;#r=null;#t=[];#s=[];#i=new Set;#a=new Set;#u=new Map;is_fork=!1;#c=!1;#f=new Set;#g(){return this.is_fork||this.#o.size>0}#d(){for(const a of this.#f)for(const u of a.#o.keys()){for(var n=!1,r=u;r.parent!==null;){if(this.#u.has(r)){n=!0;break}r=r.parent}if(!n)return!0}return!1}skip_effect(n){this.#u.has(n)||this.#u.set(n,{d:[],m:[]})}unskip_effect(n){var r=this.#u.get(n);if(r){this.#u.delete(n);for(var a of r.d)Ce(a,Ge),this.schedule(a);for(a of r.m)Ce(a,Mt),this.schedule(a)}}#l(){if(Xl++>1e3&&(ln.delete(this),VS()),!this.#g()){for(const g of this.#i)this.#a.delete(g),Ce(g,Ge),this.schedule(g);for(const g of this.#a)Ce(g,Mt),this.schedule(g)}const n=this.#t;this.#t=[],this.apply();var r=cr=[],a=[],u=ji=[];for(const g of n)try{this.#p(g,r,a)}catch(p){throw bc(g),p}if(we=null,u.length>0){var c=Wn.ensure();for(const g of u)c.schedule(g)}if(cr=null,ji=null,this.#g()||this.#d()){this.#_(a),this.#_(r);for(const[g,p]of this.#u)Ac(g,p)}else{this.#n.size===0&&ln.delete(this),this.#i.clear(),this.#a.clear();for(const g of this.#e)g(this);this.#e.clear(),Zl(a),Zl(r),this.#r?.resolve()}var l=we;if(this.#t.length>0){const g=l??=this;g.#t.push(...this.#t.filter(p=>!g.#t.includes(p)))}l!==null&&(ln.add(l),l.#l()),ln.has(this)||this.#S()}#p(n,r,a){n.f^=Ne;for(var u=n.first;u!==null;){var c=u.f,l=(c&(Sn|kn))!==0,g=l&&(c&Ne)!==0,p=g||(c&Yt)!==0||this.#u.has(u);if(!p&&u.fn!==null){l?u.f^=Ne:(c&Zr)!==0?r.push(u):ni(u)&&((c&Xt)!==0&&this.#a.add(u),wr(u));var _=u.first;if(_!==null){u=_;continue}}for(;u!==null;){var y=u.next;if(y!==null){u=y;break}u=u.parent}}}#_(n){for(var r=0;r<n.length;r+=1)yc(n[r],this.#i,this.#a)}capture(n,r,a=!1){r!==Be&&!this.previous.has(n)&&this.previous.set(n,r),(n.f&Jr)===0&&(this.current.set(n,[n.v,a]),Pt?.set(n,n.v))}activate(){we=this}deactivate(){we=null,Pt=null}flush(){try{Da=!0,we=this,this.#l()}finally{Xl=0,Va=null,cr=null,ji=null,Da=!1,we=null,Pt=null,pn.clear()}}discard(){for(const n of this.#h)n(this);this.#h.clear(),ln.delete(this)}register_created_effect(n){this.#s.push(n)}#S(){for(const y of ln){var n=y.id<this.id,r=[];for(const[T,[E,R]]of this.current){if(y.current.has(T)){var a=y.current.get(T)[0];if(n&&E!==a)y.current.set(T,[E,R]);else continue}r.push(T)}var u=[...y.current.keys()].filter(T=>!this.current.has(T));if(u.length===0)n&&y.discard();else if(r.length>0){y.activate();var c=new Set,l=new Map;for(var g of r)Rc(g,u,c,l);l=new Map;var p=[...y.current.keys()].filter(T=>this.current.has(T)?this.current.get(T)[0]!==T:!0);for(const T of this.#s)(T.f&(dn|Yt|Ha))===0&&Xa(T,p,l)&&((T.f&(qa|Xt))!==0?(Ce(T,Ge),y.schedule(T)):y.#i.add(T));if(y.#t.length>0){y.apply();for(var _ of y.#t)y.#p(_,[],[]);y.#t=[]}y.deactivate()}}for(const y of ln)y.#f.has(this)&&(y.#f.delete(this),y.#f.size===0&&!y.#g()&&(y.activate(),y.#l()))}increment(n,r){let a=this.#n.get(r)??0;if(this.#n.set(r,a+1),n){let u=this.#o.get(r)??0;this.#o.set(r,u+1)}}decrement(n,r,a){let u=this.#n.get(r)??0;if(u===1?this.#n.delete(r):this.#n.set(r,u-1),n){let c=this.#o.get(r)??0;c===1?this.#o.delete(r):this.#o.set(r,c-1)}this.#c||a||(this.#c=!0,dr(()=>{this.#c=!1,this.flush()}))}transfer_effects(n,r){for(const a of n)this.#i.add(a);for(const a of r)this.#a.add(a);n.clear(),r.clear()}oncommit(n){this.#e.add(n)}ondiscard(n){this.#h.add(n)}settled(){return(this.#r??=RS()).promise}static ensure(){if(we===null){const n=we=new Wn;Da||(ln.add(we),dr(()=>{we===n&&n.flush()}))}return we}apply(){{Pt=null;return}}schedule(n){if(Va=n,n.b?.is_pending&&(n.f&(Zr|wc|Ec))!==0&&(n.f&ei)===0){n.b.defer_effect(n);return}for(var r=n;r.parent!==null;){r=r.parent;var a=r.f;if(cr!==null&&r===de&&(oe===null||(oe.f&Fe)===0))return;if((a&(kn|Sn))!==0){if((a&Ne)===0)return;r.f^=Ne}}this.#t.push(r)}}function VS(){try{PS()}catch(i){lr(i,Va)}}let Kt=null;function Zl(i){var n=i.length;if(n!==0){for(var r=0;r<n;){var a=i[r++];if((a.f&(dn|Yt))===0&&ni(a)&&(Kt=new Set,wr(a),a.deps===null&&a.first===null&&a.nodes===null&&a.teardown===null&&a.ac===null&&Fc(a),Kt?.size>0)){pn.clear();for(const u of Kt){if((u.f&(dn|Yt))!==0)continue;const c=[u];let l=u.parent;for(;l!==null;)Kt.has(l)&&(Kt.delete(l),c.push(l)),l=l.parent;for(let g=c.length-1;g>=0;g--){const p=c[g];(p.f&(dn|Yt))===0&&wr(p)}}Kt.clear()}}Kt=null}}function Rc(i,n,r,a){if(!r.has(i)&&(r.add(i),i.reactions!==null))for(const u of i.reactions){const c=u.f;(c&Fe)!==0?Rc(u,n,r,a):(c&(qa|Xt))!==0&&(c&Ge)===0&&Xa(u,n,a)&&(Ce(u,Ge),Za(u))}}function Xa(i,n,r){const a=r.get(i);if(a!==void 0)return a;if(i.deps!==null)for(const u of i.deps){if(mr.call(n,u))return!0;if((u.f&Fe)!==0&&Xa(u,n,r))return r.set(u,!0),!0}return r.set(i,!1),!1}function Za(i){we.schedule(i)}function Ac(i,n){if(!((i.f&Sn)!==0&&(i.f&Ne)!==0)){(i.f&Ge)!==0?n.d.push(i):(i.f&Mt)!==0&&n.m.push(i),Ce(i,Ne);for(var r=i.first;r!==null;)Ac(r,n),r=r.next}}function bc(i){Ce(i,Ne);for(var n=i.first;n!==null;)bc(n),n=n.next}function BS(i){let n=0,r=ja(0),a;return()=>{eo()&&(hr(r),tw(()=>(n===0&&(a=lw(()=>i(()=>Kr(r)))),n+=1,()=>{dr(()=>{n-=1,n===0&&(a?.(),a=void 0,Kr(r))})})))}}var GS=as|us;function QS(i,n,r,a){new qS(i,n,r,a)}class qS{parent;is_pending=!1;transform_error;#e;#h=null;#n;#o;#r;#t=null;#s=null;#i=null;#a=null;#u=0;#c=0;#f=!1;#g=new Set;#d=new Set;#l=null;#p=BS(()=>(this.#l=ja(this.#u),()=>{this.#l=null}));constructor(n,r,a,u){this.#e=n,this.#n=r,this.#o=c=>{var l=de;l.b=this,l.f|=ka,a(c)},this.parent=de.b,this.transform_error=u??this.parent?.transform_error??(c=>c),this.#r=nw(()=>{this.#w()},GS)}#_(){try{this.#t=Ln(()=>this.#o(this.#e))}catch(n){this.error(n)}}#S(n){const r=this.#n.failed;r&&(this.#i=Ln(()=>{r(this.#e,()=>n,()=>()=>{})}))}#C(){const n=this.#n.pending;n&&(this.is_pending=!0,this.#s=Ln(()=>n(this.#e)),dr(()=>{var r=this.#a=document.createDocumentFragment(),a=Oc();r.append(a),this.#t=this.#m(()=>Ln(()=>this.#o(a))),this.#c===0&&(this.#e.before(r),this.#a=null,es(this.#s,()=>{this.#s=null}),this.#v(we))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#c=0,this.#u=0,this.#t=Ln(()=>{this.#o(this.#e)}),this.#c>0){var n=this.#a=document.createDocumentFragment();sw(this.#t,n);const r=this.#n.pending;this.#s=Ln(()=>r(this.#e))}else this.#v(we)}catch(r){this.error(r)}}#v(n){this.is_pending=!1,n.transfer_effects(this.#g,this.#d)}defer_effect(n){yc(n,this.#g,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#m(n){var r=de,a=oe,u=xt;wn(this.#r),Ft(this.#r),os(this.#r.ctx);try{return Wn.ensure(),n()}catch(c){return Cc(c),null}finally{wn(r),Ft(a),os(u)}}#E(n,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#E(n,r);return}this.#c+=n,this.#c===0&&(this.#v(r),this.#s&&es(this.#s,()=>{this.#s=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(n,r){this.#E(n,r),this.#u+=n,!(!this.#l||this.#f)&&(this.#f=!0,dr(()=>{this.#f=!1,this.#l&&Lc(this.#l,this.#u)}))}get_effect_pending(){return this.#p(),hr(this.#l)}error(n){var r=this.#n.onerror;let a=this.#n.failed;if(!r&&!a)throw n;this.#t&&(Dt(this.#t),this.#t=null),this.#s&&(Dt(this.#s),this.#s=null),this.#i&&(Dt(this.#i),this.#i=null);var u=!1,c=!1;const l=()=>{if(u){US();return}u=!0,c&&NS(),this.#i!==null&&es(this.#i,()=>{this.#i=null}),this.#m(()=>{this.#w()})},g=p=>{try{c=!0,r?.(p,l),c=!1}catch(_){lr(_,this.#r&&this.#r.parent)}a&&(this.#i=this.#m(()=>{try{return Ln(()=>{var _=de;_.b=this,_.f|=ka,a(this.#e,()=>p,()=>l)})}catch(_){return lr(_,this.#r.parent),null}}))};dr(()=>{var p;try{p=this.transform_error(n)}catch(_){lr(_,this.#r&&this.#r.parent);return}p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(g,_=>lr(_,this.#r&&this.#r.parent)):g(p)})}}function zS(i){var n=i.effects;if(n!==null){i.effects=null;for(var r=0;r<n.length;r+=1)Dt(n[r])}}function KS(i){for(var n=i.parent;n!==null;){if((n.f&Fe)===0)return(n.f&dn)===0?n:null;n=n.parent}return null}function Ja(i){var n,r=de;wn(KS(i));try{i.f&=~Hn,zS(i),n=Bc(i)}finally{wn(r)}return n}function Pc(i){var n=i.v,r=Ja(i);if(!i.equals(r)&&(i.wv=Wc(),(!we?.is_fork||i.deps===null)&&(i.v=r,we?.capture(i,n,!0),i.deps===null))){Ce(i,Ne);return}Sr||(Pt!==null?(eo()||we?.is_fork)&&Pt.set(i,r):Ya(i))}function YS(i){if(i.effects!==null)for(const n of i.effects)(n.teardown||n.ac)&&(n.teardown?.(),n.ac?.abort(za),n.teardown=TS,n.ac=null,jr(n,0),to(n))}function Ic(i){if(i.effects!==null)for(const n of i.effects)n.teardown&&wr(n)}let Ba=new Set;const pn=new Map;let xc=!1;function ja(i,n){var r={f:0,v:i,reactions:null,equals:OS,rv:0,wv:0};return r}function cn(i,n){const r=ja(i);return aw(r),r}function Nn(i,n,r=!1){oe!==null&&(!It||(oe.f&Ha)!==0)&&ls()&&(oe.f&(Fe|Xt|qa|Ha))!==0&&(mt===null||!mr.call(mt,i))&&LS();let a=r?Gr(n):n;return Lc(i,a,ji)}function Lc(i,n,r=null){if(!i.equals(n)){var a=i.v;Sr?pn.set(i,n):pn.set(i,a),i.v=n;var u=Wn.ensure();if(u.capture(i,a),(i.f&Fe)!==0){const c=i;(i.f&Ge)!==0&&Ja(c),Pt===null&&Ya(c)}i.wv=Wc(),Nc(i,Ge,r),ls()&&de!==null&&(de.f&Ne)!==0&&(de.f&(Sn|kn))===0&&(pt===null?ow([i]):pt.push(i)),!u.is_fork&&Ba.size>0&&!xc&&XS()}return n}function XS(){xc=!1;for(const i of Ba)(i.f&Ne)!==0&&Ce(i,Mt),ni(i)&&wr(i);Ba.clear()}function Kr(i){Nn(i,i.v+1)}function Nc(i,n,r){var a=i.reactions;if(a!==null)for(var u=ls(),c=a.length,l=0;l<c;l++){var g=a[l],p=g.f;if(!(!u&&g===de)){var _=(p&Ge)===0;if(_&&Ce(g,n),(p&Fe)!==0){var y=g;Pt?.delete(y),(p&Hn)===0&&(p&vt&&(g.f|=Hn),Nc(y,Mt,r))}else if(_){var T=g;(p&Xt)!==0&&Kt!==null&&Kt.add(T),r!==null?r.push(T):Za(T)}}}}function Gr(i){if(typeof i!="object"||i===null||$a in i)return i;const n=CS(i);if(n!==wS&&n!==ES)return i;var r=new Map,a=_S(i),u=cn(0),c=Fn,l=g=>{if(Fn===c)return g();var p=oe,_=Fn;Ft(null),ec(c);var y=g();return Ft(p),ec(_),y};return a&&r.set("length",cn(i.length)),new Proxy(i,{defineProperty(g,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&IS();var y=r.get(p);return y===void 0?l(()=>{var T=cn(_.value);return r.set(p,T),T}):Nn(y,_.value,!0),!0},deleteProperty(g,p){var _=r.get(p);if(_===void 0){if(p in g){const y=l(()=>cn(Be));r.set(p,y),Kr(u)}}else Nn(_,Be),Kr(u);return!0},get(g,p,_){if(p===$a)return i;var y=r.get(p),T=p in g;if(y===void 0&&(!T||zr(g,p)?.writable)&&(y=l(()=>{var R=Gr(T?g[p]:Be),P=cn(R);return P}),r.set(p,y)),y!==void 0){var E=hr(y);return E===Be?void 0:E}return Reflect.get(g,p,_)},getOwnPropertyDescriptor(g,p){var _=Reflect.getOwnPropertyDescriptor(g,p);if(_&&"value"in _){var y=r.get(p);y&&(_.value=hr(y))}else if(_===void 0){var T=r.get(p),E=T?.v;if(T!==void 0&&E!==Be)return{enumerable:!0,configurable:!0,value:E,writable:!0}}return _},has(g,p){if(p===$a)return!0;var _=r.get(p),y=_!==void 0&&_.v!==Be||Reflect.has(g,p);if(_!==void 0||de!==null&&(!y||zr(g,p)?.writable)){_===void 0&&(_=l(()=>{var E=y?Gr(g[p]):Be,R=cn(E);return R}),r.set(p,_));var T=hr(_);if(T===Be)return!1}return y},set(g,p,_,y){var T=r.get(p),E=p in g;if(a&&p==="length")for(var R=_;R<T.v;R+=1){var P=r.get(R+"");P!==void 0?Nn(P,Be):R in g&&(P=l(()=>cn(Be)),r.set(R+"",P))}if(T===void 0)(!E||zr(g,p)?.writable)&&(T=l(()=>cn(void 0)),Nn(T,Gr(_)),r.set(p,T));else{E=T.v!==Be;var N=l(()=>Gr(_));Nn(T,N)}var H=Reflect.getOwnPropertyDescriptor(g,p);if(H?.set&&H.set.call(y,_),!E){if(a&&typeof p=="string"){var G=r.get("length"),re=Number(p);Number.isInteger(re)&&re>=G.v&&Nn(G,re+1)}Kr(u)}return!0},ownKeys(g){hr(u);var p=Reflect.ownKeys(g).filter(T=>{var E=r.get(T);return E===void 0||E.v!==Be});for(var[_,y]of r)y.v!==Be&&!(_ in g)&&p.push(_);return p},setPrototypeOf(){xS()}})}var Jl,Uc;function ZS(){if(Jl===void 0){Jl=window;var i=Element.prototype,n=Node.prototype,r=Text.prototype;zr(n,"firstChild").get,Uc=zr(n,"nextSibling").get,Kl(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),Kl(r)&&(r.__t=void 0)}}function Oc(i=""){return document.createTextNode(i)}function $c(i){return Uc.call(i)}function Dc(i){var n=oe,r=de;Ft(null),wn(null);try{return i()}finally{Ft(n),wn(r)}}function JS(i,n){var r=n.last;r===null?n.last=n.first=i:(r.next=i,i.prev=r,n.last=i)}function ti(i,n){var r=de;r!==null&&(r.f&Yt)!==0&&(i|=Yt);var a={ctx:xt,deps:null,nodes:null,f:i|Ge|vt,first:null,fn:n,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};we?.register_created_effect(a);var u=a;if((i&Zr)!==0)cr!==null?cr.push(a):Wn.ensure().schedule(a);else if(n!==null){try{wr(a)}catch(l){throw Dt(a),l}u.deps===null&&u.teardown===null&&u.nodes===null&&u.first===u.last&&(u.f&us)===0&&(u=u.first,(i&Xt)!==0&&(i&as)!==0&&u!==null&&(u.f|=as))}if(u!==null&&(u.parent=r,r!==null&&JS(u,r),oe!==null&&(oe.f&Fe)!==0&&(i&kn)===0)){var c=oe;(c.effects??=[]).push(u)}return a}function eo(){return oe!==null&&!It}function jS(i){return ti(Zr|bS,i)}function ew(i){Wn.ensure();const n=ti(kn|us,i);return(r={})=>new Promise(a=>{r.outro?es(n,()=>{Dt(n),a(void 0)}):(Dt(n),a(void 0))})}function tw(i,n=0){return ti(wc|n,i)}function nw(i,n=0){var r=ti(Xt|n,i);return r}function Ln(i){return ti(Sn|us,i)}function Mc(i){var n=i.teardown;if(n!==null){const r=Sr,a=oe;jl(!0),Ft(null);try{n.call(null)}finally{jl(r),Ft(a)}}}function to(i,n=!1){var r=i.first;for(i.first=i.last=null;r!==null;){const u=r.ac;u!==null&&Dc(()=>{u.abort(za)});var a=r.next;(r.f&kn)!==0?r.parent=null:Dt(r,n),r=a}}function rw(i){for(var n=i.first;n!==null;){var r=n.next;(n.f&Sn)===0&&Dt(n),n=r}}function Dt(i,n=!0){var r=!1;(n||(i.f&AS)!==0)&&i.nodes!==null&&i.nodes.end!==null&&(iw(i.nodes.start,i.nodes.end),r=!0),Ce(i,Yl),to(i,n&&!r),jr(i,0);var a=i.nodes&&i.nodes.t;if(a!==null)for(const c of a)c.stop();Mc(i),i.f^=Yl,i.f|=dn;var u=i.parent;u!==null&&u.first!==null&&Fc(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes=i.ac=i.b=null}function iw(i,n){for(;i!==null;){var r=i===n?null:$c(i);i.remove(),i=r}}function Fc(i){var n=i.parent,r=i.prev,a=i.next;r!==null&&(r.next=a),a!==null&&(a.prev=r),n!==null&&(n.first===i&&(n.first=a),n.last===i&&(n.last=r))}function es(i,n,r=!0){var a=[];kc(i,a,!0);var u=()=>{r&&Dt(i),n&&n()},c=a.length;if(c>0){var l=()=>--c||u();for(var g of a)g.out(l)}else u()}function kc(i,n,r){if((i.f&Yt)===0){i.f^=Yt;var a=i.nodes&&i.nodes.t;if(a!==null)for(const g of a)(g.is_global||r)&&n.push(g);for(var u=i.first;u!==null;){var c=u.next,l=(u.f&as)!==0||(u.f&Sn)!==0&&(i.f&Xt)!==0;kc(u,n,l?r:!1),u=c}}}function sw(i,n){if(i.nodes)for(var r=i.nodes.start,a=i.nodes.end;r!==null;){var u=r===a?null:$c(r);n.append(r),r=u}}let ts=!1,Sr=!1;function jl(i){Sr=i}let oe=null,It=!1;function Ft(i){oe=i}let de=null;function wn(i){de=i}let mt=null;function aw(i){oe!==null&&(mt===null?mt=[i]:mt.push(i))}let Ze=null,at=0,pt=null;function ow(i){pt=i}let Hc=1,On=0,Fn=On;function ec(i){Fn=i}function Wc(){return++Hc}function ni(i){var n=i.f;if((n&Ge)!==0)return!0;if(n&Fe&&(i.f&=~Hn),(n&Mt)!==0){for(var r=i.deps,a=r.length,u=0;u<a;u++){var c=r[u];if(ni(c)&&Pc(c),c.wv>i.wv)return!0}(n&vt)!==0&&Pt===null&&Ce(i,Ne)}return!1}function Vc(i,n,r=!0){var a=i.reactions;if(a!==null&&!(mt!==null&&mr.call(mt,i)))for(var u=0;u<a.length;u++){var c=a[u];(c.f&Fe)!==0?Vc(c,n,!1):n===c&&(r?Ce(c,Ge):(c.f&Ne)!==0&&Ce(c,Mt),Za(c))}}function Bc(i){var n=Ze,r=at,a=pt,u=oe,c=mt,l=xt,g=It,p=Fn,_=i.f;Ze=null,at=0,pt=null,oe=(_&(Sn|kn))===0?i:null,mt=null,os(i.ctx),It=!1,Fn=++On,i.ac!==null&&(Dc(()=>{i.ac.abort(za)}),i.ac=null);try{i.f|=Wa;var y=i.fn,T=y();i.f|=ei;var E=i.deps,R=we?.is_fork;if(Ze!==null){var P;if(R||jr(i,at),E!==null&&at>0)for(E.length=at+Ze.length,P=0;P<Ze.length;P++)E[at+P]=Ze[P];else i.deps=E=Ze;if(eo()&&(i.f&vt)!==0)for(P=at;P<E.length;P++)(E[P].reactions??=[]).push(i)}else!R&&E!==null&&at<E.length&&(jr(i,at),E.length=at);if(ls()&&pt!==null&&!It&&E!==null&&(i.f&(Fe|Mt|Ge))===0)for(P=0;P<pt.length;P++)Vc(pt[P],i);if(u!==null&&u!==i){if(On++,u.deps!==null)for(let N=0;N<r;N+=1)u.deps[N].rv=On;if(n!==null)for(const N of n)N.rv=On;pt!==null&&(a===null?a=pt:a.push(...pt))}return(i.f&Jr)!==0&&(i.f^=Jr),T}catch(N){return Cc(N)}finally{i.f^=Wa,Ze=n,at=r,pt=a,oe=u,mt=c,os(l),It=g,Fn=p}}function uw(i,n){let r=n.reactions;if(r!==null){var a=vS.call(r,i);if(a!==-1){var u=r.length-1;u===0?r=n.reactions=null:(r[a]=r[u],r.pop())}}if(r===null&&(n.f&Fe)!==0&&(Ze===null||!mr.call(Ze,n))){var c=n;(c.f&vt)!==0&&(c.f^=vt,c.f&=~Hn),Ya(c),YS(c),jr(c,0)}}function jr(i,n){var r=i.deps;if(r!==null)for(var a=n;a<r.length;a++)uw(i,r[a])}function wr(i){var n=i.f;if((n&dn)===0){Ce(i,Ne);var r=de,a=ts;de=i,ts=!0;try{(n&(Xt|Ec))!==0?rw(i):to(i),Mc(i);var u=Bc(i);i.teardown=typeof u=="function"?u:null,i.wv=Hc;var c;pS&&$S&&(i.f&Ge)!==0&&i.deps}finally{ts=a,de=r}}}function hr(i){var n=i.f,r=(n&Fe)!==0;if(oe!==null&&!It){var a=de!==null&&(de.f&dn)!==0;if(!a&&(mt===null||!mr.call(mt,i))){var u=oe.deps;if((oe.f&Wa)!==0)i.rv<On&&(i.rv=On,Ze===null&&u!==null&&u[at]===i?at++:Ze===null?Ze=[i]:Ze.push(i));else{(oe.deps??=[]).push(i);var c=i.reactions;c===null?i.reactions=[oe]:mr.call(c,oe)||c.push(oe)}}}if(Sr&&pn.has(i))return pn.get(i);if(r){var l=i;if(Sr){var g=l.v;return((l.f&Ne)===0&&l.reactions!==null||Qc(l))&&(g=Ja(l)),pn.set(l,g),g}var p=(l.f&vt)===0&&!It&&oe!==null&&(ts||(oe.f&vt)!==0),_=(l.f&ei)===0;ni(l)&&(p&&(l.f|=vt),Pc(l)),p&&!_&&(Ic(l),Gc(l))}if(Pt?.has(i))return Pt.get(i);if((i.f&Jr)!==0)throw i.v;return i.v}function Gc(i){if(i.f|=vt,i.deps!==null)for(const n of i.deps)(n.reactions??=[]).push(i),(n.f&Fe)!==0&&(n.f&vt)===0&&(Ic(n),Gc(n))}function Qc(i){if(i.v===Be)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(pn.has(n)||(n.f&Fe)!==0&&Qc(n))return!0;return!1}function lw(i){var n=It;try{return It=!0,i()}finally{It=n}}const cw=["touchstart","touchmove"];function hw(i){return cw.includes(i)}const Xi=Symbol("events"),fw=new Set,tc=new Set;let nc=null;function rc(i){var n=this,r=n.ownerDocument,a=i.type,u=i.composedPath?.()||[],c=u[0]||i.target;nc=i;var l=0,g=nc===i&&i[Xi];if(g){var p=u.indexOf(g);if(p!==-1&&(n===document||n===window)){i[Xi]=n;return}var _=u.indexOf(n);if(_===-1)return;p<=_&&(l=p)}if(c=u[l]||i.target,c!==n){SS(i,"currentTarget",{configurable:!0,get(){return c||r}});var y=oe,T=de;Ft(null),wn(null);try{for(var E,R=[];c!==null;){var P=c.assignedSlot||c.parentNode||c.host||null;try{var N=c[Xi]?.[a];N!=null&&(!c.disabled||i.target===c)&&N.call(c,i)}catch(H){E?R.push(H):E=H}if(i.cancelBubble||P===n||P===null)break;c=P}if(E){for(let H of R)queueMicrotask(()=>{throw H});throw E}}finally{i[Xi]=n,delete i.currentTarget,Ft(y),wn(T)}}}function gw(i,n){return dw(i,n)}const Zi=new Map;function dw(i,{target:n,anchor:r,props:a={},events:u,context:c,intro:l=!0,transformError:g}){ZS();var p=void 0,_=ew(()=>{var y=r??n.appendChild(Oc());QS(y,{pending:()=>{}},R=>{MS({});var P=xt;c&&(P.c=c),u&&(a.$$events=u),p=i(R,a)||{},FS()},g);var T=new Set,E=R=>{for(var P=0;P<R.length;P++){var N=R[P];if(!T.has(N)){T.add(N);var H=hw(N);for(const Ue of[n,document]){var G=Zi.get(Ue);G===void 0&&(G=new Map,Zi.set(Ue,G));var re=G.get(N);re===void 0?(Ue.addEventListener(N,rc,{passive:H}),G.set(N,1)):G.set(N,re+1)}}}};return E(mS(fw)),tc.add(E),()=>{for(var R of T)for(const H of[n,document]){var P=Zi.get(H),N=P.get(R);--N==0?(H.removeEventListener(R,rc),P.delete(R),P.size===0&&Zi.delete(H)):P.set(R,N)}tc.delete(E),y!==r&&y.parentNode?.removeChild(y)}});return pw.set(p,_),p}let pw=new WeakMap;const _w="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(_w);DS();function vw(i){}const Ga={init:i=>{te.get(Mn).enableRouting()},handlePageErrorHandler:(i,n,r)=>{i&&i.timeout&&setTimeout(()=>{if(i.viewUrl)n.viewUrl=i.viewUrl,r.getEngine()._ui.updateMainContent(n,r);else if(i.errorFn)i.errorFn(n);else{console.warn("Something went wrong with a client! You will be redirected to another page.");const a=i.redirectPath||"/";r.navigation().navigate(a)}},i.timeout)},handleExternalLinkNavigation:i=>{if(i.url)if(i.sameWindow||!1)window.location.href=i.url;else{const r=window.open(i.url,"_blank","noopener noreferrer");r&&(r.opener=null,r.focus())}},async addSearchParamsFromClient(i,n,r){const a=te.get(mn),u=D.getCurrentPath(r.getConfig().routing?.useHashRouting),l=(await a.getCurrentNode(u.path))?.clientPermissions?.urlParameters,g={...i};if(l){const p={};Object.keys(l).forEach(_=>{_ in g&&l[_]?.write===!0&&(p[_]=g[_],delete g[_])});for(const _ in g)console.warn(`No permission to add the search param "${_}" to the url`);Object.keys(p).length>0&&r.routing().addSearchParams(p,n)}}},$t={luigi:{},init:i=>{console.log("Init communication..."),$t.luigi=i},addListeners:(i,n)=>{i.addEventListener(U.INITIALIZED,r=>{be.luigi?.ux().hideLoadingIndicator(i.parentNode)}),i.addEventListener(U.NAVIGATION_REQUEST,r=>{const{link:a,preserveView:u,modal:c,newTab:l,withoutSync:g,preventContextUpdate:p,preventHistoryEntry:_,fromVirtualTreeRoot:y,fromContext:T,fromClosestContext:E,fromParent:R,relative:P,nodeParams:N}=r.detail,H={modalSettings:c,newTab:l,path:a,preserveView:u,preventContextUpdate:p,options:{fromVirtualTreeRoot:y,fromContext:T,fromClosestContext:E,fromParent:R,relative:P,nodeParams:N},preventHistoryEntry:_,withoutSync:g};te.get(mn).handleNavigationRequest(H,r.callbackFn)}),i.addEventListener(U.RUNTIME_ERROR_HANDLING_REQUEST,r=>{n.navigation().runTimeErrorHandler(r.payload?.data?.errorObj||{})}),i.addEventListener(U.ALERT_REQUEST,r=>{be.processAlert(r.payload,!0,i)}),i.addEventListener(U.SHOW_CONFIRMATION_MODAL_REQUEST,r=>{be.handleConfirmationModalRequest(r.payload,i)}),i.addEventListener(U.SET_DOCUMENT_TITLE_REQUEST,r=>{$t.luigi.getEngine()._connector?.setDocumentTitle(r.detail.title)}),i.addEventListener(U.SHOW_LOADING_INDICATOR_REQUEST,r=>{$t.luigi.getEngine()._connector?.showLoadingIndicator(i.parentNode)}),i.addEventListener(U.HIDE_LOADING_INDICATOR_REQUEST,r=>{$t.luigi.getEngine()._connector?.hideLoadingIndicator(i.parentNode)}),i.addEventListener(U.ADD_BACKDROP_REQUEST,r=>{$t.luigi.getEngine()._connector?.addBackdrop()}),i.addEventListener(U.REMOVE_BACKDROP_REQUEST,r=>{$t.luigi.getEngine()._connector?.removeBackdrop()}),i.addEventListener(U.SET_DIRTY_STATUS_REQUEST,r=>{be.handleDirtyStatusRequest(r.detail?.data?.dirty,r.detail?.source)}),i.addEventListener(U.ADD_NODE_PARAMS_REQUEST,r=>{n.routing().addNodeParams(r.payload.data,r.payload.keepBrowserHistory)}),i.addEventListener(U.OPEN_USER_SETTINGS_REQUEST,r=>{$t.luigi.getEngine()._connector?.openUserSettings(r.detail)}),i.addEventListener(U.CLOSE_USER_SETTINGS_REQUEST,r=>{$t.luigi.getEngine()._connector?.closeUserSettings()}),i.addEventListener(U.ADD_SEARCH_PARAMS_REQUEST,r=>{Ga.addSearchParamsFromClient(r.detail.data,r.detail.keepBrowserHistory,n)}),i.addEventListener(U.UPDATE_MODAL_SETTINGS_REQUEST,r=>{Me.updateModalSettings(r.payload.updatedModalSettings,r.payload.addHistoryEntry,n)}),i.addEventListener(U.SET_CURRENT_LOCALE_REQUEST,r=>{n.i18n().setCurrentLocale(r.detail?.data?.data?.currentLocale,i)})}};class mw{constructor(){this._ui=Me,this._comm=$t,this._ux=be,this._routing=Ga}bootstrap(n){this._app=gw(vw,{target:document.body}),this._connector=n}init(){const n=window.Luigi;te.register(ss,()=>new ss),te.register(mn,()=>new mn(n)),te.register(vn,()=>new vn),te.register(Mn,()=>new Mn(n)),te.register(vr,()=>new vr),te.register(_n,()=>new _n(n)),n.theming()._init(),Me.init(n),Ga.init(n),$t.init(n),be.init(n)}}window.Luigi=new dS(new mw);
55
55
  //# sourceMappingURL=luigi.js.map